vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Improved PM Folderview (https://vborg.vbsupport.ru/showthread.php?t=36764)

kreftt 01-17-2004 05:27 AM

could i get the sourcecode for the page the screenshot was made from to kreftt[at]gmx.com please?

chrisvonc 01-17-2004 11:04 AM

Thank you very much. Email sent! :)

Chris

ricker 01-25-2004 10:32 PM

I didn't see any instructions on what/how to add the privfolder_pmgauge template. The actual percentage is not showing up, nor the bar. We do not have any other pm hacks, so it is not something else interfering. Thanks for the help.

ricker 01-25-2004 10:50 PM

Oops, sorry. Found pmgauge hack info in that thread. We added the template, so that should work. It doesn't. The problem we have is the add folder box is not showing up. I'm thinking it might be a tag issue with the add folder box code, and it's screwing up the pmgauge also. Any ideas?

kreftt 01-26-2004 06:26 PM

yes. tell me please where your site is or send me a screenshot of the pm page plus its sourcecode and the templates in question to kreftt@gmx.com

greetz

kreftt

ricker 01-26-2004 06:30 PM

Hmm, I tried it once more and I think we figured out that Dreamweaver is the cluprit. This hack works beautifully now -- and we won't be editing with Dreamweaver anymore. Thanks for your karma! :D

kreftt 01-27-2004 08:17 PM

although i always found dreamweaver to be a fantastic tool im happy it worked for you now.

greetz

kreftt

Aaron1 01-28-2004 10:32 AM

Strange bug i found, whenever someone sends you a PM who's on you're ignore list, it adds a message to your Inbox total messages. Although the PM gauge works well though.

Any clues how to solve that?

Cheers!

Crank 01-28-2004 10:55 PM

ok i have read this entire thread and found no solution to my erorr could anyone please help i had tried to add a folder to my PM section and i got the following erorr and now i cant even see my pm's it keeps giving me the erorr.

Database error in vBulletin 2.3.4:

Invalid SQL: SELECT COUNT(*) AS foldermsgtotal FROM privatemessage WHERE userid=1 AND folderid=
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 1

mysql error number: 1064

kreftt 01-29-2004 05:51 PM

@Aaron1

you have matt's addon installed which doesnt check for your ignorelist.
you have two queries in your private.php and private2.php.
replace these three as this:

1) this fixes the values for custom folders
PHP Code:

$msginfolder $DB_site->query_first("SELECT COUNT(*) AS foldermsgtotal FROM privatemessage WHERE userid=$bbuserinfo[userid] AND folderid=$folder[folderid]"); 

with

PHP Code:

$msginfolder $DB_site->query_first("SELECT COUNT(*) AS foldermsgtotal FROM privatemessage WHERE userid=$bbuserinfo[userid] AND folderid=$folder[folderid] $ignoreusers"); 

2)this fixes the values for the inbox
PHP Code:

$msgin_inbox $DB_site->query_first("SELECT COUNT(*) AS inbox_msgtotal FROM privatemessage WHERE userid=$bbuserinfo[userid] AND folderid='0' $ignoreusers"); 

that SHOULD be it. if it doesnt work yet, put

PHP Code:

  $ignoreusers="";
  if (
trim($bbuserinfo['ignorelist'])!="") {
    
$ignoreusers='AND fromuserid<>'.implode(' AND fromuserid<>',explode(' 'trim($bbuserinfo['ignorelist'])));
  } 

in front of these queries.

greetz

kreftt


All times are GMT. The time now is 06:30 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.01503 seconds
  • Memory Usage 1,743KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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