Advertising page

Snipervzln

New Member
Hello, and thanks for read.

Maybe a noob question since i have a lot of mods that create a page for their own (like gtsearch), but i don't know how to do it for this.

I just want to add a page within my forum template so i can put anything (html) there, keeping navbar, header, footer, etc.

Thanks in advance for the help.
 
What this does:
Creates an advertise page.


Time to install: 2 mins

Installation:
1. upload advertise.php to you forum root.
2. upload ad.gif to "images/misc" folder
3. import: product-advertise.xml
4. edit nabvar template

########### FIND ############
<if condition="$show['member']">
<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></td>
</if>
#############################

########## ADD ABOVE ########
<td class="vbmenu_control"><a href="advertise.php">Advertise</a></td>

#############################

5. Go to "Vbulletin Options" ---> "Advertise Page by DnTalks.com" edit what you needed to, and save.
 
Thanks a lot for the quick reply mmmxiv, but what that mod does is sell advertising spots in your forum, maybe i'd explained what i need wrong.

I just need a blank page within my forum (keeping controls), simple template to add html, i believe i don't even need to install a mod, just edit some templates (maybe i'm wrong).

Thanks again for replying.
 
Admincp >> Styles & Templates >> Style Manager

from the dropdaown next to style name choose "Add New Template"

In the Title box add
Code:
custom_[color=Red]PAGE NAME[/color]

In the template box add:
Code:
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]" id="vbulletin_html">
<head>
$headinclude
<title>$vboptions[bbtitle] - [color=red]PAGE NAME HERE[/color]</title>
</head>
<body>
$header
$navbar

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="tcat">[color=red]TITLE[/color]</td>
</tr>
<tr>
	<td class="alt1">[color=red]CONTENT[/color]</td>
</tr>
</table>

$footer
</body>
</html>

change everything highlighted in red

Link for new page:
Code:
http://yoursite.com/misc.php?do=page&template=[color=red]TEMPLATENAME[/color]

Do not add custom_ to link
eg:
if template name is custom_ads the link would be:
Code:
http://yoursite.com/misc.php?do=page&template=ads
 
Back
Top