vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   how to change default text (https://vborg.vbsupport.ru/showthread.php?t=182840)

mayanks 06-18-2008 09:54 AM

how to change default text
 
there is a VIP sections on my board which are only accessible to VIPs.

if a registered member or guest trying to access them , it shows There are no posts in this forum.

how can i change this text to something like This is a VIP section, please click here to buy your subscription

please help.

Thanks in advance :)

Dismounted 06-18-2008 10:01 AM

If the only forums that show that message are "VIP" forums, the easiest way would be to just edit that phrase.

RLShare 06-18-2008 02:08 PM

If you load up the phrase manager, its a Forum Display phrase called no_posts_in_this_forum

mayanks 06-19-2008 09:05 PM

sorry guys, i am little noob in the programming thing.

could you please describe a bit in step by step procedure.

Thanks in advance

Dismounted 06-20-2008 10:07 AM

Please answer if the first part of my answer applies in your case.

technom8t 09-02-2008 11:10 PM

Hi There, i would like the exact same thing please, i have used the phrase manager to change the phrase and this has worked fine although i would like to have 2 different phrases, the default phrase in vbulletin is '' there are no posts in this thread'' i chnaged the default to '' you do not have permission to view this thread'' but i also want a second phrase added so that if its a gues there a message under the dfault one asking them to register, and if they are trying to access my VIP section that means they are all ready registered so i need the added text to say please subscribe here or something along those lines

i tried using

<if condition="$show['guest']"> ''please register message''</if>

with this text underneath it :

please subscribe here

but it doesn't work? i get the two messages at the same time, but the code is hiden, i dont understand it??

any help appreciated

so my phrase now looks like this :

Code:

You do not have permission to view this forum <if condition="$show['guest']">please register here first</if>

Please subscribe to our VIP to enter this forum


MoT3rror 09-03-2008 05:12 AM

Try using $bbuserinfo['userid'] == 0 in your condition.

Dismounted 09-03-2008 06:21 AM

You can't use conditionals in phrases.

technom8t 09-03-2008 11:18 AM

Quote:

Originally Posted by Dismounted (Post 1613367)
You can't use conditionals in phrases.

yeh i discovered that at half three this morning LOL

so is there anyway at all to get this to do what i am wanting??

edit : i used the condition on the forum display template, just were the phrases would go, i have got both my phrases showing now, cant figure it out???

Dismounted 09-03-2008 11:25 AM

You can create 2 phrases, and use the conditional in your template (is this what you're doing now?).


All times are GMT. The time now is 12:45 PM.

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.01060 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete