vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Yet Another vB Login on non-vB Page (https://vborg.vbsupport.ru/showthread.php?t=91129)

Mimoun 08-02-2005 09:56 AM

I want to put the small login box that is on the right side inside the navbar on an external page.
I have tried using your script but it just uses the whole navbar with the variable $navbar there is no way to extract it from the $navbar because it just prints the whole navbar at ones.
Here is a screenshot of what I would like to extract:
https://vborg.vbsupport.ru/

Styles P 08-02-2005 03:22 PM

Will this work on version 3.0x ?

calorie 08-02-2005 03:32 PM

Quote:

Originally Posted by Styles P
Will this work on version 3.0x ?

If you set the following, it should work for vB307.
Code:

define('VBN','307');

calorie 08-03-2005 06:12 PM

@Mimoun: To get part of the navbar, like in the attached picture, see the attached ZIP file.

Mimoun 08-03-2005 08:17 PM

Thank you very much Calorie I will try it out right now.

Mimoun 08-03-2005 09:33 PM

I have tried the script on my test forum and it works there is only 1 problem.
When I check my forum it shows the small login box 2 times.
Is it possible to get the small login box on an external page without including it in the navbar template?
Thanks again for making the script.

calorie 08-03-2005 10:11 PM

@Mimoun: Try the example2.php file by itself. In the example2 script, do you see only one small login box?

Mimoun 08-03-2005 10:31 PM

Yes in the example2.php I see only one login box but on my forum I have the whole navbar + the small login box:
Here is a screenshot:
http://www.freewebsitetemplates.com/...per/navbar.gif

calorie 08-03-2005 11:02 PM

@Mimoun: Looks like $navbar is printed twice, once before and once after the eregi_replace. Check the template for two $navbar variables.

Mimoun 08-04-2005 09:47 AM

Sorry I misunderstood the readme file I placed the whole code in my navbar.

I checked the source code and understand now how you did it. You just get the whole navbar and strip down everything except the small login box part very clever.

Could it be possible to place the small login box part in a new template and call the template loginbox so you can give it his own style without damaging the loginbox in the navbar?

Thanks for your help.


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