Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-12-2001, 02:29 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #2  
Old 03-12-2001, 02:51 PM
Guest
 
Posts: n/a
Default

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...

Reply With Quote
  #3  
Old 03-12-2001, 02:56 PM
Guest
 
Posts: n/a
Default

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?
Reply With Quote
  #4  
Old 03-12-2001, 03:09 PM
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #5  
Old 03-12-2001, 03:31 PM
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #6  
Old 03-12-2001, 03:38 PM
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #7  
Old 03-12-2001, 03:40 PM
Guest
 
Posts: n/a
Default

I would recommend that you replace "images/" with "{ imagesfolder }/" so that you don't have any problems with different stylesets. (remove the spaces)
Reply With Quote
  #8  
Old 03-12-2001, 03:54 PM
Guest
 
Posts: n/a
Default

Alright, will do - just copying it out of the program. I guess I have to stop thinking of vBulletin as perfect.
Reply With Quote
  #9  
Old 03-12-2001, 03:55 PM
Guest
 
Posts: n/a
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:56 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04779 seconds
  • Memory Usage 2,216KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete