PDA

View Full Version : Rules hack


HiDeo
05 Oct 2005, 12:08
Features:

* Add rules
* Edit rules
* Delete rules
* Rules when register
* Rules list

Language: English

Archive updated (5/10/05 : 19:29)

* Uninstall code added
* .xml updated (template rules_display forgot :p)

Andreas
05 Oct 2005, 12:15
Moved to Extensions as this Hack does not modify any vBulletin Files :)

Samira
05 Oct 2005, 12:34
Thanks! I was anxiously waiting for this.

Reinstalling this hack fresh doesn't work well if you had it installed on 3.0.x, by the way. Had to drop the table since the installer said it already existed and copy/paste the rules I had from the backup that was created.

DS MrSinister
05 Oct 2005, 12:38
thxs sir been waiting for this one to get ported..


CLicks Installed.

Boofo
05 Oct 2005, 15:37
You might want to add an uninstallcode to drop the rules table in the xml in case someone wants to uninstall the hack. ;)

Aceman
05 Oct 2005, 15:44
This doesn't work for me.

http://www.scifi-meshes.com/forums/rules.php is blank.

However I can see the rule I created in the admincp and when you register and read the rules.

The rules.php isn't working.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Isn't the global.php in the same folder as rules.php?

??? Anyone else?

Devil Woman
05 Oct 2005, 16:08
I am having the same problem Aceman, just get a blank page even though I have added a rule in however the rule does show up on the registration page

Boofo
05 Oct 2005, 16:39
Change the rules template name to rules_display and it will work. ;)

The xml installs the template rules but the php file displays a template called rules_display.

Mickie D
05 Oct 2005, 17:48
i had a rules hack (3.07) installed and you could update it and make existing members agree to the rules.... is this the same hack ?

and if yes, will it be able to upgrade and keep my old rules that i set ?

Regards
Mickie

Aceman
05 Oct 2005, 17:51
OK.. that fixed the rules.php file so that is now shows the rule.. but it's on a white page.. and no Theme..

Exampe: http://www.scifi-meshes.com/forums/rules.php

Boofo
05 Oct 2005, 18:06
OK.. that fixed the rules.php file so that is now shows the rule.. but it's on a white page.. and no Theme..

Exampe: http://www.scifi-meshes.com/forums/rules.php

Ok, then reverse it. Rename the template rules and edit the php file and change rules_display to rules.

Aceman
05 Oct 2005, 18:26
Ok.. well I did that.. and it's still white.

As far as I'm concerned this isn't working properly. I followed the instructions to the letter and it's not showing up properly.

Uninstalled - Until fixed.

HiDeo
05 Oct 2005, 18:35
Thanks Boofo for help, but don't need to rename the template rules to rules_display. I have forgot the template rules_display in the .xml.

Sorry !

I have update the archive.

Archive updated (5/10/05 : 19:29)

* Uninstall code added
* .xml updated (template rules_display forgot )

Boofo
05 Oct 2005, 20:27
Sorry about that. I was just taking a quick wild guess. ;)

Feckie (Roger)
05 Oct 2005, 21:03
Ok I Have It Up And Working..........

thanks Clicks Install :banana:

HiDeo
05 Oct 2005, 21:21
Sorry about that. I was just taking a quick wild guess. ;)

:D No problem :D

Gizmo5h1t3
05 Oct 2005, 21:59
instaled and workin fine

Samira
06 Oct 2005, 04:43
I've uninstalled and reinstalled this three times (complete with re-uploading all files) and am getting a weird result on the rules.php page. It sets up like it should without rules, but when I add a rule I see the header a second time, "Number of Rules: (no entry here)" and "Title" displayed, but no rules. Suggestions?

Boofo
06 Oct 2005, 04:46
Did you download the latest version? Clear your cache and give it another shot. ;)

DS MrSinister
06 Oct 2005, 05:04
did u have 3.0.X version install? If you did u need to remove all of those the phrases. thats how i got mine to work..

Devil Woman
06 Oct 2005, 12:29
Now all sorted and working, thankyou

albibak
06 Oct 2005, 23:26
Great hack, work fine. Thanks a lot.

Xplorer4x4
11 Oct 2005, 23:10
http://www.nodqforums.com/rules.php
How can I make the lay out more like this that just the simple boxes?

redspider
14 Oct 2005, 02:55
I've uninstalled and reinstalled this three times (complete with re-uploading all files) and am getting a weird result on the rules.php page. It sets up like it should without rules, but when I add a rule I see the header a second time, "Number of Rules: (no entry here)" and "Title" displayed, but no rules. Suggestions?
I have same problem I did try to remove all the old phrase and still have that problem .
would be nice if we have a unistall hack for the original hack .

Psionic Vision
22 Oct 2005, 20:42
Come on man, what is this... Hack done using your left leg?
First of all, please add bbcode support:

require_once(DIR . '/includes/class_postbit.php');
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$rule_data = $parser->do_parse($query_rule['ruledata'], true, false, true, false, true, false);

Second, you should really work on that rules template.. Why is it so white? It should be like the rest of vB :)



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



That is my template...
I hope you fix it... ty

Cheers, DV

Samira
25 Oct 2005, 07:34
DarkVisor,

Can I beg to be told where to put the code to enable bbcode? Pretty please? I assume somewhere in rules.php ... please forgive my lack of coding ability and take pity on me. :rolleyes:

Psionic Vision
25 Oct 2005, 19:49
1. Please do not beg ;)
2. Just install my Rules hack, http://www.vbulletin.org/forum/showthread.php?s=&threadid=99060

Samira
26 Oct 2005, 00:11
But I have a rather extensive list and really like the table separation. (I did use your template here, though.)

Psionic Vision
26 Oct 2005, 00:30
Why not use bbcode formatting in my hack for separation? :P

Samira
26 Oct 2005, 00:33
LOL! I already installed this!

Lord Katsuhito
26 Oct 2005, 01:20
Noticed a bug might want to fix when you uninstall this hack it loves a blank table header in the left side navigation of the admin CP

Samira
26 Oct 2005, 02:03
Ouch. Sorry to be a pain, I just thought I'd ask where to put the code you suggested since HiDeo isn't supporting the hack.

Psionic Vision
26 Oct 2005, 03:15
Well, you replace the line that starts with


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


With the following code:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



;)

redspider
01 Nov 2005, 19:49
I unistall this hack but now I have a small problem because of that in the admincp there is a empty section and I will like to know how to fix that if any one can help please.
see attachment. thanks for any help

Psionic Vision
01 Nov 2005, 19:57
I unistall this hack but now I have a small problem because of that in the admincp there is a empty section and I will like to know how to fix that if any one can help please.
see attachment. thanks for any help

Hey,

You should remove the XML file you uploaded to includes/xml when you installed the hack. Also delete rules.php from admincp and from forum root ;)

redspider
01 Nov 2005, 20:08
You should remove the XML file you uploaded to includes/xml ;) that work for me thank you so much

jokerz
05 Nov 2005, 18:04
HiDeo, is this possible to use for 3.5.1 ? As your hack is only "vB Version: 3.5.0"

Smiry Kin's
23 Dec 2005, 01:42
Hi, hideo

just a thought.. could something similar to this be uploaded for a website - newsletter?... would be great?..

all requires is its own section, to edit. plus, sections that you can add e.g like FAO Section...? would like something like this!

The Realist
20 Jan 2006, 11:55
What do I have to do to change: <td class="vbmenu_control"><a href="rules.php$session[sessionurl_q]">$vbphrase[rules]</a></td>

Into a link the the rules page so that I can add it as a seperate clickable link on my 2nd seperate navbar.

Laters

vietfancy
06 Feb 2006, 23:54
installed

outlaw621
29 Jun 2006, 02:48
Quick note to let you know this works in 3.6 beta 3 with the same instructions.