vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Show Newest PM If Unread On Forum Home (https://vborg.vbsupport.ru/showthread.php?t=82767)

Zero Tolerance 06-09-2005 10:00 PM

Show Newest PM If Unread On Forum Home
 
This is a port of: https://vborg.vbsupport.ru/showthrea...threadid=77250

Exact same functionality/style, will automatically make the template edit for you using the plugins system (a bit hackish but it worked :p)

Plugins Added: 3

Enjoy,

- Zero Tolerance

King Kovifor 06-09-2005 11:04 PM

Nice Hack... I'd use this if It was my forum that my email is attached to!

Chris M 06-09-2005 11:10 PM

Hate to burst your bubble but it doesn't work - No "forumhome_pmshow" template was created...

Satan

Zero Tolerance 06-09-2005 11:14 PM

Forgot to upload the text file, thanks for pointing that HS :)

- Zero Tolerance

Chris M 06-09-2005 11:15 PM

Invalid attachment specified :alien:

Why me lol...

Satan

Zero Tolerance 06-09-2005 11:16 PM

Working fine for me .. try again?

- Zero Tolerance

Chris M 06-09-2005 11:17 PM

Yeh I got it now ;)

Working like a charm now :p

Satan

Link14716 06-09-2005 11:25 PM

Nice work. :)

[high]* Link14716 installs.[/high]

eXtremeTim 06-10-2005 05:58 AM

Nice work. Love the hackish template edit. :)

jpt62089 06-10-2005 06:09 AM

[high]* jpt62089 installs :)[/high]

burnist 06-10-2005 10:29 AM

working, nice mod :)

[high]* burnist licks install[/high]

Dan 06-11-2005 09:03 PM

A good idea to eliminate a query or two would be to do the following file modifaction. It basically caches the forumhome_pmshow template eliminating 2 queries if I remember it right.

Open index.php

Find:
Code:

'forumhome_subforumbit_post',
Add After:
Code:

'forumhome_pmshow',
Enjoy!

Nice plugin btw :)

Link14716 06-12-2005 12:37 AM

Quote:

Originally Posted by Dan
A good idea to eliminate a query or two would be to do the following file modifaction. It basically caches the forumhome_pmshow template eliminating 2 queries if I remember it right.

Open index.php

Find:
Code:

'forumhome_subforumbit_post',
Add After:
Code:

'forumhome_pmshow',
Enjoy!

Nice plugin btw :)

IIRC, you can also plug in some code into fetch_userinfo to cache it.

mholtum 06-12-2005 06:03 AM

/me installs!

Nice work!

burnist 06-12-2005 08:32 AM

Quote:

IIRC, you can also plug in some code into fetch_userinfo to cache it.
what like,

PHP Code:

if (THIS_SCRIPT == "index")
     {
     
$globaltemplates = array(
     
'forumhome_pmshow'
     


I assume this is wrong and would mess something up, but is that the general idea?

eXtremeTim 06-12-2005 07:01 PM

This hack already has the code for the template catch.

Zero Tolerance 06-12-2005 09:22 PM

eXtemeTim is correct, this adds in the code to cache the template, globally however, but i doubt it would make any resource difference at all since the template is rather small.

- Zero Tolerance

fraghappy 06-17-2005 11:33 AM

I only have one suggestion: add a "Reply to PM" link down at the bottom with the other stuff. ;)

Azhrialilu 07-06-2005 08:07 AM

I loved this on 3.0.7 and now I can continue to love it on 3.5 *smiles happily*

burnist 07-16-2005 09:49 PM

been trying this on beta 4 its generating an error in the admin cp on all pages

Quote:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in *****\****\****\*****\includes\functions.php(1030) : eval()'d code on line 3
It would appear that this if from the use of the fetch_userinfo hook, but I could be wrong.

please fix it, I liked this plugin ;)

Gizmo5h1t3 08-08-2005 02:40 PM

guys, on the original install, not modified, im getting the same "invalid file specifiewd" message.
can u help at all?
im creeating the template exactly as the info file dictates.
but when i import from .xml file on desktop, i get the error message

Brandon Sheley 09-10-2005 06:06 AM

will this work with RC3 ?
:)

ultranerds 09-10-2005 11:11 AM

Installed <G> Nice plugin!

delds 09-10-2005 01:52 PM

is this compatable with vb 3.5 rc 3

Brandon Sheley 09-10-2005 08:17 PM

worked fine with rc3 :) ty installs*

Vizionz 09-13-2005 06:51 AM

awesome scott another great hack from you dude your work is outstanding

memorex 09-23-2005 01:04 PM

Quote:

Originally Posted by Vizionz
awesome scott another great hack from you dude your work is outstanding

Great hack, I'm having one problem though, Its showing the PM Duplicated on the forumhome. I just want it to show once hehe. I made the template as well as ran the plugin, is that where i went wrong?

Neutral Singh 09-24-2005 08:01 AM

when i checkup with my installed plugins list, i find out that there are not many of yours, that i have failed to install on my forums. TY!!

evesve 09-24-2005 02:09 PM

This is a great hack!

If there would be a link to "Delete this PM", than it would be great-great-great!!!

Protoman 10-08-2005 07:26 PM

doesn't work with gold.

Bounce 10-09-2005 02:42 AM

/me installed

Works a treat..Thanks,users were complaining of missing pm's...NO MORE lol

Peace_Hope 10-11-2005 10:44 PM

Thanks, Great work.

michaelbenson 10-20-2005 05:59 PM

Anyway in which we could strip BBCode formatting from the PM preview?
Or actually enabling it?

Xplorer4x4 10-20-2005 06:32 PM

Quote:

Originally Posted by Protoman
doesn't work with gold.

It works but I seem to have trouble with the old grey pop up box showing up.

Xplorer4x4 11-01-2005 09:28 AM

Quote:

Database error in vBulletin 3.5.0:

Invalid SQL:

SELECT user.avatarid, user.avatarrevision, avatarpath, NOT ISNULL(filedata) AS hascustom, customavatar.dateline,
customavatar.width, customavatar.height
FROM user AS user
LEFT JOIN avatar AS avatar ON avatar.avatarid = user.avatarid
LEFT JOIN customavatar AS customavatar ON customavatar.userid = user.userid
WHERE user.userid =;

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 6
Error Number : 1064
Date : Tuesday, November 1st 2005 @ 04:40:25 AM
Script : /forums/index.php
Referrer :
IP Address :
Username :
Classname : vb_database
This may be cause in conjuction with PM PReview hack, but either way I have had porblems with this since going Gold.

Just an FYI for later Zero.

Protoman 11-01-2005 09:49 PM

yup, I finally got this mod working. there is an error in the template cache plugin.

there should be an is_array() check otherwise it causes errors in the admin panel

Xplorer4x4 11-02-2005 04:50 AM

Quote:

Originally Posted by Protoman
yup, I finally got this mod working. there is an error in the template cache plugin.

there should be an is_array() check otherwise it causes errors in the admin panel


As in a parse error or a DB Error? If so can you tell me what to fix?

Brandon Sheley 11-20-2005 09:07 AM

[high]* Brandon Sheley clicks install
[/high]

this shows two sets of the same pm ? any thoughts ?

i have a few things installed on my index
http://locoforum.com/forums/index.php?

im guessing this is the reason ?
any idea how to fix this

Iceburg22 11-21-2005 12:50 PM

thanks

Allan 12-30-2005 05:47 AM

Thanks you very much ;)

Click Install


All times are GMT. The time now is 04:44 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.01207 seconds
  • Memory Usage 1,791KB
  • 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
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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