PDA

View Full Version : Miscellaneous Hacks - Cyb - Advanced Forum Rules


Pages : [1] 2 3

Valter
04 Aug 2006, 09:55
FEATURE UPDATES WILL BE RELEASED HERE:
http://www.vbulletin.org/forum/showthread.php?t=177559


==========


Info:
Advanced Forum Rules system for vBulletin.

Main Features:
-Rules shown on separate page (no file uploads required)
-BB codes enabled
-Options to force users to accept Forum Rules before can view forums, post, send PMs,...

See screenshots.


Installation:
1. Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]
2. OPTIONAL (for some customized styles)
Open template "navbar" and add "$cyb_frules_link" after "vbphrase[faq]</a></td>".
3. OPTIONAL (to add 'reset acceptance status' to different place than default one)
Open template "MEMBERINFO" and add "$cyb_frules_force" wherever you wish.


To set options:
Go to: AdminCP > vBulletin Options > Cyb - Advanced Forum Rules


NOTE: You can check which users are (not) accepted Forum Rules by running db queries:
(Run queries through: AdminCP > Execute SQL Query)
List users who had accepted Rules:
SELECT * FROM `user` WHERE cfrules_read_status > 0;
List users who hadn't accepted Rules:
SELECT * FROM `user` WHERE cfrules_read_status = 0;


Versions:
v1.0 - Oct 06. 2005.
-First version
v1.5 - Apr 22. 2006.
-Navbar link is added automatically now (one installation step less)
-Navbar "Forum Rules" link can be disabled in hack settings
-"Manage Rules" link is on settings page now (no need for .xml menu file anymore - one file less to upload when installing)
-"Unknown Location" fixed
-Added function to enable/disable whole hack (predefined error message is displayed instead)
-Templates now goes to "Cybernetec" group in Style Manager
To upgrade from 1.0 to 1.5:
-Import product XML through AdminCP > Plugin System > Manage Products > [Add/Import Product] (Be sure "overwrite" is checked). Upload cfrules.php and cfrulesadmin.php (replace old files). Delete file \includes\xml\cpnav_cfrulesadmin.xml.
v1.6 - Aug 04. 2006.
-Release of this hack for vB v3.6
v1.7 - Aug 05. 2006.
-Uncached template bug fixed
v2.0 - Aug 07. 2006.
-Completely changed way this hack works. No more queries, no more file uploads. Now Rules can be exported because it's part of vB settings. Now you can use BB Codes, which means you can use all standard text formatting functions, smilies, etc. To upgrade: Uninstall old version > Import XML as product > Delete "cfrules.php" from your forums root > Delete "cfrulesadmin.php" from "admincp" folder of your forums
v2.1 - Aug 07. 2006.
-Fixed "Edit Forum Rules" link (didn't worked for some users)
v2.2 - Aug 25. 2006.
-If your forum's index.php file was renamed, for any reason, now you can enter new filename in ACP hack options to have this hack working properly
-Added "Product Version Checking" - http://www.vbulletin.org/forum/showthread.php?t=124679
v2.3 - Aug 26. 2006.
-New: User must accept Rules to be able to post on Forums (option can be disabled/enabled)
-Look improved (see screenshots)
-Codes improved
-Hack name changed to "Cyb - Advanced Forum Rules"
v2.4 - Aug 27. 2006.
-Fixed small javascript bug
-Removed redirection to forum index after Rules acceptance
-Note 1/2 lines replaced by boxes in hack settings
-Removed navbar link HTML Markup options
-Separate phrase created for navbar link
v2.5 - Aug 31. 2006.
-Added ability to reset read status for all users. After this they will need to accept the Forum Rules again
-Added note at the top of Forum Rules when user need to accept it to be able to post on forums
-Added explanation on how to check which users had (not) accepted Rules
v2.6 - Aug 31. 2006.
-Fixed bug (index file location/name setting doesn't work)
-Fixed bug (if user who haven't accepted Rules try to post via quick reply in IE he gets undefined error)
-Fixed bug (resetting the accepts doesn't work if index file was renamed)
-Added: Guests now also need to accept Forum Rules to be able to post (cookie-based)
-Added: redirection message for user who try to post but haven't accepted Rules
v2.6.1 - Aug 31. 2006.
-Fixed bug (if user has no permissions to post he will get standard "no permission" message, not redirection to Forum Rules)
v2.7 - Sep 11. 2006.
-After acceptance users are redirected to the page they were previously viewing
-No more need to set filename for "index.php" if it was renamed. Now misc.php is used, which nobody has need to rename.
NOTE: Don't forget to update the links to the Rules you were posted on your site - change it to YOURFORUMS/misc.php?do=cfrules
-Added confirmation dialog for resetting acceptance status for all registered users
v2.8 - Sep 14. 2006.
-Added option to exclude usergroups from accepting Rules
-Navbar link title moved from phrases to settings for easier translation/make-up
v2.9 - Sep 24. 2006.
-Added option to reset acceptance status for individual member
v3.0 - Oct 30. 2006.
-Whole code is now valid XHTML 1.0 Transitional
v3.1 - Nov 13. 2006.
-Option to force user to accept rules again in member profile can be turned off
-Added variable for above function that you can place it to another place in MEMBERINFO template ($cyb_frules_force)
-Bug fixed (if some user knows exact link for resetting acceptance status he can do it)
-Several other improvements/fixes
v3.2 - Mar 06. 2007.
-New: User must accept Rules before can send PMs
-New: Options to choose what user can't do before accepting Rules
-New: Option to replace Registration Rules with this hack's one
-New: Better counter (with miliseconds, improved browser compatibility)
-Fixed some "invisible" bugs in code and improved compatibility with the latest vB releases
v3.3 - Apr 21. 2007.
-New: Option to force user to accept Rules before can view forums
-Fixed bug where three queries are executed on places where not needed
-Fixed bug where blank rows are shown twice on registration rules page
-New in registration rules options (disable completely)
-Better redirection after Rules acceptance
-Some other optimizations in codes...
v3.4 - Apr 22. 2007.
-Fixed bug where PMs can not be sent even Rules are accepted
-Fixed bug where Quick Reply does not work even Rules are accepted
-Improved counter and added ability to completely disable it (tested and worked on IE, Firefox, and Opera)
-Improved compatibility with right-to-left styles (note: in Rules use [right] tags anyway)
-Fixed navbar link
v3.5 - Jul 22. 2007.
-Fixed bug (MySQL injection vulnerability - attacker can trick admin to reset rules acceptance status for all members)
-Group membership checking works now for supplementary usergroups too
-Several code improvements
v3.5.1 - Jul 22. 2007.
-Fixed bug (XSS Vulnerability)
v3.5.2 - Jul 23. 2007.
-Another security exploit fixed
v3.5.3 - Jul 25. 2007.
-Fixed bug where user is not properly redirected after accepting rules
v3.5.4 - Jul 25. 2007.
-Bug fixed where username info is not shown when going to reset acceptance status
v3.6 - Oct 14. 2007.
-Fixed bug where some mods are not able to reset acceptance status
-Improved javascript code to fix problems with the counter some users reported
-Minor bug fixes


If you like this hack please click INSTALL (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=122998).


Rules page demo: http://www.bihforum.com/misc.php?do=cfrules

sam anders
04 Aug 2006, 15:08
installed nice hack thanks :)

DJ XtAzY
04 Aug 2006, 17:54
can supermods able to add rules and stuff?

Valter
05 Aug 2006, 12:31
v1.7 - Aug 05. 2006.
- Uncached template bug fix

Snake
05 Aug 2006, 18:37
I love it! :D

Valter
07 Aug 2006, 12:26
v2.0 - Aug 07. 2006.
- Completely changed way this hack works. No more queries, no more file uploads. Now Rules can be exported because it's part of vB settings. Now you can use BB Codes, which means you can use all standard text formatting functions, smilies, etc.
- More options (see screenshots)


To upgrade:
- Uninstall old version
- Import XML as product
- Delete "cfrules.php" from your forums root
- Delete "cfrulesadmin.php" from "admincp" folder of your forums

Lost_Prophet
07 Aug 2006, 13:41
This does not work with this modification:
http://www.vbulletin.org/forum/showthread.php?t=118551

It tries to put the "Forum Rules" link inside the User CP dropdown menu.
I've looked but I can't see any way to change this behaviour.

Valter
07 Aug 2006, 13:43
You tried to put:
"http://www.yoursite.com/index.php?do=cfrules"
or just:
"index.php?do=cfrules"
?

Try to play with this.

Lost_Prophet
07 Aug 2006, 13:49
Um, neither ?

I haven't put anything into the navbar template - I just installed the Product as per the instructions.
I could put that link in to get the link on the navbar, but that would still give me the problem of having a link to it stuck inside the User CP dropdown menu.

DJ XtAzY
07 Aug 2006, 14:08
Request:

Can supermods have the power to add/change rules as well?

Valter
07 Aug 2006, 14:13
Lost_Prophet,
I'm not sure I understand you fully. Send me a temp Admin account login info via PMs so I can check it, if you wish.

XtAzY,
vB Options are not part of ModCP so there is no way that SM can add/change the rules.

aLReeMi
07 Aug 2006, 15:04
great..

thanks

Oap JTRipper
07 Aug 2006, 17:07
had a problem with edit rules from the rules page in that it didnt go anywhere

/admincp/options.php?do=options&dogroup=CFRules"

added

$vboptions[bburl]

in front of that in the template & works fine

Valter
07 Aug 2006, 20:57
v2.1 - Aug 07. 2006.
- Fixed "Edit Forum Rules" link (didn't worked for some users)

iran.gs
07 Aug 2006, 23:40
Installed perfect saves space in the forum ty

Freesteyelz
08 Aug 2006, 10:13
Hey, Cybernetec. Thank you for the hack. You already know that I clicked Install. :)

*I think the formats (in Admin CP and how it displayed in cfrules.php) layed out better in version 1.7 than with 2.1. In 1.7 you could rearrange the # by editing fields (not lists) and you could define the consequences/punishments for each rule. I do, however, like the benefits of version 2.1. Is it possible to add the 1.7 look but have the improvements of 2.1? :)

**I appreciate the adjustments you've made; it's just a preferential matter. :)

phonexpo
13 Aug 2006, 12:45
Thanks you for the hack, but I can't seem to get it to work for me. When I Click on forum rules it opens http://phonexpo.ie/index.php?do=cfrules which opens my main forum page. Any ideas what I have done wrong?

Thanks again,

Patrick :)

phonexpo
14 Aug 2006, 16:44
Can someone offer any advice please?

Valter
14 Aug 2006, 18:31
Create temp admin account for me and I'll check it.

phonexpo
14 Aug 2006, 21:33
Create temp admin account for me and I'll check it.
Thanks Cybernetec, pm on the way.

mustang02
14 Aug 2006, 21:54
Thanks. Installed.

phonexpo
15 Aug 2006, 01:00
Create temp admin account for me and I'll check it.
Update.

I have it working now but I only got it to work by mistake. I have vBAdvanced installed on my forum, I have it set as my main index.php file/address and I usually have my main vB index.php changed to forums.php so I changed my forum.php to index.php and the forum rules link works, but how do I get it to work the other way?

Hope this helps...

phonexpo
15 Aug 2006, 10:07
Hi I see you are on my forum at the moment, I should of told you this too, my normal forum address is www.phonexpo.ie/indexoff.php I'm having some issues with it that's why I have it named that. The Forum Rules doesn't work there normally.

Edit*

Oh it does now :surprised: Did you fix it already?

jw00dy
16 Aug 2006, 10:56
GREAT hack! I love it. Thanks.

*installed*

bada_bing
16 Aug 2006, 20:15
Installed on my vb 3.5.3 forum and works great. Wish there was a preview feature though. ;)

sudn3sc3d
16 Aug 2006, 20:51
installed awsome dude :D

paul_c
17 Aug 2006, 01:23
For my site, the forum rules are the same as what people see when they first register. That is, the information found in the "forum_rules_description" phrase. Is there anyway this product can be adjusted to use that phrase as the forum rules?

computer1
17 Aug 2006, 15:24
I have install this nowe and its work greate :)
but I can se forum rules twice on my nav bar howe can I change that to one link in the navbar ????
my version off the forum is 3.6.0

optrex
23 Aug 2006, 09:31
Hi Cyb,

Just installed this hack, but the "edit forum rules" link goes off to admincp/options.php?

Edit: Dont worry I changed it manually in the xml file

Valter
25 Aug 2006, 01:30
v2.2 - Aug 25. 2006.
- If your forum's index.php file was renamed, for any reason, now you can enter new filename in ACP hack options to have this hack working properly
- Added "Product Version Checking" - http://www.vbulletin.org/forum/showthread.php?t=124679

Smoothie
25 Aug 2006, 03:50
Strange, I've checked all the sites that said they installed it but I don't see the link anywhere. Anyone have a link on a live site to check out?

Valter
26 Aug 2006, 09:55
It's because link is hidden for guests.

noel_leon
26 Aug 2006, 12:48
Thanks for this mod too, Cybernetec. Awesome work as always.
I really didnt need forum rules on my site so I changed this to display our guild rules (World of warcrack).
Smoothie, you can take a look at what it will look like here (http://atravulgus.net/forum.php?do=cfrules) .
Keep in mind that I only changed "Forum rules" text to "Rules" :)

Smoothie
26 Aug 2006, 15:51
It's because link is hidden for guests.Now, why would it be hidden for guests? Is it possible to show it to guests? Seems to me you'd want people to know the rules before they sign up.

Smoothie
26 Aug 2006, 15:52
Thanks for this mod too, Cybernetec. Awesome work as always.
I really didnt need forum rules on my site so I changed this to display our guild rules (World of warcrack).
Smoothie, you can take a look at what it will look like here (http://atravulgus.net/forum.php?do=cfrules) .
Keep in mind that I only changed "Forum rules" text to "Rules" :)

noel_leon,

Thanks!

Valter
26 Aug 2006, 21:31
v2.3 - Aug 26. 2006.
-New: User must accept Rules to be able to post on Forums (option can be disabled/enabled)
-Look improved (see screenshots)
-Codes improved
-Hack name changed to "Cyb - Advanced Forum Rules"

Ghanem
26 Aug 2006, 21:42
Very nice upgrade, I really neaded the acceptance option..

- How to upgrade please.. or do we have to remove and reinstall..
- I have replaced the registration rules with a link to your hack, how it will look like for guests and members if they click the link, I mean the acceptance box and waiting time...
- Is it stored once its accepted, or the user have to accept it every time before he post..

Sorry if I am asking alot :)

Thanking you in advanced..

Regards

Valter
26 Aug 2006, 21:47
Just import XML as product (allow overwrite). ;)

Ghanem
26 Aug 2006, 21:54
Just import XML as product (allow overwrite). ;)great:banana:
I have edited my post and added two more questions..

noel_leon
26 Aug 2006, 22:05
Hmm, did bbcode break? Most of my bold options have stopped working.

Valter
26 Aug 2006, 22:14
- I have replaced the registration rules with a link to your hack, how it will look like for guests and members if they click the link, I mean the acceptance box and waiting time...
- Is it stored once its accepted, or the user have to accept it every time before he post..
Guest can view Rules but not acceptance box. They can post without accepting Rules. This is because we can't save any options for them.

Options for registered users are saved in database and they need to accept Rules one time only.

noel_leon,
Nothing's changes with BB codes. Works fine for me.

noel_leon
26 Aug 2006, 22:27
Well they dont work here. Checked again just to be sure. Wierd .

Valter
26 Aug 2006, 22:28
In Rules or posts?

Temp admin account can be helpful.

Ghanem
26 Aug 2006, 22:46
Upgrading was easy..

- I have got the attached error when I visit the rules page
- If I was replying and got the rules page, then accepted it, it does not take me back to the reply page, it redirects me to the index.php..
- note1 and note2 did not follow the style.. my Arabic forum direction is from right to left, the notes gone to the left..

Regars :)

Valter
27 Aug 2006, 00:23
Ghanem,

Use standard BB codes to adjust text position:
[left]
[center]
[right]
In your case [right] should be used.

Error you get is about javascript. I see no reason why it appears. I'll check it.

Redirection destination can be changed. I'll fix it in next version.

flamewalker
27 Aug 2006, 01:56
WhenI upgraded, it replced my notes part b with one line... and it won't let me put more than one line anymore... anyway to get this back to a text box like it was?

Valter
27 Aug 2006, 03:42
v2.4 - Aug 27. 2006.
-Fixed small javascript bug
-Removed redirection to forum index after Rules acceptance
-Note 1/2 lines replaced by boxes in hack settings
-Removed navbar link HTML Markup options
-Separate phrase created for navbar link

Ghanem
27 Aug 2006, 04:26
charming, working just fine, error gone, direction of notes is simple to allign :)

The only thing left, is it's still if I am replying or posting, it will not direct me back to the thread, it directs me now to the rules page again, but its not a big deal..

I have a request for the next release (if there is a plan)..
I kind some times change the rules based on the forum needs..
Can you put an option to delete all the acceptance from the database in order to let the users who previously accepted the rules know that there is an update and accept it again..
I can do it manually, but it would be more professional if its built in :)

DonKoyote
27 Aug 2006, 11:21
Its a Nice Idea from Ghanem, but i had an second Wish too ;-)

The best thing ever was when with this hack the forum rules can be changed, the rules the user must accepted when register. So that i dont must change the rules on difference places all over the site :-)

Its just a wish

But this Time, many Thanks fpr your work, its a great helpfull tool you made.

Greetings from germany and sorry for my poor english, Shool is 18 years ago *lol*

Best Wishes

DonKoyote

bandare
27 Aug 2006, 12:43
Really great addition. Thankis for this.

dontpanic
27 Aug 2006, 21:28
This is a great hack!! Thanks!!

Is there any way it could be made, though, to take the user back to the page they started at...so that after they accept the rules they can go about creating the thread/post they intended to?

Ghanem
28 Aug 2006, 00:39
Cybernetec,

Sorry to bother you again, but I started getting complains from my forum users about two thing :confused: ..
- not being redirected back after the acceptance to the thread
- If a user who still did not accept the rules, used the quick reply, he wont be directed to the rules, instead, he will get the standard error page, which is confusing and does not tell exactly why they are not able to reply

Hope somthing can be done about it..

Regards.

xman_79
28 Aug 2006, 09:51
Installed .

It's very good .

Thank you .

Valter
28 Aug 2006, 10:13
- If a user who still did not accept the rules, used the quick reply, he wont be directed to the rules, instead, he will get the standard error page, which is confusing and does not tell exactly why they are not able to reply
This happens with IE and not with Firefox. I'm not sure yet what causes this.

wtrk
29 Aug 2006, 03:13
BOOOOOOOOOOO the new version sucks. you totally wiped out all my rules and hard work. im totally disappointed. you just got uninstalled from my forum. BOOOOOOOO! bad hack! send me the old version!

Valter
29 Aug 2006, 03:23
http://img219.imageshack.us/img219/2176/imageyp8.gif

Nope, I didn't wiped anything.

Most of members are happy with this hack. Noone reported that "Cyb wiped something".

Which version you used before 2.4?
Did you upgraded properly?
Be noted that from v2.0 (Aug 07. 2006.) rules are stored in settings.
Always read release notes.

You must not use anything released here.
Use this hack as it is or make new thread on your forums with forum rules.

Masters
29 Aug 2006, 06:50
I loved this hack but the green "forum rules" link in the navbar bothered me enough to disable it.

How can i edit the color of the rules link?

Valter
29 Aug 2006, 16:57
I loved this hack but the green "forum rules" link in the navbar bothered me enough to disable it.

How can i edit the color of the rules link?
Search phrase "cybfrules_navbar". You can change color or remove completely <font> tags.

Viol8or
30 Aug 2006, 12:50
Is there a way to see if how many or who accepted the rules and who didn't yet?

redlabour
30 Aug 2006, 13:11
Hi,

2 Bugs :

1. http://www.politikstube.de/forum/?do=cfrules does not work. This link does nothing in navbar. It only refresh the Site where i tried to get to the Rules to read them again.
The Settings in AdminCP are correct and "index.php" is in the default Place. Why does it not be created in navbar Link ? Even if i change it in the Options - nothing is changed in navbar Link.

2. After accepting the Rules i will be redirected to index.php. This is nonsens. Please fix it so the User gets redirected to the exactly place where he has to accept the rules before.

2 Questions :

1. How can i move the Navbarentrie to a other Place ?

2. How can i see which User has accepted the Rules and which not ?

3. What if the Rules are changed ? Are the User automatically prompted again to accept the new Rules ?

Pagandream
30 Aug 2006, 15:04
Nice one, but the idea from Ghanem would make it perfect. ;)

andreamarucci
30 Aug 2006, 15:22
Cool! Works like a charm...

Valter
30 Aug 2006, 16:05
redlabour,

Try to put "forum/index.php" for index file location in settings.

LordDB
30 Aug 2006, 19:10
Cybernetec, you are just the best my friend! :)

This means there's no excuse for any member to say they haven't read the Rules!

Much appreciated!

Br. :)

Valter
31 Aug 2006, 02:46
v2.5 - Aug 31. 2006.
-Added ability to reset read status for all users. After this they will need to accept the Forum Rules again
-Added note at the top of Forum Rules when user need to accept it to be able to post on forums
-Added explanation on how to check which users had (not) accepted Rules

To upgrade: Import XML, allow overwrite.
See new screenshots. Read NOTE about checking users...

Ghanem
31 Aug 2006, 07:32
v2.5 - Aug 31. 2006.You are full of surprises
Very cool additions
Thank you very much

Necrite
31 Aug 2006, 07:53
so, now again :)

two little bugs in there first:

</template>
- <template name="cyb_frules_link" templatetype="template" date="1156627740" username="Cybernetec" version="3.6.0">
- <![CDATA[ <td class="vbmenu_control"><a href="$vboptions[bburl]/$vboptions[cybtopstats_index_loc]?do=cfrules">$vbphrase[cybfrules_navbar]</a></td>

]]>
</template>


change to

</template>
- <template name="cyb_frules_link" templatetype="template" date="1156627740" username="Cybernetec" version="3.6.0">
- <![CDATA[ <td class="vbmenu_control"><a href="$vboptions[bburl]/$vboptions[cybfrules_indexloc]?do=cfrules">$vbphrase[cybfrules_navbar]</a></td>

]]>
</template>


then the path you type in works :)

but to reset the accepts you've to change the link
<![CDATA[ <br /><a title=\"RESET READ STATUS\" href=\"../index.php?do=resetcfrules\">RESET READ STATUS</a>

to your forumspath hope the autor will insert soon that it will be changeg automatic to :)

redlabour
31 Aug 2006, 08:11
redlabour,

Try to put "forum/index.php" for index file location in settings.

Still not working.

It returns me still to : http://www.politikstube.de/forum/?do=cfrules and i have updated to V2.5 !

Necrite
31 Aug 2006, 08:15
hmm,
would't work, the links will not be changed - in the xml file it look so but how should it be changed?! there 2 more points where the link is named index.php?... if you change it manual to path_to_your_index.php like forum.php?do.. it works but without the links are not will be changed to what you type in the line where the index.php path will be set.

- <phpcode>
- <![CDATA[ if ($vbulletin->options['cybfrules_enable'] AND $vbulletin->options['cybfrules_required'] AND $cfrulesagreed == '0' AND !$userinfo['userid']= '0')
{
$vbulletin->url = 'index.php?do=cfrules';
exec_header_redirect($vbulletin->url);
}

]]>
</phpcode>

andreamarucci
31 Aug 2006, 09:37
so, now again :)

two little bugs in there first:



Do we need to change somethiing into the code (where exactly?) or the bugs are corrected in the download version?

What are the problems corrected with this code hack?

Thanks

andreamarucci
31 Aug 2006, 09:40
Still not working.

It returns me still to : http://www.politikstube.de/forum/?do=cfrules and i have updated to V2.5 !

I've upgraded now. My link is http://www.kog.it/forum/?do=cfrules but it works correctly. I've seen your link and now contains "index.php" and works.

Necrite
31 Aug 2006, 10:02
Do we need to change somethiing into the code (where exactly?) or the bugs are corrected in the download version?

What are the problems corrected with this code hack?

Thanks

better you wait that the coder change it, there a few more problem in the file for the index to set to another file :)

Pagandream
31 Aug 2006, 11:06
After accepting the rules the User will not be redirected to newthread.php :(

In 2.4 it was fine....

Stoebi
31 Aug 2006, 11:50
Guest can view Rules but not acceptance box. They can post without accepting Rules. This is because we can't save any options for them.

Options for registered users are saved in database and they need to accept Rules one time only.


What do you think about a cookie set for guests?



Regards, Stoebi

Valter
31 Aug 2006, 16:05
v2.6 - Aug 31. 2006.
-Fixed bug (index file location/name setting doesn't work)
-Fixed bug (if user who haven't accepted Rules try to post via quick reply in IE he gets undefined error)
-Fixed bug (resetting the accepts doesn't work if index file was renamed)
-Added: Guests now also need to accept Forum Rules to be able to post (cookie-based)
-Added: redirection message for user who try to post but haven't accepted Rules

To upgrade: import XML, allow overwrite.
Be sure to translate/update these phrases if you are using other than English language:
cybfrules_agree_note
cybfrules_mustreadrules

Gerakus
31 Aug 2006, 16:09
Yay my first post and I been around here since 2005...

It works like a charm :), only problem so far was the nav, but probably is because I am using a custom template, so pretty much I have to create the link myself, but thats ok :).

One question:

This is the code I use:

<td class="vbmenu_control"><a href="$vboptions/$vboptions[cybfrules_indexloc]?do=cfrules">$vbphrase[cybfrules_navbar]</a></td>

[B]And the link looks green, is any way to change the color to blue? I been checking the main css but couldnt find where to change, Could you please point me out where to change the color from green to blue?

Valter
31 Aug 2006, 16:29
v2.6.1 - Aug 31. 2006.
-Fixed bug (if user has no permissions to post he will get standard "no permission" message, not redirection to Forum Rules)

Valter
31 Aug 2006, 16:32
Gerakus,

Change the phrase cybfrules_navbar.

Stoebi
31 Aug 2006, 16:40
Installed perfect saves space in the forum ty

Thx a lot Cybernetec. :up:


Regards, Stoebi


Edit:
The link "Forum Rules" doesn't appears in the navbar for guests.
Cookie should be cleared after a refresh if you used the "RESET READ STATUS".

Wish:
Forum based and exluded groups/users they don't need accept the rules before they want to post.


Sorry for my english.

redlabour
31 Aug 2006, 17:59
Where can i see now which User have accepted and which still have to ?

And i still search for the part to move if i want to appear the navbar Link anywhere else.

brvheart
31 Aug 2006, 21:20
*installs* thank you for you awsome work!!

any way to change the color of the link in the navbar?

Gerakus
31 Aug 2006, 22:41
*installs* thank you for you awsome work!!

any way to change the color of the link in the navbar?

I wonder if it will be hard to put an option on the admin panel to change the color of Forum rules text, so whatever you enable it on the nav bar, it will keep the color you define there.

Valter
31 Aug 2006, 22:49
Change the phrase cybfrules_navbar.
So, edit the phrase "cybfrules_navbar" to change/reset color of the Forum Rules text in navbar. :D

brvheart
01 Sep 2006, 00:30
I wonder if it will be hard to put an option on the admin panel to change the color of Forum rules text, so whatever you enable it on the nav bar, it will keep the color you define there.


I think that the cyb donate menu (different hack...but has that option) has a option for that in the product that you choose via the admin cp....probably would not be a hard option for a expert code....cyb ;)

brvheart
01 Sep 2006, 00:44
So, edit the phrase "cybfrules_navbar" to change/reset color of the Forum Rules text in navbar. :D


sry cyb...I should have seen that one.... *kicks self*

Ghanem
01 Sep 2006, 04:40
Cybernetec,

I don't know why I am not able to install the new version :confused:
It tried to install it (over writing the old one), I always get the page can not be displayed after w while..
I have uninstalled the prev on even, still, getting the page can not be displayed after few seconds..

I have tested installing and over writing another hacks, there was no problem..

What could be wrong :cry:

Regards
Ghanem

Valter
01 Sep 2006, 09:32
I have no idea what it can be.

If you wish create for me temp Admin account so I can check it.

Ghanem
01 Sep 2006, 09:38
I have no idea what it can be.
If you wish create for me temp Admin account so I can check it.I have tested it on my colegue forum who did not install it before, got the same problem
It shows its trying to intstall, takes loong time and then the page comes up with "the page can not be displayed.."

I will PM you an admin account.

Update:
Problem solved when I uploaded the file to the server and install it from there directly
Thank you Cybernetec for your efforts :)

redlabour
01 Sep 2006, 11:22
Where can i see now which User have accepted and which still have to ?

And i still search for the part to move if i want to appear the navbar Link anywhere else.

Can anybody hear me ? ;)

noel_leon
01 Sep 2006, 11:39
Awesome, Cybernetec! The Bbcode is suddenly working again on my cfrules page.
A quick question: Is it possible to redirect users back to the page they were viewing before having to read the rules?

Again, Thank you very much for all your great work.

Sun Boy
01 Sep 2006, 19:10
this hack is really great
but i have a problem with it,
first, there's this java script error..
also, when the user reades the rules and agrees, the page is redirected to the rules page, not to newthread.php page!

IntegrityIS
01 Sep 2006, 21:59
^Piggybacking onto this, when a user accepts it, instead of redirecting to the rules page, is there any way to make it redirect to being able to post in the place they were?

jyajay
03 Sep 2006, 21:13
Hey, great Mod.

Is it somehow possible to create two different rule sets, in my case for dual language and automaticly be shown with selected language?

marlita
04 Sep 2006, 04:37
Can I do this for forum announcements or does this have to be a global thing?

bada_bing
05 Sep 2006, 20:40
IS there a way so that moderators,super mods,admins & other groups can be dismissed from the forum rules agreement?

I believe that if you are a staff members you should already be well aware of the rules or you should not be modding a site..

Stoebi
08 Sep 2006, 15:31
Hi Cybernetec, hi @all


The link "Forum Rules" doesn't appears for guests in the navbar .
If i use the "RESET READ STATUS", guests doesn't need to accept the new rules again. :(


Wish:
Forum based and exluded groups/users they don't need accept/see the rules before they want to post.



Regards, Stoebi

frivolesPaar
10 Sep 2006, 20:46
Is there any way it could be made, though, to take the user back to the page they started at...so that after they accept the rules they can go about creating the thread/post they intended to?

Hi Cybernetec, can you help please

:cry: ( sorry for my bad English)

Valter
11 Sep 2006, 05:43
v2.7 - Sep 11. 2006.
-After acceptance users are redirected to the page they were previously viewing
-No more need to set filename for "index.php" if it was renamed. Now misc.php is used, which nobody has need to rename.
NOTE: Don't forget to update the links to the Rules you were posted on your site - change it to YOURFORUMS/misc.php?do=cfrules
-Added confirmation dialog for resetting acceptance status for all registered users


To upgrade: Import XML as product, allow overwrite.

Ghanem
11 Sep 2006, 09:08
v2.7 - Sep 11. 2006.:banana:
Installed, perfect :up:

IntegrityIS
11 Sep 2006, 09:30
Update works perfectly. :)

One thing that's been brought up by one of my users is that they can see the # of Warnings and the Warning Points in the postbit even know they aren't 'Management'. Not everyone cann see it though, just a few people so far. I checked all their permissions and usergroup settings and nothing indicates tat they be counted as 'management.' Any ideas?

brvheart
11 Sep 2006, 14:16
awsome thank you for the update :)

navjotjsingh
13 Sep 2006, 21:33
Well I want to suggest you something..please include a option of excluding staff from accepting the rules...I am the admin..I made the rules and before posting it wants me to accept them..looks kind of funny...so please consider this suggestion. Thnx.

Valter
14 Sep 2006, 03:39
v2.8 - Sep 14. 2006.
-Added option to exclude usergroups from accepting Rules
-Navbar link title moved from phrases to settings for easier translation/make-up

Stoebi
14 Sep 2006, 04:05
Hi

Thx a lot. I appreciate your works :)


Regards, Stoebi

navjotjsingh
14 Sep 2006, 06:01
Thanks Cybernetec for implementing my suggestion so fast...thanks a million!

juan71287
14 Sep 2006, 14:11
thankx man I like it with seperate user groups :)

CCWBumper
15 Sep 2006, 02:35
Absolutely awesome mod. Have you ever considered adding the ability to force a specific individual member through the rules again if they are being a problem?

Again, great job!

GreysAnatomy
18 Sep 2006, 13:30
This hack used to work perfectly fine but evers ince I updated to 3.6.1, the link (http://www.greysanatomy-boards.com/forums/index.php?do=cfrules) provided won't work anymore. Any idea?

bada_bing
18 Sep 2006, 13:52
Cybernetec

Thank you for updating the hack for us and adding the usergroup exept area.

Valter
18 Sep 2006, 21:12
This hack used to work perfectly fine but evers ince I updated to 3.6.1, the link (http://www.greysanatomy-boards.com/forums/index.php?do=cfrules) provided won't work anymore. Any idea?
Read release notes. It's here:
http://www.greysanatomy-boards.com/forums/misc.php?do=cfrules

Gripemaster
20 Sep 2006, 04:42
Very Nice!

*INSTALLED* Thanks!

Masiello
20 Sep 2006, 10:06
after click on acceptance status reset it redirect to en inexistence page, it's possible cause that I don't use the default name of admincp but use my custom?
After that the users don't see the "Submit" botton to acceper rules againg, help please?
Click this botton again "Reset aceptance status" it redirect in random mode on some FAQ's page or forum posts, what is happen? I've fear to broken my forum...

Masiello
20 Sep 2006, 10:54
Ok, this is the status:
If I disable the hack and click "Reset aceptance status" it redirect to the FAQ's smilie page
If I enable the hack and click "Reset aceptance status" it show message that all users aceptance as been resected but after it redirect to en inexistent page and the user don't show the submit botton and the time is blocking

Testing on some 3.6.1 board on a different servers and configuration, same problem anywhere, I think this is a bug.

Valter
20 Sep 2006, 11:19
Testing on some 3.6.1 board on a different servers and configuration, same problem anywhere, I think this is a bug.
Hi Masiello,

Tested on three forums (two different servers with different versions of php, mysql, apache) and never seen anything like that. Also noone reported such issue before you.

Masiello
20 Sep 2006, 11:52
what the problem second you?
I want to use this product, I like it very much but I dont know why that, I only use 3 product, your two, check the same posts, this one, and Unread posts by Paul, nothing much

Masiello
20 Sep 2006, 12:08
Just a question and for all problem no problem, this product function touch in any mode the vbulletin database? Have on it any script that do that? If that script works fine for me or not, I have only fear if it do that and waste my forum db,
Thanks

P.S: How do I show the "Forum Rules" link too to the Guest?

Clicked INSTALL

PersianImmortal
22 Sep 2006, 06:56
Excellent hack, has installed on my 3.6.0 forum and is working properly - thanks for creating it.

Valter
24 Sep 2006, 06:24
v2.9 - Sep 24. 2006.
-Added option to reset acceptance status for individual member

To upgrade: Import XML as product and allow overwrite.

Masiello
24 Sep 2006, 06:29
Thanks
Please, do possibile to show Rules link to guest withous see scroll time and acceptance rules?
You don't believe that is important to show first forum rules?

bada_bing
25 Sep 2006, 14:54
I have upgraded to 2.9 and it messed up my memberinfo page. It added another cell on the right side on the memberinfo page with some test that says usercp

anyone else get this?

I have to down back to version 2.8

Valter
25 Sep 2006, 15:18
It's because your memberinfo template was customized.

bada_bing
25 Sep 2006, 15:20
It's because your memberinfo template was customized.
yes but how do I fix it so that I can upgrade?

Masiello
25 Sep 2006, 15:45
Hi Cybernetec,
I really think you have made a very great work with this hack very usefull and I don't want to waste your time because you work like me, I don't joking or kind about that, please don't ignore my post, I only need to resolve my issue, I've try again on some other friends server and it's really do what I say in last posts, it is exactly (whitout or only one acceptance user rules) if I disable the hack and check the Reset acceptance button it redirect to a smile FAQ page, I only ask help for that, thank you all.

Valter
25 Sep 2006, 16:06
Masiello,
Enable hack, then reset acceptance status if you wish. You can't do this when hack is disabled.

bada_bing,
I must see your memberinfo template. Create temp admin account for me or copy the content of your memberinfo template here.

wpeloquin
28 Sep 2006, 15:41
i hope you dont mind, but i added 2 copies of your mod to my forums, one slightly modified. i help run a counterstrike gaming community, so i installed one instance as Forum Rules, and then i modified your .xml to add another, for Server Rules. example can be seen here: (http://rkccs.com (http://forums.rkccs.com)). just thought i'd share, and hope you dont mind me editing your code.

Gripemaster
28 Sep 2006, 16:05
My memberinfo template is customized as well. Will this affect my upgrading? I really like this hack, I just pruned my member list and made the remaining members agree to the rules just last night. Will they have to do it again if I upgrade?

Thanks for a great and useful hack :)

McCarroll21
28 Sep 2006, 21:17
Installed. Can you tell me how to take the green out?

Valter
28 Sep 2006, 22:23
Gripemaster,
Upgrading hack will not change acceptance status.

McCarroll21,
Green can't be changed. If you change it someone will die.

Repeating again (after 100000 times): Phrase Manager

Gripemaster
29 Sep 2006, 00:45
Gripemaster,
Upgrading hack will not change acceptance status.

McCarroll21,
Green can't be changed. If you change it someone will die.

Repeating again (after 100000 times): Phrase Manager

Thanks a bunch. Upgraded flawlessly. I like the force user again option. I have a good group all in all, but I can use that as a warning system of sorts if they break a rule. Thank you!

jyajay
30 Sep 2006, 13:12
Hi, how can i write dual language rules?

eNforce
09 Oct 2006, 17:17
Could you maybe add the option to have it automatically clear their acceptance of the rules for banned members?

For example User has accepted the rules but has later been banned. User has to accept the rules when he/she is unbanned.

a squared
09 Oct 2006, 23:02
Is this 3.6.2 compatible?

Freesteyelz
10 Oct 2006, 01:05
i hope you dont mind, but i added 2 copies of your mod to my forums, one slightly modified. i help run a counterstrike gaming community, so i installed one instance as Forum Rules, and then i modified your .xml to add another, for Server Rules. example can be seen here: (www.roadkillcafe-cs.com/forums/ (http://www.roadkillcafe-cs.com/forums/)). just thought i'd share, and hope you dont mind me editing your code.

I was thinking the same thing; one for spamming rules and the other for miscellaneous rules (for specific forums).

jyajay
11 Oct 2006, 11:02
The change since version 2.9 is missing on my installation. Is there a way to add this feature manually?

snowlion
11 Oct 2006, 11:56
http://img167.imageshack.us/img167/1493/missso7.jpg
missing all images

Robbed
19 Oct 2006, 03:10
Looks good.

Instead of using sql queries to see who accepted, can you have a page

like misc=do acctrules

Robbed
19 Oct 2006, 06:14
Also I would like to remove the link in the users profile, force user to accept rules, the phrase is to long and messes up the style.

Kadi
21 Oct 2006, 01:35
Great work. All but one of the hacks I have added are yours. Thanks.

Q: How do I make the forum rules, note1, note 2 align right?

Valter
21 Oct 2006, 01:52
Hi Kadi,

BB codes are enabled so just put [right] tags around text. :)


Robbed,

Remove this from "Cyb - Advanced Forum Rules - BB&Link&Accept" plugin:
$vbulletin->templatecache['MEMBERINFO'] = str_replace($cybfrules_mi,$vbulletin->templatecache['cyb_frules_forceuser'].$cybfrules_mi,$vbulletin->templatecache['MEMBERINFO']);

Robbed
21 Oct 2006, 02:09
Thanks man.

Elpie
03 Nov 2006, 13:27
Thanks Cybernetec for a brilliant hack!
I've had it installed (very fast, easy, and troublefree) while my forum (3.6.2) was under development and now that its going live I realise I have created a problem for myself.

I'm using a custom style and am not using the navbar at all, and I have a link to the forum rules showing at all times. The problem with that is that guests who are about to register get to see the acceptance bar and they are checking it, thinking this then signifies their acceptance of the rules. This throws them back to the index page, but then, of course, they get the rules that they thought they had accepted all over again before they can post.

I just cant work out how or where to do a conditional statement so the acceptance does not show up unless a user is logged in. Can you help please?

farooqaaa
03 Nov 2006, 13:59
Nice hack :)

*farooq clicks install (i think) :D

Canis Firebrand
03 Nov 2006, 15:41
Are the usergroup ids that are in the exception list only based of primary user group?

I installed the hack as I am an admin in my board. But I have myself and all the other members in the Registered Users group for primary and then additional groups as secondary.
My secondary group is Admins and when I enabled the hack, I had to accept the rules, even though the admin group user id is in the exceptions list.

Is there a way to have it cover additional usergroups in the exception list? Or did I miss something?

Factory Ten
03 Nov 2006, 21:37
Excellent work. Thank you!

chikkoo
04 Nov 2006, 10:56
Installed, and works perfect.
But I want to display the Navbar link for Guests too.

How to modify the Navbar?

jyajay
04 Nov 2006, 11:41
What is the phrase for the manual reset of individual members? I do not have it at the profile page.

Elpie
05 Nov 2006, 01:04
Installed, and works perfect.
But I want to display the Navbar link for Guests too.

How to modify the Navbar?

I'm not using the navbar (did my own thing) but this is the link that works

http://yourdomain/forums/misc.php?do=cfrules

Once I work out how to stop the rules acceptance showing up for guests, this will be perfect!

Spiffware
05 Nov 2006, 18:43
heres a idea or suggestion.. but first I want to say this is the best rules hack out there today. ok here we go I want to have a seperate set of rules for differatn usergroups. I have a company setup here so i got members need 1 type of rules and i got employees that need another type if rules then i got a single guy i need a special set or rules for him.is there a way to do that or can that be future rules settings on the hack?

WebSpidey
05 Nov 2006, 21:23
*Installed*

Thanks for the great hack....

2 Things I would like to request or ask about tho,

1) Is there a way to make them agree to this before viewing the website or forum sections at all? Perhaps whenever they try to enter any forum catagory other then the index, it would popup, rather then waiting until the try to post?

(some of my members have been angered, because they are about to make a post, they have what they want to post fresh in their mind, then out of nowhere they have to read and agree to something before they can post...)

2) Is there a way that you could make a PM agreement? So that, just like when someone tries to post, it will popup a "PM rules agreement" and/or the forum rules agreement before they can send any PMs? Obviously it would probably be best to have it popup when they try to create a PM rather then when they try to send it, but if it's something you are willing to do at all , I would be very appreciative.


-Thanks,
WebSpidey

apiasto
06 Nov 2006, 21:53
great,I like it thnx

grecostimpy
06 Nov 2006, 21:58
Just installed...thanks.

Was it supposed to make ALL users (existing and new) acknowledge when this is first installed? I thought it would only affect my new users, but all users are reporting they had to acknowledge the rules. Was it supposed to do this?

Also, if I make changes to the rules, will it make everyone re-acknowledge? (I know it is only supposed to make them re-acknowledge if I "Force" it, but just making sure!)

Thanks! GREAT hack!

McMendo
08 Nov 2006, 02:24
I've found one small problem after the install. I have the UserCP Navbar Menu (http://www.vbulletin.org/forum/showthread.php?t=118551) template changes. The link to the forum rules shows in the pull-down menu of the UserCP navbar. See attachment.

McMendo
08 Nov 2006, 10:29
Update to the problem: I've added the optional code line:
$cyb_frules_linkand now I can see the correct link plus the previous problem. See attachment.

taydu
08 Nov 2006, 23:12
Nice hack, installed.. I would like to see this hack extend to another level, the ability to create different rule for different forum

bada_bing
09 Nov 2006, 04:28
Masiello,
Enable hack, then reset acceptance status if you wish. You can't do this when hack is disabled.

bada_bing,
I must see your memberinfo template. Create temp admin account for me or copy the content of your memberinfo template here.
I have PM'd you my memberinfo . Can you take a look and see how I can fix this issue so I can upgrade to the latest version of this great hack

jyajay
09 Nov 2006, 19:55
I still don't have the "option to reset acceptance status for individual member".

This option is nowhere, not even on the standard style. Could you tell me thre phrase that needs to be added into the template, I'll do it by my own.

Btw, the memberinfo templates are all original.

grecostimpy
10 Nov 2006, 12:44
I still don't have the "option to reset acceptance status for individual member".

This option is nowhere, not even on the standard style. Could you tell me thre phrase that needs to be added into the template, I'll do it by my own.

Btw, the memberinfo templates are all original.

Mine shows up on the member's profile page as "Force <username> to Accept Forum Rules Again"

No luck there?

The phrase is cybfrules_forceuser "Force {1} To Accept Forum Rules Again"

jyajay
13 Nov 2006, 02:11
The phrase was not what I was looking for as I put a different text there anyway.

I found the code in the xml.. by hand


@grecostimpy

The phrase is actually cyb_frules_forceuser which is a template so I cannot just put that in my memberinfo. What exactly do you have at your memberinfo template?


If you enter the URL manually everyone can force users to read the rules again, that is a major problem for me!

misc.php?$session[sessionurl]do=forceusercfrules&u=$userinfo[userid]";

I still can only put in that link and then everybody can use that function for everybody or put the url manually.

Valter
13 Nov 2006, 17:06
v3.0 - Oct 30. 2006.
-Whole code is now valid XHTML 1.0 Transitional (never released)
v3.1 - Nov 13. 2006.
-Option to force user to accept rules again in member profile can be turned off
-Added variable for above function that you can place it to another place in MEMBERINFO template ($cyb_frules_force)
-Bug fixed (if some user knows exact link for resetting acceptance status he can do it)
-Several other improvements/fixes


To upgrade: Import XML, allow overwrite.

jyajay
13 Nov 2006, 17:20
Nothing changed for me, even guests can reset the read status!

Overwrite was checked, of course.

bada_bing
13 Nov 2006, 18:54
v3.0 - Oct 30. 2006.
-Whole code is now valid XHTML 1.0 Transitional (never released)
v3.1 - Nov 13. 2006.
-Option to force user to accept rules again in member profile can be turned off
-Added variable for above function that you can place it to another place in MEMBERINFO template ($cyb_frules_force)
-Bug fixed (if some user knows exact link for resetting acceptance status he can do it)
-Several other improvements/fixes


To upgrade: Import XML, allow overwrite.


When I enable this feature it messes up my memberinfo template.. How can I move the the $cyb_frules_force to show up somewhere else within my memberinfo page? Currently I have the Show Automatically "Force to Accept Again" Option in Member Profile feature disabled in admincp and manually placed $cyb_frules_force somewhere else in my memberinfo template, but if I were to turn it on in admincp it would mess up the template. Where and how do I fix this so that when I turn that feature on/off it places it where I like?

-Option to force user to accept rules again in member profile can be turned off
-Added variable for above function that you can place it to another place in MEMBERINFO template ($cyb_frules_force)

Valter
14 Nov 2006, 08:16
Nothing changed for me, even guests can reset the read status!
This is impossible.


bada_bing,
Disable "force user..." link in ACP and add $cyb_frules_force manually where you wish this option to appear in memberinfo.

jw00dy
14 Nov 2006, 09:38
Works great here!

jyajay
14 Nov 2006, 11:20
This is impossible.



So either this confirmation message is displayed to everyone and nothing happens or it is like I said, a permissions problem.

Valter
14 Nov 2006, 11:52
So either this confirmation message is displayed to everyone and nothing happens or it is like I said, a permissions problem.
It is displayed to Mods & Admins. <if condition="can_moderate()"> used.

Only usergroups 5,6,7 (SuperMods, Admins, Mods) are able to reset acceptance status.

Please can you create temp admin account for me so I can check your forums. I need access to options/styles/products. Send me info via PMs.

Valter
14 Nov 2006, 17:37
I tried to reset acceptance status for your user as guest and I just get smilies list which is normal when you go to misc.php.

You can try it here (http://www.vbulletin.org/forum/misc.php)...

So only Mods, Admins, SuperMods, are able to do that. When you successfully reset acceptance status you get confirmation message, not smilies list. ;)

jyajay
14 Nov 2006, 18:10
Now I get the same result as you, thank you anyway. ;)

Alfa1
19 Nov 2006, 22:34
Strange. After installing this, there was no link to the forum rules in the navbar. I just added $cyb_frules_link to the navbar template and found 2 'forum rules' links in the navbar. When I took it out, 1 link was left. I dont understand how, but it's fine with me.
How do I change the color of the link to white/standard navbar font color?

iardon
20 Nov 2006, 22:55
Installed. Great mod!

Valter
21 Nov 2006, 10:06
How do I change the color of the link to white/standard navbar font color?
Phrase Manager

Alfa1
21 Nov 2006, 10:18
Thanks. I fixed it.

MeMySelfNi
21 Nov 2006, 16:51
*installed*

freevisio
21 Nov 2006, 17:44
Hello, do I have installed the version 2.9, like I can upgrade?

If I erase and do I add the 3.1, will the text of the rules disappear?

Please, give me a help

Valter
21 Nov 2006, 18:04
Data will not be lost during upgrade. However you can save it to txt file if you wish before proceeding with upgrade. To upgrade just import attached XML as product and allow overwrite.

MrPHD
06 Dec 2006, 01:54
Nice very nice. Great job thanks and Installed

smoknz28
06 Dec 2006, 03:17
Thank you for sharing this hack with us. Installed on v3.6.3 with ease. ;)

Gonzo

Kadi
12 Dec 2006, 07:27
Hi,

This was working fine until recently. The "Time (in seconds) User Must Wait Before "Accept" Button" doesn't countdown. It freezes at whatever number of seconds I have in the options.

What do I do?

ElForro
13 Dec 2006, 11:04
Sorry if it's a silly question... but... I can only setup ONE rule to agree? I would like to have individual forums rules, like the previous "rules agreement hack"

Is that possible? Thanks!

sduckie2k5
14 Dec 2006, 15:15
Strange. After installing this, there was no link to the forum rules in the navbar. I just added $cyb_frules_link to the navbar template and found 2 'forum rules' links in the navbar. When I took it out, 1 link was left. I dont understand how, but it's fine with me.
How do I change the color of the link to white/standard navbar font color?


Same thing here, 1 link left an its not even where I would like it. Any fix for this? Thanks ~D

dcw
14 Dec 2006, 22:34
I have smiles between each character. How do I get rid of that so you can read the rules.

DementedMindz
16 Dec 2006, 06:03
any way to have this when a user registers? cause im trying to limit members who make more then one name this way it would hopefully allow them to read the rules first before they get banned. also i know i didnt click install just wondering if it can do that before i do install it.

Alfa1
18 Dec 2006, 22:33
Does this add on work well with PHP5.2?

Kadi
20 Dec 2006, 23:41
Could you please help?

When I enable the user must accept before post option, the seconds dont countdown and there is no accept button to click.

Alfa1
21 Dec 2006, 00:11
Note that the counter does not work if members are connecting through a proxy server, as it blocks the script.

Kadi
21 Dec 2006, 02:21
Thanks for the reply.

Is it possible to get the accept button to show without the countdown? It doesnt show even when I set the seconds to 0.

Alfa1
21 Dec 2006, 02:30
Doesn't it show for one, few or for any members?

Kadi
21 Dec 2006, 02:41
I got a couple of complaints that members cant post because there is no accept button. When I tried it, it wasn't working for me either although it had previously.

I tried reinstalling and changing the number of seconds. I'm not a net pro so I just disabled it.

Alfa1
21 Dec 2006, 14:31
My guess is that this hack is working fine, but those members are connecting trough proxy or have their security fixed so tight that their browser stops the script from working. As I see it these users should connect to the forum in a normal way without proxy and can switch back to proxy after they have agreed to the rules.

For my site, this hack has done a lot of good.

KURTZ
22 Dec 2006, 00:39
great hack Cyb!

absolutely INSTALLED!

Kadi
23 Dec 2006, 11:07
The hack was working just fine and was also doing alot of good for my fourm. I just dont understand why the seconds froze and no accept button appeared.

I'll just leave that part disabled for now.

Thanks for your help Alfa1 :)

Been Told
04 Jan 2007, 18:50
Great mod, thanks :)

Tru2Chevy
05 Jan 2007, 23:07
Nice hack, installed.. I would like to see this hack extend to another level, the ability to create different rule for different forum

Sorry if it's a silly question... but... I can only setup ONE rule to agree? I would like to have individual forums rules, like the previous "rules agreement hack"

Is that possible? Thanks!

This looks like a great hack, but I too was looking for the same thing as taydu and ElForro. I have several forums on my board that I would like to create individual rules for, and we can't with this hack. Do you have any plans to add a feature like this in the future?

- Justin

Jurg
16 Jan 2007, 15:17
Is it possible to force guests to agree to the rules before they can view forums or posts using this mod, or is there another mod with which I can achieve this? I may have got this wrong but from reading this I gather that it only forces agreement before a user posts.

Any help please?

Jurg
17 Jan 2007, 18:23
Bump!

Anyone??

Hemanth
17 Jan 2007, 19:27
If you rename the admincp directory when clicking on 'Reset acceptance status' we are getting redirected to incorrect path. ie. to /admincp/options.php...

Please fix it. :)

Fawlty Adder
18 Jan 2007, 13:02
hi, I just installed this hack; slight problem .. when I click on 'forum rules' in the navbar, a new window opens and the hack seems to re-enter the whole link for my site (i.e. duplicating the URL) as below:

http://theaccountancyforums.com/forums/www.theaccountancyforums.com/misc.php?do=cfrules

how can I correct the above link?

thanks :)

Fawlty Adder
19 Jan 2007, 17:14
also the link on the navbar does not show for guests...

Techno05
21 Jan 2007, 04:33
Just installed this.... I love this option. Thank you for your time on this.

roger.kore
21 Jan 2007, 05:11
Works perfect here. Nice Work and thanks
As sugestion: Freeze or reload the counter if the rules page is not hilighted :D

Fawlty Adder
21 Jan 2007, 05:34
anyone know how to edit the link for 'forum rules' on the navbar?

also does the navbar link show up for guest? Because for me it doesnt... how do we make it viewable to guests?

thanks

Fawlty Adder
22 Jan 2007, 03:26
anybody help please?

Fawlty Adder
23 Jan 2007, 10:54
anybody out there that can help me out please? :up:

Martin-TMGRS
23 Jan 2007, 11:06
anyone know how to edit the link for 'forum rules' on the navbar?

also does the navbar link show up for guest? Because for me it doesnt... how do we make it viewable to guests?

thanksGoto your "Forum Options" and look for "Cyb - Advanced Forum Rules" in the list click it thats where you change the link name and no it don't show up for guests

Fawlty Adder
23 Jan 2007, 11:28
currenty the link shows as

<font color="#000000">Forum Rules</font>

(i.e. this is merely the text shown on the Navbar ... where do I find the actual link that this text links to?)

Martin-TMGRS
23 Jan 2007, 12:11
currenty the link shows as

<font color="#000000">Forum Rules</font>

(i.e. this is merely the text shown on the Navbar ... where do I find the actual link that this text links to?)
Go to "Search in Templates" and in the search type "cyb_frules_link" in there is where the link can be found

Fawlty Adder
23 Jan 2007, 12:37
thanks mate.. looks like I'm finally getting somewhere ... :) ...ok I found the above phrase in the template ... this is whats behind it:

<td class="vbmenu_control"><a href="$vboptions[bburl]/misc.php?do=cfrules">$vboptions[cybfrules_link_edit]</a></td>

I've changed this to

<td class="vbmenu_control"><a href="misc.php?do=cfrules">$vboptions[cybfrules_link_edit]</a></td>

and now it works! TA :)

Fawlty Adder
23 Jan 2007, 12:39
any idea as to how I'd make it viewable to guests? i.e. since I want them to see the rules before they sign up!

cheers

marcsmith73
23 Jan 2007, 21:09
Nice hack ...thanks!! Installed!

notorious
24 Jan 2007, 00:29
any idea as to how I'd make it viewable to guests? i.e. since I want them to see the rules before they sign up!

cheers

i added the rules link in my navbar so that guests can see the rules

find <if condition="$show['member']">

and add above $cyb_frules_link

Fawlty Adder
24 Jan 2007, 08:41
Hi

thanks for the suggestion.. :) .. funny thing is that my navbar template does not actually contain the '$cyb_frules_link' statement ... if I add that statement, I get TWO links in my navbar ...!

EDIT:

Aha!...but I finally found how to do it ..maybe its to do with the version of vbulletin I am using (3.64) .. all I did was delete the above 'if condition' surrounding '......vbphrase[user_cp]</a></td>"


cheers!

Belgrael
26 Jan 2007, 23:56
This is brilliant. Thanks heaps!!!:up:

Belgrael
27 Jan 2007, 00:03
One question. How can I replace the standard vb rules agreement during the registration process with the new rules?

edit: I don't want them to have to sign 2 rules agreements. Thanks.

dirty68
28 Jan 2007, 15:12
I cannot find vbphrase[user_cp]</a></td> in my navbar :mad: is there anywhere else i can put it?

roger.kore
03 Feb 2007, 20:07
Sugestion: Force user read it too before send pms

Alfa1
04 Feb 2007, 14:49
That would lead to problems with those users who are on proxy and experience problems with the submit button not appearing.

LadyBeth
12 Feb 2007, 13:21
One question. How can I replace the standard vb rules agreement during the registration process with the new rules?

edit: I don't want them to have to sign 2 rules agreements. Thanks.

I want to know this too. Thanks :)

LB

Been Told
19 Feb 2007, 09:57
Guests can't accept the rules. When they click "Accept", the rules simply reload. I want to allow guests to post too and I want them to have to accept the forum rules.

mat.knott
22 Feb 2007, 23:25
when my members try and view the rules, the accept button does not appear after any ammount of time. have tried setting it to 0 to make it visable but this dont wokr.

i want it so they have to accept but is there a way of making it so the button is there all the itme?

daddygrim
03 Mar 2007, 22:03
this sucks...UNINSTALLED until it is fixed!!!

Alfa1
03 Mar 2007, 23:34
this sucks...UNINSTALLED until it is fixed!!!
It works just fine for me. Thank you for your constructive comment!

daddygrim
03 Mar 2007, 23:42
It works just fine for me. Thank you for your constructive comment!

not for me...when guest try to register..it keeps going back to the rules screen.

Alfa1
04 Mar 2007, 05:53
Have you fully read this thread?

daddygrim
04 Mar 2007, 14:43
yep....ok?

Alfa1
05 Mar 2007, 01:05
What do you think about proxies, browser settings and java then?

daddygrim
05 Mar 2007, 01:31
thanks

Valter
06 Mar 2007, 06:09
v3.2 - Mar 06. 2007.
-New: User must accept Rules before can send PMs
-New: Options to choose what user can't do before accepting Rules
-New: Option to replace Registration Rules with this hack's one
-New: Better counter (with miliseconds, improved browser compatibility)
-Fixed some "invisible" bugs in code and improved compatibility with the latest vB releases

Upgrade Info: Import product XML, allow overwrite.

Wulfnoth
06 Mar 2007, 11:15
Nice! Look like the update works.

Biby
06 Mar 2007, 12:03
why now i can't choose the color for the link on navbar??

Valter
06 Mar 2007, 15:02
why now i can't choose the color for the link on navbar??
Yes, you can. Search for "Forum Rules" in Phrase Manager. It's moved there...

daddygrim
06 Mar 2007, 15:21
Automatically add "Forum Rules" to Navbar UMMM I clicked it to enable it..but its not showing up.

Elenna
06 Mar 2007, 16:00
v3.2 - Mar 06. 2007.
-New: User must accept Rules before can send PMs
-New: Options to choose what user can't do before accepting Rules
-New: Option to replace Registration Rules with this hack's one
-New: Better counter (with miliseconds, improved browser compatibility)
-Fixed some "invisible" bugs in code and improved compatibility with the latest vB releases

Upgrade Info: Import product XML, allow overwrite.


AWESOME hack, thanks every so much!! This is EXACTLY what I was looking for.

This is a dumb question - if I don't have the registration use the same "rules" as these, could I use this as an "Announcement" kind of hack, where people must read this "announcement" before posting, etc? I realize that this doesn't keep a history of rules, and would only display the most recent 'announcement' to new users.

Just making my brain think too hard without coffee!

/me will install when she gets home!

Fawlty Adder
07 Mar 2007, 07:05
Hi

how can we leave a line between each forum rule?

thanks!

Valter
07 Mar 2007, 10:45
Hi

how can we leave a line between each forum rule?

thanks!
Press "Enter" LOL.

Kadi
07 Mar 2007, 14:20
Thanks. I like the replacing default vb rules option. How do I increase font size there?

Also, I previosly had problems with the accept button not showing up for some members. Will it show with this upgrade?

(I have a Q on the AFS thread too :o )

T_Richardson
08 Mar 2007, 19:56
When I Reset acceptance status for all registered members, it brings me to the smileys page and doesn't reset me to accept again.
Also, when I clicked in my profile to force acceptance, it does the same as above.

It worked fine the first time for me. I didn't test it with any of my members yet though. It could be because I'm the super admin.

Any thoughts?

Edit: this is the link when I force acceptance misc.php?do=forceusercfrules&u=3

Valter
08 Mar 2007, 23:14
If you are in "excluded groups" in hack settings (as admin you ARE by default) it will never ask you to accept Forum Rules.

Try to remove admin usergroup (#6) from excluded usergroups and then see if Forum Rules page contains green fields with acceptance form.

T_Richardson
08 Mar 2007, 23:27
If you are in "excluded groups" in hack settings (as admin you ARE by default) it will never ask you to accept Forum Rules.

Try to remove admin usergroup (#6) from excluded usergroups and then see if Forum Rules page contains green fields with acceptance form.Works now. My usergroup was other than #6, I added myself to the admin usergroup and all is fine.

Great mod by the way! :up: :up:

d3v1L
09 Mar 2007, 07:18
Great Mod. But it increased spam on my boards. User were just trying to spam away till the minimum post count is met! I have been busy banning since morning.

itsblack
09 Mar 2007, 10:13
Great mod, installed, thanks a lot.

KURTZ
09 Mar 2007, 15:12
updated!

Veer
10 Mar 2007, 20:47
version 3.1 was working fine..

I updated to latest version but my forum is not opening,
I disabled the hack and site is fine..

so whats the problem? :(

captainslater
13 Mar 2007, 00:18
Hy,

some improvement:

User must re-accept forum rules after eg. 3 months?
Exclude & include usergroups from this.

Makc666
15 Mar 2007, 16:20
There is a problem with Replace Registration Rules with this one function.

Default forum rules in "$vbphrase[forum_rules_description]" translation string is:

<p><strong>Forum Rules</strong></p> <p>Registration to this forum is free! We do insist that you abide by the rules and policies detailed below. If you agree to the terms, please check the 'I agree' checkbox and press the 'Register' button below. If you would like to cancel the registration, click <a href="{1}">here</a> to return to the forums index.</p> <p>Although the administrators and moderators of {2} will attempt to keep all objectionable messages off this forum, it is impossible for us to review all messages. All messages express the views of the author, and neither the owners of {2}, nor Jelsoft Enterprises Ltd. (developers of vBulletin) will be held responsible for the content of any message.</p> <p>By agreeing to these rules, you warrant that you will not post any messages that are obscene, vulgar, sexually-oriented, hateful, threatening, or otherwise violative of any laws.</p> <p>The owners of {2} reserve the right to remove, edit, move or close any thread for any reason.</p>

When you enable Replace Registration Rules with this one function
and go to Registration page
http://your.forum.com/register.php
all lines in "new" rules will be separated with double/triple paragrah.

Like this one:
Test line 1.



Test line 2.



Test line 3.

But in Forum Rules field these lines are printed like this one:
Test line 1.

Test line 2.

Test line 3.

On page:
http://your.forum.com/misc.php?do=cfrules
these lines look normal:
Test line 1.

Test line 2.

Test line 3.

Bree
16 Mar 2007, 03:13
*Installed* Thank you bunches!! That was easy as pie, I truly appreciate that LOL vBulletin 3.6.5 http://forum.smnlikdat.com/misc.php?do=cfrules

Also notice the different in the paragraph being spaced on the rules page but it didn't space the rules within the list like that so I'm good... http://smnlikdat.com/Forum/register.php Looks pretty ok to me... at least in IE (don't know about other browsers as I do not use them)..

Anyways, again thanks for a great mod!! Always -Bree

ThePapabear
16 Mar 2007, 19:17
Hello!

I actually installed the newest version of this hack, an promptly running into a problem:
Countdown doesnt work. Neither on Firefox 1.5.0.10 nore on IE7, running on Vista. Even if i set the security setting to lowest available settings.
No Proxy is used.

And then i have a question:
Is it possible to force the Users to accept the rules, when they enter the index?
This would be very fine, because we have installed rules completely new and everybode will have to accept them and i think, this would be a much better place for this step.

Thanks a lot for any help!

greets
ThePapabear

QiK
22 Mar 2007, 22:20
Hello!

I actually installed the newest version of this hack, an promptly running into a problem:
Countdown doesnt work. Neither on Firefox 1.5.0.10 nore on IE7, running on Vista. Even if i set the security setting to lowest available settings.
No Proxy is used.

I got the same problem. For the first time it worked very well... but after I have translated this hack to german, countdown doesn't work anymore.

BobbyBig
22 Mar 2007, 23:32
Very nice work Cybernetic, like everytime :)

I found some Bugs/Errors:

- The "Accept" Button isnt effected by the CSS, even it has set class="button". I dont see why that happens. EDIT: It happens because the javascript which changes the Value for the counter also resets the css calss. So the class must also be set when changing the Value!

- Forum Rules, Note1 , and Note2 are not Phrases. Any way to change that to Phrases ? (we are using English & German for example)

- The Button Counter creates some Problems sometimes, the Button never becomes available.

regards

calord
24 Mar 2007, 19:17
Awesome hack, small problem :)

Install went great, configured it and set the options for who to show the rules to and when to show it to them.

I went to post a thread on my forum after install (to test it), and all I get is a blank page. This happens in any forum I test it in. The forum is there, but it disappears when I try to post a new thread. I can reply to existing threads. I cannot create a new thread. I am admin.

Using the latest VB 3.6.5 and a custom template from vbskinworks, if that helps you figure out what the problem is.

Help!

EDIT: Also the "OPTIONAL" instructions posted with your mod are inapplicable; there is no "$vbphrase[faq]" in the navbar template, for starters. There's lots of other $vbphrase but not that one.

daddygrim
27 Mar 2007, 04:43
Time (in seconds) user must wait before "Accept" button is enabled this feature doesnt work.

rjmjr69
28 Mar 2007, 17:39
I really want to install this hack. I must have all of your other hacks installed.
But I really really really wish you could make this apply to separate forums threads posts.
There is an older hack that allowed you to set the rules to display in any forum or multiples thread etc etc etc.
I've seen this feature requested MANY times in this thread is it possible or out of the question?
Thank you CYB for all your hard work as usual you have another hit on your hands. If you add the suggested feature you have a MOTM for sure.

One other thing. PLEASE READ THE WHOLE THREAD PEOPLE MOST PROBLEMS ARE FIXED YOU JUST HAVE TO FIND IT BY READING!!

Hate when people ask the SAME question 15 times when most the time the answer is a few reply's up.........