It's in profile.php

Well, if he wants anyone with a little knowledge to be able to bypass it... smile

The way to fix it, along with the above change, is this (also in register.php)
FIND

    else if (pun_strlen($username) > 25)    // This usually doesn't happen since the form element only accepts 25 characters
        message($lang_common['Bad request']);

REPLACE WITH

    else if (pun_strlen($username) > 12)    // This usually doesn't happen since the form element only accepts 25 characters
        message($lang_common['Bad request']);

That would work too smile

7,079

(9 replies, posted in PunBB 1.2 troubleshooting)

I thought that might have been the issue

Connorhd wrote:

you can't add styles i have to add them, and i still need to write the system for me adding them, i should have some time soon so you can install any style you want from the admin panel

In other words, unless he finished the style uploading plugin he was working on, you can't upload styles yet

Currently, if it is disabled, the check fails here:

        if (!isset($_FILES['req_file']))
            message($lang_profile['No file']);

IMO the best way to solve this would be a new language file entry (which probably isn't happening) tongue

7,081

(7 replies, posted in Feature requests)

It is an easy mod tongue

Looks like it validates to me (briank's demo site doesn't because of the PM mod URLs)

If it doesn't, tell me and I'll make it so it does?

Yes, very fun smile
OK, I dunno what the deal was with your error, but when I put it in I noticed I was missing a }
I need to fix that or the mod is useless, so I'll fix it in a sec

Edit: I just deleted the old 1.0.1 and made this 1.0.1 smile
I'll send you an edited version of yours

Yeah, check the mod readme tongue

Mmm, what's your line 467 and the stuff around it (my file doesn't go that high)

7,087

(26 replies, posted in General discussion)

Ooh, this is one of my favorites tongue
A friend of mine got access to the admin account on some freaky game and started messing around with it. He got some mails from people ingame and he responded, telling them he hacked the game. He got a response from one person: can I be admin? tongue

OK, all done and uploaded
http://www.punres.org/files.php?pid=80
Report any problems you have smile

Probably because you have a big database to back up wink

Perfect, thanks Connor smile

OK, I decided to push back the release until tomorrow (I currently have the config file, table, etc working, just need to create a plugin so it's possible to edit the AdSense info).

Well, for the Adsense coloring I think Rickard wrote something on that

And the info: looking at the source code for this page:

        google_ad_client = "pub-5038618221283072";
        google_ad_width = 728;
        google_ad_height = 90;
        google_ad_format = "728x90_as";
        google_ad_channel ="";
        google_ad_type = "text";
        google_color_border = "FFFFFF";
        google_color_bg = "FFFFFF";
        google_color_link = "005CB1";
        google_color_url = "005CB1";
        google_color_text = "333333";
        google_alternate_color = "FFFFFF";

Are there other things? For some things (like ad type and ad format) are there a limited number of options (so I could use a pull-down box instead of a textbox in the plugin I'm going to make).

Try playing with asort?

OK, I'll write a quick readme up when I get back and release it. I'm not going to create an install_mod.php file, since so far it's only one insert query. I'm going to change up the code a lot over the weekend so it's more dynamic, and if anyone is willing to help explain to me the different options Google Adsense offers to make sure I include them all, feel free to email me smile

Well, I'm almost done smile
Note to self: in the future, know something about what you're coding a mod for (in this case, Adsense). tongue
Since I've never used it before, tell me if I've gotten something wrong: I plan to add a whole bit for all the Adsense options (ie: border, ad_format, all that stuff I see when looking at the source code here tongue ).

But when I first release it, you'll have to edit that stuff yourself smile

Ooh, even better: create a new table, store the name of the poster and it's tag as well as all the options, and have the ability to store different color schemes for each stylesheet (future release)
Oh, and a cache file for the info!


Alright, all done, but I need to go somewhere soon. smile

Mmm, I'll see what I can do smile

7,097

(7 replies, posted in PunBB 1.2 troubleshooting)

Should be ./forum/, not /forum/

7,098

(7 replies, posted in PunBB 1.2 troubleshooting)

Erm, extern.php& should be extern.php? wink

7,099

(2 replies, posted in Feature requests)

Erm, it's in there wink
In Permissions the admin can set if mods can ban or not...

lol tongue