1

(5 replies, posted in Feature requests)

Smartys wrote:

Couldn't be a plugin, simply due to how much stuff plugins can actually do.
However, it's certainly a simple mod

I don't understand enough php yet to be dangerous, so anyone up to the challange?


C's Daddy

2

(5 replies, posted in Feature requests)

I searched the forums for this topic, but did not find any matches.

It would be nice to have the option to toggle between admin and user modes.  It make it easier to explain option to users without logging in under another username like I am currently doing.

I am using Coppermine photo gallery with PunBB and it has this feature.


Thanks,

C's Daddy

3

(1,382 replies, posted in General discussion)

.com

Mine never changes either.  Same order.  I tried logging on as another user id, posting and logging off.  List does not change.  By Looking at the user list when logged in as Adminstrator, it seems to be the 5 Most Active users, not the last 5 vistors.  Any suggestions to make it work right or better yet show last 5 vistors and keep the stats on the 5 most active posters.

C's Daddy

Got it working also.

Thanks,

C's Daddy

Where do you insert this code?  I have tried Index.php and footer.php.  I get parsing errors when I try to execute the code.

C's Daddy

Seva.

I thought that was what I needed to do.   I had an extra space in the field name when I tried it.  Its working now.

Thanks for your help.


C's Daddy

I use PunBB for our club message board.  I have it set  to not accept new registrations, and guests cannot view info.

We wanted to include address and phone numbers to the user profile.  I have successfully added the fields to the database and manually populated the field values using my webhost tools.  I have also modified profile.php and the language file  profile.php to include these new fields.

I have added  address, state, zipcode, phone, mobile, and workphone as fields.  I am using the location field as city (and changed it to display City in the language file).

I don't know any php I am just experimenting using trial and error.


I have the display portion working OK with the code mods below.


                            <dt><?php echo $lang_common['Username'] ?>: </dt>
                            <dd><?php echo pun_htmlspecialchars($user['username']) ?></dd>
                            <dt><?php echo $lang_common['Title'] ?>: </dt>
                            <dd><?php echo ($pun_config['o_censoring'] == '1') ? censor_words($user_title_field) : $user_title_field; ?></dd>
                            <dt><?php echo $lang_profile['Realname'] ?>: </dt>
                            <dd><?php echo ($user['realname'] !='') ? pun_htmlspecialchars(($pun_config['o_censoring'] == '1') ? censor_words($user['realname']) : $user['realname']) : $lang_profile['Unknown']; ?></dd>
                            <dt><?php echo $lang_profile['Address'] ?>: </dt>
                            <dd><?php echo ($user['address'] !='') ? pun_htmlspecialchars(($pun_config['o_censoring'] == '1') ? censor_words($user['address']) : $user['address']) : $lang_profile['Unknown']; ?></dd>
                            <dt><?php echo $lang_profile['Location'] ?>: </dt>
                            <dd><?php echo ($user['location'] !='') ? pun_htmlspecialchars(($pun_config['o_censoring'] == '1') ? censor_words($user['location']) : $user['location']) : $lang_profile['Unknown']; ?></dd>
                            <dt><?php echo $lang_profile['State'] ?>: </dt>
                            <dd><?php echo ($user['state'] !='') ? pun_htmlspecialchars(($pun_config['o_censoring'] == '1') ? censor_words($user['state']) : $user['state']) : $lang_profile['Unknown']; ?></dd>
                            <dt><?php echo $lang_profile['Zipcode'] ?>: </dt>
                            <dd><?php echo ($user['zipcode'] !='') ? pun_htmlspecialchars(($pun_config['o_censoring'] == '1') ? censor_words($user['zipcode']) : $user['zipcode']) : $lang_profile['Unknown']; ?></dd>
                            <dt><?php echo $lang_profile['Phone'] ?>: </dt>
                            <dd><?php echo ($user['phone'] !='') ? pun_htmlspecialchars(($pun_config['o_censoring'] == '1') ? censor_words($user['phone']) : $user['phone']) : $lang_profile['Unknown']; ?></dd>
                            <dt><?php echo $lang_profile['Mobile'] ?>: </dt>
                            <dd><?php echo ($user['mobile'] !='') ? pun_htmlspecialchars(($pun_config['o_censoring'] == '1') ? censor_words($user['mobile']) : $user['mobile']) : $lang_profile['Unknown']; ?></dd>
                            <dt><?php echo $lang_profile['Workphone'] ?>: </dt>
                            <dd><?php echo ($user['workphone'] !='') ? pun_htmlspecialchars(($pun_config['o_censoring'] == '1') ? censor_words($user['workphone']) : $user['workphone']) : $lang_profile['Unknown']; ?></dd>
              <dt><?php echo $lang_profile['Website'] ?>: </dt>
                            <dd><?php echo $url ?> </dd>
                            <dt><?php echo $lang_profile['Birthday'] ?>: </dt>
                <dd><?php echo $birthday?> </dd>
              <dt><?php echo $lang_common['E-mail'] ?>: </dt>
                            <dd><?php echo $email_field ?></dd>
                        </dl>

I can't get the update portion of the php file to work.  I have tried to change the portion of the file below. I have only experimented with the address field so far.


    <div class="blockform">
        <h2><span><?php echo pun_htmlspecialchars($user['username']).' - '.$lang_profile['Section personal'] ?></span></h2>
        <div class="box">
            <form id="profile2" method="post" action="profile.php?section=personal&id=<?php echo $id ?>">
                <div class="inform">
                    <fieldset>
                        <legend><?php echo $lang_profile['Personal details legend'] ?></legend>
                        <div class="infldset">
                            <input type="hidden" name="form_sent" value="1" />
                            <label><?php echo $lang_profile['Realname'] ?><br /><input type="text" name="form[realname]" value="<?php echo pun_htmlspecialchars($user['realname']) ?>" size="40" maxlength="40" /><br /></label>
<?php if (isset($title_field)): ?>                    <?php echo $title_field ?>
<?php endif; ?>
                            <label><?php echo $lang_profile['Address'] ?><br /><input type="text" name="form[address]" value="<?php echo pun_htmlspecialchars($user['address']) ?>" size="35" maxlength="35" /><br /></label>
              <label><?php echo $lang_profile['Location'] ?><br /><input type="text" name="form[location]" value="<?php echo pun_htmlspecialchars($user['location']) ?>" size="30" maxlength="30" /><br /></label>
                            <label><?php echo $lang_profile['Website'] ?><br /><input type="text" name="form[url]" value="<?php echo pun_htmlspecialchars($user['url']) ?>" size="50" maxlength="80" /><br /></label>

It displays the current value of the field, but will not update when submit button is pressed and it displays the previous value of the field.

What do I need to do to have these fields update? 


Thanks,

C's Daddy

Thanks that was easy. I overlooked that option. smile


C's Daddy

I noticed that a dot appears next to any thread that I have posted to on this site.  Is this a mod?  It does not appear on the PunBB I have installed on my site.

If it is not a mod what php file has this function? I am running 1.2.8 and I have installed several mods on my installed version. Maybe one of them is causing the dot not to be displayed.


C's Daddy

11

(124 replies, posted in News)

Go for the milliondollarhome page.  It is almost half full, and getting the most attention.

C's Daddy

Gizzmo:

Have you had a chance to look at the recurring event bug that I posted about on 9-21-05?

C's Daddy

13

(12 replies, posted in General discussion)

I found this one to be very useful.

http://www.pspad.com/en/

C's Daddy

Found another minor bug.  Tried to enter New Year's Day as a recurring event.  Cannot add recurring event (year  0000) in the month of January.

Get error message "This calendar does not go beyond the date you have selected."

Tried a few dates for the month.

Then, I figured it was change in year problem.  So, I tried year Jan 1, year 0001 (didn't work), and Jan 1, year 9999.  It accepted 9999, but event does not appear on the calendar.  It does show up on the edit event list as December 31, until you click it appears as Jan 1, 9999 when you try to edit.


C's Daddy

Gizzmo:

Never mind I got it to work.

C's Daddy

Gizzmo:

What would be the easiest way to add some formatted text between the board announcement and top of the calendar.  I don't know any php yet, I tried putting some HTML code in the php files and got parsing errors, so I went back to the original files.

C's Daddy

Thanks Tobi:

That gives me a starting point.

C's Daddy

I downloaded your update and replaced calendar.php and it works fine now.  After comparing the two files, I must have missed a mod because line 611 on 2.0.6 was line 608 on my version, so I replaced the wrong line.  Thanks for the fix.

C's Daddy

I made the change, but it did not act any differently. It still allows you to edit or delete events posted by other members.

While you are making mods, can you add a drop down box for the year when you add an event?

C's Daddy

Gizzmo:

I have installed your Calendar Mod 2.05, and it is really helpful.  I have found a bug.  Anyone can edit or delete an event.  I have users allowed to post new events and have Modereators set to NO for both options on the Admin panel. 

When I logon as a user I do not get an Admin panel, but I can go to the calendar, and edit or delete any event.

C's Daddy

I just installed on my site without too many problems.  A 404 error means the file is not there, so you either did not upload all the files, uploaded them to the wrong directory, or you fat fingered the address.  Run your FTP software and look for install.php.

You will have to check with you service provider regarding database setup, but you need to set-up the database before running install.php

My service provider offered a tutorial (Tutorial Link) to show how to set-up this forum software. You can follow the steps, but download the current version 1.2.7  from punBB
smile

Tobi &  magnus0c:

Your modifications do exactly what I was looking for.  I found one problem, when a login fails, the menu, announcement,  and an Info message are displayed.  How can you direct the program to go back to just the login box? (info message can stay, but I don't want the other stuff)

Rickard,  I understand your reason for not supporting these mods, but as Tobi said it is a design question not a functional issue.  I think PunBB is great!