Jump to content

Archived

This topic is now archived and is closed to further replies.

webmktco

Trying to add copyright date via php in NextBox

Recommended Posts

webmktco

I'm trying to add php code in the NextBox for the copyright date. I'm getting this error:

Looks like your NextBox PHP resulted in an error :/

Here's the code I'm using:

&copy; <?php echo date("Y"); ?

Any idea how to get this to work?

Share this post


Link to post
Share on other sites
Simon
&copy; <?php echo date('Y'); ?>

 

Share this post


Link to post
Share on other sites
webmktco

Hi Simon,

It looks like you quoted my post, but didn't add any comment.

Share this post


Link to post
Share on other sites
Simon

I added a > 

?> is the closesure for php not ?

Share this post


Link to post
Share on other sites
Simon

try this:

echo '&copy; ' . date('Y');

 

Share this post


Link to post
Share on other sites
Simon

are you sure php exec is available?

 

has any php ever worked in the box?

Share this post


Link to post
Share on other sites
Aires

Echo "copyright "; echo date("Y"); Works Sent from my iPhone using Tapatalk


ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites

  • Similar Content

    • casseysdesigns
      By casseysdesigns+
      In the past I would use nextbox for this task. However, Platform 5 does not have nextbox. I will do my best to describe what I am trying to do.
      I am creating a template for coaches, each product has its own link but they all share a common coach id. I want to set up the templates with the links for each product with a variable for the coach id so that I can change the coach id for all the links on the site by just changing the value of the variable $coachId. To do this I'll need to do something like the following...
      <a href="salesite.com/productcodes/referringRepId=<?= $coachId ?>" target="_blank">Product Purchase Link</a> Is it possible to do this with Platform 5?
    • evscicats
      By evscicats
      I'm having an issue getting shortcodes to work using the Nextbox section since Wordpress updated to 2.4.4 where they fixed a security issue with shortcodes and caused plugin developers who utilize shortcodes to update their code.  I can get shortcodes to work if they are created using php but if they are shortcodes from a plugin such as Custom Content Shortcodes, they don't work.  Even trying to use a simple shortcode like [field title] on a page doesn't render the page title anymore like it did before the WP update.  The Custom Content Shortcode plugin has been pushing updates to remedy issues since the WP update and I can get the shortcode to work if I put it in WP Content, but if I try using the Nextbox section, I just see [field title].
      I don't know if there's something you guys need to update on the Nextbox section or if there's something you can tell me codewise to pass along to the developer of this awesome plugin to allow this to work again in Nextbox, but I need to get this working ASAP!
      Thanks!
      Jerrad
    • quinntinm
      By quinntinm
      Hello.
       
      I need to display a shortcode in the footer of my site and have been told by the support admin to add a function in my functions.php file or use hooker.
      I installed hooker and i have no idea how to proceed.
       
      I went to the hooks editor and am faced with a list in a dropdown menu....
       
      um...
       
      So where to from here.
       
      so this is what i need to do:
      I have created 3 custom fields using advanced custom fields.
      I need to display that data in a PLNEXTBOX in the footer of the site so that the info is displayed on every page of the site in the footer.
       
      How do i use hooker to do this?
       
      Thank you.
    • abuzzelli
      By abuzzelli+
      I'm trying to translate custom PHP templates that a developer coded into pagelines templates. I'm trying to paste the php into a nextbox, but I'm getting this error:
       
      Looks like your NextBox PHP resulted in an error :/
       
      Here's the code. Not sure what I'm doing wrong.
       
       
      <?php
      /**
       * The template used for displaying page content in front-page.php
       */
      ?>

          <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
              <header class="entry-header">
                  <?php if ( ! is_page_template( 'page-templates/front-page.php' ) ) : ?>
                      <?php the_post_thumbnail(); ?>
                  <?php endif; ?>
                  <h1 class="entry-title"><?php the_title(); ?></h1>
              </header>

              <?php get_template_part( 'content', 'vehicle-gallery' ); ?>

              <div class="entry-content">
                  <?php the_content(); ?>
                  <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
              </div><!-- .entry-content -->
              <footer class="entry-meta">
                  <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
              </footer><!-- .entry-meta -->
          </article><!-- #post -->
×