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)
-   -   Mini Mods - Show Link To Thread in WOL (users viewing inline attachments) (https://vborg.vbsupport.ru/showthread.php?t=319589)

MarkFL 07-21-2015 09:00 PM

Show Link To Thread in WOL (users viewing inline attachments)
 
1 Attachment(s)
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/attachmen...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:

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.
HTML Code:

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

Quote:

Originally Posted by Stratis (Post 2551128)
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,
PHP Code:

[CENTER]link of image attachment [/CENTER

Its not a big deal, but i thought you better know. :p


All times are GMT. The time now is 06:16 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.02218 seconds
  • Memory Usage 1,738KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (1)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
  • (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