| Author |
Message |
steve_lemaster Worker


Joined: Dec 26, 2006 Posts: 178
|
Posted:
Thu Apr 17, 2008 10:21 am |
|
WOOT!
Thanks guys! I suspect this hulabaloo was due to me being subscribed. |
|
|
|
 |
jaded Theme Guru

Joined: Nov 01, 2003 Posts: 1006
|
Posted:
Thu Apr 17, 2008 10:46 am |
|
I am happy that this is working . Just to be clear, the only tweaking that I did to the NukeNews theme was image and color changes. I didn't change any of the actual coding. That subscriber issue has effected some people that I know before. You are always welcome to contact me via email if you have problems, Steve. |
|
|
|
 |
steve_lemaster Worker


Joined: Dec 26, 2006 Posts: 178
|
Posted:
Thu Apr 17, 2008 11:05 am |
|
Hi Jaded. Yeah, I know you didn't do anything that caused it. I changed the code a bit, but, it worked. When it comes to PHPNuke, I know to look at myself as the problem first.
And it just reinforces my opinion that monkeys can learn php.  |
|
|
|
 |
kguske Site Admin

Joined: Jun 04, 2004 Posts: 6044
|
Posted:
Thu Apr 17, 2008 11:26 am |
|
Too bad there aren't any monkey emoticons! |
|
|
|
 |
steve_lemaster Worker


Joined: Dec 26, 2006 Posts: 178
|
Posted:
Thu Apr 17, 2008 11:33 am |
|
I've looked for them.
I am curious as to why subscribing would affect banners not being displayed. |
|
|
|
 |
kguske Site Admin

Joined: Jun 04, 2004 Posts: 6044
|
Posted:
Thu Apr 17, 2008 12:00 pm |
|
If someone subscribes (usually for a fee) to your site, you don't want them to be bombarded with ads...that's the theory, anyway. |
|
|
|
 |
Guardian2003 Site Admin

Joined: Aug 28, 2003 Posts: 6373 Location: Vsetin, Czech Republic
|
Posted:
Thu Apr 17, 2008 12:03 pm |
|
The code that kguske gave you should have worked for NukeNews but if you have applied that code and it is still not working then zip up the theme and send it to me
webmaster AT code-authors DOT com
As jaded's themes are paid themes, you may have to contact her about that one. |
|
|
|
 |
steve_lemaster Worker


Joined: Dec 26, 2006 Posts: 178
|
Posted:
Thu Apr 17, 2008 12:05 pm |
|
|
|
 |
jaded Theme Guru

Joined: Nov 01, 2003 Posts: 1006
|
Posted:
Thu Apr 17, 2008 12:15 pm |
|
Here are my monkey emotes. Maybe you will find one to enjoy.
                    |
Last edited by jaded on Thu Apr 17, 2008 12:21 pm; edited 2 times in total |
|
|
 |
Guardian2003 Site Admin

Joined: Aug 28, 2003 Posts: 6373 Location: Vsetin, Czech Republic
|
Posted:
Thu Apr 17, 2008 12:17 pm |
|
Ah ignore my post then, I did'nt realise it had taken me that long to type it, half the world had replied in the meantime lol.
Nice 'motes jaded |
|
|
|
 |
steve_lemaster Worker


Joined: Dec 26, 2006 Posts: 178
|
Posted:
Thu Apr 17, 2008 1:19 pm |
|
LOL! That's exactly what I need.
I got this guy's ads up, but now I can't figure out how to center them.
Oy! It's always something. |
|
|
|
 |
steve_lemaster Worker


Joined: Dec 26, 2006 Posts: 178
|
Posted:
Thu Apr 17, 2008 1:35 pm |
|
Can anyone assist me on getting these ads centered and the font color changed?
They are two php files and one csv file. |
|
|
|
 |
Guardian2003 Site Admin

Joined: Aug 28, 2003 Posts: 6373 Location: Vsetin, Czech Republic
|
Posted:
Thu Apr 17, 2008 2:49 pm |
|
Something like | Code: |
if ($banners) {
echo '<center>';
echo ads(0);
echo '</center>';
} | or
| Code: |
if ($banners) {
echo '<center>'.$showbanners.'</center';
} |
depending on what you are using. |
|
|
|
 |
manoe Client

Joined: Aug 14, 2005 Posts: 151
|
Posted:
Tue Jul 29, 2008 7:48 am |
|
Question,
I have a flash header. I want to add a center block on my main page that would work with the advertising. Is this possible to do? I currently have the 0 and 1 banner positions. I want the 468x60 banner size to appear in it. The current header position for this size wont work because I am using a flash header.
Oh my. As I go deeper into this I realize that I need to edit the following pages. I am so not wanting to mess up my site.. I am so close
If I wanted to add a Center Top position (a block) as ad space how would I add this to the following files Codewise in order for it to work on the website?
This is the code the module is telling me about the position I just added.
| Code: | Note:
To use the position you must include the code: ads(position); in your theme file, where 'position' is the number of the position you want to use in that ad space.
You can have a look at the file /blocks/block-Advertising.php and file /header.php to have a clear example on how to implement this in your site. |
|
|
|
|
 |
montego Site Admin

Joined: Aug 29, 2004 Posts: 9133 Location: Arizona
|
Posted:
Tue Jul 29, 2008 6:52 pm |
|
Sounds to me like you want to create a new block file like one under the blocks directory. In one of your lines of code, you would have this:
$content .= ads(2);
User whatever position ID you have for your flash banner. I just used 2 because you already mentioned 0 and 1 being taken. |
|
|
|
 |
manoe Client

Joined: Aug 14, 2005 Posts: 151
|
Posted:
Tue Jul 29, 2008 9:00 pm |
|
hmm I believe I am a little lost here. You are saying I need to create an actual block file and upload it?
Not sure I follow all of this.
So I add your line of code to the block-Advertising.php or create another one like block-Advertising2.php and use that content.=ads(2); code into that? Then select this block file to place on the center top and it will automatically display whatever banner I tell to load into that position2? |
|
|
|
 |
montego Site Admin

Joined: Aug 29, 2004 Posts: 9133 Location: Arizona
|
Posted:
Wed Jul 30, 2008 6:05 am |
|
No, definitely do NOT add that line of code to an existing block. Try this:
=== CREATE NEW FILE ===
blocks/block-CenterUpAds.php
=== WITH CONTENTS ===
| Code: |
<?php
if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
}
$content = '';
$content .= ads(2);
?>
|
=== ACTIVATE BLOCK ===
Go into blocks administration and activate this new block and place it in the Center Up position where you want it. |
|
|
|
 |
manoe Client

Joined: Aug 14, 2005 Posts: 151
|
Posted:
Wed Jul 30, 2008 9:25 am |
|
wow.. that was simple.. I did have the right idea about needing to create a new block file.. I just tend to over think things
Thanks a ton Montego, it is working perfectly now  |
|
|
|
 |
montego Site Admin

Joined: Aug 29, 2004 Posts: 9133 Location: Arizona
|
Posted:
Thu Jul 31, 2008 6:17 pm |
|
|
|
 |
|
|
|
|