PDA

View Full Version : Mini Mods - Show Link To Thread in WOL (users viewing inline attachments)


MarkFL
07-21-2015, 09:00 PM
If you allow inline attachments on your forum, you may have noticed that users viewing threads with such attachments are reported in "Who's Online" as simply "Viewing Attachment."

This simple add-on will display a link to the thread which contains the attachment:

https://vborg.vbsupport.ru/attachment.php?attachmentid=152968&stc=1&d=1437555445

Update: version 1.1


Bug whereby no valid postid could be found is fixed.


Update: version 1.2


User action now shows "Viewing Thread" instead of "Viewing Attachment."


To Install:

Download and extract the attached .zip file.

In AdminCP go to Plugins & Products -> Manage Products -> Add/Import Product.

Click on "Choose File" and browse to the product xml file that was packaged in the .zip file.

Click "Import"

There are no settings to configure, once you import it, the add-on is active. :D

Support for this product can be found here:


MHB - Show Link To Thread in WOL (users viewing inline attachments) (http://mathhelpboards.com/vbulletin-products-61/show-link-thread-wol-users-viewing-inline-attachments-21884.html)
TAZ - Show Link To Thread in WOL (users viewing inline attachments) (https://theadminzone.com/threads/show-link-to-thread-in-wol-users-viewing-inline-attachments.145177/)

Stratis
07-22-2015, 12:53 PM
Great, installed.
Works fine in vb4.2.0pl4 and its very useful.

Thank you Mark

EDIT:
I get errors, not all time.
Database error in vBulletin 4.2.0:
Invalid SQL:
SELECT post.*
FROM post AS post
WHERE postid =;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 3
Error Number : 1064
Request Date : Wednesday, July 22nd 2015 @ 06:40:19 PM
Error Date : Wednesday, July 22nd 2015 @ 06:40:19 PM
Script : http://xxxxxxxxx/online.php?order=asc&sort=username&pp=20&page=1
Referrer :
IP Address :
Username : Stratis
Classname : vB_Database
MySQL Version : 5.5.43-MariaDB

Some times in refresh, i had 10 errors so far.

MarkFL
07-22-2015, 03:40 PM
Update: version 1.1


Bug whereby no valid postid could be found is fixed.


Stratis, please let me know if the update resolves the MySQL error. :)

Stratis
07-22-2015, 05:15 PM
Ok, I am testing, but what about thread id, this error came before your update.
SELECT thread.*
FROM thread AS thread
WHERE threadid =;

I don't know if it fixes this to?

MarkFL
07-22-2015, 05:20 PM
It should, unless you have posts without threadids. :D

MarkFL
07-22-2015, 06:23 PM
Update: version 1.2


User action now shows "Viewing Thread" instead of "Viewing Attachment."

Stratis
07-23-2015, 05:49 AM
First no problem with errors yet after the update to v1.1

Installed to v1.2 I will see what about "Viewing Attachment.", and test it several times.

EDIT: v1.2 tested, all works fine so far.
Thank you for goodies

MarkFL
07-23-2015, 05:57 AM
First no problem with errors yet after the update to v1.1

Installed to v1.2 I will see what about "Viewing Attachment.", and test it several times.

Thanks for the feedback...it is greatly appreciated. :up:

hazem_aliraqi
09-12-2015, 01:29 PM
excellent its work fine

Stratis
11-12-2015, 01:57 PM
Mark i have noticed today when i hover the link that some member is "viewing inline image attachment"

its shows code if exists,
link of image attachment
Its not a big deal, but i thought you better know. :p

MarkFL
11-12-2015, 04:49 PM
Mark i have noticed today when i hover the link that some member is "viewing inline image attachment"

its shows code if exists,
link of image attachment
Its not a big deal, but i thought you better know. :p

Can you provide a screenshot?

Stratis
11-16-2015, 07:22 AM
153674

That's what i mean, its not a big deal though :D

MarkFL
11-16-2015, 01:41 PM
153674

That's what i mean, its not a big deal though :D

It looks like it is behaving as it should. :)

Stratis
11-23-2015, 02:25 PM
It looks like it is behaving as it should. :)
I don't think that should be right :p but its not a big deal.

MarkFL
11-23-2015, 05:57 PM
I don't think that should be right :p but its not a big deal.

Without this add-on, that user would simply be shown in WOL as "Viewing Attachment," but instead they are shown as viewing the thread containing the attachment. That's what your screenshot shows and that's what this add-on does. I don't understand what you think should be going on instead. :D