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 03-30-2002 10:00 PM

Improved PM Folderview
 
TESTED ON 2.3.0 AND FOUND WORKING

What does it do?

You know it happens to me pretty often that my users wonder why they cannot receive any more pm's. the standard question "did you check your sent items folder?" is answered with the standard question "do i have a sent items folder?"...

to avoid that, this hack shows the user on the privatemessage mainpage which folders they have in a list with the ability to add a folder without having to switch to the folders template.

aditionally, i modified the pmgauge enhanced hack by WWW.TOTAL-IMPACT.COM aka princeton a little and included it.

so, its nothing special, but maybe some people like it.
note: im new to this, so the code might be very ugly...

instructions:

1) follow instructions.txt :)

Credits: The_Sisko, mystics and boofo for finding bugs and helping with the code

Please notice this add-on by matt that allows you to have the amount of messages in each folder displayed next to it. Working on 2.2.9 too.

NOTICE: If you installed the private messages backup hack by Cano2 which is found here, you will have to to change a bit in the instructions.txt:

where it says to find:
PHP Code:

  //get correct folder name
  
if ($folderid=="0") { 

you will need to find the SECOND instance as the private message backup hack adds another instance of this code to the file.

NOTICE2: if you installed the PM Quota by Usergroup Hack by g-force2k2 that can be found here then the solution to make both work together is here

please click install if you use it, thank you

kreftt

kreftt 03-30-2002 10:07 PM

screenshot

there is only one as the look is the same for every folder, including the message tracking

NOTE

it includes the addon by Matt to be found here

ThaSpecialist 03-30-2002 10:13 PM

Cool Hack!

I test it! :bandit:

Felix 03-30-2002 10:31 PM

nice hack m8! Just add an delete button or picture right to the folders name so you can delete it quickly, but I told you that before ;)
However, nice work :D

wooolF[RM] 03-31-2002 12:19 AM

]installed! :D great! ;)

defnot 03-31-2002 12:26 AM

thx !! great hack !! i like it!!

afterlab 03-31-2002 01:18 AM

Wow! One of the best i've seen. Thanks for sharing.

Matt 03-31-2002 01:24 AM

Oh! This hack looks VERY cool! I am gonna install it first thing tomorrow :D

Floris 03-31-2002 11:22 AM

Is that quota box included or just additional hack?

Felix 03-31-2002 11:29 AM

Quote:

Originally posted by xiphoid
Is that quota box included or just additional hack?
It's an additional hack, which can be found here too. But kreftt added it into his hack already, so you don't have the quota hack already installed, to use kreftt his hack. :glasses:

Lesane 03-31-2002 11:39 AM

Very nice, thanks.

Bald Bouncer 03-31-2002 12:36 PM

very nice!

Matt 03-31-2002 12:51 PM

Installed! Works REALLY well!

One thing though, is it possible to get the total of PMs in each folder in brackets next to the folder link on the left? :)

Velocd 03-31-2002 07:47 PM

Excellent hack :D

kreftt 03-31-2002 09:59 PM

Quote:

Originally posted by Matt
Installed! Works REALLY well!

One thing though, is it possible to get the total of PMs in each folder in brackets next to the folder link on the left? :)

sure, if someone else does it :)

my little kowledge is at its end, but anyone who feels like adding more functions should feel free...
ill gladly test it.

greets

kreftt

Matt 04-01-2002 10:50 AM

LOL I am sure someone will be able to do it, thanks for your hard work on it so far! :D

rawnet 04-01-2002 11:52 AM

The response from my users has been very positive after installing this hack, and I've noticed the number of PMs being sent on a daily basis has increased a lot too.

Highly recommended - many thanks for this,

Ross

Erwin 04-01-2002 01:00 PM

Very very very nice! :)

Good one!

Matt 04-01-2002 01:17 PM

I managed to modify the hack to display in brackets the total messages inbox.

Screencap Coming Up...

Matt 04-01-2002 01:18 PM

Here it is :)

the_sisko 04-01-2002 01:28 PM

Just was about to do the same *G*

My query:
PHP Code:

SELECT count(*) as count FROM `privatemessageWHERE userid=$bbuserinfo[userid] AND folderid $folder[folderid

Something like this to get, but anyway, you already did it ;)

Matt 04-01-2002 01:36 PM

I hope ;)

What does it do?
- Displays total PM's In :
-- Inbox
-- Sent Items Folder
-- Custom Folders

Screencap
See Post #20

Working Demo
http://www.darkangeluk.com/forums/

All credit goes to Kreftt for creating the hack in the first place! :D


HACK HERE - https://vborg.vbsupport.ru/showthrea...threadid=36840

kreftt 04-01-2002 01:59 PM

thank you matt, it works very fine and is exactly the addition needed i think.

3 little comments:

1) in your instruction file the colors are hardcoded instead of
PHP Code:

#13486D 

2) could u please do the instructions for the private2.php (message tracking) and the privsent template too as now it doesnt work yet.

3) can i include your addon in the original instruction file if i fully credit you?

greets

kreftt

PS

sorry again the_sisko http://www.plauder-smilies.de/wave.gif

Matt 04-01-2002 02:04 PM

Just making the changes now and I will properly reply ;)

Nemesis77 04-03-2002 11:07 AM

I installed this hack works great, but the board uses a width of 770. how can i get it so that the prive folder area is inline with the header and footer instead of being stretched wider?

kreftt 04-03-2002 11:45 AM

how did u get the board to be 770 ?

by changing the
PHP Code:

{contenttablewidth

variable in the replacements or by manually editing the content-table parts in the header template?

afaik the privfolder additions all include
PHP Code:

{contenttablewidth

as width-tag and therefore should use your 770 if you used the first method described above.

could u post the last lines of your header template?

Nemesis77 04-03-2002 03:40 PM

in the Admin CP under Styles/Modify for Main Table Width: it's set to 770 and for Content Table Width:
it set to 750

Here's the last few lines of my header

Code:

              </td>
              </tr>
              <tr id="cat">
                <td bgcolor="#000000" " width="80%" align="left" background="back22.gif" height="25"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"> <!-- toplinks -->
  $xmenucssexpr
  $xmenucode
  $xmenudef
  <!-- /toplinks -->
                  </td></tr>
            </table>
          </td>
        </tr>
      </table>
  </tr>
</table>
<!--added menu -->
<!-- content table -->
<table bgcolor="#0E3652" width="100%" align="center" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
  <td>

Thanks for replying

kreftt 04-03-2002 07:25 PM

PHP Code:

<table bgcolor="#0E3652" width="100%" align="center" cellpadding="0" cellspacing="0" border="0" align="center"

either there was a code-pasting problem here or your width="100%" should be
PHP Code:

width="{ contenttablewidth }" 

(without the spaces) or width="750" instead, preferably the variable...

Nemesis77 04-03-2002 08:10 PM

Sorry the last line of my header actually does say tablewidth i forgot the put the space and vb put the value when i posted the thread.

so this is actually the last line of my header

Code:

<!-- content table -->
<table bgcolor="{ pagebgcolor}" width="{ tablewidth}" align="center" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
  <td>


kreftt 04-05-2002 03:42 AM

im sorry

ive tried myself and even as its plain dumb html, i have been unable to get that bloody hack to a width of 750...

sorry i cant help you

Nemesis77 04-05-2002 01:11 PM

no Problem. Thanks for trying

rawnet 04-07-2002 06:48 PM

Hello,

It would be great to be able to view all messages (messages bodies, not just message subjects) on one page.

At present, one can only see the message subject, and has to click on that to see the message body.

It would be useful, however, to see a list of all messages and their message content (or even just xxx characters of the content) and be able to move or delete each message from this screen without having to click on each message individually.

For people with a larger number of PMs stored, this would be a real help. Make it optional if necessary.

What do you think? Could anybody else use this functionality?

Ross

LouChipher 04-13-2002 02:46 PM

my quota are never red..., normal?

kreftt 04-13-2002 08:11 PM

i guess so.

im not sure but i think there is no such thing like a pm quota for admins...

LouChipher 04-14-2002 10:55 AM

sure kreftt... i'm using 250% of my quota... but other members seen only green and yellow quota, too...

kreftt 04-14-2002 05:54 PM

you are completely right, this appears to be a bug in the original pm gauge hack:

in your private.php FIND:

EDIT: this forum parses the bbcode, so i cant insert it. you MUST take out the space between the { and the imagesfolder} in both the code to find and to paste.


PHP Code:

  if ($pmpercent>50) {
  
$barimg="{ imagesfolder}/yellow.gif";
  } elseif (
$pmpercent>75) {
  
$barimg="{ imagesfolder}/red.gif"

notice that if the pm box is full, the first condition (%>50) is true, so the second condition (%>75) isnt queried at all and the image will always be yellow.

so REPLACE that with:

PHP Code:

  if ($pmpercent>75) {
  
$barimg="{ imagesfolder}/red.gif";
  } elseif (
$pmpercent>50) {
  
$barimg="{ imagesfolder}/yellow.gif"

and you should be done, worked for me.

ZIP in first post will be updated in a minute.

thx for the bug-posting.

kreftt

wooolF[RM] 04-14-2002 06:19 PM

]thanx for bug fixing :)

Hwulex 04-14-2002 06:26 PM

I assume this has to be done to PRIVATE2.php as well?

Erwin 04-14-2002 07:42 PM

Yes.

kreftt 04-14-2002 08:02 PM

d'oh

im sorry, its late

updating zip again.

thx for supporting my hack :)


All times are GMT. The time now is 01:42 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.01489 seconds
  • Memory Usage 1,827KB
  • 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
  • (2)bbcode_code_printable
  • (9)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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