vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Put login into header, works but with minor linking issue (https://vborg.vbsupport.ru/showthread.php?t=192826)

Tiberonmagnus 10-06-2008 06:49 AM

Put login into header, works but with minor linking issue
 
I'm using vbadvanced on my front page (as index). I put the login code into the header, everything works except for a simple linking issue as shown below. It's probably a really simple fix, I just don't know how to do it. Anyone know? :)

----------------------------

I put the login code into the header, it works.. except for the issue with logging in on the index page (where vba cms is).

The reason is because it breaks down the link as something like the following

In forum
On index page
Clearly I'm missing the "/forums" in there. I tried putting the "/forums" in front of the "login.php?do=login", which it does now allow the index page to log me in, but on the forum it has the link of example.com/forums/forums/login.php?do=login".

I'm pretty sure that this part of vbulletin is causing the error on the cms page.. I'm just wondering how to re-write this to make it work.

Quote:

<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
I'm wondering if anyone can help me out on this, it doesn't look too complicated, just looks like some sort of minor re-write to make this work, but I just don't know how to do it. :)

Lynne 10-06-2008 03:03 PM

You should post about this on the vbadvanced forum. This has been brought up before and I'm sure if you searched over there you would find the fix.

Tiberonmagnus 10-06-2008 05:20 PM

Ya, I asked over there too. I also searched, but didn't find a solution to the problem.

For anyone that has this issue.. Brian (the vba dude) said to just include the login.php in the header replacements in the CMS panel, worked like a charm so far.


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