1

(65 replies, posted in PunBB 1.2 discussion)

Sorry I wasn't clear enough. I'm already using that script. It's the exact same script that Rickard made. My question is that I am wonderg if it's possible to make the colors automated. I have a _ton_ of smilies installed, and it becomes really tiresome to add a new switch for every one, not to mention the amount of unnecessary code that gets in there.

hcgtv wrote:

Mako,

This is what I use, let's call it myads.php and place it in /include/user. Then in /include/template/main.tpl add a line under footer:  <pun_include "myads.php">

<?php

switch ($pun_user['style'])
{
    case 'Cobalt':
        $bd_color = '565656';
        $bg_color = '2A2A2A';
        $link_color = '60A0DC';
        $text_color = 'D4D4D4';
        break;

    case 'Mercury':
        $bd_color = '565656';
        $bg_color = '2A2A2A';
        $link_color = 'F6B620';
        $text_color = 'D4D4D4';
        break;

    case 'Radium':
        $bd_color = '565656';
        $bg_color = '2A2A2A';
        $link_color = '60C860';
        $text_color = 'D4D4D4';
        break;

    case 'Sulfur':
        $bd_color = 'B84623';
        $bg_color = 'FFFFFF';
        $link_color = '822100';
        $text_color = '333333';
        break;

    case 'Lithium':
        $bd_color = '6C8A3F';
        $bg_color = 'FFFFFF';
        $link_color = '638137';
        $text_color = '333333';
        break;

    default:
        $bd_color = '0066B9';
        $bg_color = 'FFFFFF';
        $link_color = '005CB1';
        $text_color = '333333';
        break;
}

?>
<div style="TEXT-ALIGN: center">
    <script type="text/javascript">
    <!--
    google_ad_client = "pub-1234567890123456";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_type = "text_image";
    google_ad_channel ="";
    google_color_border = "<?php echo $bd_color ?>";
    google_color_bg = "<?php echo $bg_color ?>";
    google_color_link = "<?php echo $link_color ?>";
    google_color_url = "<?php echo $link_color ?>";
    google_color_text = "<?php echo $text_color ?>";
    google_alternate_color = "<?php echo $bg_color ?>";
    //-->
    </script>
    <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>

Just add a switch line for each new style you add to your site.

2

(65 replies, posted in PunBB 1.2 discussion)

Hey is there any way to automate the colors going into the AdSense ad? It becomes tiresome to have to update the colors in the Google script everytime I add a new style to my installation.

I will convert EasySmilies to 1.3 once it's public. And I haven't seen the way 1.3 sets up style guides so I'm not yet sure about 'Style Creation and Tester' on whether or not it will survive the transfer.

4

(11 replies, posted in PunBB 1.2 troubleshooting)

Fair enough. Thanks for the help.

5

(11 replies, posted in PunBB 1.2 troubleshooting)

No no, I mean prevent the new account from being created at all. Like you enter in all your information, click the submit button and it says "I'm sorry, that username is not available."

6

(11 replies, posted in PunBB 1.2 troubleshooting)

Yeah I don't know. I just thought by the meaning of a banning system, it would be put into use during user registration.

7

(11 replies, posted in PunBB 1.2 troubleshooting)

I don't ban IP's.

Ok looked into it again. I made an account by the name of Administrator, got my confirmation e-mail and whatnot. Log in and it says I'm banned. Is there any way to prevent them from making the account in the first place?

8

(11 replies, posted in PunBB 1.2 troubleshooting)

Can someone please tell me how this banning system works?

I had a user, banned the email and username then deleted the account. Few months later they signed back up with the same username and all was well. It's like the ban didn't even exist. Does there need to be an account there in order for the ban to work? If so, how can I ban people from registering withthe username of Admin, Mod, or w/e?

What are still the problems with it?

10

(65 replies, posted in PunBB 1.2 discussion)

Alright well that fixed that problem. The ad has displayed on one thread page so far. The rest is just a blank spacer below the footer. Weird. Never had any problems like this since having signed up to AdSense last year.

Never mind. It's showing on almost every page now. Guess I just needed to give it some time.

Thanks for the help.

11

(65 replies, posted in PunBB 1.2 discussion)

I don't run any anti-ad programs.

12

(65 replies, posted in PunBB 1.2 discussion)

Sorry about that. It didn't even cross my mind to produce a link.

http://forums.medievalbattles.com/_google.php

And then if you go, for example, to a thread on the forums and view the source it shows  the "<pun_include _google.php>" in there. Weird that it doesn't show the page instead.

13

(65 replies, posted in PunBB 1.2 discussion)

Interesting. Finally got around to putting this into my forums. I added the line in main.tpl and then made the _google.php file. I put this in the root forum directory. That is where it is supposed to go right because it's not showing the ads.

Then for some reason, which I know is causing it not to show ads on the regular pages, when I go to the page directly nothing comes up. Any ideas?

Have you been smoking hashish?

Connorhd wrote:

tomorrow i guess, had a couple of bugs, the avatars and all caps messages but nothing serious, i just need to look what happens when you upgrade from 1.1.5 with the PM mod

Awesome I can't wait.

Any idea when this will emerge from beta?

17

(99 replies, posted in Programming)

EditPlus is the best one out there.

www.editplus.com

18

(11 replies, posted in Feature requests)

Plug-in: "A file containing data used to alter, enhance, or extend the operation of a parent application program."

So to some extent a "mod" is a "plug-in", it's just not referred to as a "plug-in" but rather a "mod".

v1.0.5: Download Here

And I am not sure if it works with 1.2.1. I'll try to test it on 1.2.1 sometime this week. I'll let you know if it does or not afterwards.

lol thanks.

v1.0.4: Download Here

I'm stumped. Anybody have an idea as to what is causing this?

This only happen when deleting smilies?

That would only appear if $toremove has not been defined. And if it has not been defined, then you probably did not enter a smiley to be deleted.

24

(3 replies, posted in PunBB 1.2 show off)

This shouldn't have been posted in "Show off".

I'm not too fond of that site's design, but it looks good for what it is.