You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 195 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Display Banners in HTML Based Templates [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
quiksilver1804
Nuke Cadet
Nuke Cadet


Joined: Mar 13, 2005
Posts: 5


PostPosted: Mon Mar 14, 2005 8:34 pm Reply with quoteBack to top

The topic may not make much since. I am still learning to edit templates. Some are based all on a theme.php file. Others create seperate .html files. On these themes, i find it hard to move the location for your banners to display. You can't just move the
Code:
    if ($banners) {
   include("banners.php");
    }

into the area you want on the html page because it has to be placed in a php file. I haven't checked a lot of HTML templates but most i found were placed at the very top of the template (before the template starts).

To display it somewhere in the template, i use a borderless iframe.

1) go to "theme.php" and find

Code:
$public_msg = public_message();


2) Above that, insert this code:

Code:
$banners = "<iframe align=\"left\" scrolling=\"no\" width=\"468\" height=\"60\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\" src=\"banners.php\"></iframe>";


3) Change the "width" and "height" to the dimensions of the banners. It show seemlessly.

4) After that, insert this code into the html page where u want it to display, for example "header.html"::
Code:
$banners


Insert that anywhere on one of the html pages. For the example i have included, i put it in my "header.html" next to the logo:

Code:
<table CELLPADDING="0" CELLSPACING="0" WIDTH="100%" BORDER="0" ALIGN="center" BGCOLOR="#ffffff">
<tr>
<td BGCOLOR="#ffffff" WIDTH="50%"><a HREF="index.php"><img SRC="themes/NukeNews/images/corner-top-left.gif" WIDTH="17" HEIGHT="17" HSPACE="0" VSPACE="0" BORDER="0" ALIGN="TOP"></a>
</td>

<td VALIGN="top" BGCOLOR="#FFFFFF"><img HEIGHT="17" ALT="" HSPACE="0" SRC="themes/NukeNews/images/corner-top-right.gif" WIDTH="17" ALIGN="right"></td>
</tr>
<tr>
  <td BGCOLOR="#ffffff"><p><a HREF="index.php"><img SRC="themes/NukeNews/images/logo.gif" ALIGN="TOP" ALT=""._WELCOMETO." $SITENAME" border="0" HSPACE="10"></a><br>
  </p>    </td>
  <td ALIGN="right" BGCOLOR="#FFFFFF"><div ALIGN="LEFT">$banners</div></td>
</tr>
</table>


The example of this is at www.quiksilver.name. Anyone think there is another way of doing this? I'm sure there is, but i figured i would help with what i could.
Find all posts by quiksilver1804View user's profileSend private message
quiksilver1804
Nuke Cadet
Nuke Cadet


Joined: Mar 13, 2005
Posts: 5


PostPosted: Mon Mar 14, 2005 8:39 pm Reply with quoteBack to top

I just downloaded another HTML based template (DigitalDementia) and his seemed better (which i didnt know the url structure for this):

insert "$showbanners" where u want the banners to appear, and in theme.php set it = to:

Code:
<a href=\"banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" border=\"0\" alt='$alttext' title='$alttext'></a>


I'm not sure where the $imageurl is set and if it will show all banners. Based on the vars in the banners.php? i would assume it would.
Find all posts by quiksilver1804View user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.234 Seconds - 241 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::