Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 08-19-2010, 03:26 PM
CrusaFiction CrusaFiction is offline
 
Join Date: Aug 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 08-19-2010, 03:34 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CrusaFiction View Post
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
Reply With Quote
  #3  
Old 08-19-2010, 03:52 PM
CrusaFiction CrusaFiction is offline
 
Join Date: Aug 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 08-19-2010, 03:58 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CrusaFiction View Post
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.
Reply With Quote
  #5  
Old 08-19-2010, 04:06 PM
mmfgamer5 mmfgamer5 is offline
 
Join Date: Mar 2010
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:04 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.01837 seconds
  • Memory Usage 2,209KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete