Zend - The PHP Company




Code Gallery: jasendorf


A Random Image with Link  

Type: code fragment
Added by: jasendorf
Entered: 30/06/2000
Last modified: 08/12/2006
Rating: **** (5 votes)
Views: 10716
Random Image with Link - good for "did you know" type of banner which point people to new areas of a website (at least that's why I made it...) **** This uses $level from my code for the link level determiner ****


header / sidebar / footer link level determiner  

Type: application
Added by: jasendorf
Entered: 23/05/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 7366
I made this bit of code (with a lot of help from the list serv people, THANKS!) and thought I would share it. This is my first post, so please be gentle. This code is designed to be required on every web page in the web site. It should automatically pick up the depth of a page in the file directory and then assign the proper link to a directory FROM THE ROOT. The first part of this script finds how deep the page is from the root. The second part is an array of all of the links you want listed. The third part sorts and lists the links. You should then be able to require this script on any page in your website and all of the links will work. I hope to make the next version of this determine if a link is in the directory currently accessed. (any help? wink wink) If this helps anyone, please let me know. jasendorf@lcounty.com John Asendorf


Links Displayer  

Type: code fragment
Added by: jasendorf
Entered: 10/07/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 6084
I use this to spit out external links for our ever popular "Links" page. Just add an array item and you've got alphabetized links.




Search