PHPNuke, check this nice mod!

They have: 21 posts

Joined: Oct 2003

Just wondered... how many people use PHPNuke??
I found PHPNuke about 3months ago, and now I can't go without it!
I just wrote a nice mod for PHPNuke 6.5+ which will display a popup ad for guests, but not members.
I think it works really well, and it gives people a good reason to become a member.
Here is how to use it......

In header.php, find:

<?php
echo \"<html>\n\";
echo \"<head>\n\";
echo \"<title>
$sitename $pagetitle</title>\n\";
?>

and add this below it:

<?php
    cookiedecode
($user);
   
$username = $cookie[1];
    if (
$username == \"\") {
       
$username = \"Anonymous\";
    }

    if (
$username == \"Anonymous\") {
    include (\"add.script\");
    } else {
    }
?>

create a file called add.script, and place it in your bas dir...
then add then just enter you javascript popup code into add.script...

This will only show the popup add for guests...

Enjoy, oh yeah, and who here uses PHPNuke?? - If you dont - WHY NOT!?

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

popups and popunders are bad. that's why I block them.

If you're going to have advertising shown to non-members, it'd be better to embed it.

They have: 21 posts

Joined: Oct 2003

Can anyone recommend good companies though???

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

For what?

They have: 21 posts

Joined: Oct 2003

Embedded Advertising companies

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Google.
http://www.marketbanker.com/mb/

Also check the promotion and marketing forums here for information on making your own ad campaign and selling banner space.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.