PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
sqzdog
Involved
Involved


Joined: Sep 22, 2003
Posts: 252

PostPosted: Wed Apr 28, 2004 8:59 pm Reply with quote Back to top

I put the first banner on my site. It appears right above the header in the center. Is there a way to place it in another position, like left or right?
View user's profile Send private message Send e-mail
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Mon May 03, 2004 11:36 am Reply with quote Back to top

In banners.php you should have a line similar to this
Code:
    echo"<center><a href=\"banners.php?op=click&amp;bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" border=\"0\" alt='$alttext' title='$alttext'></a></center>";
I would try removing the center tags and try aligning it right. This is just a guess so it may take some work.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
sqzdog
Involved
Involved


Joined: Sep 22, 2003
Posts: 252

PostPosted: Mon May 03, 2004 12:09 pm Reply with quote Back to top

Can I put more than one banner up at a time? If so, where do they go if there is already one in the middle?
View user's profile Send private message Send e-mail
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Mon May 03, 2004 5:29 pm Reply with quote Back to top

Yeah put up all you want the more you have in the database the better the randomness works.

Example:
On my site I've (PostNuke but the principles the same) basically flooded the Downloads area with banners to none logged in users. Logged in users don't see any of the ones I added in between all the categories. But the randomness isn't perfect often there are duplicates shown. But I've only half a dozen or so unique ones right now.

How? To just add one into say the area below the navigation menu I'd just hack the theme paste the code into the theme in a <div or something. (Lot of people do this with googles adwords java script).

Some code hints:
This is the basic code to display a banner in the theme as in the function themeheader below.
function themeheader() {
global $banners, $sitename;
echo "<body bgcolor=\"#0E3259\" text=\"#000000\" link=\"0000ff\">"
."<br>";
if ($banners) {
include("banners.php");
echo "<br>";
}

Now if you change it to say:
if (!is_user($user)) {
if ($banners) {
include("banners.php");
echo "<br>";
}
}else{
}

This now says if is not a user show em a banner.
If it is a user don't show them this banner.

You don't need to only put the code into the theme that is just the most common placements. I just added it into my Downloads module or where ever I thought people might want to go without being logged on (Like surfing downloads). This gives them incentive to become members (If they aren't put off) and also drives up the "impressions" considerably. The only other thing there to remember is to add $banners to the globals in whatever function your hacking away at.

(Which reminds me I still haven't fixed the registrations on my site grr!)

Back to question how to move the alignment thats just editting the theme and basic html. <td align='left'> or how ever it is but usually its displayed in a table like that. Like Raven says it just takes a little work. You can see in the theme example above there is no conainer tags at all so I could just use a <DIV tage and align it right left or center as I see fit. Other banners are placed in accross from the logo these are in tables and are a little tougher but not a big deal to move a little. If you theme is above and you want it like others accross from the logo try comparing the 2 header functions in fact often you can just about copy and paste one from the other with only a few style tags to change.

If I didn't confuse you now I'll try harder next time Very Happy
View user's profile Send private message
sharlein
Member Emeritus


Joined: Nov 19, 2002
Posts: 322
Location: On the Road

PostPosted: Mon Jun 28, 2004 3:46 pm Reply with quote Back to top

Well, I'm confused Laughing How can I show the Sentinel banner and Raven's webhosting banner at the same time? Thanks, Steve
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Mon Jun 28, 2004 3:52 pm Reply with quote Back to top

Well, if push comes to shove, get rid of the Sentinel banner RavensScripts

I put mine in my_header and either make a table with the images or something like that Smile
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
sharlein
Member Emeritus


Joined: Nov 19, 2002
Posts: 322
Location: On the Road

PostPosted: Mon Jun 28, 2004 4:00 pm Reply with quote Back to top

Laughing Got the message. I will put yours back and work the other into the header. Thanks RavensScripts
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

View next topic
View previous 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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum