PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
steve_lemaster
Worker
Worker


Joined: Dec 26, 2006
Posts: 178

PostPosted: Thu Apr 17, 2008 10:21 am Reply with quote Back to top

WOOT!

Thanks guys! I suspect this hulabaloo was due to me being subscribed.
View user's profile Send private message Send e-mail
jaded
Theme Guru


Joined: Nov 01, 2003
Posts: 1006

PostPosted: Thu Apr 17, 2008 10:46 am Reply with quote Back to top

I am happy that this is working Smile. 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.
View user's profile Send private message Visit poster's website
steve_lemaster
Worker
Worker


Joined: Dec 26, 2006
Posts: 178

PostPosted: Thu Apr 17, 2008 11:05 am Reply with quote Back to top

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. Mr. Green
View user's profile Send private message Send e-mail
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Thu Apr 17, 2008 11:26 am Reply with quote Back to top

ROTFL Too bad there aren't any monkey emoticons!
View user's profile Send private message
steve_lemaster
Worker
Worker


Joined: Dec 26, 2006
Posts: 178

PostPosted: Thu Apr 17, 2008 11:33 am Reply with quote Back to top

I've looked for them.

I am curious as to why subscribing would affect banners not being displayed.
View user's profile Send private message Send e-mail
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Thu Apr 17, 2008 12:00 pm Reply with quote Back to top

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.
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Thu Apr 17, 2008 12:03 pm Reply with quote Back to top

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.
View user's profile Send private message Send e-mail Visit poster's website
steve_lemaster
Worker
Worker


Joined: Dec 26, 2006
Posts: 178

PostPosted: Thu Apr 17, 2008 12:05 pm Reply with quote Back to top

Ok
View user's profile Send private message Send e-mail
jaded
Theme Guru


Joined: Nov 01, 2003
Posts: 1006

PostPosted: Thu Apr 17, 2008 12:15 pm Reply with quote Back to top

Here are my monkey emotes. Maybe you will find one to enjoy.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage


Last edited by jaded on Thu Apr 17, 2008 12:21 pm; edited 2 times in total
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Thu Apr 17, 2008 12:17 pm Reply with quote Back to top

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
View user's profile Send private message Send e-mail Visit poster's website
steve_lemaster
Worker
Worker


Joined: Dec 26, 2006
Posts: 178

PostPosted: Thu Apr 17, 2008 1:19 pm Reply with quote Back to top

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.
View user's profile Send private message Send e-mail
steve_lemaster
Worker
Worker


Joined: Dec 26, 2006
Posts: 178

PostPosted: Thu Apr 17, 2008 1:35 pm Reply with quote Back to top

Can anyone assist me on getting these ads centered and the font color changed?

They are two php files and one csv file.
View user's profile Send private message Send e-mail
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Thu Apr 17, 2008 2:49 pm Reply with quote Back to top

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.
View user's profile Send private message Send e-mail Visit poster's website
manoe
Client


Joined: Aug 14, 2005
Posts: 151

PostPosted: Tue Jul 29, 2008 7:48 am Reply with quote Back to top

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 Smile

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.
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9133
Location: Arizona

PostPosted: Tue Jul 29, 2008 6:52 pm Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
manoe
Client


Joined: Aug 14, 2005
Posts: 151

PostPosted: Tue Jul 29, 2008 9:00 pm Reply with quote Back to top

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?
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9133
Location: Arizona

PostPosted: Wed Jul 30, 2008 6:05 am Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
manoe
Client


Joined: Aug 14, 2005
Posts: 151

PostPosted: Wed Jul 30, 2008 9:25 am Reply with quote Back to top

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 Smile

Thanks a ton Montego, it is working perfectly now Smile
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9133
Location: Arizona

PostPosted: Thu Jul 31, 2008 6:17 pm Reply with quote Back to top

Cheers
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous 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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum