Viewing 15 replies - 1 through 15 (of 37 total)
  • Thread Starter tonywright

    (@tonywright)

    does anyone have any suggestions? im going mad trying to get this to work.

    it should be a simple task.

    the instructions say to add a line at the top of the sidebar file which i do, and then another line where i want the banner to display.

    but the code is displayed at the top of my sidebar and a little further down. not the actual banner.

    First thing – patience. By replying to your own message, you’ve knocked it off the list of psots with no answers that some people monitor, which reduces your chance of getting a reply…

    Second – post the content of your sidebar.php (with the code you’ve added) at https://paste.uni.cc/ (or another pastebin) and post the link back here. This will (hopefully) enable someone to see what’s going wrong.

    Thread Starter tonywright

    (@tonywright)

    the paste can be seen here:

    https://paste.uni.cc/7879

    the site is https://www.rapnews.co.uk but ive taken out the code that isn’t working so things dont look ugly for visitors in the meantime.

    I can see what’s happened.

    Where you have & lt ; (without the spaces) you should have < on line 1 and line 69. I guess you copied exactly what was shown on the webpage? I think that got mangled in copying and pasting, and nobody’s fixed it.

    Thread Starter tonywright

    (@tonywright)

    so simply add an < at the front of line 1 and 69?

    ok thanks ill try it.

    Thread Starter tonywright

    (@tonywright)

    im afraid this didn’t help.

    Thread Starter tonywright

    (@tonywright)

    …….?

    Did you replace the incorrect letters?

    Line 1: <?php include('rotator.php'); ?>

    Line 69: <?php showImage(); ?>

    Thread Starter tonywright

    (@tonywright)

    thanks. im now using that code.

    but it pushes all of the links on my sidemenu right down to the bottom of the page, and displays the error:

    Fatal error: Call to undefined function: showimage() in /home/hiphopne/public_html/wp-content/themes/default/sidebar.php on line 68

    Presumably “showimage()” is a function in rotator.php?

    You might need to put the path to where you’ve saved rotator.php in line 1, so that it can be found.

    The path will be something like this:

    <?php include('/home/hiphopne/public_html/rotator.php');>

    (that’s if it’s in your root folder – if it’s in wp-content, for instance, you’ll need to add that to the path)

    Thread Starter tonywright

    (@tonywright)

    I expanded the location of the rotator.php it’s in the same folder as the sidebar anyway though.

    now getting the error:

    Parse error: parse error, unexpected ‘>’ in /home/hiphopne/public_html/wp-content/themes/default/sidebar.php on line 1

    i tried deleted the last > and it said the error was on line 3

    Can you put the current contents of sidebar.php into the pastebin again, and post the new link here?

    Thread Starter tonywright

    (@tonywright)

    Hi. The pastebin of sidebar.php is at https://paste.uni.cc/7884

    this doesn’t contain any of the code ive been trying to get to work.

    Umm, we do need to see what you’re trying to make work…

    Thread Starter tonywright

    (@tonywright)

    well you’re aware of the two lines which i’ve been putting in to get the rotator to work. you’ve been telling me various varities of these two lines. but none of them work.

    the installation instructions says:

    <?php include(‘rotator.php’); ?>

    <?php showImage(); ?>

    the first line is meant to go at the top of the whole php.
    the second is meant to go wherever i want the image to appear.

Viewing 15 replies - 1 through 15 (of 37 total)
  • The topic ‘a simple problem’ is closed to new replies.