Posted by Jonathan N. Little on 09/01/06 16:37
HJ wrote:
> Thanks for the reply. If we use two different php files for the
> condition, then the problem should be solved.
>
> However, this issue involves a lot of html files and for each file we
> have to create another one with exact content but all the link
> disabled.
>
> We decided not to go that way...So the problem remains...
>
> Any help?
>
> Thanks a lot for the replies earlier! :D
Okay, no problem instead of having the links file a HTML pull from a TSV
(Tab Separated Values) text file or other database source
*HREF TEXT
aboutus.php About Us
produces.php Our Produce Line
....
Then use...
<?php
if($visitor=='privileged'){
insertMyLinks("theLinksData.txt");
}
else {
insertMyList("theLinksData.txt");
}
?>
....where function 'insertMyLinks' makes a list of links from the two
fields in the file 'theLinksData.txt' or the function 'insertMyList'
just uses the first field to make the plain text list. Only one data
source to maintain.
Simple! Make the program for for you....
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|