Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 04:57 pm EST

Geeklog Forums

Gallery Random Pictures - http link problem


Status: offline

congleal

Forum User
Full Member
Registered: 11/08/04
Posts: 179
I've got the random pictures block working on my site but what I would like to do is for each random picture in this block, I would like to remove the hyperlink pointing to gallery and point it to another website.
I've look through all the discussions and haven't found the answer. I'm not sure it can be done...please help!


Lee
 Quote

tokyoahead

Anonymous
I think the code for this is in the lib-Custom-function that you installed with the random photo block. search for the HTML in that function and replace it with the stuff you need.
 Quote

Status: offline

congleal

Forum User
Full Member
Registered: 11/08/04
Posts: 179
I'll do that....thanks!
 Quote

Status: offline

congleal

Forum User
Full Member
Registered: 11/08/04
Posts: 179
You were right about the link back to gallery. I found it on the lib-custom:

if (isset($index)) {
$id = $album->getPhotoId($index);
$retval = ""
//."
fields["name"], $id) .">"
.$album->getThumbnailTag($index)
."
";

But I'm not sure where to go to create individual hyper links for each graphic in the random display. I've checked the block-random.php, init.php any other suggestions?

Lee
 Quote

Status: offline

zipstart

Forum User
Chatty
Registered: 09/13/04
Posts: 60
Why not just make the image title the URL, then format it as a link when you display it?
 Quote

All times are EST. The time is now 04:57 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content