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)
-   -   End-User Options - Remember me box auto ticked (https://vborg.vbsupport.ru/showthread.php?t=178668)

Atakan KOC 05-08-2008 10:00 PM

Remember me box auto ticked
 
Remember me box auto ticked

This hack is made for to put a check to the rules when sign in. I made this hack because sometimes I am so busy to edit the templates so I made navbar default templates. Hope you like it.

install

Go to your admin cp, then:
Plugin System -> Manage Products -> [Add/Import Product] -> Select 'product-autorememberbox.xml' from your computer then press 'Import'

Modifications Info

Plugin : 1
Phrases : 0
Template : 0
Setting : 0

Versions:
v1.0 - 9 May 2008
-First release

kaptanblack 05-09-2008 04:20 PM

Thank you KOÇ.installed.

Jase2 05-09-2008 04:21 PM

Hmm... this is a simple template edit to add: checked="checked" -- I really don't think a product is needed.

KURTZ 05-09-2008 04:23 PM

Quote:

Originally Posted by Jase2 (Post 1513922)
Hmm... this is a simple template edit to add: checked="checked" -- I really don't think a product is needed.

agreed :)

PaylaX 05-09-2008 04:29 PM

Thanks...

Hasann 05-09-2008 05:39 PM

Quote:

Originally Posted by Jase2 (Post 1513922)
Hmm... this is a simple template edit to add: checked="checked" -- I really don't think a product is needed.

Quote:

Originally Posted by KURTZ (Post 1513926)
agreed :)

some people can't or wouldn't template edits
this is a way make a life simple in vbulletin

KURTZ 05-09-2008 05:42 PM

i know Hasann, anyway THIS hack made by Cyb give us many options ;)

PaylaX 05-09-2008 05:58 PM

this is your election

anyway you agreed
Quote:

I really don't think a product is needed.

sdavis2702 05-10-2008 11:45 AM

Hm... I went to just edit my template and it already said checked="checked". Am I looking in the right place? What template would this edit be done in?

Jase2 05-10-2008 03:30 PM

Hasann, IMHO this is just a mod for mods sake. Really, how hard is it to add checked="checked" to the navbar template ?

rizelim 05-10-2008 06:19 PM

thanks Atakan

mkinnov8 05-10-2008 06:45 PM

Quote:

Originally Posted by Jase2 (Post 1515011)
Hasann, IMHO this is just a mod for mods sake. Really, how hard is it to add checked="checked" to the navbar template ?

Its not really hard at all.. However the OP made this mod because they had a use for it, then shared it here as others may have had the same thought. Each to their own. Its quite simple really, if you dont need it, dont use it :). Just remember, others might.

Madlike 07-22-2008 06:25 AM

Quote:

Originally Posted by Jase2 (Post 1515011)
Hasann, IMHO this is just a mod for mods sake. Really, how hard is it to add checked="checked" to the navbar template ?

Code:

<![CDATA[ $repl = array(
                array(
                        '<td class=\"smallfont\" nowrap=\"nowrap\"><label for=\"cb_cookieuser_navbar\"><input type=\"checkbox\" name=\"cookieuser\" value=\"1\" tabindex=\"103\" id=\"cb_cookieuser_navbar\" accesskey=\"c\" />$vbphrase[remember_me]</label></td>',
                        '<td class=\"smallfont\" nowrap=\"nowrap\"><label for=\"cb_cookieuser_navbar\"><input type=\"checkbox\" name=\"cookieuser\" value=\"1\" tabindex=\"103\" id=\"cb_cookieuser_navbar\" accesskey=\"c\" checked=\"checked\" />$vbphrase[remember_me]</label></td>'
                ));
               
        foreach ($repl as $r)
        {
                $vbulletin->templatecache['navbar'] = str_replace($r[0],$r[1],$vbulletin->templatecache['navbar']);
        }
        unset($repl, $r);

        $repl = array(
                array(
                        '<input type=\"checkbox\" name=\"agree\" id=\"cb_rules_agree\" value=\"1\" />',
                        '<input type=\"checkbox\" name=\"agree\" id=\"cb_rules_agree\" value=\"1\" checked=\"checked\" />'
                ));
               
        foreach ($repl as $r)
        {
                $vbulletin->templatecache['register_rules'] = str_replace($r[0],$r[1],$vbulletin->templatecache['register_rules']);
        }
        unset($repl, $r);
  ]]>

:p


All times are GMT. The time now is 12:46 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.01097 seconds
  • Memory Usage 1,744KB
  • 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_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete