http://www.psp-hacks.com/forums/index.php

Custom made themes FTW!

I had a better one on my own forum, but I don't think I have it anymore...

Unfortunately, I cannot seem to find this plugin.

I'll keep looking.

Hmm, why didn't I think of that hmm. Been too long since I've used PunBB.

I don't have access to FTP, but I'll post it as soon as I can.

http://img165.imageshack.us/img165/8835/picture3os9.png

Getting this error while attempting to post a new post, or edit a post.

It does let you post the post, but if you go back to the frontpage, it's not updating the "Last Post" coloum of the forum.

I'm rebuilding search index now (shut the forums down sad), any other ideas?

If there's an interest, I may make this mod, if the current one doesn't work... should be rather easy (at least for YouTube).

Just wondering if there's any way to view all changes made for one release (specifically, 1.2.12).
We recently (or so I think) had a mod go corrupt and moved topics all around, but I also wanted to make sure that it wasn't because our version is a bit old (1.2.11).
We've installed quite a few mods and have changed things in many files, and it looks like 1.2.12 just affects files (no database changes), so using dev.punbb.org, is there anyway to quickly list all changesets?

7

(5 replies, posted in PunBB 1.2 bug reports)

Yup, it is. Seems someone already found it.
Now to figure out how to stop forum members from abusing it...

8

(5 replies, posted in PunBB 1.2 bug reports)

Heh, long time no see smile

I've discovered a bug which allows more then one of the same username.
Example: I could immatate Rickard's account by registering as & # 0052;ickard. (remove spaces)

Edit: Opps, that would be 4ickard... But you get the point. Just change the unicode character.

9

(5 replies, posted in PunBB 1.2 show off)

Hmm, you see Oxygen?
Ahh, looks like the default theme is still oxygen..

Should be fixed now smile

10

(5 replies, posted in PunBB 1.2 show off)

The links on the first one are from Kontera, the ones on the second are Clicksor.

And thanks smile

11

(5 replies, posted in PunBB 1.2 show off)

The first one I spent a bit of time doing, but it was well worth it smile
I took the Andromeda phpBB theme (I think it was that...) and tried to turn it into a PunBB theme. It worked pretty well..
This is the site I did it for (I am an admin there): http://www.psp-hacks.com/forums/index.php
If you want to see what the forums looked like before, go here (assuming he hasn't switched this forum over to punbb yet): http://www.xbox360-hacks.com/forums/

The next site is a personal site I use for development (C programming for the PSP.. fun). I took the Cobalt theme, threw in a background image, and edited the colors to fit in with the background. I also made a < 100 line PHP file that retreives all topics from certain forums and throws them on index.php, forums.php lists the forums.
http://psp.indocron.org/

If there is any interest in the front page thing, let me know and I'll gladly post the code. Same goes for any of the styles.

12

(68 replies, posted in PunBB 1.2 discussion)

Please remember that Revo Forum is and will be free, so please support it by clicking on the Google Ads. You don't lose anything, instead you help us improve Revo, get access to better hosting providers and such.
This message does not intend to stress anyone, it's simply a fact. The OpenSource community would die without your support.

Thank you very much!
the Revo Team.

So he not only likes violating GPL, but he also likes violating terms of service, haha

13

(2 replies, posted in Programming)

Okay, according to Mediator, fgets waits until it receives data to continue.
I need some way around this... really really bad.
Maybe something like if (fgets(...)) ?

14

(2 replies, posted in Programming)

This is being used for an IRC client..

while (true)
        {
            $query = mysql_query("SELECT * FROM rows WHERE session_id='".$config['session_id']."'") or die(mysql_error());
            if (mysql_num_rows($query)) {
                while ($row = mysql_fetch_assoc($query)) {
                    cmd_send(prep_text($row['message'], $row['channel']));
                }           
            }
            mysql_query("DELETE FROM rows WHERE session_id='".$config['session_id']."'");
            echo "blah\n";

            $con['buffer']['all'] = trim(fgets($con['socket'], 4096));
            echo $con['buffer']['all']."\n";
           
            if(substr($con['buffer']['all'], 0, 6) == 'PING :') {
                cmd_send('PONG :'.substr($con['buffer']['all'], 6));

            } elseif ($old_buffer != $con['buffer']['all']) {
                // make sense of the buffer
                parse_buffer();
               
               
            }
            if (feof($con['socket']))
                break;
            $old_buffer = $con['buffer']['all'];
        }

It SHOULD echo blah constantly, as it is in the while loop, but it doesn't. Instead, it only echo's "blah" when the socket receives data.

I've tried to figure this out for a while now, and I can't. It just makes no sense to me...
So, if someone could please help me, I would highly appreciate it big_smile

Well, I chose a nice one.
It should be pretty simple to port the cash mod to 1.3, when it's out.

I don't get it..

I just looked at the code, and right now I have no clue what I was thinking.
I will fix this tonight, if I can even read it :S

erissiva wrote:

1) No....I mean, to auto-restart the pot. Sorry if I was confusing. So that people won't come to the pot and see this 0 there and the choice to still buy a ticket. So, if the pot is 45 and someone wins, and I have the minimum at 10, it automatically goes back to 10.
Right now people can still buy a ticket when the pot is 0.
That doesn't really make sense, but it could happen.

2) I see that - but where does it announce it? After someone wins, only the Admins see it - and only if they go all the way into the plugins menu, click Cash Mod, then click on General Options. How else do they know to go there?

3) I know...WTF? This is a direct quote: "erissiva last won the lottery and won erissiva last won the lottery and won 2 dollars. dollars." Sometimes its just "erissiva last won the lottery and won 2 dollars.", but it seems to vary randomly. Oh, and the 2 dollar pot was just for testing purposes.

4) Heh...I'll whip something up ASAP

1) Sounds good, but more work for me tongue. I'll see what I can do.
2) Not only the admins see it. After you buy a ticket, and lose, it shows who last won the topic. It doesn't really "announce" it anywhere, it just shows it.
3) I have no clue why this happens, and have never gotten it before hmm
4) Great big_smile

Photics wrote:

I tried to update the profile.php, but I got this error...

Parse error: parse error, unexpected T_CASE in ../forum/profile.php on line 726

What version of PunBB are you running?
I don't see anything in that code that would cause this error.

Mohit wrote:

Warning: ob_start(): output handler 'ob_gzhandler' cannot be used twice in /home/mastilan/public_html/forum/include/functions.php on line 1004

An error was encountered
Error: Unable to update config.

I get this error

Please don't post this twice, I can read fine...

I'm not sure why this is happening. It looks like a problem with the including the cache files again...
Disable gzip and tell me the results.

pkeod wrote:

I was sort of playing around with the mysql data... well I didn't ruin anything tongue But I noticed that in the bank tab I added there was interest saying "290382309423E-6" interest waiting... so I thought that was sort of weird neutral Going to the sql data I see that the default number is something huuuugggeeee... so I change it... so something smaller... like 2


Now the interest is about .0000000032823       >__>

What's up with this? What should I change the default value back to? yikes

You must have changed the cm_interest.
This value doesn't hold the amount of interest you will be getting, but rather the last time that user received interest.
Get a timestamp of the machine you are running PunBB on (make a new PHP file and put <?PHP echo time(); ?> in it), then set the feild to that.
Tell me if this doesn't work.


erissiva wrote:

Ok...a few issues I've noticed:

1) Perhaps auto-refill the lottery pot? Or even disable it while an announcement is made so that someone will see it to refill it.
On that note....

2) Announcement of lottery winner. This needs to be dome in some form so that someone will see that its been won. Hiding it away in the plugin system to never be found again isn't too helpful.

3) Bugish thing: When someone wins, the place under plugin where the value of the pot should be is grammatically incorrect. It says something like "User is pot win the user win pot has been won" or something of this sort.

4) Better layout for lottery, bank, and donate. They're a bit crowded.

Cheers!

1) Auto refil? The point is people put money in the pot, then someone can win what other people put in it..
2) There is a setting in the plugin to show the last winner of the lottery everytime someone loses.
3) "User is pot win the user win pot has been won".... Umm... WTF?
4) They're crowded 'cause my HTML skills suck tongue
If someone else feels up to making it look nicer, it would be appreciated a lot smile


HORRORel wrote:

No ... I want the files need to be changed ... some as viewtopic.php etc.

Read the file readme.txt





Just an update. 1.0.1 has been released.
It's a small release, so it doesn't get a topic of it's own. All that was changed was the ability to edit the amount of cash/bank that a user has. In my rush to get it out, I forgot that to add it.
If you installed 1.0.0, follow the instructions below to add this function.

#
#---------[ 16. OPEN ]---------------------------------------------------
#

profile.php

#
#---------[ 17. FIND (line:698) ]---------------------------------------------------
#

                // We only allow administrators to update the post count
                if ($pun_user['g_id'] == PUN_ADMIN)
                    $form['num_posts'] = intval($_POST['num_posts']);

#
#---------[ 18. REPLACE WITH ]---------------------------------------------------
#

                // We only allow administrators to update the post count
                if ($pun_user['g_id'] == PUN_ADMIN) {
                    $form['num_posts'] = intval($_POST['num_posts']);
                    $form['cm_cash'] = intval($_POST['cm_cash']);
                    $form['cm_bank'] = intval($_POST['cm_bank']);
                }
#
#---------[ 19. FIND (line:~888) ]---------------------------------------------------
#

$result = $db->query('SELECT u.username, u.email, u.title, u.realname, u.url, u.jabber, u.icq, u.msn, u.aim, u.yahoo, u.location, u.use_avatar, u.signature, u.disp_topics, u.disp_posts, u.email_setting, u.save_pass, u.notify_with_post, u.show_smilies, u.show_img, u.show_img_sig, u.show_avatars, u.show_sig, u.timezone, u.language, u.style, u.num_posts, u.last_post, u.registered, u.registration_ip, u.admin_note, g.g_id, g.g_user_title FROM '.$db->prefix.'users AS u LEFT JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id WHERE u.id='.$id) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());

#
#---------[ 20. REPLACE WITH ]---------------------------------------------------
#


$result = $db->query('SELECT u.cm_cash, u.cm_bank, u.username, u.email, u.title, u.realname, u.url, u.jabber, u.icq, u.msn, u.aim, u.yahoo, u.location, u.use_avatar, u.signature, u.disp_topics, u.disp_posts, u.email_setting, u.save_pass, u.notify_with_post, u.show_smilies, u.show_img, u.show_img_sig, u.show_avatars, u.show_sig, u.timezone, u.language, u.style, u.num_posts, u.last_post, u.registered, u.registration_ip, u.admin_note, g.g_id, g.g_user_title FROM '.$db->prefix.'users AS u LEFT JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id WHERE u.id='.$id) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());


#
#---------[ 21. FIND (line:~1057) ]---------------------------------------------------
#

        if ($pun_user['g_id'] == PUN_ADMIN)
            $posts_field = '<label>'.$lang_common['Posts'].'<br /><input type="text" name="num_posts" value="'.$user['num_posts'].'" size="8" maxlength="8" /><br /></label><p><a href="search.php?action=show_user&user_id='.$id.'">'.$lang_profile['Show posts'].'</a></p>'."\n";
        else if ($pun_config['o_show_post_count'] == '1' || $pun_user['g_id'] < PUN_GUEST)
            $posts_field = '<p>'.$lang_common['Posts'].': '.$user['num_posts'].' - <a href="search.php?action=show_user&user_id='.$id.'">'.$lang_profile['Show posts'].'</a></p>'."\n";
        else
            $posts_field = '<p><a href="search.php?action=show_user&user_id='.$id.'">'.$lang_profile['Show posts'].'</a></p>'."\n";


#
#---------[ 22. REPLACE WITH ]---------------------------------------------------
#

        if ($pun_user['g_id'] == PUN_ADMIN) {
            $posts_field = '<label>'.$lang_common['Posts'].'<br /><input type="text" name="num_posts" value="'.$user['num_posts'].'" size="8" maxlength="8" /><br /></label><p><a href="search.php?action=show_user&user_id='.$id.'">'.$lang_profile['Show posts'].'</a></p>'."\n";
            $posts_field .= '<label>'.ucwords($pun_config['cm_cur_name']).'<br /><input type="text" name="cm_cash" value="'.$user['cm_cash'].'" size="8" maxlength="8" /><br /></label>'."\n";
            $posts_field .= ($pun_config['cm_bank'] == 1) ? '<label>Bank<br /><input type="text" name="cm_bank" value="'.$user['cm_bank'].'" size="8" maxlength="8" /><br /></label>'."\n" : '';
        } else if ($pun_config['o_show_post_count'] == '1' || $pun_user['g_id'] < PUN_GUEST) {
            $posts_field = '<p>'.$lang_common['Posts'].': '.$user['num_posts'].' - <a href="search.php?action=show_user&user_id='.$id.'">'.$lang_profile['Show posts'].'</a></p>'."\n";
            $posts_field .= '<p>'.ucwords($pun_config['cm_cur_name']).': '.$user['cm_cash'].'</p>'."\n";
            $posts_field .= ($pun_config['cm_bank'] == 1) ? '<p>Bank: '.$user['cm_bank'].'</p>'."\n" : '';
        } else
            $posts_field = '<p><a href="search.php?action=show_user&user_id='.$id.'">'.$lang_profile['Show posts'].'</a></p>'."\n";

#
#---------[ 15. SAVE/UPLOAD ]---------------------------------------------------
#

profile.php

The line numbers will probably be off a bit...

The problem with teaming up, is I hate everyones style of coding tongue

There are a few people that I like/can read, and luckily Rickard's is one of those people smile

Another problem is that I want almost nothing to do with the final RPG mod. It is so big, and would be extremly hard for me to do.

HMEternity wrote:

Excellent mod, but there's no way for admins to adjust the amount of cash certain users have with out playing with the database.  Just a feature suggestion for next time.

If you upload the file AP_Cash_Mod.php to /plugins/, then you can easily smile

HORRORel wrote:

Can give me the changel files please ?

Just upload all files from the current version.
You don't need to edit any of the files again, as nothing in those has changed.

If you get the "Cannot fetch post info" error, then run install_mod.php again.

I might be able to do the shop mod, but as you saw, I am not very reliable tongue

I will work on it in my spare time, and if I don't have enough time for it, I will release it to some other lucky person (Mediator!!! tongue)

Okay all, this new version should fix ALL of the problems you have been having.

If you were getting the blank screen during install, re run it.
If you got the "unable to fetch post info", run the installer again..

Please post any errors here or on PunRes, and include what database type you are using!

I can't think why you get this error, but I will look into it hmm

##
##
##        Mod title:  Cash Mod 1.0.0 
##
##      Mod version:  1.0.0 
##   Works on PunBB:  1.2.8 
##     Release date:  10-01-05 
##           Author:  Gary(13579) Schilling 
##
##      Description:  This mod gives people "cash" for their posts, and is a start towards the RPG mod that Connorhd wants made.
##        Nearly everything is configurable.. 
##
##       Affects DB:  Yes 
##
##   Affected files:  post.php 
##                    viewtopic.php 
##
##            Notes:  Thanks to Connorhd for the inspiration (if you call yelling at me for 2 weeks on IRC inspiration :P) and the money..
##                      Thanks to Mediator for the awesome Auto Read-me program.
##                      And most of all, thanks to Rickard for PunBB :D 
##
##     Generated By:  Auto Read-Me(by Caleb Champlin) - http://www.rscheatnet.com/Auto_Readme.zip
##
##       DISCLAIMER:  Please note that 'mods' are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##

The mod made for Connorhd is done!

Download it here.

Edit: A fix just released. Thanks to Smartys for the obvious bug I overlooked smile
Edit 2: Another few bug fixes... Thanks to Smartys, again..

I love you Connor!

He told me to uninstall the USB drivers, and I did it. He then told me I fucked up my USB drive, and left tongue
Anwyay, I ran the "Add Hardware" wizard and it reinstalled the drivers. It works perfectly now big_smile