PDA


View Full Version : HOW-TO: Display link ID# in a listing?


ataraxia
10-07-2004, 01:16 PM
Is there a way to dsiplay the ID# of a link in its listing?

Sounds like adding a variable to a template....

Which variable and which template??

Thanks!

Brian
10-07-2004, 02:51 PM
Do you want it on the browselinks.php page, or the showlink.php page?

ataraxia
10-07-2004, 03:20 PM
Do you want it on the browselinks.php page, or the showlink.php page?Actually, I'd prefer both but showlink.php is the most important.

In browselinks it might "fit" well following the posters' name and posting date/time, something like this ("234" is an example ID #):

by Admin on 11th March 2004 10:22 AM (#234)

(Thanks!)

ataraxia
10-07-2004, 03:31 PM
Is implementing this complex enough to require a hack to the PHP code or is it more a matter of just adding the linkID variable name to some templates for display?

Brian
10-07-2004, 03:37 PM
Adding $link[linkid] in your 'adv_links_linkbit' template will show it on your browselinks pages and your index page (if you have new or random links on there). Same variable in your 'ADV_LINKS_SHOWLINK' template will add the linkid on the showlink.php page. ;)

ataraxia
10-07-2004, 05:24 PM
Thanks, Brian! This works great!!!!