vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   add new page (https://vborg.vbsupport.ru/showthread.php?t=239808)

Kyle55155 04-04-2010 09:52 PM

add new page
 
I need to add a page that will house a simple php app. Is there a way to add an additional page that is based off the GENERIC_SHELL template? I want the header footer navbar etc. I just need to be able to populate the content area with my php code.

I tried this : http://www.vbulletin.com/forum/showt...-to-your-forum

but my test page didn't pull in the header, footer, menubar etc or anything.

borbole 04-04-2010 10:04 PM

Quote:

Originally Posted by Kyle55155 (Post 2015847)
I need to add a page that will house a simple php app. Is there a way to add an additional page that is based off the GENERIC_SHELL template? I want the header footer navbar etc. I just need to be able to populate the content area with my php code.

I tried this : http://www.vbulletin.com/forum/showt...-to-your-forum

but my test page didn't pull in the header, footer, menubar etc or anything.

There are a couple of mods that do that I believe. Have you chacked out the mod''s section?

nocive 04-04-2010 10:12 PM

http://www.vbulletin.com/forum/showt...-to-your-forum

Enjoy ;)

Quote:

Originally Posted by borbole (Post 2015853)
There are a couple of mods that do that I believe. Have you chacked out the mod''s section?


Sorry, i dont saw your post. was writing Oo

Kyle55155 04-04-2010 10:40 PM

Quote:

Originally Posted by borbole (Post 2015853)
There are a couple of mods that do that I believe. Have you chacked out the mod''s section?

Still looking. I will check.

I followed this too https://vborg.vbsupport.ru/showthread.php?t=228112

after step 2 "create template" should I be able to hit the page via my browser Http://localhost/forums/test.php?

--------------- Added [DATE]1270484134[/DATE] at [TIME]1270484134[/TIME] ---------------

works nows :)

nocive 04-07-2010 11:58 PM

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

Check this out ;)
Excellent plugin...

Look this:
Quote:

Originally Posted by AliMadkour (Post 1948521)
if you want forum header and footer
and forum style at your custom page
copy that code to your template
HTML Code:

{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
  <head>
    <title>{vb:raw vboptions.bbtitle}</title>
    {vb:raw headinclude}
  </head>
  <body>
   
    {vb:raw header}
   
    {vb:raw navbar}
   
    <div id="pagetitle">
      <h1>My Default Page!</h1>
    </div>
   
    <h2 class="blockhead">Custom Page</h2>
    <div class="blockbody">
      <div class="blockrow">
        Enter your Custom Page text here!
      </div>
    </div>
   
    {vb:raw footer}
  </body>
</html>


An don?t forget to call your custom page to
PHP Code:

custom_yourpage 

in Styles and templates.

On browser:

http://www.xtreme-addictions.com.ar/...page&template=Radio
PHP Code:

custom_Radio 

So your custom page will be:

http://www.your_site/your_forum_root/misc.php?do=page&template=Radio

Example:

https://vborg.vbsupport.ru/misc.php?...template=Radio

Good luck :)
nocive


All times are GMT. The time now is 06:18 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.02487 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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