1

(4 replies, posted in PunBB 1.2 troubleshooting)

oh sorry... i thought you were leading me on! smile

Its for a new idea I have that I would like to use punbb for. For obvious reasons, Id rather not explain it all now but you'll see it soon in the "Show Off" forum...

2

(4 replies, posted in PunBB 1.2 troubleshooting)

yes. thats it exactly. My goal is that once 49 people have replied to a topic (50 posts total), its closed and you've got to start a new topic.

3

(4 replies, posted in PunBB 1.2 troubleshooting)

I would like to set a maximum number of replies per topic. Any way to do this?

Thats nice too, but instead of having a page with 5,000 ads, I decided to make it where they will be google-style ads scattered throughout the website. Not only that, but website owners can insert a line of code and include the ads on their sites. There are currently 5 websites that the free ads display on right now.

Also, the forum members can view live statistics from their profile- number of ad impressions and number of clicks.

Check out the newest punBB forum at http://Ads4Trade.com
Ads4Trade.com is a forum geared toward helping website owners come in contact with each other in efforts to trade not only advertising, but other services as well.

Every forum member is able to place "Google-style" text ads across Ads4Trade as well as 4 other websites in exchange for the credits you receive at the forum. 3 credits = 1 ad impression. Every new topic is worth 10 ad impressions and every reply is worth 6. You can run an unlimited amount of ad campaigns.

Every new member is automatically given 2,500 credits, but as a pre-release bonus, all members who register before June 1 receive 500 bonus credits- 3,000 credits total = 1,000 ad impressions on 5 different websites just for becoming a member at the forums!

Website owners who would like to display the ads on their website should get in touch with the Administrator to recieve a TON of free advertising credits for themselves.

Let me know what you think of the site!

Thats the one Im using- the one I posted earlier. In the users profile, they can disable other users from being able to rate them, and that in turn, disables them from rating others.

If you go into phpmyadmin and change the 1 to a 10, the rep mod doesnt work for that user. Its because the 1 means that the rep mod is enabled from the users profile. A 0 would mean they disabled it. Its not actually for the default value- same way for the admin. Somethings got to be changed in the PHP file so that it sends a 10 to the database when a new user registers.

Looks great, Ill give it a shot right now. Thanks!!

BTW- Where in the page do you recommend me inserting this code?

This one:

http://www.punres.org/desc.php?pid=106

Thank you for helping me out on this.

I dont remember who wrote it, but I believe it was version 1.2 or 1.1.2, something like that.

Good idea. I checked it out when I installed it and it didnt look like I could.

aha! Ill give that a run around the block tonight. Thanks!

*fixed

Thanks for your reply. I was trying that last night, but the processes on message_list.php look pretty different than those on viewtopic.php.

Here is viewtopic.php (just the way I want it):

<div class="postleft">
                <dl>
                    <dt><strong><?php echo $username ?></strong></dt>
                    <dd class="usertitle"><strong><?php echo $user_title ?></strong></dd>
<dd class="usertitle"><?php echo $rank_pips ?></dd>
                    <dd class="postavatar"><?php echo $user_avatar ?></dd>
<?php if (count($user_info)) echo "\t\t\t\t\t".implode('</dd>'."\n\t\t\t\t\t", $user_info).'</dd>'."\n"; ?>
<?php require(PUN_ROOT.'include/reputation/rep_viewtopic.php'); ?>
<?php if (count($user_contacts)) echo "\t\t\t\t\t".'<dd class="usercontacts">'.implode('  ', $user_contacts).'</dd>'."\n"; ?>
                </dl>
            </div>

Here is what I have in message_list.php, which is missing pips, credits and reputation:

    if ($cur_post['id'] > 0)
    {
        $username = '<a href="profile.php?id='.$cur_post['id'].'">'.pun_htmlspecialchars($cur_post['username']).'</a>';
        $cur_post['username'] = $cur_post['username'];
        $user_ = get_title($cur_post);
        
        if ($pun_config['o_censoring'] == '1')
            $user_title = censor_words($user_title);
        
        // Format the online indicator
        $is_online = ($cur_post['is_online'] == $cur_post['id']) ? '<strong>'.$lang_topic['Online'].'</strong>' : $lang_topic['Offline'];

        if ($pun_config['o_avatars'] == '1' && $cur_post['use_avatar'] == '1' && $pun_user['show_avatars'] != '0')
        {
            if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['id'].'.gif'))
                $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$cur_post['id'].'.gif" '.$img_size[3].' alt="" />';
            else if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['id'].'.jpg'))
                $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$cur_post['id'].'.jpg" '.$img_size[3].' alt="" />';
            else if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['id'].'.png'))
                $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$cur_post['id'].'.png" '.$img_size[3].' alt="" />';
        }
        else
            $user_avatar = '';

            // We only show location, register date, post count and the contact links if "Show user info" is enabled
        if ($pun_config['o_show_user_info'] == '1')
        {
            if ($cur_post['location'] != '')
            {
                if ($pun_config['o_censoring'] == '1')
                    $cur_post['location'] = censor_words($cur_post['location']);

                $user_info[] = '<dd>'.$lang_topic['From'].': '.pun_htmlspecialchars($cur_post['location']);
            }

            $user_info[] = '<dd>'.$lang_common['Registered'].': '.date($pun_config['o_date_format'], $cur_post['registered']);

            if ($pun_config['o_show_post_count'] == '1' || $pun_user['g_id'] < PUN_GUEST)
                $user_info[] = '<dd>'.$lang_common['Posts'].': '.$cur_post['num_posts'];

            // Now let's deal with the contact links (E-mail and URL)
            if (($cur_post['email_setting'] == '0' && !$pun_user['is_guest']) || $pun_user['g_id'] < PUN_GUEST)
                $user_contacts[] = '<a href="mailto:'.$cur_post['email'].'">'.$lang_common['E-mail'].'</a>';
            else if ($cur_post['email_setting'] == '1' && !$pun_user['is_guest'])
                $user_contacts[] = '<a href="misc.php?email='.$cur_post['id'].'">'.$lang_common['E-mail'].'</a>';
            require(PUN_ROOT.'include/pms/viewtopic_PM-link.php');
            if ($cur_post['url'] != '')
                $user_contacts[] = '<a href="'.pun_htmlspecialchars($cur_post['url']).'">'.$lang_topic['Website'].'</a>';
        }

As you can see, they are quite different. Any suggestions would be greatly appreciated. Thanks.

Hello, When a user registers or makes a post, it loggs the date and time correctly in the database. The forum will show the correct date information for "today" and "yesterday" in the userlist when looking at the registered date, but anytime after "yesterday", all the dates show May 5, 2007 for EVERYTHING. The forum was not even installed yet on May 5. In the actual forum, you can post something, and as soon as the post is completed it shows the correct time with May 5 next to it for the date.

I tried playing around with the server time zone settings, but it didnt do anything. Also, I dont think its that because the time and date is correct for two days before it defaults to May 5.

Any ideas??????

P.S.- Just checked my database, and it looks like its storing the registered time and date fine, because all the values are different. May 5 is showing on all the posts and the user list registered date.

Ive installed some other mods such as cash mod & reputation mod. These both display info next to the username on a post.

With the PM mod, it uses the same layout when you are viewing your sent messages. The only thing is that when viewing a sent message, next to the username it does not show any of the stats for the mods I installed. Where do I enter that code in?

Thanks

How do I make sure all links are underlined? With the style Im using now, I got them all to work except when reading a post, next to the member name the links that say "email" or "website" as well as in the signature lines. I cant get these to underline!

This is what I have now:

/****************************************************************/
/* 3. LINKS */
/****************************************************************/

/* 3.1 Remove underlining for main menu, post header links, post links and vertical menus */
.pun div.tclcon a:link, .pun div.tclcon a:visited { text-decoration: underline } hover {font-color: #669999;}
    .pun div#brdfooter a:link, .pun div#brdfooter a:visited { text-decoration: underline } hover {font-color: #669999;}


#brdmenu A:link, #brdmenu A:visited, .blockpost DT A:link, .blockpost DT A:visited, .blockpost H2 A:link,
.blockpost H2 A:visited, .postlink A:link, .postlink A:visited, .postfootright A:link, .postfootright A:visited,
.blockmenu A:link, .blockmenu A:visited {
    TEXT-DECORATION: underline
}

/* 3.2 Underline on hover for links in headers and main menu */

#brdmenu .blockpost H2 A:hover {font-weight: bold; TEXT-DECORATION: underline}
#brdmenu A:hover {font-weight: bold;color: #093F7B;}

What would I have to do in order to set a default rating for the reputation mod?

Right now, each new member starts with a reputation of 0. I would like for everyone to begin at 10. Thanks!

I would be willing to pay a little something if someone could add the voucher functionality.

There is a lottery, but it pays out all the credits without keeping any.

I think it would be awesome to udpate the following two things on cash mod:

1. Lotto- The lotto script takes the ticket price and multiplies it by 0.9 (90% of investment- or specify whatever percent in admin panel) to add to the pot- the rest is lost to the game or possibly deposited in the admins account!

Reason: Credits have to be lost in one way or another in order for people to want to try to earn them back. If all credits do is add up higher and higher, there is no point.

2. Vouchers- Again, in the admin panel, admin can enter voucher codes good for a specified amount of credits to be deposited in the users account. For example, a user can login and enter "50free" in the voucher claim box and 50 credits are deposited in their account. Possibly the admin can specify one of 2 things- which specific user its good for or how many times it can be used by anyone. Also you should be able to set an expiration date.

Reason: Coupon codes, vouchers, etc.- they all generate a lot of hype and get people talking. If you issue a voucher you know people will give the voucher code to their friends and it will generate more traffic.

If anyone would like to take this on as a project, I would love to discuss some things with them. I've got an idea for an awesome website which would use the above stated features. Maybe we can work together on this and create a really cool unique website. If interested, email me.

* fixed

Also, I just noticed I probably posted in the wrong forum. Sorry.

Anyone else have trouble with their styles after installing the private messaging mod? I did a new clean install of punbb and did nothing but install the PM mod. The mod is working great, only now none of the styles display correctly unless you're viewing the default style.

Anybody know what's going on?

Yeah, I installed cash mod but I was getting a ton of errors for profile.php so I just kept the profile pages the same without updating them, I guess that disables the users to be able to see credit stats in their profile?? Anyway, at least the stats display next to each post. I'll probably have to work with it quite a bit to get it to work like I want.

The biggest thing I'm looking to do is have it automatically deposit ___ dollars/credits/whatever you call it when a new member registers. I'm looking to start each account at 50 "credits", then start adding them up for posts. Im sure it will be easy I just havn't had the time to look at it yet.

I did a little searching and I didnt find the answer to my question.

Is there a paid to post mod for punbb? For instance, each member has an "account" and you assign a credit value to each action (i.e. new thread=10 credits, reply=5 credits, refer a new member=30 credits, etc). As the user posts in the forum, they rack up credits and you can pay out based on how many credits they have (i.e. 100 credits = $1.00).

Im looking for a mod like this and if one doesn't exist then I would sure be interested in having one made for me. Anyone???