Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
VSa - Advanced Forum Rules Details »»
VSa - Advanced Forum Rules
Version: 5.0.8, by Valter Valter is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 02-16-2010 Last Update: 09-16-2012 Installs: 1259
DB Changes Uses Plugins Auto-Templates
 
No support by the author.

Info:
Advanced Forum Rules system for vBulletin.

Main Features:
-Rules shown on separate page (no file uploads required)
-Several sets of rules can be created and applied to individual forums
-Choose between BB codes and HTML in rules
-Options to force users to accept Forum Rules before can view forums or threads, post replies, PMs, or e-mails...
-Option to replace registration rules with this product ones
-Option to reset user acceptance status when infraction is received

View screenshots.

Installation:
-Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]

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

Versions:
v1.0 - Oct 06. 2005.
-First version
v4.0.2 - May 08. 2009.
-Latest vB 3.x version
v5.0 - Feb 17. 2010.
-Updated for vB 4
-Code optimized, some bugs fixed
v5.0.1 - Apr 18. 2010.
-Fixed: Link to Rules in forumdisplay
-Fixed: Ordered list parsing in Rules
v5.0.2 - Nov 21 2010.
-Fixed: Uncached template
-Fixed: Style issues on Rules page
-Fixed: Style issues on Manage Rules pages
-Fixed: Minor bugs
v5.0.3 - May 04 2011.
-Fixed: Security bug
v5.0.4 - May 06 2011.
-Fixed: vbseo users not able to switch rules
v5.0.5 - May 18 2011.
-Fixed: Security bug
-Improved rule acceptance check
v5.0.6 - May 22 2012.
-Compatible with vBulletin 4.2
-Increased number of maximum rule sets
-Fixed some minor bugs
v5.0.7 - May 26 2012.
-Fixed: Navbar link
v5.0.8 - Sep 17 2012.
-Fixed: Incorrect acceptance status for some users

Download Now

File Type: zip VSa - Advanced Forum Rules v5.0.8.zip (12.7 KB, 2238 views)

Screenshots

File Type: jpg rules.jpg (148.0 KB, 0 views)
File Type: jpg redirect.jpg (38.1 KB, 0 views)
File Type: jpg user.jpg (58.4 KB, 0 views)
File Type: jpg manage.jpg (119.5 KB, 0 views)
File Type: jpg apply.jpg (86.3 KB, 0 views)
File Type: jpg acp.jpg (292.3 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #552  
Old 07-18-2016, 05:26 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Regarding your question about displaying the rules in the user-selected language, what I think I would do is use HTML in the defined rules, where each set of rules in the different languages is wrapped in a div element having a classname that is the language. For example:

HTML Code:
<div class="english">
	English rules here...
</div>

<div class="german">
	German rules here...
</div>
Then create a plugin hooked at "parse_templates" as follows:

PHP Code:
if (THIS_SCRIPT === 'misc')
{
    if (
$vbulletin->userinfo['languageid'] == '0')
    {
        
$css '.english {display: block;}.german {display: none;}';
    }
    else
    {
        
$css '.english {display: none;}.german {display: block;}';
    }

    
$template_hook['headinclude_css'] .= '<style>' $css '</style>';

Now, as to why you aren't able to edit your rules, I don't know. I am able to edit them on my dev and production sites. If you want, create a temporary admin account for me, and PM the login credentials to me, and I will be glad to come to your site and see if I can get both issues resolved.
Reply With Quote
  #553  
Old 07-18-2016, 06:32 AM
dariyos dariyos is offline
 
Join Date: Nov 2011
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks a lot!

it works fine,
language ID = 4 is my english language..

Code:
if (THIS_SCRIPT === 'misc')
{
    if ($vbulletin->userinfo['languageid'] == '4')
    {
        $css = '.german {display: block;}.german {display: none;}';
    }
    else
    {
        $css = '.english {display: none;}.english {display: none;}';
    }

    $template_hook['headinclude_css'] .= '<style>' . $css . '</style>';

And the empty field is only because I putted html code to format the text..

my text shows like this:

Code:
<br>
<font size="3"><b>1. Verhalten im Forum:</b></font><br>
<br>
<b>?1 Seid freundlich und hilfsbereit zueinander</b><br>
Wenn du nichts Positives schreiben kannst, dann schreibe lieber nichts.<br>
When I edit this, it shows nothing.

when I put a text without html code, the text will be displayed, but without formatting.
Reply With Quote
  #554  
Old 07-18-2016, 06:41 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If the languageid is 4 for English, then you want:

PHP Code:
if (THIS_SCRIPT === 'misc')
{
    if (
$vbulletin->userinfo['languageid'] == '4')
    {
        
$css '.english {display: block;}.german {display: none;}';
    }
    else
    {
        
$css '.english {display: none;}.german {display: block;}';
    }

    
$template_hook['headinclude_css'] .= '<style>' $css '</style>';

Can you post a screenshot of your product settings?
Reply With Quote
  #555  
Old 07-18-2016, 07:28 AM
dariyos dariyos is offline
 
Join Date: Nov 2011
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks, it works.

These are my settings:

Reply With Quote
  #556  
Old 07-18-2016, 08:11 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, try disabling BB Codes in rules (that's the way I have mine set)...see if that allows you to edit.
Reply With Quote
  #557  
Old 04-17-2017, 06:29 PM
Manipulation Manipulation is offline
 
Join Date: Mar 2012
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to have this added on to the top bar above the navbar?
Reply With Quote
  #558  
Old 05-21-2018, 06:51 AM
FrankP FrankP is offline
 
Join Date: Jan 2005
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AusPhotography View Post
Works fine for us on vB4.2.2.

You can generate you own reports via a database query, there are extra fields on the user table.

Soory, but may I ask how this query may look like? I can't get it when scanning the columns of the user table. I saw some "ALTER TABLE" in the products xml, but I cannot find the columns in the database (4.2.2-5). But the add on seems to work, at least it's shown only once, and this is all I need. But it would be helpful to have a chance to check if/when a specific user accepted the rules.

Many thanks in advance!
Reply With Quote
  #559  
Old 05-23-2018, 08:45 PM
Abominus Abominus is offline
 
Join Date: Apr 2007
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could this be used for the "General Data Protection Regulation - GDPR"?
Reply With Quote
  #560  
Old 05-23-2018, 11:18 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Abominus View Post
Could this be used for the "General Data Protection Regulation - GDPR"?
Yes but it's easier just to edit the FAQ and put a link in the footer or header.
Reply With Quote
Благодарность от:
puertoblack2003
  #561  
Old 05-26-2018, 08:59 AM
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Abominus View Post
Could this be used for the "General Data Protection Regulation - GDPR"?
Yep with some changes to the phrases it works quite well for GDPR policy consent, it's not perfect, but it's the best option atm without having something custom coded.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:21 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07457 seconds
  • Memory Usage 2,373KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_html
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (13)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (7)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete