Author |
Message |
steve_lemaster
Worker


Joined: Dec 26, 2006
Posts: 178
|
Posted:
Tue Apr 15, 2008 11:07 pm |
|
Any idea why banners are not showing up when I activate them?
I have it switched on in preferences. |
|
|
|
 |
jakec
Site Admin

Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom
|
Posted:
Wed Apr 16, 2008 12:12 am |
|
What theme are you using? |
|
|
|
 |
steve_lemaster

|
Posted:
Wed Apr 16, 2008 12:14 am |
|
NukeNews and the code is appears to be correct in themes.php |
|
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Wed Apr 16, 2008 6:27 am |
|
Not all themes support banners. This one does, but does not appear to be updated to the advertising module from the old banners module. Based on the fisubice theme (not sure if you tried viewing ads / banners in that theme), in themes/NukeNews/theme.php find:
Code: global $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $anonymous;
| Change to:Code: global $user, $banners, $showbanners, $sitename, $slogan, $cookie, $prefix, $db, $anonymous;
| Find:Code: if ($banners) {
echo ads(0);
}
| Change to:Code: if ($banners) {
echo $showbanners;
}
| Let us know if that works, and we can update the theme for the next release of RN. |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
 |
steve_lemaster

|
Posted:
Wed Apr 16, 2008 8:57 am |
|
Ok. I'll make the changes sometime today and get back to you. |
|
|
|
 |
steve_lemaster

|
Posted:
Wed Apr 16, 2008 10:18 am |
|
Nope. That didn't work.
However, it does work on Sand_Journey, but, only after I log out. |
|
|
|
 |
evaders99
Former Moderator in Good Standing

Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Wed Apr 16, 2008 3:02 pm |
|
If RavenNuke uses the Advertising module, then ads(0) should work.
Did something get changed to use the this $showbanners variable instead? |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
 |
steve_lemaster

|
Posted:
Wed Apr 16, 2008 3:33 pm |
|
The only thing that changed was that Jaded tweaked it in regards to the theme. |
|
|
|
 |
steve_lemaster

|
Posted:
Wed Apr 16, 2008 6:06 pm |
|
I don't know what's going on. |
|
|
|
 |
kguske

|
Posted:
Wed Apr 16, 2008 6:31 pm |
|
My recommendations were based on what I saw in fisubice. Do other themes work? |
|
|
|
 |
steve_lemaster

|
Posted:
Wed Apr 16, 2008 6:45 pm |
|
|
|
 |
kguske

|
Posted:
Wed Apr 16, 2008 6:56 pm |
|
So it's probably not the theme. Did you upgrade? |
|
|
|
 |
kguske

|
Posted:
Wed Apr 16, 2008 6:57 pm |
|
Also, where is the active ad / banner set to display? Top, left block, etc. |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Wed Apr 16, 2008 8:04 pm |
|
In case it has been changed from the default settings, can you give us the banner position number as well. |
|
|
|
 |
steve_lemaster

|
Posted:
Wed Apr 16, 2008 8:19 pm |
|
kguske wrote: | So it's probably not the theme. Did you upgrade? |
No. RavenNuke has been running without a problem. |
|
|
|
 |
steve_lemaster

|
Posted:
Wed Apr 16, 2008 8:20 pm |
|
kguske wrote: | Also, where is the active ad / banner set to display? Top, left block, etc. |
Top |
|
|
|
 |
steve_lemaster

|
Posted:
Wed Apr 16, 2008 8:21 pm |
|
Guardian2003 wrote: | In case it has been changed from the default settings, can you give us the banner position number as well. |
The banner position is set to the top on my client's site. |
|
|
|
 |
kguske

|
Posted:
Wed Apr 16, 2008 8:26 pm |
|
Why not create a left advertising block - visible only to admins - and change the banner to appear in the left block position? That might help localize the issue.
Also, can you verify the contents of the nuke_banner table? |
|
|
|
 |
steve_lemaster

|
Posted:
Wed Apr 16, 2008 8:34 pm |
|
kguske wrote: | Why not create a left advertising block - visible only to admins - and change the banner to appear in the left block position? That might help localize the issue.
Also, can you verify the contents of the nuke_banner table? |
Did that. Nothing is showing up.
What I find odd is that it only works on Sand_Journey after I log out.
Anyone is more than welcome to log into my client's Cpanel and poke around. |
|
|
|
 |
steve_lemaster

|
Posted:
Wed Apr 16, 2008 8:54 pm |
|
Here is the contents of my nuke_banner table:
SELECT *
FROM `nuke_banner`
LIMIT 0 , 30 |
|
|
|
 |
Guardian2003

|
Posted:
Wed Apr 16, 2008 9:05 pm |
|
I don't think 'top' will work as thats probably position ads(1), try it in 'header' which if I remember correctly is position ads(0) - I'm not certain because I'm using a customised Ad module. |
|
|
|
 |
steve_lemaster

|
Posted:
Wed Apr 16, 2008 9:16 pm |
|
Guardian2003 wrote: | I don't think 'top' will work as thats probably position ads(1), try it in 'header' which if I remember correctly is position ads(0) - I'm not certain because I'm using a customised Ad module. |
Not sure what you are talking about. According to what I am seeing 0 is Top |
|
|
|
 |
steve_lemaster

|
Posted:
Wed Apr 16, 2008 10:09 pm |
|
What do you mean by try it in 'header'? Are you referring to the header.php? |
|
|
|
 |
Guardian2003

|
Posted:
Thu Apr 17, 2008 3:01 am |
|
If you go into your advertising module administration area and click the text link 'Ads Positions'
You should see at least two ad poitions arleady there.
In the left most column it tells you the position of the banner;
'top' - normally a 760px wide banner which appears above the site header
'header' - normally a 468px wide banner which appears inside the header next to the site logo
'block' - normally a 125px image which appears in a side block.
These are just examples and in the virigin RN install you should have
Page Top
Left Block
If you look at the row that starts Page Top you can see it is assigned Position Number 0
If you look at Left Block you can see it is assigned Position Number 1
These position numbers are what is used to call the banner. So for the page top, you would use ads(0) and for the left block you would use ads(1)
As you have confirmed that 'Top' is '0' then that should work provided you also have a banner set up for it.
What I cannot figure out is why it works in one theme when you log out. The only reason I know of that would cause that to happen is if you have set yourself a 'subscriber' in which case the ads will not show when you are logged in.
If you could give us a link to your site this might help us. |
|
|
|
 |
steve_lemaster

|
Posted:
Thu Apr 17, 2008 10:12 am |
|
Ok. For some reason I was subscribed. When I unsubscribed they showed up, except for one theme that Jaded created and the NukeNews she tweaked for me. |
|
|
|
 |
|