Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.20.00 - All Issues
Author Message
steve_lemaster
Worker
Worker



Joined: Dec 26, 2006
Posts: 178

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

WOOT!

Thanks guys! I suspect this hulabaloo was due to me being subscribed.

_________________
The urge to save humanity is often a false front for the urge to rule.

- H.L. Mencken 
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

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.

_________________
Themes BB Skins [ Only registered users can see links on this board! Get registered or login! ]
Graphic Tees [ Only registered users can see links on this board! Get registered or login! ]
Paranormal Tees [ Only registered users can see links on this board! Get registered or login! ]
Ghost Stories & More [ Only registered users can see links on this board! Get registered or login! ] 
View user's profile Send private message Visit poster's website
steve_lemaster







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

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
 
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6432

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

ROTFL Too bad there aren't any monkey emoticons!

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
steve_lemaster







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

I've looked for them.

I am curious as to why subscribing would affect banners not being displayed.
 
kguske







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

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: 6799
Location: Ha Noi, Viet Nam

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

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
steve_lemaster







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

Ok
 
jaded







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

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 
Guardian2003







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

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







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

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







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

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

They are two php files and one csv file.
 
Guardian2003







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

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

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

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: 9457
Location: Arizona

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

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.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
manoe







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

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







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

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







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

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
 
montego







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

Cheers
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.20.00 - All Issues

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©