PDA

View Full Version : How can I remove "View Forum Leaders" from the bottom of the page?


CrusaFiction
08-19-2010, 03:26 PM
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
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


<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
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:
<div class="navlinks">
<a href="forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={vb:ra w 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:
<div class="navlinks">
<a href="forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={vb:ra w 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:
<div class="navlinks">
<a href="forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={vb:ra w 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>