![]() |
Rules per Forum
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 to your forums' root directory. |
Admin CP screenshot (editing a forum):
|
forumdisplay screenshot:
|
Viewing the actual rules:
|
showrules.php (upload to your forums' root directory)
|
:D
|
It's been months since my last (only) hack ;)
|
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?
|
Go HERE (Firefly's Vbhacker/Maker) if you are as clueless as I... ;)
I shouldn't be allowed to play with such toys... :D |
How about a plain text file
|
Quote:
|
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.
|
I especially liked the "Install this hack or be banned!" rule that you defined, Filburt. :D
|
So...did it work for anybody? This is a beta after all...
|
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. |
Maybe it needs to be named .php...
|
Is that one of them statements... :) Where my reply is.... Quit busting my XXXX? I'm a NUB... ;)
|
Your text file needs to be saved as........
xxxxxx_rules.hack.php |
Its working...... but I've had to go to Manual mode.. Based probably on other hacks installed. I'll let you know.
|
Nice hack, will install soon
|
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.
Quote:
|
Under the showthread section ;)
|
vBHacker files are just a script of actions to make. Hand-written instructions won't be any better, so I chose vBHacker :)
|
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!!!
|
Interesting concept filburt:)
Satan |
vBhacker is a pain in the butt on a hacked forum, give us a text file please :)
|
*grumble* Okay, I'll re-diff the files today :)
|
Cool:)
Satan |
Hmmm.... how long can a day possibly take????
|
Busy with other things ATM
|
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... |
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? |
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)."','".adds lashes($newthreademail)."', '$moderatenew','$aallowhtmlcode','$aallowbbcode',' $aallowimgcode','$aallowsmilie s','$aallowicons', '$styleoverride','$allowratings','$countposts','$m oderateattach','".addslashes($ rulestext).")"); See it, it should end like: '".addslashes($rulestext)."')"); |
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 |
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 |
Thanks :)
|
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 |
no problem :p
|
ITs a very nice hack filburt honestly!
|
All times are GMT. The time now is 05:38 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|