vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Show Newest PM If Unread On Forum Home (https://vborg.vbsupport.ru/showthread.php?t=77250)

Zero Tolerance 02-28-2005 10:00 PM

Show Newest PM If Unread On Forum Home
 
This is similar to the IPB 2.x feature, where if you have a PM which is unread, or several, it will display the newest PM which you have unread on the forum home page below navigation.

This modification will do the same to your forums, if no unread PM's are found, nothing will be shown.
It will also cut-off the message after 400 characters to stop the whole message (if big) from been shown.

A preview of it in action can be found below :)

For those who are concerned about the amount of queries this will execute, heres info on that:
If Unread PM Is Found And Displayed: 1 Query Used
If Nothing Is Displayed: 0 Queries Used

Installation Information
Files To Edit: 1
Templates To Edit: 1
Templates To Add: 1
Estimated Installation Time: 10 - 15 Minutes

Enjoy the modification,

- Zero Tolerance

eva01_ 03-01-2005 12:50 PM

if it doesn't get cut off and you read it (on your forum home) is it now labled as read? or is it still unread?

Zero Tolerance 03-01-2005 12:53 PM

No matter if it is cut off or not, the PM is not registered as read, there are links given to go to the message or your inbox to read it properly from there. This modification is merly to show the PM upon visiting the forum index if you have just got online, then you can decide if you need to read it fully and reply or just ignore it.

Also setting it as read would mean 1 extra query, which is not really needed, so i didn't implement it.

- Zero Tolerance

Deaths 03-01-2005 01:46 PM

Very nice!

You're really desperate of getting that Master Coder title, aren't you ^^?

Zero Tolerance 03-01-2005 02:07 PM

Quote:

Originally Posted by Deaths
Very nice!

You're really desperate of getting that Master Coder title, aren't you ^^?

Thanks, and yes i am damnit, lol, the top is always my goal :D

- Zero Tolerance

Deaths 03-01-2005 02:49 PM

Hehe, well, I wish you good luck :).

[high]* Deaths installs[/high]

AN-net 03-01-2005 08:05 PM

well couldnt you setup if that that the strlen is not over 400 that it will automatically run the query and mark the post read....

good idea anyways but i think it woudl take up too much room;)

Zero Tolerance 03-01-2005 08:11 PM

I could, but thats a query, and i don't like them :p

As for taking up room, thats the whole point about the 400 char cut-off limit :)

- Zero Tolerance

babolo 03-01-2005 08:43 PM

This is a great hack... I havent tried it though yet lol

babolo 03-01-2005 08:50 PM

There is no 'forumhome_stats_thread', in index.php


All times are GMT. The time now is 06:14 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01064 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete