vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to do this: (https://vborg.vbsupport.ru/showthread.php?t=186102)

ekantnl 07-23-2008 06:49 AM

How to do this:
 
If you take a look at -for example- this page:

http://www.dieselbombers.com/show-te...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:

Code:

<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:

Code:

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

Quote:

Originally Posted by DiesellMinded (Post 1582822)
Glad you like it :)

Hi!

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

DieselMinded 08-31-2008 04:02 PM

Thanks


All times are GMT. The time now is 02:11 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00996 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete