Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 07-22-2007, 06:30 PM
eJM's Avatar
eJM eJM is offline
 
Join Date: Sep 2004
Location: teh Ether
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Lose your place in the unread threads list?

There are times when I click into a forum and the list of unread threads is daunting. As the administrator, I try to, or want my staff to look over each thread. Occasionally the thread has a number of posts I read and by the time I click back to the thread list, I've lost my place. The down arrows are still there and I can't remember the thread title to remember where I am in the list.

I would like to add an additional image, another down arrow, to the mix, that will have the appearance of changing colors when it has been clicked on - like what the multi-quote button does in the message display. I've never designed or developed a hack/plug-in, so I was hoping one of the coders could come up with something. I thought it could be done with a little CSS magic, or maybe it should be JavaScript, but ajax would be my choice, just like the multi-quote routine.

These are the 2 images that will be linked to the first new message in a thread:

Here is the current CSS and code (from SHOWTHREAD template), which uses only the first image:
Code:
.tcat {
   background: #D9F1E9;
   color: #666666;
   font: 14pt tahoma,verdana, arial, helvetica, sans-serif; }
.tcat a:link, .tcat_alink {
   color: #333333;
   text-decoration: none; }
.tcat a:visited, .tcat_avisited {
   color: #333333;
   text-decoration: none; }
.tcat a:hover, .tcat a:active, .tcat_ahover {
   color: #000000;
   text-decoration: underline; }
.smallfont {
   font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; }
.inlineimg {
   vertical-align: middle; }
HTML Code:
<td class="tcat" width="100%">
   <div class="smallfont">
   <if condition="$show['firstunreadlink']">
      <a href="$firstunread"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[view_first_unread]" border="0" /></a>
      <a href="$firstunread"><strong>$vbphrase[view_first_unread]</strong></a>
   </if>
   &nbsp;
   </div>
</td>
I am not concerned about whether the image changes when hovered, only when clicked. Can you help me with the CSS and other code (hopefully ajax)?

Thank you,

Jim
PS: the code I supplied above is not from the default code for vBulletin - I use a custom style. But it's similar.
Reply With Quote
  #2  
Old 07-24-2007, 09:51 AM
eJM's Avatar
eJM eJM is offline
 
Join Date: Sep 2004
Location: teh Ether
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am still hoping to find an answer to this.
Reply With Quote
Reply

Thread Tools
Display Modes

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 01:27 AM.


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.03189 seconds
  • Memory Usage 2,169KB
  • 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)bbcode_code
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)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