PDA

View Full Version : how can i change the num threads/posts in the private forum to other text


betadoor
06-17-2013, 10:01 PM
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:
<ul class="forumstats td">
<li>{vb:rawphrase threads}: {vb:raw forum.threadcount}</li>
<li>{vb:rawphrase posts}: {vb:raw forum.replycount}</li>
to:
<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.

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

</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 !