vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Blink PM icon with userinfo (https://vborg.vbsupport.ru/showthread.php?t=75619)

Floris 02-02-2005 11:19 PM

You can do this using template conditionals, no need to hack code.

Sebastian 02-02-2005 11:30 PM

Quote:

Originally Posted by floris
You can do this using template conditionals, no need to hack code.

then do it, i'd like to see you accomplish this.
sure you can use a conditional to blink an image, but there is no way you are going to be able to get the users, the ids to the PM, the unique PM count, etc..

Kahoona 02-03-2005 12:07 AM

I get this SQL Error:

Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT pmtext.pmtextid, pmtext.fromusername, pmtext.fromuserid, pmtext.dateline, pm.pmid, user.userid, user.usergroupid,
COUNT(pmtext.fromuserid) AS fromusertotal FROM pmtext AS pmtext
LEFT JOIN pm AS pm USING(pmtextid)
LEFT JOIN user ON (user.userid=pmtext.fromuserid)
WHERE pm.userid=1 AND messageread=0
GROUP BY pmtext.fromusername ORDER BY user.usergroupid ASC

mysql error: Table 'andy.pmtext' doesn't exist

mysql error number: 1146

Sebastian 02-03-2005 12:50 AM

@ Kahoona: redownload the zip. i forgot to add TABLE_PREFIX to the query.

kall 02-03-2005 12:51 AM

Quote:

Originally Posted by Kahoona
I get this SQL Error:

Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT pmtext.pmtextid, pmtext.fromusername, pmtext.fromuserid, pmtext.dateline, pm.pmid, user.userid, user.usergroupid,
COUNT(pmtext.fromuserid) AS fromusertotal FROM pmtext AS pmtext
LEFT JOIN pm AS pm USING(pmtextid)
LEFT JOIN user ON (user.userid=pmtext.fromuserid)
WHERE pm.userid=1 AND messageread=0
GROUP BY pmtext.fromusername ORDER BY user.usergroupid ASC

mysql error: Table 'andy.pmtext' doesn't exist

mysql error number: 1146

And the attachment won't download!

Kahoona 02-03-2005 01:24 AM

It still does not work lol.

yoyoyoyo 02-03-2005 01:40 AM

Quote:

Originally Posted by Sebastian
@ Kahoona: redownload the zip. i forgot to add TABLE_PREFIX to the query.

Huh? It installed earlier for me fine and works great. Should I re-edit the hack with the newly updated code?

Sebastian 02-03-2005 02:03 AM

Quote:

Originally Posted by yoyoyoyo
Huh? It installed earlier for me fine and works great. Should I re-edit the hack with the newly updated code?

no you dont have to.
all i did was change:

FROM pmtext

to:

FROM " . TABLE_PREFIX . "pmtext

TABLE_PREFIX is only needed if you add a prefix on your tables when you installed vb, otherwise its not needed.

Kahoona, do your tables have a prefix or not?

yinyang 02-03-2005 06:30 AM

most excellent.

installed in 1 minute and works like a charm.

MrNase 02-03-2005 01:22 PM

Quote:

Originally Posted by yinyang
most excellent.

installed in 1 minute and works like a charm.

Same for me, thank you for that hack :)


All times are GMT. The time now is 07:57 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.01295 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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