Welcome, Guest. Please Login or Register.
November 05, 2024, 04:33:16 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [Beta 1.5.1 Final] User Enable / Disable Censor Mod « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [Beta 1.5.1 Final] User Enable / Disable Censor Mod  (Read 2411 times)
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
[Beta 1.5.1 Final] User Enable / Disable Censor Mod
« on: April 20, 2003, 06:36:41 AM »
Reply with quote

<id>
User Disable/Enable Censor Modifications 1.5.1
</id>

<version>
1.0
</version>

<mod info>
This mod will allow your members to choose to disable or enable censorship from their profile page. Default setting is OFF! Try it at my forum http://www.gamerzalliane.com Please post any problems you are having in the proper board at the YaBB.info site. I will not answere any emails/pm's for support. I will only support this on the proper board.

I coded this mod with 1.5.1 files. Please use Boardmod SE to install this modification. You can download Boardmod SE here: http://dns3.omnibit.it/mangaitalia/tmp/BoardMOD.zip If you like to manually install the modification. Just open the modification with wordpad, or similar text viewing program and follow the boardmod code scheme.

After modifying the files upload dbmod.php to your main yabbse directory then excute it from a browser. IE: http://www.yoursite.com/yabbse/censordbmod.php

If you feel more comfortable using phpadmin I posted the query below for you to run:
ALTER TABLE {$db_prefix}members ADD COLUMN disableCensoring TINYINT DEFAULT '0' NOT NULL;

Also go to Admin Panel: Under Forum configuration, click on Set censored words. Copy and Paste into the censor word list everything in the censorword.txt file included with the mod. (Please check for any duplicates you may already have set in the censor list.)

To enable or disable censorship. Go to your profiles, Click on Modify, Scroll down to Prefrences, Look for a setting called Disable Censoring? Hope you know what to do from there...

The mod updates four files:
english.lng
Sources/Boardindex.php
Sources/Profile.php
Sources/Load.php

Notes:
This mod was originally created for YaBB by Mad Hatter. It was ported over to YaBB SE by RobDownSouth for YaBB SE 1.1.0. I have updated this mod to work with YaBB SE 1.5.1
</mod info>

<author>
Nemesis
</author>

<homepage>
http://www.gamerzalliance.com
</homepage>

<download here>
http://www.yabbse.org/community/attachments/UserEnableDisableCensor1.5.1.mod.zip
</download here>
« Last Edit: April 20, 2003, 07:45:43 AM by Nemesis » Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
GWP
Sr. Member
****
Posts: 252


A total PHP MySQL Novice :) - but getting better!

Re:[Beta 1.5.1 Final] User Enable / Disable Censor Mod
« Reply #1 on: June 13, 2003, 06:28:38 PM »
Reply with quote

tried to run the dbmod.php but it kept coming up with:
QuoteParse error: parse error, unexpected T_STRING in /home/.sites/58/site34/web/forum/censordbmod.php on line 60
Line 60 is:
QuoteALTER TABLE {$db_prefix}members ADD COLUMN disableCensoring TINYINT DEFAULT '0' NOT NULL;
Any Clues??
Logged

YabbSE 1.5.1rc Mods:AdvIm, Member Map, Password Prompt, Report to mod, Smilies SE 2.0, Bio, collapsable_yabb, Ignore user, Name, allowed user, search member, enchanced ban, posts per day, Mute User, Memberlist Plus,Who,ExactPostLink. Remove_Clicklog,mc_BoldOwnThreads.QuickReply, UserEnableDisableCensor, RefererMod, lastlogin_profile,PostBasedImRestrict, ExactPostLink, UserBrowsing,
1979Z28
Sr. Member
****
Posts: 324


WWW
Re:[Beta 1.5.1 Final] User Enable / Disable Censor Mod
« Reply #2 on: June 13, 2003, 08:48:33 PM »
Reply with quote

Yea, there's a little bit of a typo in there. I edited the dbmod file and got it to work on my site, by changing that line to this:


$result1 = mysql_query("ALTER TABLE {$db_prefix}members ADD COLUMN disableCensoring TINYINT DEFAULT '0' NOT NULL");


There's also a portion of the .mod file that has you doing this:


<search for>
   $yytitle = $txt[79];
   $request = mysql_query("
      SELECT passwd, realName, emailAddress, websiteTitle, websiteUrl, signature, posts, memberGroup, ICQ, AIM, YIM, gender, personalText, avatar, dateRegistered, location, birthdate, timeFormat, timeOffset, hideEmail, ID_MEMBER, usertitle, karmaBad, karmaGood, lngfile, MSN, secretQuestion, secretAnswer, showBookmarks
      FROM {$db_prefix}members
      WHERE memberName='$user'") or database_error(__FILE__, __LINE__);
   $memsettings = mysql_fetch_array($request);
</search for>


When it needs to be


<search for>
   $yytitle = $txt[79];
   $request = mysql_query("
      SELECT passwd, realName, emailAddress, websiteTitle, websiteUrl, signature, posts, memberGroup, ICQ, AIM, YIM, gender, personalText, avatar, dateRegistered, location, birthdate, timeFormat, timeOffset, hideEmail, ID_MEMBER, usertitle, karmaBad, karmaGood, lngfile, MSN, secretQuestion, secretAnswer
      FROM {$db_prefix}members
      WHERE memberName='$user'") or database_error(__FILE__, __LINE__);
   $memsettings = mysql_fetch_array($request);
</search for>


Basically, remove the 'showBookmarks' and it'll work. Nemmy has the Show Bookmarks mod applied, and that's why it's there. ;D Default 1.5.1-1.5.3 doesn't have that mod installed by default..
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Beta 1.5.1 Final] User Enable / Disable Censor Mod « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.306 seconds with 21 queries.