TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 17, 2024, 07:27:27 AM

Login with username, password and session length
Members
  • Total Members: 3,886
  • Latest: Grendor
Stats
  • Total Posts: 195,189
  • Total Topics: 21,220
  • Online today: 59
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 32
  • Total: 32

Fading Block of Php-Nuke

Started by Michiko, February 26, 2006, 01:27:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lurkalot

Quote from: IchBinâ,,¢ on November 21, 2007, 01:16:18 AM
You'll see that there are three lines that start with $scroll. Copy one of the lines and make the necessary changes for your own images.

IchBin, thanks very much for the reply.

OK, that was what I did in the first place, except I edited the links already there.   Which ever one I edit last is the one that shows up on my page.  I can't get the others to display.   

I'm pretty thick when it comes to this stuff, so any help on this would be appreciated.  Here's a link to my site, so you can see it working.  It's in a left block. http://cameracraniums.com

lurkalot

#11


$scroll = "<center><a target=\"_blank\" href=\" http://www.andyrouse.co.uk/shop_specific.asp?IDproduct=72\"><img src=\"tp-images/arpeng.gif\" border=\"0\"   title=\"Penguin Life\"alt=\"Go Get It \"></a></center><br>";

$scroll = "<center><a target=\"_blank\" href=\" http://www.andyrouse.co.uk/shop_specific.asp?IDproduct=62\"><img src=\"tp-images/arap.gif\" border=\"0\"   title=\"Animal Portraits\"alt=\"Go Get It \"></a></center><br>";

$scroll = "<center><a target=\"_blank\" href=\" http://www.andyrouse.co.uk/shop_specific.asp?IDproduct=11\"><img src=\"tp-images/arlpg.gif\" border=\"0\"   title=\"The Lonely Planet Guide\"alt=\"Go Get It \"></a></center><br>";

$scroll = "<center><a target=\"_blank\" href=\" http://www.andyrouse.co.uk/shop_specific.asp?IDproduct=81\"><img src=\"tp-images/arraw.gif\" border=\"0\"   title=\"Understanding RAW\"alt=\"Go Get It \"></a></center><br>";



This is how I have my links set up, and as you can see it's only displaying the last one on my site.

IchBin

Yes, because what you forgot was to put the period before each equal sign. Putting a period appends it to the variable $scroll. Where as if you don't use the period, $scroll will only be set to the last line where it was set. Hence, your problem. Try this:
$scroll .= "<center><a target=\"_blank\" href=\" http://www.andyrouse.co.uk/shop_specific.asp?IDproduct=72\"><img src=\"tp-images/arpeng.gif\" border=\"0\"   title=\"Penguin Life\"alt=\"Go Get It \"></a></center><br>";

$scroll .= "<center><a target=\"_blank\" href=\" http://www.andyrouse.co.uk/shop_specific.asp?IDproduct=62\"><img src=\"tp-images/arap.gif\" border=\"0\"   title=\"Animal Portraits\"alt=\"Go Get It \"></a></center><br>";

$scroll .= "<center><a target=\"_blank\" href=\" http://www.andyrouse.co.uk/shop_specific.asp?IDproduct=11\"><img src=\"tp-images/arlpg.gif\" border=\"0\"   title=\"The Lonely Planet Guide\"alt=\"Go Get It \"></a></center><br>";

$scroll .= "<center><a target=\"_blank\" href=\" http://www.andyrouse.co.uk/shop_specific.asp?IDproduct=81\"><img src=\"tp-images/arraw.gif\" border=\"0\"   title=\"Understanding RAW\"alt=\"Go Get It \"></a></center><br>";

lurkalot

Thank you so much, that works perfectly.   

Such a simple fix too.   Told you I was thick.  :idiot2:


lurkalot

IchBin,

As I said all seems to work perfectly, and thanks again.   But.  I've just checked my error log, and I'm getting this error popping up on a regular basis.

8: Undefined variable: scroll
File: /home/cameracr/public_html/forum/Themes/default/TPortal.template.php (eval?)
Line: 33

Seems to be the slinks block that's causing it, as when I turn the block off, the error no longer occurs.

Any ideas how to fix it? Please.   Sorry to be a pain. ;)

Dragooon

$scroll is described in only these lines right?
$scroll .= "<center><a target=\"_blank\" href=\" http://www.andyrouse.co.uk/shop_specific.asp?IDproduct=72\"><img src=\"tp-images/arpeng.gif\" border=\"0\"   title=\"Penguin Life\"alt=\"Go Get It \"></a></center><br>";

$scroll .= "<center><a target=\"_blank\" href=\" http://www.andyrouse.co.uk/shop_specific.asp?IDproduct=62\"><img src=\"tp-images/arap.gif\" border=\"0\"   title=\"Animal Portraits\"alt=\"Go Get It \"></a></center><br>";

$scroll .= "<center><a target=\"_blank\" href=\" http://www.andyrouse.co.uk/shop_specific.asp?IDproduct=11\"><img src=\"tp-images/arlpg.gif\" border=\"0\"   title=\"The Lonely Planet Guide\"alt=\"Go Get It \"></a></center><br>";

$scroll .= "<center><a target=\"_blank\" href=\" http://www.andyrouse.co.uk/shop_specific.asp?IDproduct=81\"><img src=\"tp-images/arraw.gif\" border=\"0\"   title=\"Understanding RAW\"alt=\"Go Get It \"></a></center><br>";

if so try this
$scroll = "<center><a target=\"_blank\" href=\" http://www.andyrouse.co.uk/shop_specific.asp?IDproduct=72\"><img src=\"tp-images/arpeng.gif\" border=\"0\"   title=\"Penguin Life\"alt=\"Go Get It \"></a></center><br>";

$scroll .= "<center><a target=\"_blank\" href=\" http://www.andyrouse.co.uk/shop_specific.asp?IDproduct=62\"><img src=\"tp-images/arap.gif\" border=\"0\"   title=\"Animal Portraits\"alt=\"Go Get It \"></a></center><br>";

$scroll .= "<center><a target=\"_blank\" href=\" http://www.andyrouse.co.uk/shop_specific.asp?IDproduct=11\"><img src=\"tp-images/arlpg.gif\" border=\"0\"   title=\"The Lonely Planet Guide\"alt=\"Go Get It \"></a></center><br>";

$scroll .= "<center><a target=\"_blank\" href=\" http://www.andyrouse.co.uk/shop_specific.asp?IDproduct=81\"><img src=\"tp-images/arraw.gif\" border=\"0\"   title=\"Understanding RAW\"alt=\"Go Get It \"></a></center><br>";

lurkalot

#16
Thanks Dragooon.

That seems to have fixed it.   Cheers. ;)

Thanks to you both, I got there in the end.  :)

Dragooon