PDA

View Full Version : add new page


Kyle55155
04-04-2010, 10:52 PM
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/showthread.php?197563-How-to-add-Custom-Pages-to-your-forum

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

borbole
04-04-2010, 11:04 PM
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/showthread.php?197563-How-to-add-Custom-Pages-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, 11:12 PM
http://www.vbulletin.com/forum/showthread.php?197563-How-to-add-Custom-Pages-to-your-forum

Enjoy ;)

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, 11:40 PM
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 1270484134 at 1270484134 ---------------

works nows :)

nocive
04-08-2010, 12:58 AM
https://vborg.vbsupport.ru/showthread.php?t=232324

Check this out ;)
Excellent plugin...

Look this:
if you want forum header and footer
and forum style at your custom page
copy that code to your template

{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 custom_yourpage in Styles and templates.

On browser:

http://www.xtreme-addictions.com.ar/foro/misc.php?do=page&template=Radio 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?do=page&template=Radio

Good luck :)
nocive