Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-08-2012, 10:40 PM
GateKeeper_ GateKeeper_ is offline
 
Join Date: Dec 2011
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 02-08-2012, 10:42 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I suppose it would be the name of the php script that generates it? Like www.domain.com/forum/demo.php.
Reply With Quote
  #3  
Old 02-08-2012, 10:45 PM
GateKeeper_ GateKeeper_ is offline
 
Join Date: Dec 2011
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 02-08-2012, 10:53 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GateKeeper_ View Post
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 .
Reply With Quote
  #5  
Old 02-08-2012, 11:04 PM
GateKeeper_ GateKeeper_ is offline
 
Join Date: Dec 2011
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FIXED!!!!

Found out why that I can configure the code so that it won't overlap.
Reply With Quote
  #6  
Old 02-08-2012, 11:29 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GateKeeper_ View Post
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.
Reply With Quote
  #7  
Old 02-08-2012, 11:45 PM
GateKeeper_ GateKeeper_ is offline
 
Join Date: Dec 2011
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:45 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04030 seconds
  • Memory Usage 2,214KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete