» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 42
0 members and 42 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on helius theme - where is the banner code within the Site design forums, part of the General category; Where is the code that deals with the Top Banner section in the Helius theme? Specifically, I just want to ...


Go Back   Nukemods Forum » General » Site design

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-19-2003, 05:20 AM
Junior Member
 
Join Date: Apr 2003
Posts: 6
helius theme - where is the banner code
Where is the code that deals with the Top Banner section in the Helius theme? Specifically, I just want to trim it down by about half. Maybe I haven't found it because I haven't slept in over 48 hours. Possibly.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2003, 01:21 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
umm..do you mean Banners. like if you have Advertisement banner son your site?
Where is THAT code? in the theme?

Or are you tlaking about the logo for Helius?
Man I'm not awake yet.

ok here goes.
In our Nuke6.5 themes, we edited them all to get the banners to show next to the logo.
look in theme.php
Code:
    $numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'"));
   /* Get a random banner if exist any. */ 
   /* More efficient random stuff, thanks to Cristian Arroyo from http://www.planetalinux.com.ar */ 

    if ($numrows>1) { 
   $numrows = $numrows-1; 
   mt_srand((double)microtime()*1000000); 
   $bannum = mt_rand(0, $numrows); 
    } else { 
   $bannum = 0; 
    } 
    $sql = "SELECT bid, imageurl, clickurl, alttext FROM ".$prefix."_banner WHERE type='0' AND active='1' LIMIT $bannum,1"; 
    $result = $db->sql_query($sql); 
    $row = $db->sql_fetchrow($result); 
    $bid = $row[bid]; 
    $imageurl = $row[imageurl]; 
    $clickurl = $row[clickurl]; 
    $alttext = $row[alttext]; 
    
    if (!is_admin($admin)) { 
       $db->sql_query("UPDATE ".$prefix."_banner SET impmade=impmade+1 WHERE bid='$bid'"); 
    } 
    if($numrows>0) { 
   $sql2 = "SELECT cid, imptotal, impmade, clicks, date FROM ".$prefix."_banner WHERE bid='$bid'"; 
   $result2 = $db->sql_query($sql2); 
   $row2 = $db->sql_fetchrow($result2); 
   $cid = $row2[cid]; 
   $imptotal = $row2[imptotal]; 
   $impmade = $row2[impmade]; 
   $clicks = $row2[clicks]; 
   $date = $row2[date]; 

/* Check if this impression is the last one and print the banner */ 

   if (($imptotal <= $impmade) AND ($imptotal != 0)) { 
       $db->sql_query("UPDATE ".$prefix."_banner SET active='0' WHERE bid='$bid'"); 
       $sql3 = "SELECT name, contact, email FROM ".$prefix."_bannerclient WHERE cid='$cid'"; 
       $result3 = $db->sql_query($sql3); 
       $row3 = $db->sql_fetchrow($result3); 
       $c_name = $row3[name]; 
       $c_contact = $row3[contact]; 
       $c_email = $row3[email]; 
       if ($c_email != "") { 
      $from = "$sitename <$adminmail>"; 
      $to = "$c_contact <$c_email>"; 
      $message = ""._HELLO." $c_contact:\n\n"; 
      $message .= ""._THISISAUTOMATED."\n\n"; 
      $message .= ""._THERESULTS."\n\n"; 
      $message .= ""._TOTALIMPRESSIONS." $imptotal\n"; 
      $message .= ""._CLICKSRECEIVED." $clicks\n"; 
      $message .= ""._IMAGEURL." $imageurl\n"; 
      $message .= ""._CLICKURL." $clickurl\n"; 
      $message .= ""._ALTERNATETEXT." $alttext\n\n"; 
      $message .= ""._HOPEYOULIKED."\n\n"; 
      $message .= ""._THANKSUPPORT."\n\n"; 
      $message .= "- $sitename "._TEAM."\n"; 
      $message .= "$nukeurl"; 
      $subject = "$sitename: "._BANNERSFINNISHED.""; 
      mail($to, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion()); 
       } 
   } 
    $showbanners = "<a href=\"banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" border=\"0\" alt='$alttext' title='$alttext'></a>"; 
    }
Then we make the banner SHOW by adding this to the header.html
Code:
        <td width "40%" height="110" background="themes/fisubsilver/images/cellpic_bkg.jpg" align="right">$showbanners &</td>
Now on most of your "typical" themes. The banners are simply displayed by this code in the theme.php
Code:
    if ($banners == 1) {
	include("banners.php");}
mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-19-2003, 08:22 PM
Junior Member
 
Join Date: Apr 2003
Posts: 6
No, not advertising banner, I mean both of them, sorry. I just wanted to shrink it down to about half, but couldn't figure out how to do it. Like the WHOLE table on top.

*EDIT

Okay I decided to stick with the height it's at because I finally made a decent top logo, eheh. Now I just need to logo.gif and the banner to line up so I get a straight line.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-19-2003, 10:58 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
can you give us a link please?

Sorry, I'm still not on the same page you are.
First Banners are Banners.
Logos are Logos.
Banners are not Logos and Logos are not Banners. Make sure we're clear on that.

All the info for the HEADER, or the "place" where the Banner and Logo are displayed is in the header.html file in the Helius folder.

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-19-2003, 11:03 PM
Junior Member
 
Join Date: Apr 2003
Posts: 6
I was just about to reply to say don't worry about it.

What I meant was cut down on the space between the top of the page and the Top Bar. In other words Just cut down on the HEIGHT of the graphics on the top of the page.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-19-2003, 11:19 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
ok header.html again

Code:
        <td width="60%" height="110" background="themes/Helius/images/topbg2.gif">[img]themes/Helius/images/logo.gif[/img]</td>
        <td width="40%" height="110" background="themes/Helius/images/topbg2.gif">$showbanners &</td>
that height="110" is how "tall" the top area is. Both instances define the height of that table.

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-20-2003, 02:54 AM
Junior Member
 
Join Date: Apr 2003
Posts: 18
even if i have my "Banners Options
Activate Banners in your site?" in the preferences menu set to NO
the baners are still displayed next to the logo when using HeliusGray & Helius Themes

does anybody else have this problem ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-20-2003, 11:25 AM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
Originally Posted by irmin
even if i have my "Banners Options
Activate Banners in your site?" in the preferences menu set to NO
the baners are still displayed next to the logo when using HeliusGray & Helius Themes

does anybody else have this problem ?
Problem?
That is how we designed our 6.5 themes.
To display the banner in the header to the right of the logo.
Is this a problem?
We had a tremendous amount of requests for the banners to be next to the logo, so we made it happen to please everyone.

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-20-2003, 11:42 AM
Junior Member
 
Join Date: Apr 2003
Posts: 18
i know that is how u design themes
the problem is that u cant turn them off
they are always displayed even if u disable banners in the admin - preferences menu
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-20-2003, 11:47 AM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
Originally Posted by irmin
i know that is the way u design themes
the problem is that u cant turn them off
they are always displayed even if u disable banners in the admin - preferences menu
Ok I see now..
OK ya'll get this file and replce your theme.php with it for the helius theme. Let me know if it works. Trun off banners in your Preferences and they should go away now.

http://www.fauxpas.org/mystuff/theme.zip

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[REQUETS] Helius Theme chispas73 Theme pack requests 2 11-14-2004 10:04 AM
Background gif for Helius Theme Xeon Theme packs 1 07-18-2003 01:13 AM
Helius theme tommytomato Theme packs 2 05-02-2003 01:04 AM
Helius theme pack msimonds Theme packs 13 04-21-2003 02:05 PM
Helius Theme Img Font Mighty_Y Site design 8 04-20-2003 03:12 PM


All times are GMT -5. The time now is 12:41 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31