Author Topic: Add variables to link in categories?  (Read 4273 times)

0 Members and 1 Guest are viewing this topic.

Offline djavet

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
Add variables to link in categories?
« on: December 12, 2006, 01:31:03 PM »
Hello

I wish to add a variables to the link on the thumbs in categories and in the random pix. Where can I make this?
I can't find the link url in template and in php.

Exemple:
Normal link:
Code: [Select]
<a href="./details.php?image_id=1&amp;sessionid=bea1c5edf64e7e204f1bb2d2aaa8a141&sessionid=bea1c5edf64e7e204f1bb2d2aaa8a141"><img src="./data/thumbnails/2/SDA-port.jpg" border="1" width="149" height="108" alt="Test pix1" /></a>

in:
Code: [Select]
<a href="./details.php?image_id=1&amp;sessionid=bea1c5edf64e7e204f1bb2d2aaa8a141&sessionid=bea1c5edf64e7e204f1bb2d2aaa8a141" rel="lightbox[sda]"><img src="./data/thumbnails/2/SDA-port.jpg" border="1" width="149" height="108" alt="Test pix1" /></a>
Note the rel="lightbox[sda]" in the href.

I notice too that give twice the session ID... Is that normal? I've just install a fresh copy of 1.7.4.

Thx a lot.

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Add variables to link in categories?
« Reply #1 on: December 12, 2006, 02:23:51 PM »
... you can edit this link part for your thumbnail_bit.html in /includes/functions.php ...
... find in a fresh functions.php vers.1.7.4 from line 453 the "function get_thumbnail_code" ...
... there you must edit all "$thumb" ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline djavet

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
Re: Add variables to link in categories?
« Reply #2 on: December 12, 2006, 03:59:18 PM »
Thx! I will give a try to this.

And for the 2 sessions ID?

Regards, Dom

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Add variables to link in categories?
« Reply #3 on: December 12, 2006, 04:23:34 PM »
... edit "$thumb" in /includes/functions.php ... there is no sessions ID ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...