vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   navbar Breaks with Application in Subdirectory (https://vborg.vbsupport.ru/showthread.php?t=225226)

bynon 10-14-2009 05:06 PM

navbar Breaks with Application in Subdirectory
 
Hello All,

I am coding my first application for vB; an article content syndication Plugin. I have most of the application working well enough for Beta testing except for two issues that I could use some guidance on.

The first problem occurred when I moved my application files into a sub-directory from the forum root. When I did this, all of the navbar links take the path of the application directory. Can anyone tell me how to prevent this without modifying the navbar template?

The second issue I need to resolve has to do with the header bits. In order to make my application work properly, I need control over the html meta data. This is easily accommodated for everything except the main forum CSS file, which is rewritten with each update. Is there a variable I can use that is always updated with the name of the current vB CSS file?

Thanks in advance. I appreciate any and all help.

~ David

Lynne 10-14-2009 08:33 PM

Use <base url="url to directory"> in your <head> (google it if you don't know what it does or how to use it)

Aren't you using vbulletin's templates for the page? If so, and you include the headinclude template, you will get the css file also.

bynon 10-14-2009 09:57 PM

Quote:

Originally Posted by Lynne (Post 1899946)
Use <base url="url to directory"> in your <head> (google it if you don't know what it does or how to use it)

Aren't you using vbulletin's templates for the page? If so, and you include the headinclude template, you will get the css file also.

Hi Lynne,

Brilliant!!! Thank you for your help. It was just what I needed to jog the gray matter.

Yes, sure enough, adding <base href="$vbpoptions[bburl]/" /> to the template head did the trick for problem one.

The solution to problem two was staring me in the face inside the headinclude template:

$style[css] -- is the include for VB's main CSS file.

I can't use the headinclude template as is because the meta data is for the syndication content is unknown to VB. It is passed to my Plugin's template via XML from my content syndication server.

Thanks again!

~David


All times are GMT. The time now is 01:09 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.00963 seconds
  • Memory Usage 1,712KB
  • 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_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