vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Displaying ALL PMs on User CP Home Page (https://vborg.vbsupport.ru/showthread.php?t=11178)

TWTCommish 03-12-2001 02:29 PM

Just what the title sounds like: I want to display all (well, controlling the maximum number would be better) PMs on the "My vB Home" page in the User's CP, as opposed to just the new PMs.

My reason? Unless the forum is *really* active, most people are likely to have a few PMs, but rarely have new ones. I hate having that big white space sitting there doing nothing 90% of the time.

Any easy way of doing this?

03-12-2001 02:51 PM

I thought the same about the big white space, so I swapped the location of the 'subscribed threads' table with the location of the new PMs table, as there are far more likely to be new replies to subscribed threads than new PMs...

http://kier.3dfrontier.com/images/3DF_usercp.gif

03-12-2001 02:56 PM

Good idea - I'll probably try that - I'd still be interested in how to simply display all PMs there, if anyone knows how.

Is there a simple way to use a dropdown as you have done, as well? Very cool looking forms - sickingly cool, in fact. How'd you get those rounded corners in there?

03-12-2001 03:09 PM

Find
Code:

$messages = $DB_site->query("SELECT privatemessage.*,touser.username AS tousername,fromuser.username AS fromusername,icon.title AS icontitle,icon.iconpath FROM privatemessage,user AS touser,user AS fromuser LEFT JOIN icon ON icon.iconid=privatemessage.iconid WHERE privatemessage.userid='$bbuserinfo[userid]' AND folderid=0 AND touser.userid=privatemessage.touserid AND fromuser.userid=privatemessage.fromuserid AND messageread=0 $ignoreusers ORDER BY dateline DESC");
in usercp.php and remove the text in red.

That will show the entire contents of the inbox.

03-12-2001 03:31 PM

Thanks very much - I stuck a LIMIT on the end, too. Thanks again! :)

Any chance of a super-easy way to display the correct PM icon? As of now it, obviously, displays the "Unread message" icon for all of them.

03-12-2001 03:38 PM

Nevermind - I figured it out. :)

If anyone else is interested, here's how it's done:

Find this line in usercp.php:

Code:


$privatemessage[folder] = "{imagesfolder}/newpm.gif";

...and replace it with this:

Code:


    if ($privatemessage[messageread]) {
      $privatemessage[folder] = "{imagesfolder}/pm.gif";
    } else {
      $privatemessage[folder] = "{imagesfolder}/newpm.gif";
    }

Thanks Kier. :)

03-12-2001 03:40 PM

I would recommend that you replace "images/" with "{ imagesfolder }/" so that you don't have any problems with different stylesets. (remove the spaces)

03-12-2001 03:54 PM

Alright, will do - just copying it out of the program. I guess I have to stop thinking of vBulletin as perfect. :)

03-12-2001 03:55 PM

I'm stupid - it did actually use { imagesfolder } - but unlike you, I forget to space it out, so it is as it should be.

Thanks. :)


All times are GMT. The time now is 12:18 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.01679 seconds
  • Memory Usage 1,723KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete