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, 182 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 - Theme iCGstation / Banners Help! [ ]
 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
Luckystrike
Corporal
Corporal


Joined: Jan 26, 2004
Posts: 66

Location: New York

PostPosted: Sun Mar 15, 2009 10:53 pm Reply with quoteBack to top

Ok - I read thru an old thread and tried several things myself but I can not get the banner function to work with this theme!

I am using Nuke v 7.8
Loaded the iCGstation theme (love it works great!)
Advertising Banners NOT SHOWING UP.

I believe i first have to define
Code:
 $showbanners = ads(0);

in the theme.php file.
Here is what my theme.php file code looks like where i found &showbanners. HOW DO I CHANGE THE SYNTAX???


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


Secondly, I believe you have to call it in your html file.
I want it in the header.html file and mine looks like this:

Code:
<td background="themes/iCGstation/forums/images/bg.jpg" width="40%" valign="middle">$showbanners</td>


any ideas here?
thanks

_________________
/// LuckyStrike
Find all posts by LuckystrikeView user's profileSend private messageICQ Number
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Mon Mar 16, 2009 5:44 pm Reply with quoteBack to top

You use the first code you specified, rather than the second one. That should be it

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Luckystrike
Corporal
Corporal


Joined: Jan 26, 2004
Posts: 66

Location: New York

PostPosted: Mon Mar 16, 2009 6:16 pm Reply with quoteBack to top

well then I'll just delete code number 2 and replace with code #1 and see what happends...
I'll report back!

_________________
/// LuckyStrike
Find all posts by LuckystrikeView user's profileSend private messageICQ Number
Luckystrike
Corporal
Corporal


Joined: Jan 26, 2004
Posts: 66

Location: New York

PostPosted: Mon Mar 16, 2009 6:32 pm Reply with quoteBack to top

good news bad news....

I changed the theme.php file; I deleted the line that is shown in code two above, and replaced it with code number 1 above. Good news is that the system still runs great - Bad news is that the banners don't show up.

Advertising IS turned on in the modules panel.
There is 1 advertiser with 2 banners, both turned on and both with
"top of page 0" selected.

The header.html file reads like code 3 above but nothing!
any idea'?

Thanks

_________________
/// LuckyStrike
Find all posts by LuckystrikeView user's profileSend private messageICQ Number
Luckystrike
Corporal
Corporal


Joined: Jan 26, 2004
Posts: 66

Location: New York

PostPosted: Mon Mar 16, 2009 6:42 pm Reply with quoteBack to top

What are the chances I could e-mail you the theme and you could e-mail me back the two changed files so they'll work with PHPNuke 7.8 ??

Or am I getting close?

_________________
/// LuckyStrike
Find all posts by LuckystrikeView user's profileSend private messageICQ Number
Luckystrike
Corporal
Corporal


Joined: Jan 26, 2004
Posts: 66

Location: New York

PostPosted: Mon Mar 16, 2009 6:53 pm Reply with quoteBack to top

wait a minute! Some success! I got the advertising "BLOCK" to work!

Code:
if (eregi("block-Advertising.php",$_SERVER[PHP_SELF])) {
    Header("Location: ../index.php");
    die();
}

// Position "1" by default is for block advertising. You can change this from your admin panel
$content = "<br>";
$content .= ads(1);
$content .= "<br>";


thats the advertising block code... should I be using $content.=ads(0) in the html file?

_________________
/// LuckyStrike
Find all posts by LuckystrikeView user's profileSend private messageICQ Number
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Mon Mar 16, 2009 8:12 pm Reply with quoteBack to top

Did banners ever work in this theme?

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Luckystrike
Corporal
Corporal


Joined: Jan 26, 2004
Posts: 66

Location: New York

PostPosted: Mon Mar 16, 2009 9:13 pm Reply with quoteBack to top

Evaders99 wrote:
Did banners ever work in this theme?


no -
i tried it out prior to any mods.
it did not work in the advertising block and it did not work at the top.
My guess is this is an older theme maybe?? Anyway I love the theme and just need the top banner to work and I'm good to go!

Any help here is appreciated!

Thanks!

_________________
/// LuckyStrike
Find all posts by LuckystrikeView user's profileSend private messageICQ Number
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Tue Mar 17, 2009 6:37 pm Reply with quoteBack to top

Need to see more of theme.php and how its structured

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Luckystrike
Corporal
Corporal


Joined: Jan 26, 2004
Posts: 66

Location: New York

PostPosted: Tue Mar 17, 2009 7:10 pm Reply with quoteBack to top

every time i try to post more "code" inside the "code tags" it won't allow me to; it says I'm not allowed to access modules on this server.

I tryed remming out every line and still get the message.

What code do I have to leave out?
Sad

Can I e-mail you the file?

_________________
/// LuckyStrike
Find all posts by LuckystrikeView user's profileSend private messageICQ Number
Luckystrike
Corporal
Corporal


Joined: Jan 26, 2004
Posts: 66

Location: New York

PostPosted: Sun Mar 22, 2009 6:43 am Reply with quoteBack to top

Evaders - Since I can not figure out how to post the theme.php file in the code tags here, her is the link to the Download at NukeMods ;

Is there anyway you could take a look at this and steer me in the right direction?
Thanks!

http://www.nukemods.com/downloads.php?do=file&id=36

_________________
/// LuckyStrike
Find all posts by LuckystrikeView user's profileSend private messageICQ Number
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Sun Mar 22, 2009 3:40 pm Reply with quoteBack to top

There is a lot of banner code in your theme.php
Since its wrapping around the $showbanners definition, it never executes correctly

You need to replace the entire block of code
Quote:

if ($banners == 1) {

....

}


with
Quote:

$showbanners = ads(0);

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Luckystrike
Corporal
Corporal


Joined: Jan 26, 2004
Posts: 66

Location: New York

PostPosted: Sun Mar 22, 2009 4:06 pm Reply with quoteBack to top

can't wait to try this! Here goes...

=>getting white screen ; took out the entire if / else statement. will re look at it shortly... gotta run right now.. <=

Thanks

_________________
/// LuckyStrike
Find all posts by LuckystrikeView user's profileSend private messageICQ Number
Luckystrike
Corporal
Corporal


Joined: Jan 26, 2004
Posts: 66

Location: New York

PostPosted: Mon Oct 18, 2010 8:53 pm Reply with quoteBack to top

so I never did figure out the banner thing. And her I am again with same issue. Using Nuke80 theme.php file code:

Code:


In the header.html file i want the banner to show up exactly where it says $showbanners

Code:


I\'ve tried changing the entire banner statement in the theme file to just $showbanners= ads(0); and that didn\'t work any ideas?



PS - When I try to post the code in the above code tags - I get teh Nuke sentinal warning and it says I\'ve attempted a hack. What are the guide lines for using the code tags in a post?
thanks

_________________
/// LuckyStrike
Find all posts by LuckystrikeView user's profileSend private messageICQ Number
Hitman
Nuke Soldier
Nuke Soldier


Joined: May 27, 2006
Posts: 34


PostPosted: Wed Oct 20, 2010 8:46 pm Reply with quoteBack to top

....

_________________
Image

Last edited by Hitman on Tue Oct 30, 2012 11:42 pm; edited 1 time in total
Find all posts by HitmanView 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.206 Seconds - 437 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::