Possible, yes, but not without modifying the source a bit. I don't quite see any reason why anyone would want it working that way though..

Yes, if an admin changes a username, all posts by that user will use the new name.

353

(6 replies, posted in PunBB 1.2 discussion)

klacksa wrote:

Hi all.
I have added a new style on the collector for your nice Forum PunBB, this style is called "IMac"
You can view and download this in here.
Have fun.

The style is very nice, but what I'm most interested is your dowload system... Care to share it? smile

354

(13 replies, posted in PunBB 1.2 show off)

Connorhd wrote:

although its not just IE, i mean no one supports css properly sad

That's true, but IE is definetely the worst of them. What bugs me the most right now, aside from the "tags" it doesn't support, is that it can't cache images refered in the CSS sad

355

(13 replies, posted in PunBB 1.2 show off)

hcgtv wrote:

Thanks CodeXP, it's taken me a bit to get my head around CSS but you can do wonders with it.

I've been reading Cascading Style Sheets, the Definitive Guide, 2nd edition by Eric Meyer and it's helped me to better understand the hacks I've done in the past. I'm still a bit wet behind the ears but I figure another year of this and I'll be able to create any type of site that I want.

It sure helps to start out with apps that are XHTML compliant smile

Yeah, CSS is incredible much more powerful than the old method of just using HTML smile It's just a shame that IE sucks at it though.. Imagine how efficient you could write if it supported it a bit better, like the other major browsers do.

Well, things are progressing nicely now with the theme.. There's a lot of different tweaks to do here and there, but it's all fun smile

Added a few new functions to the theme as well (by an include in the template). It's nothing big, but I thought having a PHP font-size switcher available would be nice to have, seeing as I'm sure there are other people than me that never uses the zoom fuctions in their browser (I prefer to be able to set it on a per-site basis). I first tried doing that with javascript, but found out that it wasn't going to work very well. I ended up writing a couple of PHP scripts instead.

I'll be releasing that script + the modified templates with the style when it's done..

Here's a few screens:
Default size:
http://blog.tasarinan.com/files/ss1.png
Larger:
http://blog.tasarinan.com/files/ss2.png

Yep, you can hide it as well smile
http://blog.tasarinan.com/files/ss3.png

As always, if you want to test, head over to: http://gallery.tasarinan.com

357

(13 replies, posted in PunBB 1.2 show off)

Very nice smile

I really like how the entire site now looks the same.

worldofglenn wrote:

Since the master php.ini is defaulted at 2mb, is there any way to have a 2nd php.ini file to override it?  My website is hosted and I don't have access to the php.ini and I'd like to have up to 6mb for attachment size.

Create a file named .htaccess in your forum root directory.

Add the following to it, save & upload:

php_value post_max_size 6M
php_value upload_max_filesize 6M
Queen Elizabeth II wrote:

If you mean the fix described here:
http://punbb.org/forums/viewtopic.php?id=8086
It doesn't work for me. The SMTP server still won't stick (and now I also got some PHP error msg that flashed by briefly when applying changes).

Could it be a cache problem?

Thanks for the comments smile

I've now updated the version in use on the test forum to include the new version. If anyone's interested, I could always share a "beta" version?

Connorhd wrote:

awesome. big_smile

only thing i don't like much is the menu bar, i dunno why but it looks a little odd maybe make the bluey bit taller so it goes above and below the menu items?

Happy that you like it!

Hmm, I'll try padding the navbar a little and see how it looks... I'll post a comparison screen so you'll be able to see what you prefer smile

Edit:

Ok, I padded it a little, and I think I prefer this version smile

here's a new screen:
http://gallery.tasarinan.com/wip/ipun_preview2.png

What do you think's better?

Just had a slow day at work, so I started on a new PunBB style smile It's done for the most part, but I still have a few quirks to work out.

It's working well enough for me to use it as the default style at my test forum though, so it probably won't be long before I release it...

Here's a sample screen:
http://gallery.tasarinan.com/wip/ipun_preview.png

To see it in action, head over to my test forum:
http://gallery.tasarinan.com/index.php

Please share any feedback & suggestions you might have smile

Bozoo wrote:

Hi,
I would like to erase this bloc of color, this pink pastel which is beneath
the avatar and put the pic beyond !
I've asked some help on punbb-fr but none can change all by modifyng
all the css code and put the image in the background my square the color

Link, for see my bug : http://forum.ouiedire.xooit.net/viewtopic.php?id=13

Thx for ur help big_smile

In your stylesheet, you need to check that the following classes have the same color:

DIV.postright, DIV.postfootright {BORDER-LEFT-COLOR: #F1F1F1 }
DIV.postleft, DIV.postfootleft, DIV.blockpost LABEL {BACKGROUND-COLOR: #F1F1F1}

They *MUST* be the same color for it to look correct with the default layouts.

I've now cleaned up the style (for the most part anyway), and fixed the remaining bugs that I was aware of. I hope that the ones downloading, will enjoy it smile

For more details & demo, read this post over @ my "test" forum.

To install, just unzip the file directly into your PunBB root folder.

[Download]
[Mirror at punres.org]

Edit: Just discovered a bug. I've fixed it and updated the archives.

Jansson wrote:

Looking good smile

It's nice that it's starting to pop up som quality styles for PunBB and not only those spinkBB styles that kind of look the same.

Thanks smile

I kinda feel the same way about spinkBB. It's a really good and interesting project, but as you said, they all kinda looks the same. It's great for those that don't want/have the time to make styles themselves though.

The style is now release. Scroll down to this post for details

---

Hi everyone!

Well, I'm close to getting another style ready for release (yes, this time I'll actually finish it), but I'd like some feedback on before I do. There's not much left on it, other than cleaning the CSS a little. I've been working on this over the weekend, and I'm rather satisfied with it now. There are a few images in the style, but the total size is less than 0.5kb (447 bytes) smile

It's best viewed in Opera, Firefox, Safari, or, in other words, pretty much any browser besides IE. The reason for this is that IE won't display the table cell hover effects, but other than that, it should display exactly the same.

Here's the link to my test forum: http://gallery.tasarinan.com

Guests are allowed to post in all forums, so don't be afraid to play around wink

If nobody encounter any major bugs, I'll try to have it available for download before the end of this week.

367

(14 replies, posted in PunBB 1.2 bug reports)

I can duplicate the problem on 2 different 1.2.6 installations, one on Linux & another on Windows.

Until this is fixed, you can add the description back using the following in phpmyadmin (or any similar script):

UPDATE config SET conf_value = 'your forum description' WHERE conf_name = 'o_board_desc';

Remember to delete your cache afterwards.

368

(16 replies, posted in PunBB 1.2 discussion)

Tobi wrote:

Thanks,

so this is a workaround to play the XHTML strict game, right?

Wow.... quite a lot of code to replace [i]target="_blank"[i].

I still think it is better to stay with transitional then.
I changed my board to target="_blank" and it works fine.... I think sometimes rules that are set up to simplify things just reach the opposite...like in this case. wink

Here's another, much simpler way of making this work smile This little mod will open local URL's in the same window, but external URL's will open in a new one.

Open include/parser.php.

Around line 278, find:

return '<a href="'.$full_url.'">'.$link.'</a>';

Replace with:

    if (strpos($full_url, $_SERVER["SERVER_NAME"]) === FALSE)
        return '<a href="'.$full_url.'" onclick="window.open(this.href); return false;">'.$link.'</a>';
    else
        return '<a href="'.$full_url.'">'.$link.'</a>';

What this does, is look for your server name in the URL. If it can't find it, it'll add the javascript needed to open a new window smile

369

(2 replies, posted in PunBB 1.2 show off)

Here's another smile

net2ftp official forums:
http://www.net2ftp.org/forums/

Open index.php

Find:

                                <?php echo $forum_field."\n".$moderators ?>

replace with:

                                <?php echo $forum_field ?>

Save & upload.

That should take care of it smile

371

(13 replies, posted in General discussion)

Funny how nobody even bother to mention all the FUD that the Firefox camp have been spreading for a very long time now. Taking credit for inventing features that Opera have had for ages.

Also, if anyone bothered to read those PC world awards, they was rather vague about who the actual winners of the different categories were...

Bwongar.com wrote:

I'm really not sure what could be causing this. It could be that since you have so few posts and topics on your laptop that it really doesn't make much difference period, considering the size of the database is VERY small. The overhead is probably not hit yet.

Secondly, it could be due to the fact that it is running on Windows. This is just a thought, as I have no experience with MySQL on a Windows box. MySQL was generally written for UNIX, ported to Windows as somewhat of an afterthought. Perhaps it doesn't read the configuration correctly?

Other than that, I don't know what to tell ya tongue

True, that could be the problem. I tried doing a relatively small query in phpmyadmin by selecting around 200 posts, and I encountered the same thing. Caching works fast in phpmyadmin, but doesn't make any difference in PunBB. Tried the same with about 1000 posts, and again, the same result.

I'll install Apache, php + MySQL on my linux "box" and see...

Ok, I made a little hack for you that gives you the option to sort with the oldest topic start date at the top, and the newest at the bottom:

Open admin_forums.php

Around line 284, find:

<option value="1"<?php if ($cur_forum['sort_by'] == '1') echo ' selected="selected"' ?>>Topic start</option>

After, add:

<option value="2"<?php if ($cur_forum['sort_by'] == '2') echo ' selected="selected"' ?>>Topic start, reverse</option>

Open viewforum.php

Around line 109, find:

// Fetch list of topics to display on this page

After, add:

if (($cur_forum['sort_by'] == '1') || ($cur_forum['sort_by'] == '0')) {
    $newsort = 'DESC';
} else if ($cur_forum['sort_by'] == '2') {
    $newsort = 'ASC';
}

Around line 117, find

    // Without "the dot"
    $sql = 'SELECT id, poster, subject, posted, last_post, last_post_id, last_poster, num_views, num_replies, closed, sticky, moved_to FROM '.$db->prefix.'topics WHERE forum_id='.$id.' ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'];

Replace with:

    // Without "the dot"
    $sql = 'SELECT id, poster, subject, posted, last_post, last_post_id, last_poster, num_views, num_replies, closed, sticky, moved_to FROM '.$db->prefix.'topics WHERE forum_id='.$id.' ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' '.$newsort.' LIMIT '.$start_from.', '.$pun_user['disp_topics'];

Around line 126, find:

        case 'mysqli':
            $sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$pun_user['id'].' WHERE t.forum_id='.$id.' GROUP BY t.id ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'];
            break;

        case 'sqlite':
            $sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$pun_user['id'].' WHERE t.id IN(SELECT id FROM '.$db->prefix.'topics WHERE forum_id='.$id.' ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'].') GROUP BY t.id ORDER BY t.sticky DESC, t.last_post DESC';
            break;

        default:
            $sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$pun_user['id'].' WHERE t.forum_id='.$id.' GROUP BY t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to, p.poster_id ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'];
            break;

Replace with:

        case 'mysqli':
            $sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$pun_user['id'].' WHERE t.forum_id='.$id.' GROUP BY t.id ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' '.$newsort.' LIMIT '.$start_from.', '.$pun_user['disp_topics'];
            break;

        case 'sqlite':
            $sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$pun_user['id'].' WHERE t.id IN(SELECT id FROM '.$db->prefix.'topics WHERE forum_id='.$id.' ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' '.$newsort.' LIMIT '.$start_from.', '.$pun_user['disp_topics'].') GROUP BY t.id ORDER BY t.sticky DESC, t.last_post DESC';
            break;

        default:
            $sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$pun_user['id'].' WHERE t.forum_id='.$id.' GROUP BY t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to, p.poster_id ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' '.$newsort.' LIMIT '.$start_from.', '.$pun_user['disp_topics'];
            break;

Save & upload

Now you can sort by topic start in reverse smile

Bwongar.com wrote:

Actually, it does help quite a bit in a forum setting. If you look at the total number of views per topic in relation to how many posts/replies there are in said topic, you'll notice there is roughly a 1:12 (posts:views) ratio. So essentially just over 75% of the time (factoring in other... factors), the query cache is utilized. Plus, the cache will be utilized moreso in things that don't change so much, i.e. user info.

Does that help?

It sure does smile I think you misunderstood me a little though. I was just thinking of performance on the front page. Fetching active topics from all forums would most likely always return a new result set, so in that case, I wouldn't think you could improve performance by using query caches...?

Anyway, I upgraded my local MySQL installation to v4, but for some reason, even if I set the query cache size to 64M, it doesn't seem to go any faster with PunBB. PhpMyAdmin querys runs *much* faster though, so I know it's working, but the page generation times for PunBB seems to be the same. Any particular reason why I'm encountering this behaviour?

Yes, you're missing something wink

Organize forum by topic start = Sort by the date when topic was first started.
Organize forum by last post = Sort by the date of the last post in any given topic.