vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Rules per Forum (https://vborg.vbsupport.ru/showthread.php?t=45474)

filburt1 11-06-2002 10:00 PM

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.

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 (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

Quote:

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.

Quote:

$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)."','".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)."')");

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

VAN 01-19-2003 12:06 AM

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!


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
  • Page Generation 0.01230 seconds
  • Memory Usage 1,782KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete