PDA

View Full Version : How to do this:


ekantnl
07-23-2008, 06:49 AM
If you take a look at -for example- this page:

http://www.dieselbombers.com/show-tell/14655-daddy-got-new-shoes.html

You will find this message below every post:
"To Reply, Join Diesel Bombers Now Its FREE And Instant !"

If you click the link it brings you to the register page.

I have searched this site but can not find the answer. Is it a mod?
If not, can someone explain me where I have to put what to get the same result?

Thank you for your help on this! :)

MrEyes
07-23-2008, 07:04 AM
Looks like DB has added a conditional statement to the postbit templates. Something like this:


<if condition="$show['guest']">
<a href="register.php">To Reply, Join Diesel Bombers Now Its FREE And Instant !</a>
</if>


If wordy format this code is:

If the current viewer is a guest then write out a link to the register page, otherwise do nothing.

ekantnl
07-23-2008, 08:23 AM
Thank you very much! This did the trick! :)

Opserty
07-23-2008, 08:24 AM
Search the mod section for "Hide Links from Guests" they maybe using something like that, just edited slightly.

DieselMinded
07-24-2008, 04:31 AM
Glad you like it :)

ekantnl
07-24-2008, 05:08 AM
Glad you like it :)
Hi!

I have visited your site. It is super! :)

DieselMinded
08-31-2008, 04:02 PM
Thanks