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 remove "View Forum Leaders" from the bottom of the page? (https://vborg.vbsupport.ru/showthread.php?t=248954)

CrusaFiction 08-19-2010 03:26 PM

How can I remove "View Forum Leaders" from the bottom of the page?
 
Hi guys,

I've been working on a port from phpBB to VB4, and all is going fairly well. I am at the point where I am setting up paid membership groups, and I want them to be displayed in the "View Forum Leaders" page so that our Moderators can confirm these members payments in the event that anything goes wrong (since its a conversion). The reason for doing this is that I don't want all members to be able to see each of our VIPs and Paid members, our group values their privacy.

So, because of this, I want to do one of two options:

A. Remove the "View Forum Leaders" button from the bottom of the page completely

B. Possibly make it so its only viewable when you are logged in with a super moderator/admin account (not sure if this option is possible).

I am a bit familiar with php from modding on phpBB, but I am at a loss here because it looks very very different than phpBB code does.. so I was hoping someone could point me in the direction of WHICH page I need to edit to remove the link from the site. I started at index.php and tried to trace my way in the right direction, it led me to forum.php but then I can't figure out exactly where to go next.

Also, while on the subject. Once I remove the actual link from the page, if I change the name of the actual page itself (the usergroups.php or whatever its called that shows all the groups), would it not populate the information properly? I'm assuming so, and if thats the case, could I make edits in order to point it in the right direction? (This is not necessary, but would be a nice addition incase some of our members are familiar with vB and just try to go to the URL directly).

Much appreciated for any feedback and assistance

-Crus

borbole 08-19-2010 03:34 PM

Quote:

Originally Posted by CrusaFiction (Post 2086382)
Hi guys,

I've been working on a port from phpBB to VB4, and all is going fairly well. I am at the point where I am setting up paid membership groups, and I want them to be displayed in the "View Forum Leaders" page so that our Moderators can confirm these members payments in the event that anything goes wrong (since its a conversion). The reason for doing this is that I don't want all members to be able to see each of our VIPs and Paid members, our group values their privacy.

So, because of this, I want to do one of two options:

A. Remove the "View Forum Leaders" button from the bottom of the page completely

B. Possibly make it so its only viewable when you are logged in with a super moderator/admin account (not sure if this option is possible).


I am a bit familiar with php from modding on phpBB, but I am at a loss here because it looks very very different than phpBB code does.. so I was hoping someone could point me in the direction of WHICH page I need to edit to remove the link from the site. I started at index.php and tried to trace my way in the right direction, it led me to forum.php but then I can't figure out exactly where to go next.

Also, while on the subject. Once I remove the actual link from the page, if I change the name of the actual page itself (the usergroups.php or whatever its called that shows all the groups), would it not populate the information properly? I'm assuming so, and if thats the case, could I make edits in order to point it in the right direction? (This is not necessary, but would be a nice addition incase some of our members are familiar with vB and just try to go to the URL directly).


Much appreciated for any feedback and assistance

-Crus

At FORUMHOME template find the following code and either removie it or comment it out


HTML Code:

<vb:if condition="$vboptions['forumleaders']">|
        <a href="showgroups.php{vb:raw session.sessionurl_q}" rel="nofollow">
                <vb:if condition="$vb_suite_installed">
                        {vb:rawphrase view_site_leaders}
                <vb:else />
                        {vb:rawphrase view_forum_leaders}
                </vb:if>
        </a></vb:if>

To make it so it will show to certain groups only, use the template conditionals

https://vborg.vbsupport.ru/showthread.php?t=231525

CrusaFiction 08-19-2010 03:52 PM

I appreciate your quick reply, and you seem to have answered my question absolutely perfectly (both aspects of it)... but

I cannot find the FORUMHOME that you are speaking of, nor can I find anything that has to do with the template. I am on Windows7 and typed FORUMHOME and all I got was a .js file that doesn't have the code in it (obviously)

Where exactly am I supposed to find the file to edit?

Edit: Nevermind, found it, Sorry! Thanks so much

borbole 08-19-2010 03:58 PM

Quote:

Originally Posted by CrusaFiction (Post 2086403)
I appreciate your quick reply, and you seem to have answered my question absolutely perfectly (both aspects of it)... but

I cannot find the FORUMHOME that you are speaking of, nor can I find anything that has to do with the template. I am on Windows7 and typed FORUMHOME and all I got was a .js file that doesn't have the code in it (obviously)

Where exactly am I supposed to find the file to edit?


Edit: Nevermind, found it, Sorry! Thanks so much

You are welcome.

mmfgamer5 08-19-2010 04:06 PM

In the FORUMHOME template, replace:
HTML Code:

        <div class="navlinks">
        <a href="forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={vb:raw bbuserinfo.securitytoken}" rel="nofollow">{vb:rawphrase mark_forums_read}</a>
        <vb:if condition="$vboptions['forumleaders']">|
        <a href="showgroups.php{vb:raw session.sessionurl_q}" rel="nofollow">
                <vb:if condition="$vb_suite_installed">
                        {vb:rawphrase view_site_leaders}
                <vb:else />
                        {vb:rawphrase view_forum_leaders}
                </vb:if>
        </a></vb:if>
        </div>

With:
HTML Code:

        <div class="navlinks">
        <a href="forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={vb:raw bbuserinfo.securitytoken}" rel="nofollow">{vb:rawphrase mark_forums_read}</a>
<vb:if condition="can_moderate()">
        <vb:if condition="$vboptions['forumleaders']">|
        <a href="showgroups.php{vb:raw session.sessionurl_q}" rel="nofollow">
                <vb:if condition="$vb_suite_installed">
                        {vb:rawphrase view_site_leaders}
                <vb:else />
                        {vb:rawphrase view_forum_leaders}
                </vb:if>
        </a></vb:if>
</vb:if>
        </div>

This makes it so that users that can moderate can see the link on the forum home page, while other users cannot.

Or, if you only want Super Moderators or Admins to view it, replace it with:
HTML Code:

        <div class="navlinks">
        <a href="forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={vb:raw bbuserinfo.securitytoken}" rel="nofollow">{vb:rawphrase mark_forums_read}</a>
<vb:if condition="is_member_of($bbuserinfo, 5,6)">
        <vb:if condition="$vboptions['forumleaders']">|
        <a href="showgroups.php{vb:raw session.sessionurl_q}" rel="nofollow">
                <vb:if condition="$vb_suite_installed">
                        {vb:rawphrase view_site_leaders}
                <vb:else />
                        {vb:rawphrase view_forum_leaders}
                </vb:if>
        </a></vb:if>
</vb:if>
        </div>



All times are GMT. The time now is 10:51 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.01163 seconds
  • Memory Usage 1,746KB
  • 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_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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