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

Reply
 
Thread Tools Display Modes
  #1  
Old 02-28-2005, 02:28 PM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Creating a VB page without using templates?

I have been using the hack called: How to create your own vBulletin-powered page! (uses vB templates) https://vborg.vbsupport.ru/showthread.php?t=62164 but I don't want to have to use templates when doing this. Is there was way to create a bacis stand alone html file in another folder other then my forums folder that will keep my members logged into the site when they are accessing this?

Any inputs on this or suggestions?
Reply With Quote
  #2  
Old 02-28-2005, 05:05 PM
Jolten Jolten is offline
 
Join Date: Mar 2004
Posts: 749
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can embed html into the pages or you can use includes to call other files. Templates are not mandatory.
Reply With Quote
  #3  
Old 02-28-2005, 05:10 PM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jolten
You can embed html into the pages or you can use includes to call other files. Templates are not mandatory.
Can you give me an example by creating a file that just displays "Hello". I would like to see this.

Thanks
Reply With Quote
  #4  
Old 02-28-2005, 05:34 PM
Jolten Jolten is offline
 
Join Date: Mar 2004
Posts: 749
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Change the two lines at the top of this script to match your forum directory. And drop it into a spot on your server, then call it with a browser to see it working.
Attached Files
File Type: php Hello.php (2.0 KB, 31 views)
Reply With Quote
  #5  
Old 03-01-2005, 02:52 PM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jolten
Change the two lines at the top of this script to match your forum directory. And drop it into a spot on your server, then call it with a browser to see it working.
OK. I put it in my forums directory and I got it to work. But there are two problems so far.

1. It does not pull my header and footer into the page. I tried changing and adding several different things to try to get it to work. But have had no success.

2. define('THIS_SCRIPT', 'Hello'); does not work for some reason.

http://www.whiteblaze.net/forum/hello.php

Thank you for your help and I am sorry if I am being a pain in the butt.
Reply With Quote
  #6  
Old 03-01-2005, 03:06 PM
Jolten Jolten is offline
 
Join Date: Mar 2004
Posts: 749
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To call the header you'll need to add
PHP Code:
echo $header
same thing for the footer.

And you won't be able to use <if condition="THIS_SCRIPT == 'Hello'"> statements so to call the page definition you'll need something like

PHP Code:
if (THIS_SCRIPT == 'Hello'){
blah
} else {
blah blah

That's untested.
Reply With Quote
  #7  
Old 03-01-2005, 03:17 PM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried the ego header and all it did was say "echo $header;" in the window.

http://www.whiteblaze.net/forum/hello.php
Attached Files
File Type: php hello.php (2.1 KB, 12 views)
Reply With Quote
  #8  
Old 03-01-2005, 03:21 PM
Guest190829
Guest
 
Posts: n/a
Default

put the echo header stuff between php tags

so change it too

Code:
<?php echo $header;  ?>
Reply With Quote
  #9  
Old 03-02-2005, 05:07 AM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Danny.VBT
put the echo header stuff between php tags

so change it too

Code:
<?php echo $header;  ?>
Thanks Danny.VBT

I am one step closer. Now I can not get my navbar to display properly. I think it has something to do with the javascript.

http://www.whiteblaze.net/forum/hello.php

I just realized that besides my navbar not displaying properly I also noticed that the Quick Style Choose is not working. Sounds more and more like Java. Does anyone have any ideas?
Reply With Quote
  #10  
Old 03-04-2005, 09:34 AM
zemic zemic is offline
 
Join Date: Sep 2004
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone found a solution for this?? I could do with using the Vbulletin header/footer/authentication stuff, but putting HTML in myself via Dreamweaver. I dont want to use the VB template system because none Vbulletin experts will need to update the web pages.

Thanks
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 01:40 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.04456 seconds
  • Memory Usage 2,277KB
  • Queries Executed 14 (?)
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
  • (2)bbcode_code
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (9)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete