vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Private Messages Enhancements - PM Previews by BOP5 (VB4) (https://vborg.vbsupport.ru/showthread.php?t=277502)

BirdOPrey5 01-24-2012 11:00 PM

PM Previews by BOP5 (VB4)
 
1 Attachment(s)
Brought to you By:
BirdOPrey5 / Qapla.com


Version 1.2.1

This mod adds PM previewing capabilities to vBulletin. Now you can mouse-over thread titles and see previews like with threads, or you can see previews inline (like here on vbulletin.org).

There are 2 product install files, one for VB versions 4.0.0 through 4.1.9, and another for VB 4.1.10 and above.

Be sure to install the correct version.

Demo: www.qapla.com/mods/
(You will need to register to see and use PMs)

Please Mark as Installed if you use this. :)

BirdOPrey5 01-25-2012 01:11 AM

Reserved.

kevin.d 01-25-2012 01:18 AM

Thanks

Gemma 01-25-2012 11:12 AM

Thank you, another one of those glaringly obvious omissions from the default vBulletin install IMO.

datoneer 01-25-2012 01:40 PM

Great mod working

socialteenz 01-25-2012 02:46 PM

Looking great, tagged for now.

Thanks.

Boofo 01-25-2012 02:50 PM

Looks good, Joe. I have been using ForumsMods version of this mod, with my own edits, which is exactly like your first pic. Great minds think alike? ;)

I like the mouseover affect, too. I will try this one.

BirdOPrey5 01-25-2012 03:29 PM

Quote:

Originally Posted by Boofo (Post 2292225)
Looks good, Joe. I have been using ForumsMods version of this mod, with my own edits, which is exactly like your first pic. Great minds think alike? ;)

I like the mouseover affect, too. I will try this one.

damn... hadn't seen that one- actually I didn't even think to look this time- I had this mod done months ago and was just too busy to put a package together (as you can see my description and instructions are unusually short for one of my releases) but then I saw I needed to fix it on 4.1.10 last night so I did and just uploaded it here and on my site.

Well anyone interested in this mod should check out there other one too and see which they prefer: https://vborg.vbsupport.ru/showthread.php?t=259318

I don't know the differences but it looks like theirs is inline only.

Boofo 01-25-2012 03:32 PM

And the date and time isn't formatted the same as yours or mine. Adrian released that some time ago. Yours has the mouseover affect which is a plus. ;)

sadiq6210 01-26-2012 08:27 AM

Quote:

Originally Posted by Boofo (Post 2292247)
And the date and time isn't formatted the same as yours or mine. Adrian released that some time ago. Yours has the mouseover affect which is a plus. ;)

+ Preview length

Thanks .. Great mod

Kraxell 01-26-2012 09:28 AM

Great mod! 'll try it, after my vB update next week. Thank you!

OldSchoolDSL 01-31-2012 05:29 AM

Much cleaner code and a good improvement over the past version.

Thank you and job well done, Joe :)

Installed & Working

4.1.10

Boofo 05-18-2012 09:45 PM

1 Attachment(s)
This mod meses up if they use code boxes in their PMs.

BirdOPrey5 05-18-2012 10:37 PM

Boofo,

In my test it seemed to work although the code box was of course removed, just the text inside it was shown, as I would expect in a preview...

Can you confirm what exactly the issue is? Maybe paste in the PM text here that is causing the problem?

I do see another bug seemingly unreleated I will work on right now- It seems it will actually render HTML if you put HTML in the PM.

Boofo 05-18-2012 11:30 PM

I was going to get the message for you but my PM box is empty. I forgot that I deleted them today. Sorry. I will play with sending myself some PMs and see what I can find to send you.

I do remember there were 2 code boxes in there. Maybe it didn't take care of the second one? I was using Opera 11.64, if that helps at all.

BirdOPrey5 05-18-2012 11:52 PM

Boofo, I did try multiple code boxes.

It might have been HTML in the code box. I saw HTML was actually parsing AS HTML :eek:!

Everyone should upgrade to 1.2 ASAP!

Version 1.0 can be exploited if malicious users sent an iframe or javascript code in a pm.

This has been fixed in version 1.2... Also for those running 4.1.12 or above previews will now show in the user cp as well as the inbox itself.

cstreater 05-19-2012 12:34 AM

I don't know why this board will never allow me to like your posts without liking someone else's first, but I like it and thanks for the prompt update.

chimpmaster 05-19-2012 04:12 AM

Excellent! I am always going crazy opening PM's try to find the one I need. This makes it really easy now. Thanks - nice mod and working just fine for me on v4.1.12.

sadiq6210 05-19-2012 08:10 AM

1 Attachment(s)
After update to 1.2, now it is not working with my Arabic forum =(

BirdOPrey5 05-19-2012 10:28 AM

Quote:

Originally Posted by sadiq6210 (Post 2330637)
After update to 1.2, now it is not working with my Arabic forum =(

Sorry about that, I guess I went overboard on the security to change all characters to HTML entities.

For now if you want to edit the two plugins: PM Previews Main Code and PM Previews in Notifications

Find the line:
Code:

$pm['boppreview'] = htmlentities($pm['boppreview']);
and change it to:
Code:

$pm['boppreview'] = htmlspecialchars($pm['boppreview']);
(do for each plugin.)

Otherwise I will release an update later today to fix it for non-latin Languages. :up:

sadiq6210 05-19-2012 10:48 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2330661)
Sorry about that, I guess I went overboard on the security to change all characters to HTML entities.

For now if you want to edit the two plugins: PM Previews Main Code and PM Previews in Notifications

Find the line:
Code:

$pm['boppreview'] = htmlentities($pm['boppreview']);
and change it to:
Code:

$pm['boppreview'] = htmlspecialchars($pm['boppreview']);
(do for each plugin.)

Otherwise I will release an update later today to fix it for non-latin Languages. :up:

Thanks Joe .. working perfect

Another question :o
Can I change the direction of the preview window?

For LTR languages, it is correct:
https://vborg.vbsupport.ru/attachmen...2&d=1327457397

But for RTL, the direction should be changed.
https://vborg.vbsupport.ru/attachmen...5&d=1337418518

Is it possible?

Gemma 05-19-2012 11:42 AM

Thanks for the update :)

BirdOPrey5 05-19-2012 01:27 PM

Quote:

Originally Posted by sadiq6210 (Post 2330664)
Thanks Joe .. working perfect

Another question :o
Can I change the direction of the preview window?

For LTR languages, it is correct:
https://vborg.vbsupport.ru/attachmen...2&d=1327457397

But for RTL, the direction should be changed.
https://vborg.vbsupport.ru/attachmen...5&d=1337418518

Is it possible?

By preview window, do you mean the yellow box?

sadiq6210 05-19-2012 02:21 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2330713)
By preview window, do you mean the yellow box?

Yes ^_^

BirdOPrey5 05-19-2012 03:25 PM

Sorry I'm not very familiar with RTL issues so I apologize if I am asking dumb questions...

https://vborg.vbsupport.ru/attachmen...5&d=1337418518

I can't read the text but it certainly looks Right-Justified... (Starting on the Right) - Are you saying it's supposed to start on the Left? Or are the letters themselves backwards (in reverse order?)

Do the thread previews work correctly in the forum?

BirdOPrey5 05-19-2012 10:15 PM

Updated to version 1.2.1 - should fix the issue in post #19 with non-english/latin languages.

sadiq6210 05-20-2012 02:12 PM

1 Attachment(s)
Quote:

Originally Posted by BirdOPrey5 (Post 2330738)
Sorry I'm not very familiar with RTL issues so I apologize if I am asking dumb questions...


I can't read the text but it certainly looks Right-Justified... (Starting on the Right) - Are you saying it's supposed to start on the Left? Or are the letters themselves backwards (in reverse order?)

Do the thread previews work correctly in the forum?

Appreciate you effort Joe
Actually I am meaning the preview popup itself.

In LTR, there is a gap in the right (see the green rectangle)
https://vborg.vbsupport.ru/attachmen...1&d=1337526605

In RTL, there is no gap:
https://vborg.vbsupport.ru/attachmen...1&d=1337526605

It should be something like this:
https://vborg.vbsupport.ru/attachmen...1&d=1337526605

Thanks again Joe :up:

BirdOPrey5 05-20-2012 07:18 PM

Thank you for the thorough explanation but there is nothing in the code that could control that. I would imagine it's the web browser making the "choice" where the preview gets displayed. It's usually based on where the mouse pointer is when the preview gets activated.

sadiq6210 05-21-2012 08:12 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2331065)
Thank you for the thorough explanation but there is nothing in the code that could control that. I would imagine it's the web browser making the "choice" where the preview gets displayed. It's usually based on where the mouse pointer is when the preview gets activated.

aha
I think you are correct Joe.
Thank you very much for your time :up:

Amaury 02-05-2013 03:12 AM

<font color="Green">Installed.</font>

Anyone know what the Preview Length is set to on here (vBulletin.org Forum)? I wanted to go by that.

BirdOPrey5 02-08-2013 11:50 PM

Looks like 400 characters to me.

sadiq6210 06-17-2013 08:40 AM

Hi Joe

Please read this thread, it is related to this mod
https://vborg.vbsupport.ru/showpost....58&postcount=5

BirdOPrey5 06-17-2013 01:05 PM

You need to add your <img> code to my templates, pm_messagelistbit_bop5_orig and pm_messagelistbit_bop5.

Snowhog 06-17-2013 04:59 PM

<i>Very</i> nice MOD. Thank you very much. Downloaded and installed. This should be a default in vBulletin.


All times are GMT. The time now is 05:54 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.01220 seconds
  • Memory Usage 1,806KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (34)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