vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Private Messages Enhancements - Simple PM Inbox/Outbox mod (https://vborg.vbsupport.ru/showthread.php?t=163351)

Nickbe 11-21-2007 10:00 PM

Simple PM Inbox/Outbox mod
 
Personally I dislike that drop down list that allows you to select the Inbox or Outbox. I don't know why but I find it tedious. So I edited it a little to show direct links to the inbox/outbox as opposed to the little drop-down list.

Find template: pm_messagelist

Find
PHP Code:

<td>
$vbphrase[jump_to_folder]:<br />
<
select name="folderid" onchange="this.form.submit();">
$folderjump
</select>$gobutton
</td


Replace with:
PHP Code:

<td>
$vbphrase[jump_to_folder]:&nbsp;&nbsp;<a href="private.php?s=&pp=&folderid=0">Inbox</a>&nbsp;&nbsp;&nbsp;<a href="private.php?s=&pp=&folderid=-1">Outbox</a>
</
td

This is a very simple mod that makes the PM area more efficient.

I do not make mods but when I make something for myself I usually share it.

yoyoyoyo 11-22-2007 11:27 AM

cool idea - I find dropdowns to be annoying also, especially when it is only choosing between 2 options, but why not use the phrases?

Code:

<td>
$vbphrase[jump_to_folder]:&nbsp;&nbsp;<a href="private.php?s=&pp=&folderid=0">$vbphrase[inbox]</a>&nbsp;&nbsp;&nbsp;<a href="private.php?s=&pp=&folderid=-1">$vbphrase[sent_items]</a>
</td>

also - one nice thing about the way it is by default is the fact that it displays the number of itmes in the inbox and sent items in the dropdown - can you add that feature in to your mod?

Lionel 11-22-2007 11:41 AM

The drop down is good fo those who created folders. With this change they no longer have access to them.

Nickbe 11-22-2007 11:44 AM

It says it at the top so I did not bother but I will look into it anyway. I am an amateur coder only been doing it a month or two. I will figure it out and update soon.

yoyoyoyo 11-22-2007 11:45 AM

Quote:

Originally Posted by Lionel (Post 1387457)
The drop down is good fo those who created folders. With this change they no longer have access to them.

good point - I never create folders, but I imagine other people do, so I forgot about that.

Nickbe 11-22-2007 11:46 AM

Quote:

Originally Posted by Lionel (Post 1387457)
The drop down is good fo those who created folders. With this change they no longer have access to them.

Can easily add additional folders.

You are right though, if you create additional folder this is probably not for you.

Lionel 11-22-2007 11:49 AM

Not necessarily me, but you don't know others who did so you can't add their folders therefore cannot add what you don't know :-)

Marco van Herwaarden 11-22-2007 12:00 PM

Best would be to add the direct links, instead of replacing the dropdown. Then you would have best of both worlds.

alserb 12-03-2007 08:09 AM

Cool :)

Kaycee123 12-05-2007 05:13 PM

I like it - I just added the code in instead of replacing it like Marco suggested - both options are there now. Works well!


All times are GMT. The time now is 06:49 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.01067 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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