Page 17 of 34

Posted: Sat May 07, 2005 8:00 am
by Merri
Add the topics header before <!-- END switch_attached_list --> or place the forum title below <!-- BEGIN switch_attached_list -->

Posted: Sat May 07, 2005 8:05 am
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

Posted: Sat May 07, 2005 3:51 pm
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.

Posted: Sat May 07, 2005 3:57 pm
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.

Posted: Sat May 07, 2005 3:58 pm
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?

Posted: Sat May 07, 2005 3:59 pm
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

Posted: Sat May 07, 2005 4:59 pm
by Aldri
i wonder why you use a subforum if you want this option :D

Posted: Sat May 07, 2005 8:55 pm
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.

Posted: Sat May 07, 2005 8:56 pm
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

Posted: Sat May 07, 2005 9:00 pm
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

Posted: Sat May 07, 2005 9:02 pm
by Merri
phpBB.com database went crazyand for some reason editing a post became a new post. Weird. Thus edited this post.

Posted: Sat May 07, 2005 11:30 pm
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.

Posted: Sun May 08, 2005 12:39 am
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.

Posted: Sun May 08, 2005 1:02 am
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 :)

Posted: Sun May 08, 2005 1:13 am
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.