vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Altering the login redirect (https://vborg.vbsupport.ru/showthread.php?t=189570)

NickyDee 08-30-2008 05:57 PM

Altering the login redirect
 
My website (www.study-medicine.co.uk ) uses iframes to display the navbar and main forum pages independently .

I?m having one big final problem getting it working, when a user logs in, the login redirect panel appears in the navbar iframe. I can make it load in the correct frame (where the forum will appear) by adding the code target=?centre? (the name and id of the iframe) to the login script in the navbar template. However, this causes the navbar to load in the main page frame when it redirects.

In summary I somehow need to stop the login redirect from loading the navbar and cause it to load the forum homepage instead. It also needs to refresh the navbar in the other iframe.

As the tree said to the lumberjack, ?I?m stumped?.

TheInsaneManiac 08-30-2008 06:34 PM

Why use an iframe? Why not just substitute the original code in vbulletin with the source code from the iframe.

NickyDee 08-30-2008 08:07 PM

It just works well with the direction the site is meant to be going in. They complicate things getting them working but properly implemented they can save a lot of trouble later on.

TheInsaneManiac 08-30-2008 10:25 PM

Well you are going to have to think of something, because due to your IFrame the login is posting the information to the location the IFrame is pointing. Therefor you can't actually login. So remove the IFrame and I bet it will work.

NickyDee 08-30-2008 10:40 PM

I can login fine, unless I'm missing something? Create an account if you want and give it a go.


All times are GMT. The time now is 09:27 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.00984 seconds
  • Memory Usage 1,713KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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