PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.


Login to move these ads to the bottom of the page

#201 2007-10-24 19:19:39

crusader
Member
From: Canada
Registered: 2006-10-26
Posts: 264
Website

Re: Sub Forum Mod 1.0

Thank you very much for this. I will also carry it on Shedrock Online - http://shedrockonline.com

Offline

 

#202 2007-10-25 07:55:07

lie2815
Member
From: BERLIN
Registered: 2007-03-20
Posts: 130
Website

Re: Sub Forum Mod 1.0

PunBB 1.3 should come out soon-ish anyways, so you might not even want to worry.

Offline

 

#203 2007-10-25 14:12:33

crusader
Member
From: Canada
Registered: 2006-10-26
Posts: 264
Website

Re: Sub Forum Mod 1.0

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

 

#204 2007-10-25 18:40:22

MattF
Member
From: South Yorkshire, England
Registered: 2007-03-16
Posts: 430

Re: Sub Forum Mod 1.0

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. big_smile big_smile

Offline

 

#205 2007-10-25 18:52:06

crusader
Member
From: Canada
Registered: 2006-10-26
Posts: 264
Website

Re: Sub Forum Mod 1.0

Is 1.3 going to have sub forums?

Offline

 

#206 2007-10-27 12:39:14

Surkow
Member
Registered: 2007-08-15
Posts: 19

Re: Sub Forum Mod 1.0

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)


http://img148.imageshack.us/img148/7198/tachikoma49sy.png

Offline

 

#207 2007-10-27 12:47:52

MattF
Member
From: South Yorkshire, England
Registered: 2007-03-16
Posts: 430

Re: Sub Forum Mod 1.0

Surkow wrote:

I'm interested in this version of the mod. Could you please send it to me or upload it somewhere?

Version 1.0.9.3

Offline

 

#208 2007-10-27 12:50:36

MattF
Member
From: South Yorkshire, England
Registered: 2007-03-16
Posts: 430

Re: Sub Forum Mod 1.0

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

 

#209 2007-10-27 14:51:06

MattF
Member
From: South Yorkshire, England
Registered: 2007-03-16
Posts: 430

Re: Sub Forum Mod 1.0

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. big_smile Btw Bingiman, is that description for your version correct? smile

Last edited by MattF (2007-10-27 14:51:41)

Offline

 

#210 2007-10-27 15:34:49

Surkow
Member
Registered: 2007-08-15
Posts: 19

Re: Sub Forum Mod 1.0

MattF wrote:

Surkow wrote:

I'm interested in this version of the mod. Could you please send it to me or upload it somewhere?

Version 1.0.9.3

Thanks for the link.

I think the description you gave it on the download site is fine.


http://img148.imageshack.us/img148/7198/tachikoma49sy.png

Offline

 

#211 2007-10-27 15:39:43

crusader
Member
From: Canada
Registered: 2006-10-26
Posts: 264
Website

Re: Sub Forum Mod 1.0

Hey MattF,

Where did you get that downloads mod from? I can't find any like that on punres.

Offline

 

#212 2007-10-27 15:44:22

MattF
Member
From: South Yorkshire, England
Registered: 2007-03-16
Posts: 430

Re: Sub Forum Mod 1.0

I wrote it. big_smile I only finished it off and ironed out the minor wrinkles within the last few days or so.

Offline

 

#213 2007-10-27 17:07:10

crusader
Member
From: Canada
Registered: 2006-10-26
Posts: 264
Website

Re: Sub Forum Mod 1.0

Cool. Will you be releasing it eventually?

Offline

 

#214 2007-10-27 20:44:29

MattF
Member
From: South Yorkshire, England
Registered: 2007-03-16
Posts: 430

Re: Sub Forum Mod 1.0

Not decided yet.

Offline

 

#215 2007-10-28 05:55:54

Surkow
Member
Registered: 2007-08-15
Posts: 19

Re: Sub Forum Mod 1.0

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

Code:

if (!$pun_user['is_guest'] && $cur_subforum['last_post'] > $pun_user['last_visit'])

to

Code:

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)


http://img148.imageshack.us/img148/7198/tachikoma49sy.png

Offline

 

#216 2007-10-28 05:58:07

MattF
Member
From: South Yorkshire, England
Registered: 2007-03-16
Posts: 430

Re: Sub Forum Mod 1.0

Surkow wrote:

I think the description you gave it on the download site is fine.

Cheers. smile Thought I'd given it the correct description, but just wanted to double check. big_smile


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? smile If you want the files, drop me an e-mail and I'll get them e-mailed over to you.

Offline

 

#217 2007-10-28 05:58:25

crusader
Member
From: Canada
Registered: 2006-10-26
Posts: 264
Website

Re: Sub Forum Mod 1.0

Interesting...If I were you I would ask Smartys via this link: http://punbb.org/forums/viewtopic.php?id=17344&p=2

Offline

 

#218 2007-10-28 06:02:55

MattF
Member
From: South Yorkshire, England
Registered: 2007-03-16
Posts: 430

Re: Sub Forum Mod 1.0

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

 

#219 2007-10-28 06:41:39

crusader
Member
From: Canada
Registered: 2006-10-26
Posts: 264
Website

Re: Sub Forum Mod 1.0

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

 

#220 2007-10-28 07:01:16

Surkow
Member
Registered: 2007-08-15
Posts: 19

Re: Sub Forum Mod 1.0

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:

Code:

#
#---------[ 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:

Code:

    // 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).


http://img148.imageshack.us/img148/7198/tachikoma49sy.png

Offline

 

#221 2007-10-28 07:15:01

crusader
Member
From: Canada
Registered: 2006-10-26
Posts: 264
Website

Re: Sub Forum Mod 1.0

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. big_smile

Offline

 

#222 2007-10-28 07:24:25

Surkow
Member
Registered: 2007-08-15
Posts: 19

Re: Sub Forum Mod 1.0

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. big_smile

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 tongue ).


http://img148.imageshack.us/img148/7198/tachikoma49sy.png

Offline

 

#223 2007-10-28 07:28:05

crusader
Member
From: Canada
Registered: 2006-10-26
Posts: 264
Website

Re: Sub Forum Mod 1.0

I think it has something to do in the function file. It is not updating the sub forums.

Offline

 

#224 2007-11-04 11:06:58

AcidHeatIIV
New member
Registered: 2007-10-16
Posts: 6

Re: Sub Forum Mod 1.0

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

Code:

ORDER BY disp_position

but I'm I get no solution to what I want to do.

Offline

 

#225 2007-11-04 12:06:41

crusader
Member
From: Canada
Registered: 2006-10-26
Posts: 264
Website

Re: Sub Forum Mod 1.0

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

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.