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)

technom8t 09-03-2008 01:57 PM

yes this is what i have done, i nearly there with it, all i need to add now is if there really is no posts and you are registered then you get '' sorry no posts in this forum'' i will post my code soon, and maybe that would be easier as it is quite confusing LOL

Thanks for sticking with it.

--------------- Added [DATE]1220454883[/DATE] at [TIME]1220454883[/TIME] ---------------

PHP Code:

<!-- show no threads message -->
    <
tbody>
    <
tr>
        <
td class="alt1" colspan="$foruminfo[bottomcolspan]align="center">
            <
div style="padding: 16px">
 <if 
condition="$bbuserinfo[usergroupid]!='1'"><strong>$vbphrase[subscribe_message]</strong>
<
A HREF="http://www.***********.co.uk/forums/payments.php">SUBSCRIBE HERE</A>
</if>

<if 
condition="$show['guest']"><strong>$vbphrase[no_posts_in_this_forum]</strong><p><A HREF="http://www.************.co.uk/forums/">LOGIN HERE</A> OR <A HREF="http://www.************.co.uk/forums/register.php">REGISTER HERE</A>
</if>

            </
div>
        </
td>
    </
tr>
    </
tbody>
    <!-- 
end show no threads message --> 

ok so this is what guests now see
https://vborg.vbsupport.ru/external/2008/09/74.jpg

and this is what registered users trying to access the VIP area (that they don't yet have permission to access) see :
https://vborg.vbsupport.ru/external/2008/09/75.jpg

so last problem is if i do have a forum with no posts in it, ppl receive the subscribe message, obviously because i haven't yet inc operated any '' if '' code for no posts into my code? can you help with this bit??

Dismounted 09-04-2008 07:29 AM

There isn't a variable that has the number of threads. You will need to just create one in forums that don't have threads.

technom8t 09-04-2008 10:29 AM

ok thanks for your help, i decided just to make sure all my forums had at least 1 thread LOL, problem solved

Thanks Again


All times are GMT. The time now is 11:07 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.01075 seconds
  • Memory Usage 1,727KB
  • 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_php_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
  • (3)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