vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   login_redirect (https://vborg.vbsupport.ru/showthread.php?t=274144)

TTayfun 11-16-2011 08:57 PM

login_redirect
 
hi guys,
i want to when calling login_redirect hook, this time seems that code
Code:

<td class="alt2 smallfont" colspan="2">
at HEADER template. How do i? what code write in login_redirect hook plugin?

kh99 11-16-2011 09:01 PM

I understand that you want to do something by writing code in a plugin using hook login_redirect, but I don't understand what it is you want to do.

TTayfun 11-16-2011 09:05 PM

yes i want write some code in login_redirect plugin. i want this time show this code =<td class="alt2 smallfont" colspan="2"> in HEADER template. only this time = login_redirect time. at HEADER template.

kh99 11-16-2011 10:51 PM

Sorry, I still cannot understand. Maybe someone else will understand.

TTayfun 11-16-2011 11:15 PM

Quote:

Originally Posted by kh99 (Post 2268707)
Sorry, I still cannot understand. Maybe someone else will understand.

Now i use in header template:

Code:

<if condition="THIS_SCRIPT == 'login' AND $_REQUEST['do'] == 'login'">html codes here</if>

Because Login Redirect time, form calling header vs. templates. and i calling from header codes login redirect time.

but i want this code seem : at ONLY Login redirect but this code(<if condition="THIS_SCRIPT == 'login' AND $_REQUEST['do'] == 'login'">html codes here</if>) is insufficient.

kh99 11-17-2011 02:43 AM

Sorry, I still don't get it. Sounds like you want something to happen only on a redirect, but I think the login_redirect hook code is only called when redirecting.

TTayfun 11-17-2011 09:06 AM

1 Attachment(s)
Quote:

Originally Posted by kh99 (Post 2268765)
Sorry, I still don't get it. Sounds like you want something to happen only on a redirect, but I think the login_redirect hook code is only called when redirecting.

yes, when redirecting.. vbulletin called some templates look attach. i want insert some html code in header when redirect. ;)


All times are GMT. The time now is 05: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.01627 seconds
  • Memory Usage 1,721KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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