vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Cyb - Advanced Forum Rules (https://vborg.vbsupport.ru/showthread.php?t=201312)

speedway 01-30-2010 12:19 AM

Just upgraded to 3.84PL2 and the Accept button has disappeared upon upgrade to CYB rules 4.02.

As I get around 20 - 30 new members per day I would very much appreciate someone suggesting where I should be looking as our rules are needed. Barring that, how do I keep the rules active WITHOUT forcing acceptance? That would do until I can sure the no button problem....

Cheers
speedway

Neptun 01-31-2010 11:47 AM

i wait for the vb4 ported relase ... this is a great mod - the other hacks at the moment for vb4 you can forget definitly

dacho 02-02-2010 07:28 AM

Quote:

Originally Posted by Neptun (Post 1971186)
i wait for the vb4 ported relase ... this is a great mod - the other hacks at the moment for vb4 you can forget definitly

Me also :)
It would be nice if will be thinking about SEO, and Google could gain automatic approval rules to scan the contentst

solarweb 02-07-2010 06:14 AM

I´m waiting for the v4.0 compatible version too. Maybe the more useful mod i´ve ever seen.

DaPro 02-14-2010 03:48 PM

Hey Valter, I see you have upgraded your other mods, will this one be coming over as well bud?

inciarco 02-14-2010 05:31 PM

To Include the Accepted Rules on the Profile Statistics, (would be a nice addition on your next Update Cybernetec;)):

Create a Plugin:

Product: vBulletin (I select this so that on an Update the Plugin don't get Deleted)
Hook Location: member_profileblock_fetch_unwrapped
Title/Name: Cyb - Advanced Forum Rules - MI - Accepted Rules in Profile Profile Statistics (or the name you want)
Execution Order: 5
Plugin Active: Yes

Quote:

Note to the PHP Code: (Choose the Usergroups you don't want the Accepted Rules to be Diplayed to, currently '1,8', simply separate them with commas)
PHP Code:

Code:

if (!is_member_of($vbulletin->userinfo, explode(',','1,8')))
                {

                        $cyb_frules_readsets_2 = $userinfo['cybfrules_sets'];


if ($userinfo['cybfrules_sets']!='0')
                        {

                        $cybfr_getrulesets_2 = $vbulletin->db->query_read("
                                SELECT id, name
                                FROM " . TABLE_PREFIX . "cyb_frules AS cyb_frules
                                WHERE id IN ($cyb_frules_readsets_2)
                                ORDER BY id ASC
                        ");
                        while ($cybfr_ruleset_2 = $this->registry->db->fetch_array($cybfr_getrulesets_2))
                        {
                                $cyb_frules_readitem_2 .= "<tr><td class=\"statistics_group\"><b>".$cybfr_ruleset_2['id'].":</b> ".$cybfr_ruleset_2['name']."</td></tr>";
                        }


                                $cyb_frules_force_2 = '        <fieldset class="statistics_group">
                <legend>Accepted Rules</legend>
                <span class="shade"><table cellpadding="0" cellspacing="0" border="0" width="100%">'.$cyb_frules_readitem_2.'</table></span>
        </fieldset>';

                                eval('$template_hook[\'profile_stats_last\'] .= "$cyb_frules_force_2";');

                        }

                }


Option 2:

If you want the Accepted Rules to be Displayed to All Usergroups, simply Choose the following code:

PHP Code:

Code:

                        $cyb_frules_readsets_2 = $userinfo['cybfrules_sets'];


if ($userinfo['cybfrules_sets']!='0')
                        {

                        $cybfr_getrulesets_2 = $vbulletin->db->query_read("
                                SELECT id, name
                                FROM " . TABLE_PREFIX . "cyb_frules AS cyb_frules
                                WHERE id IN ($cyb_frules_readsets_2)
                                ORDER BY id ASC
                        ");
                        while ($cybfr_ruleset_2 = $this->registry->db->fetch_array($cybfr_getrulesets_2))
                        {
                                $cyb_frules_readitem_2 .= "<tr><td class=\"statistics_group\"><b>".$cybfr_ruleset_2['id'].":</b> ".$cybfr_ruleset_2['name']."</td></tr>";
                        }


                                $cyb_frules_force_2 = '        <fieldset class="statistics_group">
                <legend>Accepted Rules</legend>
                <span class="shade"><table cellpadding="0" cellspacing="0" border="0" width="100%">'.$cyb_frules_readitem_2.'</table></span>
        </fieldset>';

                                eval('$template_hook[\'profile_stats_last\'] .= "$cyb_frules_force_2";');

                        }

My Best Regards.

:)

Yosef Sh 03-30-2010 04:15 PM

I cant manage rules ..
when i enter Manage Rules or Apply to Forums i get smiles page

andie215 04-01-2010 08:40 AM

Ive just installed it on 3.8.5 and i cant see how to unselect a forum that i selected earlier. There isnt a tick on the box where i have previously selected so how do i deselect please ?

Great mod thx..

Tettinntil 05-08-2010 04:02 PM

The "Forum Rules" link appears twice in my navbar. Any quick fix for that?

Bounce 05-12-2010 09:46 PM

Quote:

Originally Posted by Neptun (Post 1971186)
i wait for the vb4 ported relase ... this is a great mod - the other hacks at the moment for vb4 you can forget definitly

Quote:

Originally Posted by solarweb (Post 1976462)
I?m waiting for the v4.0 compatible version too. Maybe the more useful mod i?ve ever seen.

Quote:

Originally Posted by DaPro (Post 1982223)
Hey Valter, I see you have upgraded your other mods, will this one be coming over as well bud?

hope so, same, waiting on vb4 release, defo up there with the best this one.


All times are GMT. The time now is 06:06 AM.

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.02029 seconds
  • Memory Usage 1,754KB
  • 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
  • (5)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