vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - VSa - Advanced Forum Rules (https://vborg.vbsupport.ru/showthread.php?t=236069)

btedition 01-15-2014 10:32 AM

Not working here on 4.2.0!

vsarules page taking me to Smilies page and I'm not able to edit the rules as well. Something is wrong for sure there.

dariyos 03-18-2014 12:50 PM

works fine,

need only a german translation for this...

does it have a german language pack?

edit: solved

dariyos 05-20-2014 01:29 PM

is there a function that shows, who accepted the rules and who not?

it should generate a list, that shows who accepted it or who not..

AusPhotography 05-21-2014 10:17 PM

Quote:

Originally Posted by dariyos (Post 2498600)
is there a function that shows, who accepted the rules and who not?

it should generate a list, that shows who accepted it or who not..

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.

AusPhotography 05-24-2014 07:29 AM

Just upgraded to PHP 5.4 and the edit rules does not work :(
The edit window is empty

This change fixed it... (adding ,ENT_COMPAT | ENT_HTML401,"ISO-8859-1" to the htmlspecialchars call -- don't know why it works??
See: http://docs.php.net/manual/en/functi...ecialchars.php

PHP Code:

            if (($_REQUEST['do'] == 'vsaafr_addedit') AND $vbulletin->userinfo['userid'] AND is_member_of($vbulletin->userinfo,6))
            {
                
$vsafr_getrule_set $vbulletin->input->clean_gpc('r''cfrset'TYPE_UINT);
                if (
$vsafr_getrule_set>0)
                {
                    
$vbulletin->db->hide_errors();
                    
$vsafr_getrule $vbulletin->db->query_first("
                        SELECT id, name, rules
                        FROM " 
TABLE_PREFIX "vsa_frules AS vsa_frules
                        WHERE id = '" 
$vbulletin->db->escape_string($vsafr_getrule_set) . "'
                    "
);
                    
$vsafr_getrule['name'] = htmlspecialchars($vsafr_getrule['name'],ENT_COMPAT ENT_HTML401,"ISO-8859-1");
                    
$vsafr_getrule['rules'] = htmlspecialchars($vsafr_getrule['rules'],ENT_COMPAT ENT_HTML401,"ISO-8859-1");
                    
$vbulletin->db->show_errors();
                } 

Edit: The two htmlspecialchars would seem to be pointless anyway

forums55 06-01-2014 01:32 PM

Quote:

Originally Posted by dariyos (Post 2488017)
works fine,

need only a german translation for this...

does it have a german language pack?

edit: solved

How did you solve this? I'm trying to translate the rules phrases but I cannot find the VSA phrases in the Phrase Manager. Need support please!

forums55 06-02-2014 06:47 PM

This mod doesn't have the vb rawphrase so I cannot seem to be able to translate it. Should I edit the whole Mod ?

AusPhotography 06-03-2014 02:17 AM

Given the rules themselves are an editiable text, there is very little text that can be phrased.

In other words it is a single language mod

forums55 06-03-2014 01:28 PM

Quote:

Originally Posted by AusPhotography (Post 2500489)
Given the rules themselves are an editiable text, there is very little text that can be phrased.

In other words it is a single language mod

Thanks.

Sad though, otherwise is a nice mod.

AusPhotography 06-04-2014 01:42 AM

You can set up multiple rule sets.
You could do the following:
1. Set up the default set with links to each language specific set of rules
2. Create a rule set for each language you need

You can link each rule by using a syntax like:
.../misc.php?do=vsarules&cfrset=7
The &cfrset=X (X = a number) allows a specific set to be linked.

We use multiple rule sets on our site.


All times are GMT. The time now is 08:49 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.01781 seconds
  • Memory Usage 1,753KB
  • 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
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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