The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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 |
#2
|
||||
|
||||
![]() Quote:
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> https://vborg.vbsupport.ru/showthread.php?t=231525 |
#3
|
|||
|
|||
![]()
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 |
#4
|
||||
|
||||
![]() Quote:
|
#5
|
|||
|
|||
![]()
In the FORUMHOME template, replace:
HTML Code:
<div class="navlinks"> <a href="forumdisplay.php?{vb:raw session.sessionurl}do=markread&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> HTML Code:
<div class="navlinks"> <a href="forumdisplay.php?{vb:raw session.sessionurl}do=markread&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> 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&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> |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|