vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   href redirection (https://vborg.vbsupport.ru/showthread.php?t=145998)

Murty 04-29-2007 03:59 AM

href redirection
 
Hey guys,
I'm fairly noob when it comes to programming, so im not 100% sure on how to word this, but ill give it a whirl.

I want to use my forum header and footer in a different URL extension (eg forum installed at 'http://forums.mysite.com/' and i want to use the header and footer template from there, for this link 'http://forums.mysite.com/ext/').

But I tried just copying and pasting the code, but obviously it comes up with broken images and it cant find the phrases (it is trying to get images and phrases from 'http://forums.mysite.com/ext/' rather than 'http://forums.mysite.com/'). So i was wandering if there is some way i can redirect the href that its looking for or something like that? so its looking in 'http://forums.mysite.com/' rather than 'http://forums.mysite.com/ext/'

Any help is awesome, thanks :)

ElfMage 04-29-2007 04:05 AM

Depending on how your pages are structured you could try adding the following to the head section in your pages.

HTML Code:

<base href="http://forums.mysite.com" />
This will tell the browser to fetch all relative content from that URL.

An alternative is to edit your forums style and change all relative paths to absolute paths.

Murty 04-29-2007 04:30 AM

Thanks for getting back to me.
That is sort of what i was looking for, but i tried it and it doesnt work :(
I think the problem is the phrases. So is there someway i can get it to look for phrases in the right place?

Bump?

ElfMage 04-29-2007 12:26 PM

Phrases are retrieved from the DB. The forum location shouldn't matter.

Murty 04-29-2007 09:12 PM

Yeah, thats what i thought as well. Oh well ill try fiddle around with it. Thanks for your help anyways.

ElfMage 04-29-2007 09:18 PM

PM me a link to your forum, and I'll take a quick look.

I see what you mean. The issue is that you cannot use vBulletin variables and phrases in an HTML page. I think there is a mod here at vb.org that allows you to do that.

Murty 05-02-2007 08:14 PM

Cool, any chance of pushing me in the right direction?

ElfMage 05-03-2007 03:08 AM

I haven't looked at this in a while.

Try these mods: https://vborg.vbsupport.ru/showthread.php?t=103076

And: https://vborg.vbsupport.ru/showthread.php?t=100992


All times are GMT. The time now is 01:06 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.01109 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
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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