vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Rules hack (https://vborg.vbsupport.ru/showthread.php?t=97605)

HiDeo 10-04-2005 10:00 PM

Rules hack
 
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 10-05-2005 10:15 AM

Moved to Extensions as this Hack does not modify any vBulletin Files :)

Samira 10-05-2005 10:34 AM

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 10-05-2005 10:38 AM

thxs sir been waiting for this one to get ported..

CLicks Installed.

Boofo 10-05-2005 01:37 PM

You might want to add an uninstallcode to drop the rules table in the xml in case someone wants to uninstall the hack. ;)

Aceman 10-05-2005 01:44 PM

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.

PHP Code:

require_once('./global.php'); 

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

??? Anyone else?

Devil Woman 10-05-2005 02:08 PM

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 10-05-2005 02:39 PM

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 10-05-2005 03:48 PM

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 10-05-2005 03:51 PM

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 10-05-2005 04:06 PM

Quote:

Originally Posted by Aceman
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 10-05-2005 04:26 PM

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 10-05-2005 04:35 PM

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 10-05-2005 06:27 PM

Sorry about that. I was just taking a quick wild guess. ;)

Feckie (Roger) 10-05-2005 07:03 PM

Ok I Have It Up And Working..........

thanks Clicks Install :banana:

HiDeo 10-05-2005 07:21 PM

Quote:

Originally Posted by Boofo
Sorry about that. I was just taking a quick wild guess. ;)

:D No problem :D

Gizmo5h1t3 10-05-2005 07:59 PM

instaled and workin fine

Samira 10-06-2005 02:43 AM

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 10-06-2005 02:46 AM

Did you download the latest version? Clear your cache and give it another shot. ;)

DS MrSinister 10-06-2005 03:04 AM

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 10-06-2005 10:29 AM

Now all sorted and working, thankyou

albibak 10-06-2005 09:26 PM

Great hack, work fine. Thanks a lot.

Xplorer4x4 10-11-2005 09:10 PM

<a href="http://www.nodqforums.com/rules.php" target="_blank">http://www.nodqforums.com/rules.php</a>
How can I make the lay out more like this that just the simple boxes?

redspider 10-14-2005 12:55 AM

Quote:

Originally Posted by Samira
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 .

akanevsky 10-22-2005 06:42 PM

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 :)

HTML Code:

<!-- main -->
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr class="thead">
<td width="100%" align="center" colspan="2">
<b>$rule_name</b>
</td>
</tr>
<tr class="alt1">
<td>
$rule_data
</td>
</tr>
</table>
<!-- /main -->

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

Cheers, DV

Samira 10-25-2005 05:34 AM

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:

akanevsky 10-25-2005 05:49 PM

1. Please do not beg ;)
2. Just install my Rules hack, https://vborg.vbsupport.ru/showthrea...threadid=99060

Samira 10-25-2005 10:11 PM

But I have a rather extensive list and really like the table separation. (I did use your template here, though.)

akanevsky 10-25-2005 10:30 PM

Why not use bbcode formatting in my hack for separation? :P

Samira 10-25-2005 10:33 PM

LOL! I already installed this!

Sinistra 10-25-2005 11:20 PM

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 10-26-2005 12:03 AM

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.

akanevsky 10-26-2005 01:15 AM

Well, you replace the line that starts with
Code:

$rule_data =
With the following code:
Code:

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);

;)

redspider 11-01-2005 05:49 PM

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

akanevsky 11-01-2005 05:57 PM

Quote:

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 11-01-2005 06:08 PM

Quote:

Originally Posted by Dark Visor
You should remove the XML file you uploaded to includes/xml ;)

that work for me thank you so much

jokerz 11-05-2005 04:04 PM

HiDeo, is this possible to use for 3.5.1 ? As your hack is only "vB Version: 3.5.0"

Smiry Kin's 12-22-2005 11:42 PM

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 01-20-2006 09:55 AM

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 02-06-2006 09:54 PM

installed


All times are GMT. The time now is 04:46 PM.

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.01706 seconds
  • Memory Usage 1,810KB
  • 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_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (5)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