vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to specify TEMPLATE location? (https://vborg.vbsupport.ru/showthread.php?t=278286)

GateKeeper_ 02-08-2012 10:40 PM

How to specify TEMPLATE location?
 
I am using jQuery but it require me to specify the location of that HTML.

How do I specify the location of a vBulletin TEMPLATE?

Like for a regular file it would be: www.domain.com/forum/demo.html

kh99 02-08-2012 10:42 PM

I suppose it would be the name of the php script that generates it? Like www.domain.com/forum/demo.php.

GateKeeper_ 02-08-2012 10:45 PM

What if it's: http://domain.com/newthread.php?do=newthread&f=2646

How do you specify this? I can't use vBulletin commands cause I'm using an external HTML page.

Also is it possible to use vBulletin command in an HTML page? Somehow connect it?

kh99 02-08-2012 10:53 PM

Quote:

Originally Posted by GateKeeper_ (Post 2297709)
What if it's: http://domain.com/newthread.php?do=newthread&f=2646

How do you specify this? I can't use vBulletin commands cause I'm using an external HTML page.

If you can specify a url, then I don't know why you couldn't give that as the url. But it might see that page as a guest would see it.


Quote:

Also is it possible to use vBulletin command in an HTML page? Somehow connect it?
It would need to be a php script that outputs your html. But you could make your own "vbulletin powered" page like in this article: https://vborg.vbsupport.ru/showthread.php?t=228112 .

GateKeeper_ 02-08-2012 11:04 PM

FIXED!!!!

Found out why that I can configure the code so that it won't overlap.

kh99 02-08-2012 11:29 PM

Quote:

Originally Posted by GateKeeper_ (Post 2297716)
vBulletin commands do not work in script tags? e.g. <script> stuff </script>

No, they only work in a template. ETA: Well, yes, they'll work in <script> tags if it's in a template.

It looks to me like you want to put your code in a template and use it as part of an existing vbulletin page, or else write your own page using the instructions at the link posted above.

GateKeeper_ 02-08-2012 11:45 PM

Quote:

Originally Posted by kh99 (Post 2297724)
No, they only work in a template. ETA: Well, yes, they'll work in <script> tags if it's in a template.

It looks to me like you want to put your code in a template and use it as part of an existing vbulletin page, or else write your own page using the instructions at the link posted above.

I'm not so sure what happen, but I think there were to many {vbulletin} tags in that var source = "____.php" code, so I shortened it to one and it worked flawlessly.

But one thing I noticed, is it normal that if you try to post the same content twice in vBulletin 4.1.10 the second one doesn't post?


All times are GMT. The time now is 03:57 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.01001 seconds
  • Memory Usage 1,725KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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