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

Zero Tolerance 03-01-2005 09:04 PM

Quote:

Originally Posted by babolo
There is no 'forumhome_stats_thread', in index.php

There is, look uptop ;)

- Zero Tolerance

Azhrialilu 03-01-2005 09:44 PM

You are the best... I was on an IPB forum today and wished VB had this facility... *clicks install and puts it on 3 forums*

KW802 03-01-2005 09:54 PM

Well.... that's a pretty cool idea. :cool:

Zero: So what are your thoughts on using the navbar template instead of the forumhome template? That way it'd work with portals as well instead of just the forums themselves.

Zero Tolerance 03-01-2005 09:57 PM

That could be done, but i thought i'd put it on the forumhome, incase users dont want to read the PM, then when they visit other pages on the forum, it wont appear, i could imagine a few complaining about been how annoying it would be.

- Zero Tolerance

babolo 03-02-2005 01:10 AM

Quote:

Originally Posted by Zero Tolerance
There is, look uptop ;)

- Zero Tolerance

I use 3.0.6 and there isnt...

eva01_ 03-02-2005 01:17 AM

vB Version: 3.0.7

from the hack itself

it is in teh 3.0.7 version of the index.php page

MicroLinux? 03-02-2005 02:05 AM

Works great! THANKS

Creed 03-02-2005 04:04 AM

Very nice, I like that :)

DataVampire 03-02-2005 06:26 PM

I cant find 'forumhome_stats_thread', where is it?

Creed 03-03-2005 02:49 AM

its only in 3.0.7, however that doesn't mean it doesn't work. I have it working fine on 3.0.6 :)

DataVampire 03-03-2005 11:46 AM

Can u help me? I cannot find in 3.0.7 index.php

Zero Tolerance 03-03-2005 01:47 PM

Quote:

Originally Posted by DataVampire
Can u help me? I cannot find in 3.0.7 index.php

Instead search for:
Code:

        'forumhome_event',
:)

- Zero Tolerance

The Realist 03-04-2005 05:02 PM

Thanks, working 100% in 3.0.6

Installed.



Quote:

Originally Posted by Zero Tolerance
Instead search for:
Code:

        'forumhome_event',
:)

- Zero Tolerance


Imperial Fritz 03-30-2005 05:51 PM

Neat!

paratek 04-01-2005 12:21 AM

Working Great....smacks the install

YLP1 04-06-2005 06:39 PM

Everyone except Supermods and Admins are recieving "no permission" error message when they click on the link to go view the message.

I confirmed that this is happening with all members who are logged in except Mods/Admins.

I musta did something wrong but I don't know where/how....I went over the mod coding and all looks well.

I am running vb version 3.0.7. Any ideas on how to fix this?

Blootix 04-06-2005 10:30 PM

Great hack.

However, there isn't a 'forumhome_stats_thread' in index.php. I'm running 3.0.7.

I even check an unedited version of index.php and it wasn't there.

Snake 04-14-2005 10:32 AM

Thanks, my favorite hack of all time! :D

Brandon Sheley 04-16-2005 02:58 AM

Quote:

Originally Posted by Zero Tolerance
Instead search for:
Code:

        'forumhome_event',
:)

- Zero Tolerance


with thi sinfo, works great. *installs* thank you

yoyoyoyo 06-11-2005 09:52 PM

great hack

Corvette 07-11-2005 09:25 PM

If I am doing it on 3.0.6, where do I put the forumhome_pmshow part?

Biker_GA 07-13-2005 01:30 PM

Code:

$globaltemplates = array(
        'FORUMHOME',
        'forumhome_event',
        'forumhome_pmshow',

:)

nix 08-07-2005 08:52 PM

Trying to get this to work with 3.5 Any ideas? really miss this hack.

Snake 08-08-2005 04:06 PM

ZT has ported a version for 3.5 of this hack already - https://vborg.vbsupport.ru/showthrea...threadid=82767

JD210 08-31-2005 12:50 AM

Great mod. I installed it on 3.0.3 without a problem and it works perfectly. Thanks.


All times are GMT. The time now is 04:47 PM.

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.01135 seconds
  • Memory Usage 1,778KB
  • 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
  • (4)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (35)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete