Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Censorship per Forum Details »»
Censorship per Forum
Version: 1.00, by Cyricx Cyricx is offline
Developer Last Online: Dec 2011 Show Printable Version Email this Page

Version: 3.5.8 Rating:
Released: 08-02-2005 Last Update: 08-04-2005 Installs: 76
DB Changes Uses Plugins Template Edits
 
No support by the author.

This hack enables you to disable the censorship for certain forums through the admincp.

Special thanks to KirbyDe and Live Wire for their two excellent posts on the Product Management System and How to add options per forump

Pretty easy to install, just import this through your product management system.

And if you wish, one template edit to add a line to the Forum Rules box denoting whether the censor is on or off for that forum.

Screenshots of the admincp and forumrules included.

UPDATE - Included a version to have the censor off on default.

If you have already installed the first version (Default ON), and want the Default OFF, uninstall the old one, then install the Default OFF version.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-02-2005, 11:57 PM
EasyTarget EasyTarget is offline
 
Join Date: Nov 2004
Posts: 660
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great idea
Reply With Quote
  #3  
Old 08-03-2005, 12:04 AM
Neal-UK's Avatar
Neal-UK Neal-UK is offline
 
Join Date: Feb 2004
Location: Lancashire, England
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EasyTarget
great idea
Nice, think i'll use this for my mods forum. Many thanks
Reply With Quote
  #4  
Old 08-03-2005, 01:45 AM
Barakat's Avatar
Barakat Barakat is offline
 
Join Date: Nov 2004
Location: Jerusalem
Posts: 571
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great idea thanks a lot and install
Reply With Quote
  #5  
Old 08-04-2005, 10:03 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What would I need to change in the product file to have this default to censor off in the forums?
Reply With Quote
  #6  
Old 08-04-2005, 11:56 AM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So that new forums were set to default off when they are created?
Reply With Quote
  #7  
Old 08-04-2005, 07:59 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cyricx
So that new forums were set to default off when they are created?
Yes and the ones already there, too.
Reply With Quote
  #8  
Old 08-04-2005, 08:43 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tomorrow I'll update the hack with a version for default on and a version for default off.

For now, after installing this plugin just run this query in your admincp to set the default to No censor.

Code:
ALTER TABLE `forum` CHANGE `censor` `censor` SMALLINT( 3 ) UNSIGNED DEFAULT '0' NOT NULL;
Then run this query to update all the forums to disable the censor.

Code:
UPDATE `forum` SET `censor` = '0';
If you use a table prefix include it just before the `forum`

For example, I use a prefix of vb3_

So the second query for me looks like this

Code:
UPDATE `vb3_forum` SET `censor` = '0';
I'll update this hack in the morning and create two versions
Reply With Quote
  #9  
Old 08-04-2005, 09:22 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! I'll go ahead and wait for the update then.

EDIT: I just thought of something ... couldn't I just chnage the 1s in the queries in the plug-in to zeros?
Reply With Quote
  #10  
Old 08-04-2005, 10:25 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well... yes and no.

No because the admincp area of the forums would show up backwards.


Yes would be no, no would be yes....

The Edit forum spot uses the print yes no function, which interprets 1's as Yes and 0's as No.

Hypothetically, you could change the 1s to 0s and change the phrase to say something like "Enable censor in this forum?"

But that would be alot of rework when all your needing to do is change the default value in the database to what you need

Running those two queries will take ya about 10 seconds

Reworking the phrase and the code would take ya about 5mins



I prefer the quick and clean route
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 07:09 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.06576 seconds
  • Memory Usage 2,298KB
  • Queries Executed 24 (?)
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
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete