Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-26-2004, 02:06 AM
btappan's Avatar
btappan btappan is offline
 
Join Date: May 2004
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default hide post reply button in certain forums

How can i hide the post reply button (the one above left of my username) in certain forums that I specify? can i either A. specify the forum ID's that i DO want it in or B. specify the forum ID's that I DON'T want it in? Like an If forumd ID =1,2,3,4,5,6 etc etc. then show button type of thing. can someone help me with this? what would the code look like?
Reply With Quote
  #2  
Old 09-26-2004, 04:04 PM
Johnny's Avatar
Johnny Johnny is offline
 
Join Date: Jun 2002
Posts: 290
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i dont quit understand what you are trying to say, do you want to hide both the post reply buttons or do you just want to get rid the one above your username or just hide it?


if you just want to hide it in then in SHOWTHREAD template.

look for:
PHP Code:
<if condition="$show['largereplybutton']"
replace with:
PHP Code:
<if condition="$show['largereplybutton'] and (in_array($forumid, array (X,Y,Z)))"
just replace x,y,z with the forum ID(s) on where you only want the post reply to show
Reply With Quote
  #3  
Old 09-26-2004, 07:32 PM
btappan's Avatar
btappan btappan is offline
 
Join Date: May 2004
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

exactly! that was just what I was wanting to do. Thanks "johnny" for the help!
Reply With Quote
  #4  
Old 09-26-2004, 08:56 PM
Johnny's Avatar
Johnny Johnny is offline
 
Join Date: Jun 2002
Posts: 290
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep, you welcome
Reply With Quote
  #5  
Old 09-27-2004, 03:20 PM
miz miz is offline
 
Join Date: Mar 2003
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

there is much more easyer way to make it :
ill sujest you my way :


Code:
ALTER TABLE `forum` ADD `showreply` SMALLINT( 6 ) NOT NULL DEAFULT 1;
open admincp/forum.php




Code:
Find :

			'allowratings' => 1,
			'countposts' => 1,
Below Add :

			'showreply' => 1,
Find :

print_yes_no_row($vbphrase['show_forum_on_forum_jump'], 'options[showonforumjump]', $forum['showonforumjump']);

Below Add :

	print_table_header('Reply Options');
	
	print_yes_no_row('Show Reply button on this forum?', 'forum[showreply]', $forum['showreply']);
edit showthread templte :
Code:
 
Find :
<if condition="$show['largereplybutton']">
		<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$LASTPOSTID"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
	<else />
		<td class="smallfont">&nbsp;</td>
	</if>	

Before Add :

<if condition="$forum['showreply']">

After Add :

</if>
i think thats all, and you can edit forum via admin cp and to decide which forums will have reply button or not without handle codes every time you want to change it

hope its helps MiZ.
Reply With Quote
  #6  
Old 09-27-2004, 06:36 PM
Noiz Pollution Noiz Pollution is offline
 
Join Date: Jun 2003
Location: Glasgow, UK
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool, a template mod and a code hack version, you gonna release that miz? I'm sure a lot of people would like to see it but won't because it's in the request forum and some people don't even bother looking here unless they want something themselves.

Cheers,
Robert
Reply With Quote
  #7  
Old 09-27-2004, 07:01 PM
Johnny's Avatar
Johnny Johnny is offline
 
Join Date: Jun 2002
Posts: 290
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the one i showed with conditions you can use it for basicly anything in the templates, but the one u showed miz i like what you put together, im gonna use that. especially for the enhacned design im putting together for my site that needs certain things on in certain forums and certain things off on another.
Reply With Quote
  #8  
Old 10-03-2004, 05:44 PM
miz miz is offline
 
Join Date: Mar 2003
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 662C
Cool, a template mod and a code hack version, you gonna release that miz? I'm sure a lot of people would like to see it but won't because it's in the request forum and some people don't even bother looking here unless they want something themselves.


Cheers,
Robert

here we go mate

https://vborg.vbsupport.ru/showthread.php?t=70139
Reply With Quote
Reply


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 01:47 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04746 seconds
  • Memory Usage 2,236KB
  • 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
  • (3)bbcode_code
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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