| Author |
Message |
Luckystrike
Corporal


Joined: Jan 26, 2004
Posts: 66
Location: New York
|
Posted:
Sun Mar 15, 2009 10:53 pm |
  |
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> ";
} |
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 |
|
    |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12482
|
Posted:
Mon Mar 16, 2009 5:44 pm |
  |
|
     |
 |
Luckystrike
Corporal


Joined: Jan 26, 2004
Posts: 66
Location: New York
|
Posted:
Mon Mar 16, 2009 6:16 pm |
  |
well then I'll just delete code number 2 and replace with code #1 and see what happends...
I'll report back! |
_________________ /// LuckyStrike |
|
    |
 |
Luckystrike
Corporal


Joined: Jan 26, 2004
Posts: 66
Location: New York
|
Posted:
Mon Mar 16, 2009 6:32 pm |
  |
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 |
|
    |
 |
Luckystrike
Corporal


Joined: Jan 26, 2004
Posts: 66
Location: New York
|
Posted:
Mon Mar 16, 2009 6:42 pm |
  |
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 |
|
    |
 |
Luckystrike
Corporal


Joined: Jan 26, 2004
Posts: 66
Location: New York
|
Posted:
Mon Mar 16, 2009 6:53 pm |
  |
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 |
|
    |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12482
|
Posted:
Mon Mar 16, 2009 8:12 pm |
  |
|
     |
 |
Luckystrike
Corporal


Joined: Jan 26, 2004
Posts: 66
Location: New York
|
Posted:
Mon Mar 16, 2009 9:13 pm |
  |
| 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 |
|
    |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12482
|
Posted:
Tue Mar 17, 2009 6:37 pm |
  |
|
     |
 |
Luckystrike
Corporal


Joined: Jan 26, 2004
Posts: 66
Location: New York
|
Posted:
Tue Mar 17, 2009 7:10 pm |
  |
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?
Can I e-mail you the file? |
_________________ /// LuckyStrike |
|
    |
 |
Luckystrike
Corporal


Joined: Jan 26, 2004
Posts: 66
Location: New York
|
Posted:
Sun Mar 22, 2009 6:43 am |
  |
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 |
|
    |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12482
|
Posted:
Sun Mar 22, 2009 3:40 pm |
  |
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 |
|
     |
 |
Luckystrike
Corporal


Joined: Jan 26, 2004
Posts: 66
Location: New York
|
Posted:
Sun Mar 22, 2009 4:06 pm |
  |
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 |
|
    |
 |
Luckystrike
Corporal


Joined: Jan 26, 2004
Posts: 66
Location: New York
|
Posted:
Mon Oct 18, 2010 8:53 pm |
  |
so I never did figure out the banner thing. And her I am again with same issue. Using Nuke80 theme.php file code:
In the header.html file i want the banner to show up exactly where it says $showbanners
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 |
|
    |
 |
Hitman
Corporal


Joined: May 27, 2006
Posts: 69
|
Posted:
Wed Oct 20, 2010 8:46 pm |
  |
Go here:
| Code: |
| http://www.pastebin.com/ |
Then post your code on that site and paste the urls so I can see the code. |
_________________
 |
|
   |
 |
|
|