View Full Version : Rules per Forum
filburt1
11-06-2002, 10:00 PM
vBHacker file attached.
What it does: instead of (or in addition to) just having global rules, rules can be defined per forum. For example, in a "Support" forum, the rules can be "No random threads, general chatter should be in [link to forum].". Only admins can edit the rules, and only people who have access to view the forum can view the rules as well.
Upload showrules.php (https://vborg.vbsupport.ru/attachment.php?s=&postid=319457) to your forums' root directory.
filburt1
11-07-2002, 02:39 AM
Admin CP screenshot (editing a forum):
filburt1
11-07-2002, 02:40 AM
forumdisplay screenshot:
filburt1
11-07-2002, 02:41 AM
Viewing the actual rules:
filburt1
11-07-2002, 02:41 AM
showrules.php (upload to your forums' root directory)
David_McPherson
11-07-2002, 02:47 AM
:D
filburt1
11-07-2002, 02:47 AM
It's been months since my last (only) hack ;)
David_McPherson
11-07-2002, 02:53 AM
Ok... great turtle one... I don't wanna be banned so I am trying to install... Um... I think I'm missing something. Is there something that I must have with the above .txt file to make this thing work?
David_McPherson
11-07-2002, 03:08 AM
Go HERE (https://vborg.vbsupport.ru/showthread.php?s=&threadid=36378&highlight=vbhacker) (Firefly's Vbhacker/Maker) if you are as clueless as I... ;)
I shouldn't be allowed to play with such toys... :D
Smoothie
11-07-2002, 05:02 AM
How about a plain text file
Goldknight
11-07-2002, 05:30 AM
Originally posted by Smoothie
How about a plain text file
Me too.. I dont want to install vbhacker..
filburt1
11-07-2002, 11:24 AM
vBHacker doesn't modify any of your PHP files, and you can also use it to generate a text file of instructions rather than actually having it install the hack for you. There are a lot of edits and it took half an hour just to assemble the vBHacker file.
Tungsten
11-07-2002, 12:19 PM
I especially liked the "Install this hack or be banned!" rule that you defined, Filburt. :D
filburt1
11-07-2002, 06:16 PM
So...did it work for anybody? This is a beta after all...
David_McPherson
11-07-2002, 06:33 PM
Honestly Filburt...
I cannot figure this file out. I thought it needs to be a .hack extention to work. I used Firefly's vbhacker program with success on another hack but could never get yours to show up in that window... ??? I'm certain I'm doing something wrong.
filburt1
11-07-2002, 06:38 PM
Maybe it needs to be named .php...
David_McPherson
11-07-2002, 06:39 PM
Is that one of them statements... :) Where my reply is.... Quit busting my XXXX? I'm a NUB... ;)
David_McPherson
11-07-2002, 06:43 PM
Your text file needs to be saved as........
xxxxxx_rules.hack.php
David_McPherson
11-07-2002, 06:44 PM
Its working...... but I've had to go to Manual mode.. Based probably on other hacks installed. I'll let you know.
assassingod
11-07-2002, 06:52 PM
Nice hack, will install soon
David_McPherson
11-07-2002, 06:54 PM
I think this is going to be a repeated issue with the Vbhacker program. What you've developed for us... Will not necessarily fit into our board thats been hacked.
$templatesused.=\'forumdisplay_loggedinuser,forumd isplay_loggedinusers,forumdisplay_adminoptions,for umdisplay_forumslist,forumdisplay_multipagenav_mor e,forumdisplay_multipagenav_pagenumber,forumdispla y_multipagenav,forumdisplay_gotonew,forumdisplaybi t,forumdisplay_threadslist,forumdisplay_nothreads, forumrules,forumdisplay,forumdisplay_sortarrow,for umdisplay_announcementsonly,forumhome_moderator\';
I'm missing this information... I don't know where it goes in the showthread.php... Inside this file there is /////Showthread//// and /////Showpost///// that are similar with the $templatesused but mine are different. Ideas?
NTLDR
11-07-2002, 08:14 PM
Under the showthread section ;)
filburt1
11-07-2002, 08:57 PM
vBHacker files are just a script of actions to make. Hand-written instructions won't be any better, so I chose vBHacker :)
aidler
11-08-2002, 09:56 AM
As always the vbhacker text output contains some strange backslashes. I'm not a php geek and therefore can't sort them out by myself. I would appreciate it very much if anyone could post a clean text based instruction for this hack. Thanks!!!
Chris M
11-08-2002, 10:23 AM
Interesting concept filburt:)
Satan
blackice912
11-09-2002, 04:39 AM
vBhacker is a pain in the butt on a hacked forum, give us a text file please :)
filburt1
11-09-2002, 01:27 PM
*grumble* Okay, I'll re-diff the files today :)
Chris M
11-09-2002, 01:37 PM
Cool:)
Satan
aidler
11-16-2002, 08:09 PM
Hmmm.... how long can a day possibly take????
filburt1
11-16-2002, 08:11 PM
Busy with other things ATM
XFLBret
11-27-2002, 06:56 AM
I'm sorry...I know you meant well, but this hack simply does not work.
there are no instructions on how to integrate it, and when I rename it as a hack, vbhacker just doesnt know what to do with it...
XFLBret
11-27-2002, 07:33 AM
on my god, what a mess....
first off, i took the text file posted here, and renamed that to xxx.hack.php, and got that to work, but there were three things that needed to be edited manually. the problem is that it was looking in showthread.php when it should have been looking in forumdisplay.php for two of the things it couldn't do. the third thing was in the admin/forum.php file.
I made a couple adjustments in the forumhome template, so it didn't take up as much room, and it looks good now.
here's what I can't figure out...
how do i make the custom rules link work so that the rules open up in a separate browser window rather than the same window?
XFLBret
11-27-2002, 08:05 AM
OK, I found another problem with the hack that exists when you try to create a new forum, a missing apostrophe in the admin/forum.php file...
daysprune','".addslashes($newpostemail)."','".addslashes($newthreademail)."',
'$moderatenew','$aallowhtmlcode','$aallowbbcode',' $aallowimgcode','$aallowsmilie s','$aallowicons',
'$styleoverride','$allowratings','$countposts','$m oderateattach','".addslashes($ rulestext).")");
See it, it should end like:
'".addslashes($rulestext)."')");
spaceb
12-04-2002, 01:52 PM
i have a problem i just cant find this
$templatesused.=\'forumdisplay_loggedinuser,.....
the only thing i found is this
$templatesused = 'showthread_ratingdisplay,......
well i aded there the string but i cant see the link to the rules in the forum :(
can someone tell me what to do please i'm using vbb 2.2.7
spaceb
12-04-2002, 02:47 PM
I solved the problems and its working perfect for me now i maked txt file how to install without the vbhacker with the good code :p
hope its fine with you filburt1
filburt1
12-04-2002, 02:48 PM
Thanks :)
Dean C
12-06-2002, 05:39 PM
This hack seems pretty useful
Any chance we could have a tick pox in the forum.php when we goto edit a file which would show the set of rules before you post a new thread?
- miSt
Thanks to filburt for the hack, and to spaceb for building the .txt file. :)
Works great on 2.2.9
spaceb
02-12-2003, 07:49 AM
no problem :p
Xyphen
04-07-2003, 07:00 PM
ITs a very nice hack filburt honestly!
SmartGnome
04-09-2003, 04:13 PM
For me it works now on 2.3.0 for existing forums, when I create a new forum I get the following sql error
Database error in vBulletin Control Panel 2.3.0:
Invalid SQL: INSERT INTO forum
(forumid,styleid,title,description,active,displayo rder,parentid,
parentlist,allowposting,cancontainthreads,daysprun e,newpostemail,newthreademail,
moderatenew,allowhtml,allowbbcode,allowimages,allo wsmilies,allowicons,
styleoverride,allowratings,countposts,moderateatta ch,storereply,storethread,mustread,mustreadtext,pr ivate,rulestext)
VALUES
(NULL,'1','Neue Sachen ins Board','Here we announce new optioins in the board and eplain how it works.','1','1','118',
'','1','1','30','postings@krissiweb.net','postings @krissiweb.net',
'0','0','1','1','1','1',
'0','1','1','0', '','','0','','1',)
mysql error: You have an error in your SQL syntax near ')' at line 10
mysql error number: 1064
Date: Wednesday 09th of April 2003 10:02:55 AM
Script: http://forum.krissiweb.org/board/board/admin/forum.php
Referer: http://forum.krissiweb.org/board/admin/forum.php?action=add&
Who can help me please ???
Cheers
Frozen Dreams
05-02-2003, 07:28 PM
I am getting the same SQL error at 2.2.9
Please someone - help :(
solent
05-07-2003, 01:34 PM
ok beacuse i myself using vb2.3.0 i had the same problem and i went and fix the problem in the insert query. i recon it was a typing error.
anyway.
edit admin/forum.php
find this bit of code
$DB_site->query("INSERT INTO forum
(forumid,styleid,title,description,active,displayo rder,parentid,
parentlist,allowposting,cancontainthreads,daysprun e,newpostemail,newthreademail,
moderatenew,allowhtml,allowbbcode,allowimages,allo wsmilies,allowicons,
styleoverride,allowratings,countposts,moderateatta ch)
VALUES
(NULL,'$styleset','".addslashes($title)."','".addslashes($description)."','$isactive','$displayorder','$parentid',
'','$allowposting','$cancontainthreads','$daysprun e','".addslashes($newpostemail)."','".addslashes($newthreademail)."',
'$moderatenew','$aallowhtmlcode','$aallowbbcode',' $aallowimgcode','$aallowsmilies','$aallowicons',
'$styleoverride','$allowratings','$countposts','$m oderateattach'");
and replayce with this
$DB_site->query("INSERT INTO forum
(forumid,styleid,title,description,rulestext,activ e,displayorder,parentid,
parentlist,allowposting,cancontainthreads,daysprun e,newpostemail,newthreademail,
moderatenew,allowhtml,allowbbcode,allowimages,allo wsmilies,allowicons,
styleoverride,allowratings,countposts,moderateatta ch)
VALUES
(NULL,'$styleset','".addslashes($title)."','".addslashes($description)."','".addslashes($rulestext)."','$isactive','$displayorder','$parentid',
'','$allowposting','$cancontainthreads','$daysprun e','".addslashes($newpostemail)."','".addslashes($newthreademail)."',
'$moderatenew','$aallowhtmlcode','$aallowbbcode',' $aallowimgcode','$aallowsmilies','$aallowicons',
'$styleoverride','$allowratings','$countposts','$m oderateattach')");
PurpleCow
08-09-2003, 06:05 AM
Is the instructions given in the text file by spaceb and the mysql error solution mentioned in the previous post working fine on 2.3.0 ?/
I want this hack
Thanks
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.