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)

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


All times are GMT. The time now is 09:26 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.01946 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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