vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Who Quoted Me (https://vborg.vbsupport.ru/showthread.php?t=258001)

renlok 01-28-2011 10:00 PM

Who Quoted Me
 
1 Attachment(s)
In the user control panel, users can now see a list of the last few people who have quoted them.
This is a great way to encourage users to interact with each other as they can easily keep track of conversations within threads.


If you use this i would really appreciate any small donation

EDIT:
Looks like there a few bugs in this I dont have a computer at the moment but Freshfoot has made an updated release with some new features: https://vborg.vbsupport.ru/showpost....1&postcount=30

dartho 01-29-2011 11:21 AM

Found a small bug. You need to edit the "Load Quotes" plugin on the usercp_start hook and change $vbulletin->options['wqmmax'] to $vbulletin->options['wqm_max'] otherwise you get MySQL errors when trying to enter usercp.

Good work :up:

[Edit]You should probably also use the $stylevar[imgdir_button] when loading the collapse button rather than a hard coded path - I think there is more to it than just that, but that's what I needed to change to use my custom buttons.

sulasno 01-29-2011 11:44 AM

tagged and thanks

@dartho; please explain $stylevar[imgdir_button] ; thanks

Wonksta 01-29-2011 01:43 PM

Quote:

Originally Posted by dartho (Post 2156028)
Found a small bug. You need to edit the "Load Quotes" plugin on the usercp_start hook and change $vbulletin->options['wqmmax'] to $vbulletin->options['wqm_max'] otherwise you get MySQL errors when trying to enter usercp.

Good work :up:

[Edit]You should probably also use the $stylevar[imgdir_button] when loading the collapse button rather than a hard coded path - I think there is more to it than just that, but that's what I needed to change to use my custom buttons.

Will download and Install once this coders recommendations are implemented. Can't wait!

Alfa1 01-29-2011 03:39 PM

Please add quote notifications to the notification drop down:
Quote:

4 of your posts have been quoted

dartho 01-29-2011 09:24 PM

Quote:

Originally Posted by sulasno (Post 2156032)
tagged and thanks

@dartho; please explain $stylevar[imgdir_button] ; thanks

This would only be an issue if you have custom styles (buttons in particular) in a custom path. If so, edit the template usercp_who_quoted_me and change src="images/buttons/collapse_tcat.gif" to src="$stylevar[imgdir_button]/collapse_tcat.gif"

Alpha - that is already implemented, although it current only has "Quotes n" - you'd have to edit the wqm_quotes phrase and change to something like "Number of posts quoted" if you wished to be more verbose ...

Wonksta 01-29-2011 10:23 PM

What kind of stress does this put on the server fetching quotes?

Alfa1 01-29-2011 11:40 PM

Im getting a DB error:
Code:

Database error in vBulletin 3.8.6:

Invalid SQL:
SELECT user.username, quote.*, post.threadid, thread.title
    FROM vb6_quotedatanew As quote
    LEFT JOIN vb6_post AS post ON(quote.postid = post.postid)
    LEFT JOIN vb6_thread AS thread ON(post.threadid = thread.threadid)
    LEFT JOIN vb6_user AS user ON(user.userid = quote.quoter)
    WHERE quote.quoted = '1' ORDER BY quote.dateline DESC LIMIT;

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
Request Date  : Sunday, January 30th 2011 @ 02:36:38 AM
Error Date    : Sunday, January 30th 2011 @ 02:36:38 AM
Script        : http://www.my-forum.com/forum/usercp.php
Referrer      : https://www.my-forum.com/forum/index.php
Username      : Alfa1
Classname    : vB_Database
MySQL Version : 5.0.90-log

Are table prefixes considered in this modification?

dartho 01-29-2011 11:49 PM

Check my post above:

Quote:

Found a small bug. You need to edit the "Load Quotes" plugin on the usercp_start hook and change $vbulletin->options['wqmmax'] to $vbulletin->options['wqm_max'] otherwise you get MySQL errors

Alfa1 01-30-2011 12:12 AM

Duh. Sorry bout that. That solves the DB error.

Im not getting any notifications of new quotes. Nor is anything listed under 'Who Quoted Me' in usercp

Please mind I have this installed: Display Reputation Comments Given

My site is rather busy, so I imagine that loading the quote data might be extensive for 85.000 members. 7.500 active members.


All times are GMT. The time now is 11:06 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.01252 seconds
  • Memory Usage 1,737KB
  • 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_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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