vb.org Archive

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

Valter 08-26-2006 08:14 PM

Quote:

Originally Posted by Ghanem
- 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 08-26-2006 08:27 PM

Well they dont work here. Checked again just to be sure. Wierd .

Valter 08-26-2006 08:28 PM

In Rules or posts?

Temp admin account can be helpful.

Ghanem 08-26-2006 08:46 PM

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 08-26-2006 10:23 PM

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 08-26-2006 11:56 PM

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 08-27-2006 01:42 AM

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 08-27-2006 02:26 AM

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 08-27-2006 09:21 AM

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 08-27-2006 10:43 AM

Really great addition. Thankis for this.

dontpanic 08-27-2006 07:28 PM

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 08-27-2006 10:39 PM

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 08-28-2006 07:51 AM

Installed .

It's very good .

Thank you .

Valter 08-28-2006 08:13 AM

Quote:

Originally Posted by Ghanem
- 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 08-29-2006 01:13 AM

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 08-29-2006 01:23 AM

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 08-29-2006 04:50 AM

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 08-29-2006 02:57 PM

Quote:

Originally Posted by Masters
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 08-30-2006 10:50 AM

Is there a way to see if how many or who accepted the rules and who didn't yet?

redlabour 08-30-2006 11:11 AM

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 08-30-2006 01:04 PM

Nice one, but the idea from Ghanem would make it perfect. ;)

andreamarucci 08-30-2006 01:22 PM

Cool! Works like a charm...

Valter 08-30-2006 02:05 PM

redlabour,

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

LordDB 08-30-2006 05:10 PM

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 08-31-2006 12:46 AM

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 08-31-2006 05:32 AM

Quote:

Originally Posted by Cybernetec
v2.5 - Aug 31. 2006.

You are full of surprises
Very cool additions
Thank you very much

Necrite 08-31-2006 05:53 AM

so, now again :)

two little bugs in there first:

Code:

</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

Code:

</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 08-31-2006 06:11 AM

Quote:

Originally Posted by Cybernetec
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 08-31-2006 06:15 AM

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 08-31-2006 07:37 AM

Quote:

Originally Posted by Necrite
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 08-31-2006 07:40 AM

Quote:

Originally Posted by redlabour
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 08-31-2006 08:02 AM

Quote:

Originally Posted by andreamarucci
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 08-31-2006 09:06 AM

After accepting the rules the User will not be redirected to newthread.php :(

In 2.4 it was fine....

Stoebi 08-31-2006 09:50 AM

Quote:

Originally Posted by Cybernetec
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 08-31-2006 02:05 PM

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 08-31-2006 02:09 PM

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[bburl]/$vboptions[cybfrules_indexloc]?do=cfrules">$vbphrase[cybfrules_navbar]</a></td>

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 08-31-2006 02:29 PM

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 08-31-2006 02:32 PM

Gerakus,

Change the phrase cybfrules_navbar.

Stoebi 08-31-2006 02:40 PM

Quote:

Originally Posted by iran.gs
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 08-31-2006 03:59 PM

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.


All times are GMT. The time now is 11:15 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.01707 seconds
  • Memory Usage 1,830KB
  • 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
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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