Your ultimate PunBB resource!
You are not logged in.
Thank you very much for this. I will also carry it on Shedrock Online - http://shedrockonline.com
Offline
For all of you who are interested. I have modified the Sub Forum Mod with this mod here: http://wiki.punres.org/Last_post%27s_su … orum_index
which basically places the subject on the right side of the forum index under "Last Post". I've also made it so that the user name is clickable and links to their profile. This can be seen on the Index and in View Forum mode. Thanks to Smartys for all his hard work and time on this.
I will probably place it on this site as version: 1.0.9.3 but let me know if anyone wants it. It comes with the same readme file, just updated to reflect the changes.
Cheers!
Bingiman
Offline
lie2815 wrote:
PunBB 1.3 should come out soon-ish anyways, so you might not even want to worry.
I'm really trying to resist one of those manic type chuckles at that post.
![]()
Offline
crusader wrote:
For all of you who are interested. I have modified the Sub Forum Mod with this mod here: http://wiki.punres.org/Last_post%27s_su … orum_index
which basically places the subject on the right side of the forum index under "Last Post". I've also made it so that the user name is clickable and links to their profile. This can be seen on the Index and in View Forum mode. Thanks to Smartys for all his hard work and time on this.
I will probably place it on this site as version: 1.0.9.3 but let me know if anyone wants it. It comes with the same readme file, just updated to reflect the changes.
Cheers!
Bingiman
I'm interested in this version of the mod. Could you please send it to me or upload it somewhere?
crusader wrote:
Is 1.3 going to have sub forums?
It's not likely the developers will do it. This would mean this mod has to be ported to v1.3.
Last edited by Surkow (2007-10-27 12:41:37)

Offline
Surkow wrote:
I'm interested in this version of the mod. Could you please send it to me or upload it somewhere?
Offline
Just out of curiosity, have noticed that my top post on this page, (post id 201), doesn't show me the edit/delete tags, whereas the rest of my posts do. Feature or otherwise?
Last edited by MattF (2007-10-27 12:51:27)
Offline
Seeing as I can't edit the original link above, (which is still active, btw) both 1.0.9.2 and 1.0.9.3 are here now:
http://forums.bauchan.org/unix/downloads.php
Thought it would be a good opportunity for me to give the new download software a good testing to boot.
Btw Bingiman, is that description for your version correct? ![]()
Last edited by MattF (2007-10-27 14:51:41)
Offline
MattF wrote:
Surkow wrote:
I'm interested in this version of the mod. Could you please send it to me or upload it somewhere?
Thanks for the link.
I think the description you gave it on the download site is fine.

Offline
I wrote it.
I only finished it off and ironed out the minor wrinkles within the last few days or so.
Offline
Not decided yet.
Offline
I use a mod called "mark topics as read" which marks post read as soon as you read them (instead of looking which posts are read since your last visit). I tried to modify the subforum mod to support the mod and I found a section called "// Are there new posts?".
I changed
if (!$pun_user['is_guest'] && $cur_subforum['last_post'] > $pun_user['last_visit'])
to
if (!$pun_user['is_guest'] && topic_is_new($cur_subforum['id'], $id, $cur_subforum['last_post']))
But to no avail. Can anyone tell me how to mark posts read in the subforums in the viewforum.php page? Currently the viewtopic.php page works like it should.
Last edited by Surkow (2007-10-28 05:57:16)

Offline
Surkow wrote:
I think the description you gave it on the download site is fine.
Cheers.
Thought I'd given it the correct description, but just wanted to double check. ![]()
crusader wrote:
Cool. Will you be releasing it eventually?
It will need some minor alterations making. Namely the installer updating to include MySQL support, and standardising any specific, (to my forum code), code. If I send you the files and relevant bits of code for the other files, would you be okay for sorting those bits out?
If you want the files, drop me an e-mail and I'll get them e-mailed over to you.
Offline
Interesting...If I were you I would ask Smartys via this link: http://punbb.org/forums/viewtopic.php?id=17344&p=2
Offline
Edited: That first line of code you posted from viewforum.php is fine. That should work okay.
Last edited by MattF (2007-10-28 06:04:14)
Offline
Well, I just find this mod very confusing. I read a post and it still shows the new image on my index. I've tried Surkow's code and the default and I see no difference on viewforum under a sub forum or on the index.
Offline
crusader wrote:
Well, I just find this mod very confusing. I read a post and it still shows the new image on my index. I've tried Surkow's code and the default and I see no difference on viewforum under a sub forum or on the index.
Correct, it sadly enough doesn't alter anything.
The original code install instructions for the mark topics as read mod:
#
#---------[ 40. OPEN ]--------------------------------------------------------
#
viewforum.php
#
#---------[ 41. FIND (line: 166) ]--------------------------------------------
#
if (!$pun_user['is_guest'] && $cur_topic['last_post'] > $pun_user['last_visit'] && $cur_topic['moved_to'] == null)
#
#---------[ 42. REPLACE WITH ]------------------------------------------------
#
// MOD: MARK TOPICS AS READ - 1 LINE MODIFIED CODE FOLLOWS
if (!$pun_user['is_guest'] && topic_is_new($cur_topic['id'], $id, $cur_topic['last_post']) && $cur_topic['moved_to'] == null)After looking at the instructions from the subforum mode I found the following:
// Are there new posts?
if (!$pun_user['is_guest'] && $cur_subforum['last_post'] > $pun_user['last_visit'])
{
$item_status = 'inew';
$icon_text = $lang_common['New icon'];
$icon_type = 'icon inew';
}So after comparing those instructions I thought it had to be changed to "if (!$pun_user['is_guest'] && topic_is_new($cur_subforum['id'], $id, $cur_subforum['last_post']))". Currently I'm trying other things and it's not helping that I installed a huge amount of modifications (like the 2.0 poll mod).

Offline
Well, you are right for sure. The viewforum file is the problem as far as I can see at the moment. Did you ask Smartys via the link I sent you? I am 100% sure he can fix this. I just fee bad to ask because he has helped me so much with the sub forum mod. ![]()
Offline
crusader wrote:
Well, you are right for sure. The viewforum file is the problem as far as I can see at the moment. Did you ask Smartys via the link I sent you? I am 100% sure he can fix this. I just fee bad to ask because he has helped me so much with the sub forum mod.
Yes, I posted in the topic and tried to explain the problem (And I already read the whole topic before posting the current problem in this topic
).

Offline
Well, I guess I'll start by saying this mod is bad ass! I like a lot! There are only a few things I'm curious about.
I'm running PunBB 1.2.15, and just dl'ed Sub Forum Mod Ver. 1.0.9.3, installed without a hitch.
I was wondering how can I make it so that the parent forum's topics are on-top of the sub-forum itself? I tried adding that change to
ORDER BY disp_position
but I'm I get no solution to what I want to do.
Offline
You should have downloaded the version that I tweaked over at http://shedrockonline.com - It would not have fixed your issue but you would have probably like the additions to it. Anyway, as for your question. I have no clue what you mean. Can you be a bit more specific?
Cheers!
Bingiman
Offline