[DISC] Improved pseudo sub-forums MOD 1.0.6

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Locked
User avatar
Merri
Registered User
Posts: 255
Joined: Mon Nov 25, 2002 1:08 pm
Location: Riihimäki, Finland
Contact:

Post by Merri »

Add the topics header before <!-- END switch_attached_list --> or place the forum title below <!-- BEGIN switch_attached_list -->

soulcreeper
Registered User
Posts: 28
Joined: Wed Apr 06, 2005 8:08 am
Location: Breda, NL
Contact:

Post by soulcreeper »

thank you very much, works great now :D

i guess i won't do anything about this mod anymore. looks great now :D
I'm just good at being the best ®

Homeskillet
Registered User
Posts: 231
Joined: Thu Oct 07, 2004 5:00 am
Contact:

Post by Homeskillet »

I think I have just one more question and I will be completely satisfied with this MOD. :D

Is there any way to make the folder image Image turn Image when there has been anything posted in that forum OR subforum?

Right now if something has been posted in the subforum this Image changes to Image. I would like the big folder images to change as well.
...

niekas
Registered User
Posts: 562
Joined: Sun Sep 23, 2001 7:34 am

Post by niekas »

Homeskillet wrote: I think I have just one more question and I will be completely satisfied with this MOD. :D

Is there any way to make the folder image Image turn Image when there has been anything posted in that forum OR subforum?

Right now if something has been posted in the subforum this Image changes to Image. I would like the big folder images to change as well.


It does change:


screenshots:

index.php:

Image


viewforum.php:

Image

On index big folder image changes if there are new forums in that forum - subforums have their own little images. On viewforum subforums have big folder images that change if there are new posts.

niekas
Registered User
Posts: 562
Joined: Sun Sep 23, 2001 7:34 am

Post by niekas »

Merri wrote: Tip to niekas on that feature: make the post time a link to the post and have title attribute of the link to have the name of the topic. That is how I did it and doesn't take too much space (though I actually let the template decide how to handle it...)


What feature are you talking about?

Homeskillet
Registered User
Posts: 231
Joined: Thu Oct 07, 2004 5:00 am
Contact:

Post by Homeskillet »

On index big folder image changes if there are new forums in that forum - subforums have their own little images. On viewforum subforums have big folder images that change if there are new posts.


So there's no way to make the big folder images on the index change color too when new posts were made in the subforums of that forum?

I know they have their own little images, I would like the big ones to change as well, even if only one of the subforums has been posted in.

Make sense? :D
...

Aldri
Registered User
Posts: 11
Joined: Sat Apr 23, 2005 10:24 pm

Post by Aldri »

i wonder why you use a subforum if you want this option :D

User avatar
Merri
Registered User
Posts: 255
Joined: Mon Nov 25, 2002 1:08 pm
Location: Riihimäki, Finland
Contact:

Post by Merri »

I actually coded that feature for myself. The reason? If the last post is shown to be the one from the subforum, then why the big icon shouldn't show that there are new messages? I've also thought about including a smaller icon to show it the parent forum has new messages or not. That would make the most sense.


niekas: the one people talked just before my post: the topic title along the last post information. So I'd suggest something like <a href="{LASTPOST_TITLE}">{LASTPOST_TIME}</a> because it takes much less space and looks better.

Homeskillet
Registered User
Posts: 231
Joined: Thu Oct 07, 2004 5:00 am
Contact:

Post by Homeskillet »

I dunno, I guess just the way I have it set up on mine it just makes sense to me...I really hope someone can tell me how to do it. :D
...

Homeskillet
Registered User
Posts: 231
Joined: Thu Oct 07, 2004 5:00 am
Contact:

Post by Homeskillet »

Merri wrote: I actually coded that feature for myself. The reason? If the last post is shown to be the one from the subforum, then why the big icon shouldn't show that there are new messages?


So you know how to do what I was asking, or am I misreading? :D
...

User avatar
Merri
Registered User
Posts: 255
Joined: Mon Nov 25, 2002 1:08 pm
Location: Riihimäki, Finland
Contact:

Post by Merri »

phpBB.com database went crazyand for some reason editing a post became a new post. Weird. Thus edited this post.
Last edited by Merri on Sun May 08, 2005 12:48 am, edited 1 time in total.

da_badtz_one
Registered User
Posts: 376
Joined: Thu Jan 29, 2004 8:25 pm

Post by da_badtz_one »

@merri:

There is actually a better way to compact the last topic information. This is what I've done with my index.php file.
$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);
$last_post = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '">'.$forum_data[$j]['topic_title'].' <img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';

$last_post .= '<br /> ';
$last_post .= $last_post_time.'<br />';
$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';


Yes, it wouldn't be as compact as merris idea but I think this is much better.

niekas
Registered User
Posts: 562
Joined: Sun Sep 23, 2001 7:34 am

Post by niekas »

Merri wrote: I actually coded that feature for myself. The reason? If the last post is shown to be the one from the subforum, then why the big icon shouldn't show that there are new messages? I've also thought about including a smaller icon to show it the parent forum has new messages or not. That would make the most sense.


niekas: the one people talked just before my post: the topic title along the last post information. So I'd suggest something like <a href="{LASTPOST_TITLE}">{LASTPOST_TIME}</a> because it takes much less space and looks better.


If i had to choose what to display on index: subject or date - i'd choose thread subject and have last post time in title atribute, but I don't think 25 characters takes that much space and its very useful for index.

Afterall - it's up to forum admin to decide what they want this data to be displayed. They can customize any way they want - its a matter of taste.

I don't think its wise to have big icon to switch on and off if there are new posts in subforums. It becomes sorta "pseudo category" within category. So it would be displaying new posts in "pseudo categories" and at the same time in regular forums that have no subforums.

BTW can you show your code Homeskillet so he can implement it for himself.

User avatar
Merri
Registered User
Posts: 255
Joined: Mon Nov 25, 2002 1:08 pm
Location: Riihimäki, Finland
Contact:

Post by Merri »

da_badtz_one wrote: There is actually a better way to compact the last topic information. This is what I've done with my index.php file.


Well, I've done myself a lot different solution: I've coded so that the template decides what the result should look like. One of my biggest dislikes in phpBB is that it does too much HTML within PHP code, so I've changed that in a couple of places.


Homeskillet: unfortunatenaly my code is not compatible with niekas' code anymore, so I'm not posting any code (I'd have to figure it out again and code in a way that fits to niekas' code). I'll probably release my own version of this MOD later on with a different approach, so there are choises to pick from :)


Guess I should leave my suggestions out from here and concentrate on what I'm doing by myself, so this topic stays more clean and more in the niekas' MOD style :)

Homeskillet
Registered User
Posts: 231
Joined: Thu Oct 07, 2004 5:00 am
Contact:

Post by Homeskillet »

Thanks niekas and merri...

Rats though...Unfortunately the Image image next to the subforum name on index is just too small...and my members are complaining that they don't know when new things have been posted. They are so used to looking at the folder images Image on the left which are still mostly white since most of our new posts ARE within subforums and not the main forums...I would even be willing to pay a reasonable amount to someone to provide me the code to do this or unfortunately I will probably have to remove this mod.

Thanks again, I appreciate all the help ... great MOD.
...

Locked

Return to “[2.0.x] MODs in Development”