vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   How to create your own vBulletin-powered page! (uses vB templates) (https://vborg.vbsupport.ru/showthread.php?t=62164)

joeychgo 04-05-2004 02:01 AM

How could I stick coppermine into this page??

contramontanum 04-06-2004 11:45 AM

I must be doing something wrong. I've created test.php, renamed to privacy.php, changed all occurences of "test" to "privacy", uploaded to root folder and created template "privacy" in ACP, but all I get when going to myforums.org/privacy.php is a blank page. I'm befuddled...

attroll 04-06-2004 12:25 PM

Quote:

Originally Posted by contramontanum
I must be doing something wrong. I've created test.php, renamed to privacy.php, changed all occurences of "test" to "privacy", uploaded to root folder and created template "privacy" in ACP, but all I get when going to myforums.org/privacy.php is a blank page. I'm befuddled...

Did you create a template in you admincp titled "privacy" and put your own data in it? It sounds like you forgot to do that.

CdaKnight 04-06-2004 11:37 PM

I have a question, and everybody is forewarned that I'm a bit of a hacking n00b.

Alrighty, taken care of that.

I'm interesting in making my site run off of vB templates, etc to make it all look continuous (same footer, etc). However, I know you can't run php code in most of the templates (php_start, and end excluded from that), but a large section of my site uses php and mySQL to retrieve information.

Am I correct in saying that if I put the php code in the actual page (test.php for example), that in my template "test", I can call the variables that are in test.php? (Like if I have the array $comicinfo, and I need $comicinfo[date], or even just "$date" that it would display?)

Thanks in advance
Chris

Bro_Joey_Gowdy 04-08-2004 01:47 PM

/me clicks install

attroll 04-08-2004 01:53 PM

I was wondering. I don't see where this has been asked before or not. But can you use this hack and put another site withing the template? What I want to do is have my template and have another URL upen within the template so that my header is still on top and the other site can be viewed.

Bryan Ex 04-08-2004 05:41 PM

Quote:

Originally Posted by Gary W
What's the template name? Use UPPERCASE not lowercase.

Thank you! That was driving me nuts as well.

BarBeQue 04-09-2004 10:29 AM

This was just what i needed, thanks!

Got a question though, not really a hackproblem but i'm gonna ask it anyway ;)

I have a html page that i wanted to display inside the forum, and using this hack could do that perfectly, by just copying that html page inside the template.

But, the html page is generated automatically each day so hardcopying it into the template isn't an option.

Is there a way to grab the html contents and to display it inside the template?
It kinda works by using an iframe in the template, but iframes need height dimensions and the generated page varies in height (and a scrollbar for the iframe looks very ugly).
Any idea on how to do this? or how to set the height of the iframe to be variable?

Or alternatively, is there a way to do it the other way around, add the header/navbar/footer to the html page (everthough it's generated i can determine what fixed components should be in this html page) and maybe shange the html page in an php page?

Oh btw...
[high]* BarBeQue clicks install :D[/high]

wolfgang2 04-09-2004 11:41 AM

very nice:)
installed and thank You!

[FG]Omega 04-15-2004 07:28 PM

Omega]fantastic. thank you very much, Gary :)


All times are GMT. The time now is 03:07 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.02082 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete