hcgtv wrote:

Komodo is also built off the Mozilla code base.

I know it's not related to Songbird, but I just checked out Komodo from that link and it looks awesome!

2

(13 replies, posted in Programming)

Wow, I really like that!

3

(19 replies, posted in PunBB 1.2 show off)

Looks nice smile

Did you pay for advertising or something? How so many hits after just a few weeks?

hcgtv wrote:

sPuD,

On the ganked forums, I would lighten up the text a bit, it's a little hard to read.

Indeed... For some reason I could read the text fine when I set the colors, now I can't read it at all either... sad Suppose I'll change it to white.

It's been a while since I've posted a Show off thread, so I decided I'd post with my most recent creation (nothing special):

http://ganked.us is a new site I'm working on, it's gaming related

http://forums.ganked.us are the forums, just put them online today


http://internet.destroys.us I've had since early December, it's more of a blog/random/nothing good at all site

http://internet.destroys.us/forums are the forums, and they are a mess, but GOOGOGOGOGGO! (they look like my previous show off thread's forum the metal congress, but I closed that)

Both of them use my own post icons mod, store/cash mod, spoiler tag, modified styles, and have private messaging (connerhd's). Oh, and the IDU forum has a SUPERULTRAAWESOMESPECIAL section dedicated to my cousin, but I wouldn't go there.

The other mods I'll probably add to the ganked forums are more store options, topic ratings, and coloring of usernames.

6

(8 replies, posted in PunBB 1.2 show off)

Hey,

Your forums look very nice!!!



Btw, Goon?

I don't know what's wrong, make sure you've made all of the edits correctly. The first lines of store.php should be something like:

<?php

// This is by me, myself, and I, all written from scratch.

define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';

I have limited PHP experience, so I can't provide support, unless there was a mistake I made in the code I gave. Also, poll threads probably have to be modded differently, which I can't help you with. Everything is provided as is.

shinko_metsuo wrote:

Is there a way where this can be like the Karma system on GameFAQs where it increases with visits and mods/admins can take away or add?

Also do you have a readme for what edits you did to profile.php?

I'm sure it's possible to make it into a karma system, you'd probably have to remove the edits from post.php and make a few edits to store.php to have it how you want it.

And maybe you could edit common.php or something for the increase with visits?

I don't have a readme for profile.php, so if you want to do the edits yourself, just search "points" in that text file I gave, and it will bring you to every edit pretty much.

Here are the pages I modded for my store/point system, beware of security flaws, inefficiencies, etc.

In viewtopic.php:

find:

$result = $db->query('SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'users AS u ON u.id=p.poster_id INNER JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id LEFT JOIN '.$db->prefix.'online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id='.$id.' ORDER BY p.id LIMIT '.$start_from.','.$pun_user['disp_posts'], true) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());

replace with:

$result = $db->query('SELECT u.points, u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'users AS u ON u.id=p.poster_id INNER JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id LEFT JOIN '.$db->prefix.'online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id='.$id.' ORDER BY p.id LIMIT '.$start_from.','.$pun_user['disp_posts'], true) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());

(basically add u.points to the query)

find:
// Now let's deal with the contact links (E-mail and URL)

add before:

$user_info[] = '<dd>Points: '.$cur_post['points'].' (<a href="store.php?user='.$cur_post['username'].'">$</a>)';

In post.php

add

//Points for posting
$post_reward = 5;

right after the includes - at this moment its 5 points for both topics and posts, you could modify it fairly easily probably to get more points for topics.

find:

        // If the posting user is logged in, increment his/her post count
        if (!$pun_user['is_guest'])
        {
            $low_prio = ($db_type == 'mysql') ? 'LOW_PRIORITY ' : '';
            $db->query('UPDATE '.$low_prio.$db->prefix.'users SET num_posts=num_posts+1, last_post='.$now.' WHERE id='.$pun_user['id']) or error('Unable to update user', __FILE__, __LINE__, $db->error());
        }

replace with:

        // If the posting user is logged in, increment his/her post count
        if (!$pun_user['is_guest'])
        {
            $low_prio = ($db_type == 'mysql') ? 'LOW_PRIORITY ' : '';
            $db->query('UPDATE '.$low_prio.$db->prefix.'users SET num_posts=num_posts+1, last_post='.$now.', points=points+'.$post_reward.' WHERE id='.$pun_user['id']) or error('Unable to update user', __FILE__, __LINE__, $db->error());
        }

save the following as store.php and save to your main forum directory
http://www.geocities.com/eddof13/store.txt

and if you want your profile to reflect your points, here is my modded profile.php (copy/paste the contents of the text file):
http://www.geocities.com/eddof13/profile.txt

You'll need to add another row to punbb_users:
"points" as an int(10) with a default of 0

here's the mysql:
ALTER TABLE `punbb_users` ADD `points` INT( 10 ) DEFAULT '0' NOT NULL ;

And that's it. I may of missed something, so if I did, let me know. It should work, and if anyone wants to expand on it and make it an official mod or whatever, feel free. I'll add the post icons code possibly later this week.

Lasse wrote:

Your point system looks awsome.
Do you make it as a mod soon?
(can't wait..)

I would like
5 points for a post
20 points for a new tread
10 points for a sticky tread (per day)
10 points for an image in the gallery
10 points for an invitation

Is this possible?
Could you do it so that you also get points for the posts you have made before you installed the "money-mod"?

I'll release my modded pages for other people to do what they wish with, however I'm not releasing an official mod, so it'll be up to you to add the other features. I'll post the modded pages in a few.

If anyone else wants to make the post icons/point system into official mods, feel free.

Paul wrote:

sPuD: You might want to remove your IP address from the image you posted.

Hey, you're right, I prolly should tongue

I could give you the code to do it, but I probably won't release an official mod. You'd just have to modify an array pretty much, and make your icons (mine are being made specifically for my forum by someone else, who's not yet done as you may of noticed from that screenshot above). Also I can't guarantee that it'll be secure, as I'm not too experienced in PHP. I'll get back to you with the code if you're interested.

Recently I've been working on a new metal forum I plan to open up. It's still under construction so all you get to see is the maintenance page, here: http://tenkai.net/metal

However, I do have some screenshots of what I've done to it (I'm proud of it, being new to php).

Installed Mods:

Private Messages
Spoiler tags (my own)
Store/Points system (my own)
Post Icons (my own)

http://img183.imageshack.us/img183/1503/screen16xq.gif
An example of my post icons mod, which adds post icons to topics (kind of like the smilies that some forums use). Also you can see some information about my store/points system (kill two birds with one stone).

http://img272.imageshack.us/img272/4184/screen29uc8kh.gif
On the left you can see how many points I have!! Ooohh big_smile (Being an admin I can edit anyone's points from their Profile). If I was to click the $ inside the ($), it would direct me to the store so that I could buy something for that user/donate.

http://img110.imageshack.us/img110/4084/screen39np.gif
See those post icons in action! Currently displaying an Important tag for a sticky and tags for the genre of the metal album covered in each topic.

http://img110.imageshack.us/img110/2472/screen44qv.gif
The store page! At the moment only a few things can be done, but in the future maybe I'll think up more features!

And as for the anime site, I have an anime forum, though it's dead now, and I plan to shut it down soon. http://forums.tenkai.net

The only downside to me writing my own mods is that I'm new to php and I probably have opened up my forums to the first hacker who comes my way.

14

(27 replies, posted in Feature requests)

I have spoilers on my forums, and I use the following code:

<span style="background-color: #000000; color: #000000; margin: 0px; padding: 0px" onmouseover="style.background='#ffffff'" onmouseout="style.background='#000000'">Hidden text</span>

You can see it here in my anime site forums:
http://forums.tenkai.net/viewtopic.php?pid=7031#p7031 (Login as test/test)

However, text and links are still visible unless they are black. (I suppose you could change the color of the spoiler area to the same as the links/text to cover the appropriate color.)

Daimon Link wrote:

Not sure what the problem is, but everytime I install this mod, I get "unable to fetch topic list" when trying to open forums. I can't say if there are any other errors, as that one preceeds anything else.

Seconding this issue, any suggestions?

16

(76 replies, posted in News)

Hey, I have a quick question about bug fixes and releases.

When you fix something, as in it's listed in the dev tracker (dev.punbb.org), is the current version of the script reuploaded with the fix, as in the zip file?

I'm wondering this, because if it's not, does that mean I need to check the dev tracker for all fixes after the release date of the newest version?

17

(99 replies, posted in Programming)

I liked NuSphere PHPED, but my trial just ran out. I used to use html kit and crimson editor, but I never liked those. I think I'll try out notepadd++ and scite.

I think that this is a cool mod, but in my opinion it shouldn't be rating the posts themselves, but the topics. You should be able to rate the topic, and then show the average rating of topics on the viewforum.php. Otherwise, it's a good idea and it shows promise smile

19

(0 replies, posted in PunBB 1.2 show off)

But I'll show it off anyway big_smile

http://brain-cheese.org - main site

http://forums.brain-cheese.org - forums

I haven't really done that much, other than some mashing of tables, style sheet editing, externnews, polls, private message, no reply, and integration of site with forums (unnoticably except for navigation).

20

(3 replies, posted in PunBB 1.2 discussion)

I ran into it before I even knew what it was, that's because what I saw was modified and credit for the script was taken away.

http://anime-xg.com/forum/

Hey wow, it worked! Thanks a lot! I wasn't sure if I could echo it, but since generate_navlinks() returns a variable, I guess I can.

I appreciate the help, my problems are fixed smile

EDIT: I got the cookies to work, thanks anyway. However, I still need help with the navigation links. Thanks smile

Hi, I'm trying to set up a sort of user system on my site with punbb. However, I seem to be having problems with both Cookies and Nav Links, and I have yet to find a fix.

http://brain-cheese.org
http://forums.brain-cheese.org

First, when I try to check if the user is logged in or not on my site, they are always registered as a guest.

I first had the cookies setting in config.php set to "", but then I tried both brain-cheese.org and .brain-cheese.org, but neither seemed to work.

Secondly, I need to know how to basically display the forum nav links on other parts of my site. Here's the code if you wish to see it.

<?php
$pun_root = 'forums/';
require $pun_root.'config.php';
require $pun_root.'include/common.php';
?>

[site html, etc here...]
<?php generate_navlinks(); ?>

I tried to just run the function from functions.php, but that doesn't do anything, it doesn't output anything, though I wasn't sure if it was supposed to anyway...

Some assistance correcting these problems would be greatly appreciated.