Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-22-2004, 08:36 PM
Jolten Jolten is offline
 
Join Date: Mar 2004
Posts: 749
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default [req] Forum status display

Hi,

I'd like to be able to use static images in the forum home for the status display (I can most likely do this myself).

But I'd also like to add forum status visual cues to the forum titles. Meaning unread forums would cause the forum title to appear in a different color. Essentially moving the visual read/unread cue to the forum title rather than the image.

Can anyone help me with this?

The reason behind this is that the status images do not update fast enough for my users. They really dispise seeing the new post image only to find out there are no new posts. I'm hoping a style change or color change for the forum title will update faster and alleviate the frustration of many users.

Thanks.
Reply With Quote
  #2  
Old 04-22-2004, 09:33 PM
Meltdown Meltdown is offline
 
Join Date: Aug 2003
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't see how changing the color of the forum should be any different than the old/new posts image, but anyway here's one solution

1 Open template: forumhome_forumbit_level1_post

2 Find: $forum[title]

3 Replace with:
<if condition="$forum[statusicon]=='old'">
$forum[title]
</if>

<if condition="$forum[statusicon]=='new'">
<font color="purple">$forum[title]</font>
</if>

Meltdown
Reply With Quote
  #3  
Old 04-22-2004, 09:51 PM
Jolten Jolten is offline
 
Join Date: Mar 2004
Posts: 749
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it's a matter of browsers caching the images misleading users. No cache headers don't seem to help. I'll try yoru solution. Thanks Meltdown.
Reply With Quote
  #4  
Old 04-22-2004, 10:01 PM
Jolten Jolten is offline
 
Join Date: Mar 2004
Posts: 749
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm.. sort of works. With the if statement tied to the images they don't update any better then the images do. I want the status of a forum to be set to read as soon as a user clicks the forum link. That doesn't seem to happen at all.

Essentially the read/unread status of forums does not update after a user clicks through a forum. Only if a user backs out of a forum using breadcrumbs do status icons really reflect what has and has not been read.
Reply With Quote
  #5  
Old 04-23-2004, 11:18 AM
Meltdown Meltdown is offline
 
Join Date: Aug 2003
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure if you're going to take a performance hit with everyone setting the forums to MarkRead by clicking on the forum link, or if it will solve the caching problem,but if you want to try it...

1 Open Template:forumhome_forumbit_level1_post

2 Find:
<a
href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]>

3 Replace With:
<a
href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]&do=markread&f_reset=1>

4 Open:
forumdisplay.php

Find:
eval(print_standard_redirect('markread_single'));

Replace with:
if (!isset($_GET["f_reset"]))
{
eval(print_standard_redirect('markread_single'));
}

...you may need to repeat Step 2 & 3 on template forumhome_forumbit_level2_post, depending on your level settings

Meltdown
Reply With Quote
  #6  
Old 04-23-2004, 03:41 PM
Jolten Jolten is offline
 
Join Date: Mar 2004
Posts: 749
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That worked pretty well. Thanks meltdown.

I don't see any extra DB queries and performance seems okay to the users.

I appreciate the assistance.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:06 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03798 seconds
  • Memory Usage 2,205KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete