vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   how can i change the num threads/posts in the private forum to other text (https://vborg.vbsupport.ru/showthread.php?t=299228)

betadoor 06-17-2013 10:01 PM

how can i change the num threads/posts in the private forum to other text
 
hi,

in the private forum, if i set "show private forum" with "yes - hide post count" option in the admincp,
the number of posts to displyed is 0 threads and 0 posts...

how can i change the "0 threds" and "0 posts" in private forum to other text ? (like "do not have a permission to view number of thread/posts"...)

does anyone have an idea ?:)

Lynne 06-18-2013 01:11 AM

You would probably have to do a template edit to change it for that forum.

To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.)

betadoor 06-18-2013 11:33 PM

ok, but if I change this:
Code:

                <ul class="forumstats td">
                        <li>{vb:rawphrase threads}: {vb:raw forum.threadcount}</li>
                        <li>{vb:rawphrase posts}: {vb:raw forum.replycount}</li>

to:
Code:

                <ul class="forumstats td">
                        <li>do not have a permission to view number of thread/posts</li>

This code affects all forums (i need to apply the change only in private forum! not in all forums :))

Lynne 06-19-2013 01:23 AM

You will need to make a condition to do that for only the forumids you want to show it to.

Code:

<vb:if condition="$variable['forumid'] == x">
the new stuff
<vb:else />
the original code
</vb:if>

Change $variable to the correct variable for that template (you didn't mention it, so I don't know that) and x to the forumid or the private forum.

betadoor 06-19-2013 09:11 AM

Sorry, this is a relevant code from"forumhome_forumbit_level2_post" themplate.

Code:

                                </div>
        <vb:if condition="$forum['statusicon'] != 'link'">
                <h4 class="nocss_label">{vb:rawphrase forum_actions}:</h4>
                <vb:if condition="$show['externalrss'] OR $show['member']">
                <ul class="forumactionlinks td">
                        <vb:if condition="$forum['allowposting']"><vb:if condition="$show['externalrss']"><li class="forumactionlink rsslink"><a href="external.php?{vb:raw session.sessionurl}type=RSS2&amp;forumids={vb:raw forum.forumid}" title="{vb:rawphrase view_forum_rss_feed}">{vb:rawphrase view_forum_rss_feed}</a></li></vb:if>
                        <vb:if condition="$show['member']"><vb:if condition="$show['forumsubscription']"><li class="forumactionlink unsubslink"> <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}subscription.php?{vb:raw session.sessionurl}do=removesubscription&amp;f={vb:raw forum.forumid}" title="{vb:rawphrase unsubscribe_from_this_forum}">{vb:rawphrase unsubscribe_from_this_forum}</a></li><vb:else /><li class="forumactionlink subslink"> <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}subscription.php?{vb:raw session.sessionurl}do=addsubscription&amp;f={vb:raw forum.forumid}" title="{vb:rawphrase subscribe_to_this_forum}">{vb:rawphrase subscribe_to_this_forum}</a></li></vb:if></vb:if></vb:if>
                </ul>
                <vb:else />
                <div class="forumactionlinks"></div>
                </vb:if>
        <h4 class="nocss_label">{vb:rawphrase forum_statistics}:</h4>
                <ul class="forumstats td">
                        <li>{vb:rawphrase threads}: {vb:raw forum.threadcount}</li>
                        <li>{vb:rawphrase posts}: {vb:raw forum.replycount}</li>
                </ul>

                <div class="forumlastpost td">
                        <h4 class="lastpostlabel">{vb:rawphrase last_post}:</h4>
                        <div>
                                {vb:raw forum.lastpostinfo}
                        </div>
                </div>
        </vb:if>


How do I know what is $variable ?

Lynne 06-19-2013 03:25 PM

It looks like $forum would be the variable to use.

betadoor 06-19-2013 09:21 PM

now it's worked.

Lynne, Thank you very much for the help !


All times are GMT. The time now is 09:27 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.01056 seconds
  • Memory Usage 1,731KB
  • 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
  • (4)bbcode_code_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