vb.org Archive

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

Chimpie 07-12-2008 03:34 PM

Quote:

Originally Posted by ShackMaster (Post 1573625)
I think that may have been my issue... upgrading to Patch Level 1 of vBulletin. I am not sure, but it is shortly after that when a user had the issue and I logged in as various users and noticed no one could post and the submit button was hung.

I uninstalled the mod (of course I did save everything first) and then reinstalled it... and all seems to be okay now. I also did not have all the usergroups listed in the field to disable the mod for certain usergroups, so I added those. Hopefully that will help prevent situations like this again. Fortunately it was almost 4am and not many users were online posting at the time.

So an uninstall and fresh install worked for you?

ShackMaster 07-12-2008 05:28 PM

Back to square one... that is obviously not the issue.

The submit button freezes when set to a time limit. If the time limit is disabled and the submit button is available, clicking it does nothing and does not free up the user to post.

Disabled for now... hopefully the bug will be fixed. Thanks!

Ingress 07-12-2008 06:12 PM

Do you use the default language (i.e. English) or do you use phrases?

Ingress

ShackMaster 07-12-2008 06:39 PM

Our default language is English, but we do use phrases as well.

I just tried reinstalling it again, but no luck.

Apparently it has something to do with the vB 3.7.2 Patch Level 1 update. Everything was working fine until the update.

Ingress 07-12-2008 07:40 PM

Quote:

Originally Posted by ShackMaster (Post 1573705)
Our default language is English, but we do use phrases as well.

Did you use any custom phrases for this hack? If so, then please have a look at this post of mine, maybe it's of some help for you.

Ingress

Chimpie 07-12-2008 07:58 PM

Quote:

Originally Posted by Ingress (Post 1573737)
Did you use any custom phrases for this hack? If so, then please have a look at this post of mine, maybe it's of some help for you.

Ingress

Can you copy and paste your code for the entire template here so we can try a copy and paste of our own to see if it will fix it?

I looked for the not_agreed part and everything looks fine (').

Thanks!

ShackMaster 07-12-2008 08:03 PM

I didn't realize you were asking about custom "English" phrases in your previous post. Now I understand what you were asking. But, NO... All of our phrases for this mod are standard phrases. Every thing is standard other than the actual language for the rules, but again, it was all working fine until the PL1 update from vBulletin.com. There has to be some sort of conflict somewhere.

Ingress 07-12-2008 08:54 PM

Quote:

Originally Posted by Chimpie (Post 1573748)
Can you copy and paste your code for the entire template here so we can try a copy and paste of our own to see if it will fix it?

Which template do you mean exactly? I didn't alter any templates for this hack to work since it does everything automatically.

Quote:

Originally Posted by ShackMaster (Post 1573749)
I didn't realize you were asking about custom "English" phrases in your previous post. Now I understand what you were asking. But, NO... All of our phrases for this mod are standard phrases. Every thing is standard other than the actual language for the rules, but again, it was all working fine until the PL1 update from vBulletin.com. There has to be some sort of conflict somewhere.

With my forum there was only a problem if I entered a translation for the given hack-specific phrase. I also upgraded to 3.7.2 PL1, had several registrations since then and the users ARE able to post - I doubt there's a specific problem with PL1.

Did you disable all other hacks to verify they don't interfere with this one? Is it all users of yours that have the problem or just a part of them? Then maybe it's worth a try and ask them if they all use the same Virscan / Anti-Ad / Privacy-Proxy, they often cripple javascript and may cause such behaviour.

Cyb, you should take a serious look at this, maybe there's still something other than the phrase thing that may cause the javascript to malfunction.

Ingress

ShackMaster 07-12-2008 09:20 PM

I did add a couple of plugins after I installed this mod, but I disabled each one of them and still had the problem. Maybe I should disable them, reinstall this mod and see if it works... and if so, reinstall the other plugins.

It is any new user. I can login as any of them and the submit button will not work. I also registered as a new user myself to test it, since it had been working previously for me with this same new user that I kept deleting and re-registering with again and again to test the mod.

Ingress 07-13-2008 12:13 PM

Which browser(s) do you use for your tests? Since it's yourself everytime that does the testing (that is what I understood) we should be certain about it's not a client issue.

Hey, 463 installs of this mod and it's only us three who observed the error. There must be something in common although I managed to fix it for my board.

Ingress

Chimpie 07-13-2008 12:32 PM

Quote:

Originally Posted by Ingress (Post 1573777)
Which template do you mean exactly? I didn't alter any templates for this hack to work since it does everything automatically.

You said you changed " to ' or something like that.

Ingress 07-13-2008 01:48 PM

That was just in a translation of a phrase.

Ingress

ShackMaster 07-13-2008 05:40 PM

Quote:

Originally Posted by Ingress (Post 1574182)
Which browser(s) do you use for your tests? Since it's yourself everytime that does the testing (that is what I understood) we should be certain about it's not a client issue.

Hey, 463 installs of this mod and it's only us three who observed the error. There must be something in common although I managed to fix it for my board.

Ingress

A member brought this to my attention. I then logged in as this member and it gave me the same problem. I logged in randomly as a couple of other members and still had the same problem. I decided then to register myself as a new member to test it. I have tested it in IE7 and FF from my laptop at home and my work computer in another city. I have reinstalled it twice. I am about out of options on what to do or try next.

For it to be working fine and then after PL1 it start acting up is strange to me.

ShackMaster 07-14-2008 02:39 AM

Still puzzling me.

I went back and disabled all of the plugins that I installed after this one and even a few before this one. Uninstalled this plugin and re-installed it. Still the Submit button does nothing and freezes if I place a countdown on it.

When I mouse over it shows the link, "misc.php?do=cfrulesagree"

The link is already "forums/misc.php?do=cfrules" ... if I add "agree" to the end and enter, all works well. So the problem is that the submit button is not acting as an enter click.

ShackMaster 07-14-2008 03:33 AM

It's a temporary fix, but could be permanent I suppose. I altered the cyb_frules as follows:

Code:

<td class="alt1" align="center" style="background-color:#DEF3BD;color:black;">
<phrase>$vbphrase[cybfrules_iagree_note]</phrase>
<a href="http://www.hometheatershack.com/forums/misc.php?do=cfrulesagree">
<img src="http://www.hometheatershack.com/images/submitbutton.gif" border="0" alt="Press this button!" />
</a>
</td>

I basically just made my own submit button with the link that clears the new member. So far it seems to be working okay.

Xenofox 07-14-2008 10:24 AM

I think i have this working so that it doesn't require JS anymore.

This removes the countdown timer completly.

Code:

        $stylevar[htmldoctype]
        <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
        <head>
        $headinclude
        <title>$vboptions[bbtitle] - $vbphrase[cybfrules]</title>
        <if condition="(!$cfrulesagreed AND $cfrshowaccform)">
                <script language="JavaScript" type="text/javascript">
                        function Cafr_checkAgree(form) {
                                if (form.cafr_agree.checked)
                                {
                                        form.submit();
                                }
                                else
                                {
                                        alert("$vbphrase[cybfrules_not_agreed]");
                                }
                        }
                        <if condition="($vboptions[cybfrules_time]!='')">
                                var cyb_ms = 0;
                                var cyb_s = $cyb_counter_time;
                                function Cafr_buttonCounter() {
                                        cfrules_counter = fetch_object('cfrules_counter');
                                        if (cyb_ms <= 0)
                                        {
                                                cyb_ms = 9;
                                                cyb_s -= 1;
                                        }
                                        if (cyb_s <= -1)
                                        {
                                                cyb_ms = 0;
                                                cyb_s += 1;
                                                cfrules_counter.disabled = false;
                                                cfrules_counter.value = "$vbphrase[submit]";
                                        } else {
                                                cyb_ms -= 1;
                                                cfrules_counter.disabled = true;
                                                cfrules_counter.value = cyb_s + "." + cyb_ms;
                                                setTimeout("Cafr_buttonCounter()", 100);
                                        }
                                }
                        </if>
                </script>
        </if>
        </head>
        <body <if condition="(!$cfrulesagreed AND $cfrshowaccform)">onload="Cafr_buttonCounter();"</if>>
        $header
        $navbar

        <if condition="(!$cfrulesagreed AND $cfrshowaccform)">
                <form action="misc.php?do=cfrulesagree" name="agree_cfrules" id="agree_cfrules" method="post" onsubmit="return false;">
                <input type="hidden" name="securitytoken" value="$cybfr_sectok" />
        </if>
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
                <tr>
                        <td class="tcat" align="$stylevar[left]"><if condition="($bbuserinfo[usergroupid]==6)"><a class="smallfont" style="float:$stylevar[right]" href="$admincpdir/options.php?do=options&dogroup=cfrules#editrules" title="$vbphrase[cybfrules_edit]" accesskey="E" target="_blank">$vbphrase[cybfrules_edit]</a></if>$vbphrase[cybfrules]</td>
                </tr>
                <if condition="(!$cfrulesagreed AND $cfrshowaccform)">
                        <tr>
                                <td class="alt1" align="center" valign="middle" style="background-color:#DEF3BD;color:black;"><phrase 1="$bbuserinfo[username]">$vbphrase[cybfrules_agree_note]</phrase></td>
                        </tr>
                </if>
                <if condition="($vboptions['cybfrules_note1']!='')">                                       
                        <tr>
                                <td class="panelsurround" align="center">
                                        <div class="panel" align="$stylevar[left]">
                                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
                                                        <tr>
                                                                <td class="smallfont" align="$stylevar[left]">
                                                                        $vboptions[cybfrules_note1]
                                                                </td>
                                                        </tr>
                                                </table>
                                        </div>
                                </td>
                        </tr>
                </if>
                <tr>
                        <td class="panelsurround" align="center">
                                <div class="panel" align="$stylevar[left]">
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
                                                <tr>
                                                        <td class="smallfont" align="$stylevar[left]">
                                                                $vboptions[cybfrules_rules]
                                                        </td>
                                                </tr>
                                        </table>
                                </div>
                        </td>
                </tr>
                <if condition="($vboptions['cybfrules_note2']!='')">                                       
                        <tr>
                                <td class="panelsurround" align="center">
                                        <div class="panel" align="$stylevar[left]">
                                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
                                                        <tr>
                                                                <td class="smallfont" align="$stylevar[left]">
                                                                        $vboptions[cybfrules_note2]
                                                                </td>
                                                        </tr>
                                                </table>
                                        </div>
                                </td>
                        </tr>
                </if>
                <if condition="(!$cfrulesagreed AND $cfrshowaccform)">
                        <tr>
                                <td class="alt1" align="center" valign="middle" style="background-color:#DEF3BD;color:black;"><input type="checkbox" name="cafr_agree" value="1" />&nbsp;<phrase 1="$vboptions[bbtitle]">$vbphrase[cybfrules_iagree_note]</phrase>&nbsp;&nbsp;<input type="submit" class="button" style="width:80px;" value="$vbphrase[submit]" onclick="Cafr_checkAgree(this.form);" /></td>
                        </tr>
                </if>
        </table>
        <if condition="(!$cfrulesagreed AND $cfrshowaccform)">
                </form>
        </if>
        <br />
        $footer
        </body>
        </html>


Crystal Shards 07-18-2008 04:30 PM

I am trying to edit the template for Blaze on my site (http://mercuryice.com)... If you change the template to Blaze you can see my problem--in the header the background is black, and I want to change that, but I can't find the right code anywhere.

http://img178.imageshack.us/img178/5...problemvf4.jpg

~Crystal

Ingress 07-18-2008 05:41 PM

The upper link does use the same CSS as the lower one. You need to deactivate "Automatically add "Forum Rules" to Navbar" in the options and add the links manually. While doing this assign the according CSS classes to the links for them to be styled differently from each other.

For information about how to manually add the links have a look into info.txt. It's only a $cyb_frules_link that must be added to the templates.

Ingress

Crystal Shards 07-18-2008 05:41 PM

Thank you.

~Crystal

Makc666 07-18-2008 08:47 PM

Cybernetec, 1st, thanks for "Option to change "Forum Rules" link color or set to style's default".
2nd, it will be nice if you move the phrase and the color to the new template.

Because for example on my forum every link in navtab has its own icon.
And every style has its icons.
So if your product had one more template with "Forum Rules" phrase it will be wonderfull.
Because in the current varinat of how the "Forums Rules" is coded it is not so easy to add some icon or decoration separate for every style.

If you didn't understand we, tell we I will try to say in other words.

Thank, Maxim

Valter 07-18-2008 09:08 PM

It can be done but I don't like idea to make template for one phrase only.

What about putting some rules icon (transparent gif) which will be fine for all styles inside the phrase?

cygy2k 07-20-2008 06:40 PM

Great mod!

Can you tell me what type of load on the server this would create? Number of queries per page load?

Valter 07-20-2008 07:55 PM

Quote:

Originally Posted by cygy2k (Post 1580032)
Great mod!

Can you tell me what type of load on the server this would create? Number of queries per page load?

One simple query when user click to accept forum rules on Rules page. No other queries are executed on any page.

cygy2k 07-20-2008 09:31 PM

Thank you very much.

cygy2k 07-20-2008 09:32 PM

I am having a problem. When I enforce the rules, it works correctly but the button to accept the rules doesn't do anything when a user clicks on it. This happens with or without the countdown function working and happens on both Safari 3.1.2 and FireFox. 3.0.1.

shotkey 07-25-2008 03:18 PM

I know this was asked before, but I didn't see an answer - right now the rules show up in two different places 1- in the original registration window (not so pretty) , and 2 - on a separate page (nice looking) accessible from the nav bar "Forum Rules" link.

I know this doesn't apply to sites whos rules in the registration window are different from their forum rules - however when the rules are the same in both windows I would like to know if its possible when a user registers to force the Forum Rules page from the nav bar to be displayed, user accepts & then the registration process continues?

StarBuG 07-29-2008 03:19 PM

Would it be possible to only force user to accept rules for specific forums?

I have one subforum that needs specific rules that I want the user to accept before they post.
The rest of my forums don't need this rules.

Would that be possible?

StarBuG

rrr 07-29-2008 09:16 PM

Quote:

Originally Posted by StarBuG (Post 1586730)
Would it be possible to only force user to accept rules for specific forums?

I have one subforum that needs specific rules that I want the user to accept before they post.
The rest of my forums don't need this rules.

Would that be possible?

StarBuG


I'm also looking for this as well. To be able to turn on this mod on a "per forum" basis.

cosy 07-30-2008 03:13 PM

Quote:

Originally Posted by StarBuG (Post 1586730)
Would it be possible to only force user to accept rules for specific forums?

I have one subforum that needs specific rules that I want the user to accept before they post.
The rest of my forums don't need this rules.

Would that be possible?

StarBuG

i need this also

symptome 07-31-2008 08:54 PM

Quote:

Originally Posted by shotkey (Post 1583938)
I know this was asked before, but I didn't see an answer - right now the rules show up in two different places 1- in the original registration window (not so pretty) , and 2 - on a separate page (nice looking) accessible from the nav bar "Forum Rules" link.

I know this doesn't apply to sites whos rules in the registration window are different from their forum rules - however when the rules are the same in both windows I would like to know if its possible when a user registers to force the Forum Rules page from the nav bar to be displayed, user accepts & then the registration process continues?

I need this too. Because of this, and because of the fact, that the countdown seems to freeze sometimes (or that I am not 100% sure, that it doesn't), I have inactivated the mod now.

Macindy 08-06-2008 06:47 PM

Hi folks!

If I set the timer to 0 my users can send the form?
What can I do?

Michigan Morels 08-07-2008 08:37 AM

How can I reset a "single user" instead of "all users", to force them to view/accept the rules again?

Thanks in advance.

Been testing it out in my testvb forum, and so far so good. I like it.:up:

Valter 08-07-2008 10:19 AM

There is an option in member profile to do this.

Michigan Morels 08-08-2008 06:47 AM

I don't see this
Quote:

There is an option in member profile to do this.
in either admincp profile of the user in the "Quick User Links" dropdown menu , or in the drop down menu under their username in their posts.

I thought it may be this option,
Quote:

3. OPTIONAL (to add 'reset acceptance status' to different place than default one)
Open template "MEMBERINFO" and add "$cyb_frules_force" wherever you wish.
but I've searched phrases for $cyb_frules_force and get no hits on it.

I also cannot find the phrase $cyb_frules_force anywhere in the MEMBERINFO template. Where is it supposed to show up with the default install?

Where am I going wrong? Everything seems to be working fine, except for this one thing.

I'm no coder for sure. Strictly copy and paste, and even that is iffy at times. :o
I'm sure it's staring me right in the face, but I need more specific instructions for it I guess.

I'm using vBulletin 3.7.2 Patch Level 1.
The only other hacks I've installed on it is the "Change Posts Owner 1.7.0", "NoSpam! 4.0" and this one "Cyb - Advanced Forum Rules 3.8".


Help?

Andyrew 08-08-2008 01:40 PM

In the public profile.
The link in mine is just above the style changer at bottom of screen in public user profile.

fragov 08-08-2008 03:41 PM

May you add ability to give different rules for each language on forum?

Michigan Morels 08-09-2008 06:15 AM

Duh! I found it. :o Thanks Andyrew. I misunderstood it to be in admin dropdown menu.

Everything is hunky dory now and I'm off to install it on my live board. Thanks

*Installed* Aug 8th -- Love it!

shotkey 08-10-2008 04:51 PM

Quote:

Originally Posted by shotkey (Post 1583938)
I know this was asked before, but I didn't see an answer - right now the rules show up in two different places 1- in the original registration window (not so pretty) , and 2 - on a separate page (nice looking) accessible from the nav bar "Forum Rules" link.

I know this doesn't apply to sites whos rules in the registration window are different from their forum rules - however when the rules are the same in both windows I would like to know if its possible when a user registers to force the Forum Rules page from the nav bar to be displayed, user accepts & then the registration process continues?


Quote:

Originally Posted by symptome (Post 1588672)
I need this too. Because of this, and because of the fact, that the countdown seems to freeze sometimes (or that I am not 100% sure, that it doesn't), I have inactivated the mod now.

Is there anyone here that can answer this question?

tomasrey88 08-11-2008 04:04 PM

Hi,

If I were to use the cyb advanced forum rules plug-in, would it make search engines not catalog or unfavorably catalog my forum with regard to search engine optimization? I mean, some similar plug-ins would redirect viewers to another webpage with the forum rules on it. This redirect causes some search engines such as Google to either not catalog the webpage in the forum or give it an unfavorable ranking with regard to search engine optimization.

Thank you for your help,
Tom.

IvyKeepMommy 08-13-2008 03:51 PM

I just made a change in my forum rules and twice tried to reset all users statuses to make them accept the new rules and it didn't work either time.

I am going to just use a query to force it, but wanted to let you know I'd run into a problem with it.

It looked like it should work (asked me to confirm, and then told me all statuses had been reset, but it didn't actually require any users to re accept the rules.


All times are GMT. The time now is 11:27 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.01672 seconds
  • Memory Usage 1,890KB
  • 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
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete