View Full Version : Improved PM Folderview
kreftt
03-30-2002, 10:00 PM
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 (https://vborg.vbsupport.ru/showthread.php?s=&threadid=36840) 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 (https://vborg.vbsupport.ru/showthread.php?s=&threadid=37172), you will have to to change a bit in the instructions.txt:
where it says to find:
//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 (https://vborg.vbsupport.ru/showthread.php?s=&threadid=43148) then the solution to make both work together is here (https://vborg.vbsupport.ru/showthread.php?postid=420170#post420170)
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 (https://vborg.vbsupport.ru/showthread.php?s=&threadid=36840)
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.
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
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!
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
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
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!
I managed to modify the hack to display in brackets the total messages inbox.
Screencap Coming Up...
the_sisko
04-01-2002, 01:28 PM
Just was about to do the same *G*
My query:
SELECT count(*) as count FROM `privatemessage` WHERE userid=$bbuserinfo[userid] AND folderid = $folder[folderid]
Something like this to get, but anyway, you already did it ;)
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/showthread.php?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 #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
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 {contenttablewidth} variable in the replacements or by manually editing the content-table parts in the header template?
afaik the privfolder additions all include {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
</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
<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 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
<!-- 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.
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:
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 :)
LouChipher
04-15-2002, 08:38 AM
>... should be done, worked for me.
no.. :(
DiSS Troya
04-15-2002, 09:16 AM
excellent job on the hack!
kreftt
04-15-2002, 11:12 AM
could u attach your private.php then here please?
i think thats the easiest if i take a look at your code...
kreftt
Mystics
04-21-2002, 07:12 PM
Hi,
if you have an user on your ignore list, and get a PM from him, you can't see the PM but the Gauge Hack counts it to the number of total PMs.
On the start page (index.php) you don't see this PM, because the the ignored users are excluded.
To fix this you should replace (in private.php and private2.php): $msgcount = $DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid]");with $ignoreusers="";
if (trim($bbuserinfo['ignorelist'])!="") {
$ignoreusers='AND fromuserid<>'.implode(' AND fromuserid<>',explode(' ', trim($bbuserinfo['ignorelist'])));
}
$msgcount = $DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] $ignoreusers");Mystics
kreftt
04-23-2002, 09:19 PM
sorry im late.
thanks a lot, i didnt even notice the bug as i dont use the ignorelist :(
i updated the zip with your fix, thanks again
greets
kreftt
JulianD
04-24-2002, 08:15 AM
Hey kreftt, great hack!! I don't know why I missed it when it was released! But now I founded it and I think it's great! Thanks! Going to install it tomorrow!
Thanks again! :p
eg_92901
04-24-2002, 05:06 PM
Great hack. No problems installing and it is so much easier to use than the default PM settup. I do have 2 questions though:
1. The font and color of the table header text for the "Folders" "Add Folders" and "Quota" tables don't match the rest of my site. I've had this problem on other pages too. Anyone know how I can fix that?
2. How do you make it so you see how many messages are in each folder like the example screenshot shot?
Ordovicium
04-24-2002, 06:57 PM
I love this hack. Thank you very much.
kreftt
04-25-2002, 03:42 PM
eg_92901:
1)
my fault fault, i didnt use the tableheadtextcolor-replacement :(
at the moment, the font&color for "Folder" and the other two are set to <normalfont><b>Folder</b></normalfont>
this means it should at least be the right font. to give it the same color like your other table headings, try sth like:
<normalfont color="{ tableheadtextcolor}"><b>Folder</b></normalfont>
WITHOUT the space between the { and the t
note: this is to be found in PRIVFOLDER template easily be searching for "Folder<"
2)this is the addon made by matt and posted in the beta-releases forum too.
( https://vborg.vbsupport.ru/showthread.php?s=&threadid=36840 )
note: this addon works fine on vbb 2.24, thats what the screenshot was made of. in 2.25 the code parts this addon depends on were changed and at least i have been unable to port the addon over to 2.25. so if you are already running 2.25, consider using a test board first...
and if u get the addon to run on 2.25 --> post it :D
greets
kreftt
Mystics
04-25-2002, 04:12 PM
I have running both (this hack + addon) without problems on 2.2.5...and I don't remember doing anything special ;)
Mystics
eg_92901
04-25-2002, 06:55 PM
Works great. I'm running 2.2.5 and besides some minor code differences everything works great. Thanks, my members love it already. :)
kreftt
04-25-2002, 07:16 PM
so im the only stupid?
seems i need to take a look into that addon again :(
I have the add-on working fine on 2.2.5 also ;) No changes made to it either.
CeleronXL
04-28-2002, 07:00 PM
There's no text area next to the Go button in the Add Folder place in mine.... Why is this?
CeleronXL
04-28-2002, 11:16 PM
Ah ha, fixed that problem. Ok, but now it just displays folder names, and not the number of posts in it. It just displays "Inbox" and not "Inbox (xx)"
Wildthinks
04-29-2002, 10:17 AM
nice hack very cool--
Super, hab ich gleich installiert..gefällt mir wirklich gut...
kreftt
04-29-2002, 11:36 AM
@CeleronXL
the number of total pms in any folder are the addon for this hack that Matt coded. The instructions and better support than i can give are to be found here:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=36840
greets
kreftt
CeleronXL
04-29-2002, 05:59 PM
Ooooooh. I get it. Thanks. :p
FleaBag
05-16-2002, 10:38 PM
Installed on 2.2.5. Working great! Thanks!
Khaybel
05-17-2002, 07:04 PM
Thank you for making this hack :) The installed worked great, I'm using VB 2.5.5
I tweaked a few front colors etc, but otherwise, your instructions were very clear and easy to read, and using Ultra edit, the install only took about 10 mins if that.
My members were asking for way to see how many messages they used, this morning, so this worked wonderfully, thank you for your effort in making this. aka princeton and GOBLIN
my forums,
http://forums.orbsydia.com/index.php3
I included a screenshot of my forums with the new improved_pm system installed, it works great.
later :)
Velocd
05-17-2002, 07:56 PM
I've been looking for this hack for awhile now, couldn't remember the name of it, but I'm glad I found it :D
Awesome hack!
Is there a way to delete the custom folders?
Boofo
06-03-2002, 05:35 PM
I have a user that uses a single quote after his name (i.e. Boofo') and when I enter a folder with the quote in it I get it like this:
Boofo\\\'
Is there any way to fix that?
Boofo
06-04-2002, 02:12 PM
Here is a picture of another little add-on for the Improved PM Folderview hack. It's not much but if anyone is interested, I will release it. Let me know what you think. This is my first attempt at any sort of hack, but it DOES work great on my site.
Oops, forgot to tell what it does...It shows you the following:
Number of New Messages
Number of Read Messages
Number of Unread Messages
Number of Sent Messages
Number of Total Messages
at a quick glance.
kreftt
06-04-2002, 02:57 PM
looks nice
would you please make a screenshot of the above mentioned problem?
thank you
kreftt
Boofo
06-04-2002, 03:10 PM
Here is it. It's the folder at the bottom. It is named Boofo's folder. Also, when you add folders in the regular way (with the folders button) it seems to add another \ each time for some reason (in the editor listing only).
Originally posted by kreftt
looks nice
would you please make a screenshot of the above mentioned problem?
thank you
kreftt
Minots
06-05-2002, 06:21 AM
Hi everybody.
I have done a little modification at 'privmsg' template, to have
a better looking style when reading a pm.
I add a snapshot to show what I mean. ;)
Boofo
06-05-2002, 06:25 AM
Looks good...I'd be interested in trying it out if you want to release it.
Originally posted by Minots
Hi everybody.
I have done a little modification at 'privmsg' template, to have
a better looking style when reading a pm.
I add a snapshot to show what I mean. ;)
Minots
06-05-2002, 07:11 AM
I add my custom made template as attachment.
Don?t forget to translate anything to your favorite language
because I?m using the german one. ;)
FleaBag
06-20-2002, 01:37 PM
Installed on 2.2.6, all seems to be running smoothly! Thanks. :)
WOW this hack rocks!!! Thank you for the hard work!!
Boofo
06-22-2002, 07:58 AM
Any luck with figuring out a fix for my problem? :)
Originally posted by kreftt
looks nice
would you please make a screenshot of the above mentioned problem?
thank you
kreftt
sKunk
06-28-2002, 01:04 PM
This hack is installed and running under 2.2.6 over at http://www.tournament.com.
Great work :up:
Boofo
07-04-2002, 01:32 AM
kreftt, are you still supporting this hack? I'm still having a problem with the folders with the \ in them.
aquariumpros
07-04-2002, 02:00 AM
Any reason that I only have it working when I click to my Message Tracking view?
When I click on either my Inbox/Saved or Sent Items folder views, all I get is a double post of the message list?!?!
Any help would be appreciated.
Cheers,
*~AJ~*
kreftt
07-04-2002, 09:46 AM
im sorry you folks, my internet connection is very unstable at the moment, i can only connect from work.
@boofo
i take a look into it, i guess this can be fixed
@aquariumpros
could you send me your private.php and your private2.php to kreftt@uni.de ?
sorry for the delay again, next time im online is monday :(
kreftt
Boofo
07-04-2002, 10:58 AM
Great! I'll be looking forward to it. :)
aquariumpros
07-04-2002, 04:26 PM
kreftt
They have been sent.
Thanks in advance,
*~AJ~*
musicfreak12399
07-06-2002, 01:39 PM
installed and love this hack.. Great Work
kreftt
07-07-2002, 12:32 PM
hmm, that weird
@boofo
i have installed the hack on vbb224, 225 and 226 again. i cannot reproduce your error on 224 and 226, while it happens to me too on a 225. i went through the files line by line without finding any reason for this. i exchanged the private.php and private2.php from the error-showing 225 then with the files from working 224 without having any change. i exchanged the files the other direction without the error occuring afterwards.
so my conclusion would be that the error comes from any other change not in the two files from 224 to 225 that was taken back in 226 again, but i cannot tell you which one as i simply dont know.
im sorry my support is that ad but i cant offer any other advice than: try the upgrade to 226 :(
sorry
@aquariumpros
your files look fine, so i would need the templates that you added/changed too.
thx
kreftt
aquariumpros
07-07-2002, 03:07 PM
Originally posted by kreftt
@aquariumpros
your files look fine, so i would need the templates that you added/changed too.
thx
kreftt
Copies of the templates have been e-mailed to you.
Thanks again,
*~AJ~*
kreftt
07-07-2002, 07:29 PM
@aquariumpros
you made a mistake in your privfolder template.
where the instructions say to add this:
<table cellpadding=5 cellspacing=0 border=0 width="{contenttablewidth}">
<tr>
<td width="200" valign="top">
<table cellpadding=4 cellspacing=1 border=0 bgcolor="{tablebordercolor}" width="200">
<tr bgcolor="{tableheadbgcolor}" id="cat">
<td align="center" height="28"> <normalfont><b>Folder</b></normalfont></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}" width="100%"><normalfont><a href="private.php?s=$session[sessionhash]&folderid=0">Inbox</a></font></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}" width="100%"><normalfont><a href="private.php?s=$session[sessionhash]&folderid=-1">Sent Items</a></font></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}" width="100%"><normalfont><a href="private2.php?s=$session[sessionhash]">Message Tracking</a></font></td>
</tr>
$folderboxeshack
</table>
<br>
<form action="private.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]">
<table cellpadding=4 cellspacing=1 border=0 bgcolor="{tablebordercolor}" width="200">
<tr bgcolor="{tableheadbgcolor}">
<td height="28" align="center"><normalfont><b>Add Folder</b></normalfont>$hiddenfolderboxes</td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}" width="100%">$newfolderboxes <input type="hidden" name="action" value="doeditfolders">
<input type="image" class="bginput" name="submit" src="{imagesfolder}/go.gif">
</td>
</tr>
</table>
</form>
<table cellpadding=4 cellspacing=1 border=0 bgcolor="{tablebordercolor}" width="200">
<tr bgcolor="{tableheadbgcolor}">
<td colspan=3 align="center">
<normalfont><b>PM Quota</b></normalfont>
</td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}" colspan=3><smallfont>You are using $pmpercent% of your quota.
</font>
</td>
</tr>
<tr>
<td bgcolor="{secondaltcolor}" colspan=3>
<table cellpadding=0 cellspacing=0 border=0>
<tr>
<td bgcolor="{secondaltcolor}" width="200"><img src="$barimg" width="$pmpercent %" height="9">
</td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="{firstaltcolor}">
<td width="33%"><smallfont>0%</font>
</td>
<td width="34%" align="center"><smallfont>50%</font>
</td>
<td width="33%" align="right"><smallfont>100%</font>
</td>
</tr>
</table>
</td>
<td width="100%" valign="top">
above this:
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<form action="private.php" method="post" name="form">
$privatemessages
you added this:
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<form action="private.php" method="post" name="form">
$privatemessages
instead resulting in this section being showed twice.
if u replace the upper instance of this:
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<form action="private.php" method="post" name="form">
$privatemessages
with the correct code you should be fine...
kreftt
aquariumpros
07-07-2002, 08:36 PM
PERFECT!!!
That fixed it 100%.
Thank you again for taking the time to help me out!!
Great Hack!!!
*~AJ~*
Boofo
07-07-2002, 08:50 PM
Wouldn't that have something to do with the specialcharacters variable? I'm just guessing here. :)
Originally posted by kreftt
hmm, that weird
@boofo
i have installed the hack on vbb224, 225 and 226 again. i cannot reproduce your error on 224 and 226, while it happens to me too on a 225. i went through the files line by line without finding any reason for this. i exchanged the private.php and private2.php from the error-showing 225 then with the files from working 224 without having any change. i exchanged the files the other direction without the error occuring afterwards.
so my conclusion would be that the error comes from any other change not in the two files from 224 to 225 that was taken back in 226 again, but i cannot tell you which one as i simply dont know.
im sorry my support is that ad but i cant offer any other advice than: try the upgrade to 226 :(
sorry
tHE DSS
07-27-2002, 05:32 PM
Hiya,
This hack is pretty smooth.... except, i'd like to implement that bit, showing in brackets, the number of PMs in each folder.
I fiddled with the SQL queries, and seemed to sort it... but, couldn't output.
Where is the output going... and could somone just confirm the query for me?
I'm in the process of fastracking a vB installation with loads of custom stuff, so can't really afford the time to tamper anymore with this.
Cheers.
Tim Wheatley
08-08-2002, 12:51 AM
There's no delete button in the sent messages... ?
Tim Wheatley
08-08-2002, 01:07 AM
Yes there is - my bad. :)
ryancooper
08-09-2002, 12:53 AM
Awesome Hack, Installed Flawlessly!
Thanks!
Boofo
08-22-2002, 12:01 AM
Well, sir, it is fixed. There are no more slashes messing up the folder view on Folders that have an apostrophe in the name. Instead of addslashes, stripslashes took care of the problem. :)
Originally posted by kreftt
hmm, that weird
@boofo
i have installed the hack on vbb224, 225 and 226 again. i cannot reproduce your error on 224 and 226, while it happens to me too on a 225. i went through the files line by line without finding any reason for this. i exchanged the private.php and private2.php from the error-showing 225 then with the files from working 224 without having any change. i exchanged the files the other direction without the error occuring afterwards.
so my conclusion would be that the error comes from any other change not in the two files from 224 to 225 that was taken back in 226 again, but i cannot tell you which one as i simply dont know.
im sorry my support is that ad but i cant offer any other advice than: try the upgrade to 226 :(
sorry
thx
kreftt
kreftt
08-22-2002, 08:15 AM
thank god there are people with more knowledge than me around
Boofo
08-22-2002, 04:43 PM
It was perserverance and determination more than anything else, kreftt. "More Knowledge" was not even involved. :)
Originally posted by kreftt
thank god there are people with more knowledge than me around
Googa
08-23-2002, 04:58 AM
I seem to be having a problem.
The text field next to the button for adding folders is non-existant. Sup with that?
What's wrong here?
kreftt
08-25-2002, 08:57 PM
are you sure that you have added te contents of the priv_showfolders_folderbit_add template?
Boofo
08-31-2002, 01:55 AM
How can I make the folder list list them in alphabetical order instead of when they were added?
FleaBag
09-03-2002, 01:59 AM
Working on 2.2.7, thanks. :)
Darkwolf
09-03-2002, 11:56 AM
Well done dude :D
Buddha
09-19-2002, 04:14 PM
excellent hack.
thanks.
*clicks installed*
FlyingDutchman
09-19-2002, 06:24 PM
smoooooooth hack bro :)
*installs*
kreftt
10-06-2002, 08:07 PM
works on 2.2.8 for me
Sc0rp
10-23-2002, 07:10 PM
awesome hack:D installed right away! :) thanks mate:)
FleaBag
10-28-2002, 11:06 PM
Working well with 2.2.8. Thanks for this hack. ;)
Dynamic One
11-11-2002, 08:55 AM
Super hack kreftt. Will test it.
Dynamic One
11-13-2002, 11:55 AM
Have installed it but don't get it working :(.
here's a screenschot of waht I get
I don't see the pic. and the amount of post after:
- inbox
- Sent Items
- Message Tracking.
Can you please help me with this, because it's a great hack and I also want it to work.
kreftt
11-13-2002, 01:17 PM
hiya
you found the addon already in the beta hacks forum. this is the one that will make it show the number of messages after inbox/sent/tracking.
to your other question:
you are sure that you copied the 3 images to the { imagesfolder that you specified in your admincp? usually it would be /images, but as you are using a heavily modified style, you might have switched it to something like /images/style1, which would be the place for the three images to go too...
Dynamic One
11-13-2002, 04:26 PM
Thanks for the fast reply kreftt will add the addon.
Bison
11-13-2002, 07:36 PM
Installed!
Very professional look to the private message folder!
Esdee
11-14-2002, 06:05 PM
awesome hack.
danrak
11-18-2002, 11:54 AM
This is a great hack my users love it. I have gotten some request for something though. Would it be possible to put the buddy list on there too? So they can have the buddy list with the PM link so they can just click on the name and it brings up a new PM message for the buddy?
Thanks for a great hack.
kreftt
11-18-2002, 12:30 PM
im glad you like it.
im not sure i have fully understood you though.
you want the buddylist table that is normally shown on the startpage of the usercp to be shown in the privatemessage section too right?
if thats the case, it shouldnt be too hard to do. just tell me if thats what you want and ill tell you the code.
greets
kreftt
350Chevy
11-27-2002, 06:22 AM
Works perfect for 2.2.9! :)
Clicked install.
XFLBret
11-28-2002, 04:37 AM
this hack is as cool as the other side of the pillow.
just one beef though...
the words "folder" "PM quota" and the "new folder" the text were the same color as the background. i had to go in the templates and adjust them with the normal font color code before the words, if that makes sense. sorry, its not in front of me right now.
anyway, good work
kreftt
11-28-2002, 09:45 AM
im sorry youre right, the templates arent fully correct, some editing is still neccessary. ill fix that when vb3 is out...
greets
kreftt
this hack very nice..
but i dont know y i got width problem...
how can i fix it?? 100% width is no any problem..
but when i set it to 730...
kreftt
12-02-2002, 03:04 PM
it looks from your screenshot like you didnt replace all neccessary occurences of contenttablewidth with the hardcoded 730. there should be 4 or 5 places to edit in the privfolder template.
greets
kreftt
Just downloaded and attempted to install. Keep getting a parse error on the 2nd hack on the private.php page. The part that starts "$bbuserinfo[usergroupid] !=6)..." If I remove that whole part of the hack then the page will display. Any thoughts? I just pasted directly from the install sheet.
GGus
kreftt
12-02-2002, 09:34 PM
erm, the part that you mentioned is commented out at all occurences, and it isnt a start of a part.
to help you, i would need to know the error message that happens after you hacked the file, and your private.php to kreftt@uni.de
greets
kreftt
Originally posted by kreftt
it looks from your screenshot like you didnt replace all neccessary occurences of contenttablewidth with the hardcoded 730. there should be 4 or 5 places to edit in the privfolder template.
greets
kreftt
thank you..!
and my Message Tracking page have same problem too...
which 1 template i need goto edit ?!
kreftt
12-03-2002, 01:48 AM
if i remember right then this should be the privsent template
greets
kreftt
Originally posted by kreftt
if i remember right then this should be the privsent template
greets
kreftt
i have try to edit my privsent..
but still cant fix out the problem...
this is my code from privsent.
{htmldoctype}
<html>
<head><title>$bbtitle - Private Messaging: $bbuserinfo[username] - Read Receipts</title>
$headinclude
<!-- message selection script -->
<script language="JavaScript">
<!--
function CheckAll(theform) {
for (var i=0;i<theform.elements.length;i++) {
var e = theform.elements[i];
if ((e.name != 'allbox') && (e.type=='checkbox'))
e.checked = theform.allbox.checked;
}
}
function CheckCheckAll(theform) {
var TotalBoxes = 0;
var TotalOn = 0;
for (var i=0;i<theform.elements.length;i++) {
var e = theform.elements[i];
if ((e.name != 'allbox') && (e.type=='checkbox')) {
TotalBoxes++;
if (e.checked) TotalOn++;
}
}
if (TotalBoxes==TotalOn) theform.allbox.checked=true;
else theform.allbox.checked=false;
}
//-->
</script>
<!-- end message selection script -->
</head>
<body>
$header
<!-- breadcrumb -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td width="100%"><img src="{imagesfolder}/vb_bullet.gif" align="middle" alt="vBulletin">
<normalfont><b><a href="index.php?s=$session[sessionhash]">$bbtitle</a> >
<a href="usercp.php?s=$session[sessionhash]">User Control Panel For $bbuserinfo[username]</a> >
<a href="private.php?s=$session[sessionhash]">Private Messages</a> >
Message Tracking</b></normalfont></td>
</tr>
</table>
<!-- /breadcrumb -->
<br>
$cpnav
<br>
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td>$priv_dateselect</td>
<td align="right">
<table cellspacing="0" cellpadding="0" border="0">
<form action="private.php" method="post">
<tr>
<td><input type="hidden" name="s" value="$session[sessionhash]">
<smallfont><b>Jump to folder:</b>
<select name="folderid" onchange="window.location=('private.php?s=$session[sessionhash]&folderid=' + this.options[this.selectedIndex].value + '&daysprune=$daysprune')">
<option value="0">$inboxname</option>
<option value="-1">$sentitemsname</option>
$folderjump
$readreceiptsoption
</select>$gobutton</smallfont></td>
</tr>
</form>
</table>
</td>
</tr>
</table>
<br>
<table cellpadding=5 cellspacing=0 border=0 width="{contenttablewidth}">
<tr>
<td width="200" valign="top">
<table cellpadding=4 cellspacing=1 border=0 bgcolor="{tablebordercolor}" width="200">
<tr bgcolor="{tableheadbgcolor}" id="cat">
<td align="center" height="28"> <normalfont><b><font color="{tableheadtextcolor}">Folder</font></b></normalfont></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}" width="100%"><normalfont><a href="private.php?s=$session[sessionhash]&folderid=0">Inbox</a> ($inbox_msgtotal)</font></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}" width="100%"><normalfont><a href="private.php?s=$session[sessionhash]&folderid=-1">Sent Items</a> ($sent_msgtotal)</font></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}" width="100%"><normalfont><a href="private2.php?s=$session[sessionhash]">Message Tracking</a></font></td>
</tr>
$folderboxeshack
</table>
<br>
<form action="private.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]">
<table cellpadding=4 cellspacing=1 border=0 bgcolor="{tablebordercolor}" width="200">
<tr bgcolor="{tableheadbgcolor}">
<td height="28" align="center"><normalfont><b><font color="{tableheadtextcolor}">Add
Folder</font></b></normalfont>$hiddenfolderboxes</td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}" width="100%">$newfolderboxes <input type="hidden" name="action" value="doeditfolders">
<input type="image" class="bginput" name="submit" src="{imagesfolder}/go.gif">
</td>
</tr>
</table>
</form>
<table cellpadding=4 cellspacing=1 border=0 bgcolor="{tablebordercolor}" width="200">
<tr bgcolor="{tableheadbgcolor}">
<td colspan=3 align="center"> <normalfont><b><font color="{tableheadtextcolor}">PM Quota</font></b></normalfont>
</td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}" colspan=3><smallfont>You are using $pmpercent% of your quota.
</font>
</td>
</tr>
<tr>
<td bgcolor="{secondaltcolor}" colspan=3>
<table cellpadding=0 cellspacing=0 border=0>
<tr>
<td bgcolor="{secondaltcolor}" width="200"><img src="$barimg" width="$pmpercent %" height="9">
</td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="{firstaltcolor}">
<td width="33%"><smallfont>0%</font>
</td>
<td width="33%" align="center"><smallfont>50%</font>
</td>
<td width="33%" align="right"><smallfont>100%</font>
</td>
</tr>
</table>
</td>
<td width="100%" valign="top"> $privatemessages </td>
</tr>
</table>
<!-- message buttons -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td align="center">
<a href="private.php?s=$session[sessionhash]&action=newmessage"><img src="{imagesfolder}/pm_sendnew.gif" alt="Send a new private message" border="0"></a>
$buddypmlink
<a href="private.php?s=$session[sessionhash]&action=editfolders"><img src="{imagesfolder}/pm_folders.gif" alt="Organise your private message folders" border="0">
</td>
</tr>
</table>
<!-- /message buttons -->
<br>
<!-- timezone & forum jump -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td>$forumjump</td>
<td align="right"><smallfont>$timezone</smallfont></td>
</tr>
</table>
<!-- /timezone & forum jump -->
<br>
<!-- icon key -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr><td width="50%"> </td>
<td nowrap><img src="{imagesfolder}/newpm.gif" border="0" alt="Unread Message"></td>
<td nowrap><b><smallfont>Unread Message</smallfont></b></td>
<td nowrap><img src="{imagesfolder}/pm.gif" border=0 alt="Message"></td>
<td nowrap><b><smallfont>Message</smallfont></b></td>
<td nowrap><img src="{imagesfolder}/trashcan.gif" border="0" alt="Cancelled Message"></td>
<td nowrap><b><smallfont>Cancelled Message</smallfont></b></td>
<td width="50%"> </td></tr>
</table>
<!-- icon key -->
$footer
</body>
</html>
kreftt
12-03-2002, 02:42 AM
you have to do the same as in the privfolder template: find the occurences of { contentablewidth } (without the spaces) and replace them with 730. that works for me...
greets
kreftt
PS: and please edit that template out that you pasted. it doesnt make sense anyway as this board here pareses all the code. i have gotten your correct template in the email notification.
this is my 2 template code...
when i replace all still not work..
can i help me check it?
kreftt
12-03-2002, 08:24 AM
in each of your templates the table-widthes are still defined as { contentttablewidth }. they are not defined as 730. they are still the original version. you have to change the table-widthes to have in 730px.
greets
kreftt
sorry .... wrong att.. this is my backup..
this one must right
kreftt
12-03-2002, 11:55 AM
i would need a screenshot now.
i guess the main part of the site has the correct width now while the top and bottom parts still are too wide.
this has two possible solutions:
1) go to your style options, click fonts/colors/etc and change your Content Table Width to 730, which should change your overall layout.
2) go to your options table, go to the templates ection of it and switch the option "Add template name in comments" to yes.
afterwards reload your private message view, and take a look in the sourcecode. youll find now the template names as comments in the source. you will notice that some other templates are in that view too, for example the header and usercp_nav. you have to make sure then that the table-widthes in all these templates are corredtly set to 730.
if your problem is differerent i would new need new screenshots of your different private message screens.
btw, your templates that you attached are ok.
greets
kreftt
even added comments still cant find out.
then i goto search "Private Messaging Templates" 1 by 1,
finally i need edit "privsent_readmessages" 1 orginal "{ contenttablewidth }" to 100% .....
thx help!!!
kreftt
12-03-2002, 06:10 PM
im sorry, im german, so im not sure i have fully understood you. did you mean you have solved your problem now?
greets
kreftt
yes..
fixed it.
problem on "privsent_readmessages" template
kreftt
12-04-2002, 01:06 AM
yeah, this one is part of the message tracking too.
notice that you shouldnt forget privsent_nomessages and privsent_unreadmessages...
greets
kreftt
Schorsch
12-18-2002, 12:01 AM
thanks!! seems to work fine for me :)
AngelPride
12-22-2002, 12:58 PM
Nice hack. I didn't read the entire thread to see if someone else suggested it, but to make it match my styles I changed the 3 table headers (Folder, Add Folder, PM Quota) from "<normalfont>" to "<smallfont color="{tableheadtextcolor}">" in both templates....
kreftt
12-22-2002, 09:50 PM
glad you like it. yes in this version there is some template work required. i will fix this if there is a version for vb3.
greets
kreftt
jeffj
12-31-2002, 01:56 AM
I don't get counts after my folders.... I installed it on 2.5 ... any ideas???
thanks in advance..
- jeff
kreftt
12-31-2002, 10:15 AM
you need to install the add-on by matt.
you will find it in the beta-hacks forum, and the direct link should be in the first post of this thread here.
greetz
kreftt
jjj0923
12-31-2002, 11:32 AM
thanks...I went back through this thread and found out about the add-on...has anyone figured out how to display "message tracking" counts... I see that's not included.
- jeff
T?Pau
01-07-2003, 12:47 PM
@ jeff
https://vborg.vbsupport.ru/showthread.php?s=&postid=339587#post339587
LOD-squa
01-20-2003, 08:10 PM
I'm having a problem the PM Quota part won't work. where the image should be nothing is there and it says You are using % of your quota. when it should say the percent.
kreftt
01-20-2003, 10:07 PM
does it happen in both inbox and sent items folder view or just in one?
most likely you have made a mistake in editing the private.php and private2.php. doublecheck these files, and if it doesnt work, please send them over to kreftt@uni.de
greetz
kreftt
LOD-squa
01-20-2003, 10:27 PM
I'll send them to you now....
kreftt
01-21-2003, 12:04 AM
hmm, your php files look just fine. does it happen in both inbox and sent items folder view or just in one? could you tell me the url to where you are trying to install it so that i can take a look at the templates?
LOD-squa
01-21-2003, 12:12 AM
On both. I see you registered at the forum. I'll change the skin for ya since noone can see it I am working on it but I already have it set for you.
kreftt
01-21-2003, 03:15 AM
ok ill have a look at it tonight
greetz
kreftt
LOD-squa
01-21-2003, 09:23 PM
Ah oki. I'll be waiting~
XrayHead
01-21-2003, 10:42 PM
Thanks for the cool hack!
Installed ok and i also added the update by MATT.
I had to mess around with the update to get it to work correctly as the text file has still not been updated yet !!
Thanks again for the great work.
Lee
kreftt
01-22-2003, 01:54 AM
@gohanssj2
just a short question: are you sure that you have set a quota?
LOD-squa
01-22-2003, 01:56 AM
hmm, what do you mean? :p
kreftt
01-22-2003, 02:32 AM
i mean, your php files look good, your templates look good. its somewhat unlikely that you messed just the variables and kept the rest of the templates intact. so i ask if you have set the :
Maximum saved messages
Maximum number of saved messages a user can have. 0 means unlimited
to a value different than 0 in your vbulletin options in the admin cp...
LOD-squa
01-22-2003, 02:41 AM
Its working now that was the problem. Thanks ^^;
kreftt
01-22-2003, 03:03 AM
sweet :)
would you please remove my account from your forums then? thank you
greetz
kreftt
LOD-squa
01-22-2003, 05:50 PM
Will do :)
Nitesh
02-06-2003, 02:11 PM
How do you change the quota to work with the PM Quota by Usergroup Hack?
https://vborg.vbsupport.ru/showthread.php?s=&threadid=43148
thank you
kreftt
02-06-2003, 03:05 PM
i wont bet my money on this, but i guess it should work replacing all instances of $pmquota in the gauge hack by $touserinfo[pmlimit]
at least i hope so :)
subu1
02-18-2003, 09:28 AM
hi that was a great Hack, but how can I delete a new Folder??
greetz subu1
subu1
02-18-2003, 09:40 AM
oh sorry i see it
kreftt
02-19-2003, 09:38 PM
good :)
sorry for being late
I love this hack. I think its one of the best features of my forums. Thank you for you hard coding work!!!!
auz1111
03-08-2003, 08:02 PM
Awesome Hack!!
msimplay
03-12-2003, 07:18 PM
Confirmed working on Vbulletin 2.3 Release Candidate 1 :D
Stud_Muffin
03-22-2003, 08:55 PM
Very nice. Installed in 2.3.0 RC3
+d-cipher
03-24-2003, 12:06 AM
I am having issues with this hack and Internet Explorer. When I add a folder (using both the input box and the folder button) it puts it on top of the "Folder" table. The HTML code is all ok when I view the source, but something is wrong. I have confirmed that it is not just my machine, and its (so far) only related to IE (as it displays fine with Opera).
All the other $variables on the page are fine with the exception of $folderboxeshack, no matter where I put it it screws up.
Screenshot is attached...
refertech
03-24-2003, 12:34 AM
What version of IE you using?
I'm using IE 6 sp1 and mine works fine.
vb 2.2.9
msimplay
03-24-2003, 01:50 AM
weird it works fine for me too
explorer 6
kreftt
03-24-2003, 07:49 AM
please put your templates in textfiles and send them to kreftt@gmx.com, then i will have a look
thanks
kreftt
Alien
04-20-2003, 06:22 AM
Hey, just wanted to pop in real quick and say thanks for an awesome hack. :D
Installed and working flawlessly in vB 2.3.0 final!
Regards,
-Jason
Frozen Dreams
04-30-2003, 11:17 PM
Hey Krefft - I have seen this hack on about every VB I have been a member at so far - so I installed it too ... however the images dont work for me ... :(
I don't get the %-bar unterneath the quota (however it displays how much I used up in numbers) ... I checked and the images are loaded up to the correct folders.
I am german too ;) - so maybe pm me or contact me on msn :)
would be great if you could help me there - awesome hack it is - and I want it to work
kreftt
05-02-2003, 12:16 PM
pm sent
RetroDreams
05-06-2003, 01:26 PM
How do you get it so you can delete folders?
ogden2k
05-06-2003, 05:47 PM
Awesome hack! Only problem is, I can't get the folder count to show. I read through about all of the posts here... I have vB 2.3.0
kreftt
05-06-2003, 09:30 PM
@RetroDreams
you can use the normal way by clicking on "folders" and deleting from there. unfortunately i dont fully understand the code vbb uses for the deletion of folders so i cant make a little "delete"-button besides each folder in the list.
@ogden2k
you might want to check the first post as it contains a link to the addon that enables the messages count in each folder.
greets
kreftt
Courage
05-09-2003, 10:17 AM
One of my users has this problem:
I has no PM (sent or Received), but the hack show 81% occupied :(
See the image
Courage
05-09-2003, 10:34 AM
Somethig is strange. The deleted PM are still in the DB but on the folderid is -1 !!!
This is normal ?
Restless_ca
05-10-2003, 11:40 PM
Lovely hack. Very very nice.
kreftt
05-11-2003, 10:51 PM
i dont think this is normal. this hack doesnt change a thing in the code to delete a pm though
Courage
05-11-2003, 11:35 PM
Look in to the database using phpmyadmin. You will see that the mesages that you have sent to others are still there ! (even if you dont have any message reported on sent folder)
They have folderid = -1
kreftt
05-19-2003, 09:16 PM
05-12-03 at 02:35 AM Courage said this in Post #174 (https://vborg.vbsupport.ru/showthread.php?postid=393959#post393959)
Look in to the database using phpmyadmin. You will see that the mesages that you have sent to others are still there ! (even if you dont have any message reported on sent folder)
They have folderid = -1
im sorry i cannot reproduce this.
after i delete my messages from sent folder the percentage bar drops down like it should, the number behind the folder says 0 like it should and the followng query:
SELECT COUNT(*) AS FROM privatemessage WHERE userid=1 AND folderid='-1'
results in 0 too, just like it should. and there is really nothing to change by my hack that could cause this behaviour.
feel free to send me over your files AND your templates that start with priv_ to kreftt[at]uni.de
your board-url would be nice too.
greets
kreftt
RetroDreams
05-22-2003, 08:09 PM
Has anyone looked into the ability to delete custom folders in the main PM Center view?
padblaz
05-23-2003, 06:35 AM
wow, really nice
thanks for this hack, my users already love it :)
MarkL
05-26-2003, 12:57 AM
I don't see the PM Quota Bar. I have the Quota part, but there is no bar going across. Can anyone help me? :$
MarkL
05-26-2003, 03:33 PM
*bump* Anyone? :$
Today at 12:33 PM MarkL said this in Post #180 (https://vborg.vbsupport.ru/showthread.php?postid=400173#post400173)
*bump* Anyone? :$
in both private.php and private2.php change this line
if ($pmquota>0 and $bbuserinfo[usergroupid] != 6) {
to read
if ($pmquota>0 ) {
and you will see the bar.. but you wont be exempt to the quotas anymore
MarkL
05-26-2003, 08:48 PM
Today at 01:07 PM ap0c said this in Post #181 (https://vborg.vbsupport.ru/showthread.php?postid=400248#post400248)
and you will see the bar.. but you wont be exempt to the quotas anymore
what do you mean by that?
when you remove the above code, the storage limit should now apply to the admin also.
MarkL
05-26-2003, 11:49 PM
Oh, well, I sorta wanted that, so that's good thing. :-p
nymyth
05-31-2003, 07:47 AM
I cannot get my gauge to work.....does anyone have any ideas...
Peace
It gives a percentage but the bar isnt working.
nymyth
05-31-2003, 08:01 AM
nevermind i got it
Peace
reismarktq2
06-02-2003, 02:26 PM
One minor squibble with this hack...
It's working great and looking great, but I also have the Store Hack and its "More PM Quota" hacks installed. The problem is that when my users purchase more PM quota in the store, the gauge DOESN'T CHANGE to reflect the additional quota space. Any way to edit the code to get these two hacks working together?
The General
06-04-2003, 09:26 PM
Thanks! Works like a charm...
reismarktq2
06-13-2003, 10:02 PM
06-02-03 at 11:26 AM reismarktq2 said this in Post #187 (https://vborg.vbsupport.ru/showthread.php?postid=403403#post403403)
One minor squibble with this hack...
It's working great and looking great, but I also have the Store Hack and its "More PM Quota" hacks installed. The problem is that when my users purchase more PM quota in the store, the gauge DOESN'T CHANGE to reflect the additional quota space. Any way to edit the code to get these two hacks working together?
Can anyone help me with this?
kreftt
06-13-2003, 10:32 PM
can i have a link to the "more pm quota" addon please...
reismarktq2
06-16-2003, 02:25 PM
Kreftt: http://www.vbulletin.org/hacks/index.php?s=&action=showhack&hackid=874
jamoss
06-29-2003, 04:43 PM
Works great. Thanks for your hard work on this and for sharing it!
Frozen Dreams
06-30-2003, 02:26 PM
02-06-03 at 07:05 PM kreftt said this in Post #152 (https://vborg.vbsupport.ru/showthread.php?postid=351084#post351084)
i wont bet my money on this, but i guess it should work replacing all instances of $pmquota in the gauge hack by $touserinfo[pmlimit]
at least i hope so :)
tried that and didnt work :(
First id like to say great hack! but im having some serious trouble installing it..i havent checked the rest of the codes but the first thing one has to change i cant find it anywhere in private.php oO $templatesused = "usercpnav,privfolder_bit,privfolder_messages,privf older_nomessages,privfolder,postbit_avatar,postbit _useremail,icq,aim,yahoo,postbit_homepage,postbit_ profile,postbit_signature,privmsg,priv_reply,priv_ sendprivmsg,redirect_pmthanks,redirect_pmdelete,pr iv_showfolders_folderbit,priv_showfolders,posticon s,posticonbit";
This dosent seem to be anywhere in private.php..any help?
Boofo
07-02-2003, 02:49 PM
Today at 10:36 AM Airs said this in Post #194 (https://vborg.vbsupport.ru/showthread.php?postid=414720#post414720)
First id like to say great hack! but im having some serious trouble installing it..i havent checked the rest of the codes but the first thing one has to change i cant find it anywhere in private.php oO $templatesused = "usercpnav,privfolder_bit,privfolder_messages,privf older_nomessages,privfolder,postbit_avatar,postbit _useremail,icq,aim,yahoo,postbit_homepage,postbit_ profile,postbit_signature,privmsg,priv_reply,priv_ sendprivmsg,redirect_pmthanks,redirect_pmdelete,pr iv_showfolders_folderbit,priv_showfolders,posticon s,posticonbit";
This dosent seem to be anywhere in private.php..any help?
Yours is probably different if you have added any hacks. Try looking for
$templatesused
It is at the top of the file.
kreftt
07-02-2003, 07:23 PM
Boofo is most likely right...
Boofo
07-02-2003, 07:26 PM
Most likely? :p ;)
Yea he was lol thnx a lot was dumb of me for not thinking that ;p but anyways i got another problem >< when i click member tracking i get this:
Database error in vBulletin 2.3.0:
Invalid SQL: SELECT COUNT(*) AS foldermsgtotal FROM privatemessage WHERE userid=1 AND folderid=
mysql error: You have an error in your SQL syntax near '' at line 1
mysql error number: 1064
Gutspiller
07-05-2003, 12:04 AM
Can I get some help on the following problems with this hack:
1. My "go" button to add a new folder has grey in the corners where it's suppose to be transparent.
2. The go button is centered correctly with the "add folder" field.
3. I saw in some of the posts that people had added the feature to show how many messages were in each folder. I guess that wasn't added into the main instructional file cause I don't have it. That or I used an older version that I had on my HDD. Anyhow, I tried the query that was mentioned in a post on the 2nd page of this thread and it errored out. Can I get instructions on exactly how I go about adding it so that I can see how many messages on in each folder?
Thanks a bunch!
Great hack.
kreftt
07-05-2003, 11:46 AM
1) in template PRIVFOLDER find
<input type="hidden" name="action" value="doeditfolders">
<input type="image" class="bginput" name="submit" src="images/go.gif">
change to
<input type="hidden" name="action" value="doeditfolders">
<input type="image" name="submit" src="images/go.gif">
that should do it
2) guess you have a typo somewhere...
3) take a look here to find the add-on that brings the functionality
https://vborg.vbsupport.ru/showthread.php?s=&threadid=36840
Gutspiller
07-05-2003, 05:55 PM
How would I go about adding a skyscraper banner under the PM quota box? I was thinking of using an include so that I wouldn't have to go into the code if I switched banner providers.
Do you think you could point me to where that code appears and whereabout I would put my code?
Thanks. (hey they keep the site running.)
kreftt
07-06-2003, 06:40 AM
you would have to paste your code in the PRIVFOLDER template after:
<td width="33%" align="right"><smallfont>100%</font>
</td>
</tr>
</table>
<br>
Gutspiller
07-06-2003, 04:53 PM
How do I get the right side of the PMs to line up with the "Go" button? While it may be possible to tell me how to get the "Go" button to move to the left so it lines up with the actual PM box, I was hoping that it might be possible to move the PM box over so that it lines up with the "Go" button. Though I don't want it to affect the spacing on the other side where the PM box is spaced away from the Folders, add folder box, and PM quota box. Here's an attachment to give you an idea of where I'm talking about:
kreftt
07-06-2003, 08:29 PM
in your PRIVFOLDER template, find this:
$readreceiptsoption
</select> $gobutton</smallfont></td>
</form></tr>
</table>
</td>
</tr>
</table>
maybe it looks a bit different, but only a bit. in the next line you see a table starting with the cellpadding of 5. change this 5 to 0.
aditionally, place a <br> directly after the code that i pasted above (means, directly before the beginning table where you changed the 5 to 0).
still in the PRIVFOLDER template you search for $offlineusers
</td>
</tr>
</table>
</td></tr></table>
</td>
directly after that you paste
<td width="10"> </td>
thats it
greetz
kreftt
Gutspiller
07-08-2003, 11:47 PM
07-06-03 at 03:29 PM kreftt said this in Post #204 (https://vborg.vbsupport.ru/showthread.php?postid=415759#post415759)
in your PRIVFOLDER template, find this:
$readreceiptsoption
</select> $gobutton</smallfont></td>
</form></tr>
</table>
</td>
</tr>
</table>
maybe it looks a bit different, but only a bit. in the next line you see a table starting with the cellpadding of 5. change this 5 to 0.
aditionally, place a <br> directly after the code that i pasted above (means, directly before the beginning table where you changed the 5 to 0).
still in the PRIVFOLDER template you search for $offlineusers
</td>
</tr>
</table>
</td></tr></table>
</td>
directly after that you paste
<td width="10"> </td>
thats it
greetz
kreftt
I don't seem to have "$offlineusers" in my privfolder. Anything else I can search for?
kreftt
07-09-2003, 03:49 AM
yeah, you dont have the buddy list enabled in the private messages window. so just out the second part after <td width="33%" align="right"><font class="sf">100%</font>
</td>
</tr>
</table>
<br>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD ALIGN="CENTER">
<!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!>
</TD></TR></TABLE>
</td>
if it works please delete a user kreftt from your forums
groovesalad
07-11-2003, 02:37 AM
my PM Quota doesn't seem to show the colors, even though I uploaded the images...any ideas?
kreftt
07-11-2003, 03:57 AM
i have registered at your forums and i can see the colors, so i guess it is fixed. please delete the account of the user kreftt at groove salad, thank you
greetz
kreftt
Gutspiller
07-11-2003, 11:21 PM
07-08-03 at 10:49 PM kreftt said this in Post #206 (https://vborg.vbsupport.ru/showthread.php?postid=416325#post416325)
yeah, you dont have the buddy list enabled in the private messages window. so just out the second part after <td width="33%" align="right"><font class="sf">100%</font>
</td>
</tr>
</table>
<br>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD ALIGN="CENTER">
<!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!>
</TD></TR></TABLE>
</td>
if it works please delete a user kreftt from your forums
Sorry, I don't quite understand what you want me to do with the code you quoted. :confused: I don't have the buddies list disabled, I run an older version of VB, however, if you could help me get the buddies list onto that left column that would be supercool.
groovesalad
07-12-2003, 01:48 AM
Yesterday at 05:57 AM kreftt said this in Post #208 (https://vborg.vbsupport.ru/showthread.php?postid=416863#post416863)
i have registered at your forums and i can see the colors, so i guess it is fixed. please delete the account of the user kreftt at groove salad, thank you
greetz
kreftt
really? I still can't see them...hmmm
kreftt
07-12-2003, 06:06 AM
@gutspiller
in your PRIVFOLDER template, find this:
$readreceiptsoption
</select> $gobutton</smallfont></td>
</form></tr>
</table>
</td>
</tr>
</table>
maybe it looks a bit different, but only a bit. in the next line you see a table starting with the cellpadding of 5. change this 5 to 0.
aditionally, place a <br> directly after the code that i pasted above (means, directly before the beginning table where you changed the 5 to 0).
still in the PRIVFOLDER template you search for <td width="33%" align="right"><font class="sf">100%</font>
</td>
</tr>
</table>
<br>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD ALIGN="CENTER">
< !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!>
</TD></TR></TABLE>
</td>
directly after that you paste
<td width="10"> </td>
@groovesalad
could you make a screeny please? and please log in as a user, not as an administrator and check if you can see the colors then.
greetz
Xelation
07-19-2003, 11:42 AM
I'm using this hack also, what would I have to do for this hack and the one in this link to work together correctly?
https://vborg.vbsupport.ru/showthread.php?s=&threadid=43148
Frozen Dreams
07-20-2003, 02:41 AM
Yesterday at 02:42 PM Xelation said this in Post #212 (https://vborg.vbsupport.ru/showthread.php?postid=418936#post418936)
I'm using this hack also, what would I have to do for this hack and the one in this link to work together correctly?
https://vborg.vbsupport.ru/showthread.php?s=&threadid=43148
quite a few people have asked this ... I have both hacks installed and I'd love to have both go together but seemingly no sulution yet :(
the one suggested in this thread didnt work for me :(
Ludelover
07-22-2003, 02:28 AM
I have what I hope is an easy question. My quota bar only works when I go to "message tracking." If i go to inbox or sent items nothing shows up.
any idears?
Ludelover
07-22-2003, 03:18 AM
sorry to waste your time. I actually figured it out. I messed up in the private.php code.
This hack works great. Many thanks
kreftt
07-24-2003, 11:44 AM
@Xelation & Frozen Dreams
to make this work with the pm quota by usergroup hack you have to do some changes to private.php and private2.php
in my instructions there is this part of code, that you have to put in both private and private2.php:
//////////////////////////////////////////////////////////////////////////////hack//////////////////////////////////////////////////////////////
// PM GAUGE ENHANCED by WWW.TOTAL-IMPACT.COM aka princeton
// Original PM GAUGE by GOBLIN
// if you want to ignore admin convert the line below to --> if ($pmquota>0 and $bbuserinfo[usergroupid] != 6) {
if ($pmquota>0 ) {
$ignoreusers="";
if (trim($bbuserinfo['ignorelist'])!="") {
$ignoreusers='AND fromuserid<>'.implode(' AND fromuserid<>',explode(' ', trim($bbuserinfo['ignorelist'])));
}
$msgcount = $DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] $ignoreusers");
if ($msgcount < 1) {
$pmpercent = "1"; // stop divisions by zero
} else {
$pmpercent = round(($msgcount[messages] / $pmquota) * 100,2);
}
if ($pmpercent>75) {
$barimg="{imagesfolder}/red.gif";
} elseif ($pmpercent>50) {
$barimg="{imagesfolder}/yellow.gif";
} else {
$barimg="{imagesfolder}/green.gif";
}
}
//check if there is message in folder(s) and if yes displays gauge
// if you want to ignore admin convert the line below to --> if ($pmquota>0 and $bbuserinfo[usergroupid] != 6) {
if ($msgcount[messages]>0 and $pmquota>0) {
eval("\$pmgauge=\"".gettemplate("privfolder_pmgauge")."\";");
}
// PM GAUGE ENHANCED by WWW.TOTAL-IMPACT.COM aka princeton
// Original PM GAUGE by GOBLIN
//////////////////////////////////////////////////////////////////////////////hack//////////////////////////////////////////////////////////////
you go to that code and put this:
$pmboxlmt = $DB_site->query_first("SELECT pmlimit FROM usergroup WHERE usergroupid='$bbuserinfo[usergroupid]'");
$pmboxlimit = $pmboxlmt[pmlimit];
directly after the commented out area, means, before: if ($pmquota>0 ) {
after that, you change all 3 (THREE) instances of $pmquota in this piece of code to $pmboxlimit
this worked fine for me
greetz
kreftt
Gutspiller
07-26-2003, 04:24 AM
07-12-03 at 01:06 AM kreftt said this in Post #211 (https://vborg.vbsupport.ru/showthread.php?postid=417142#post417142)
@gutspiller
in your PRIVFOLDER template, find this:
$readreceiptsoption
</select> $gobutton</smallfont></td>
</form></tr>
</table>
</td>
</tr>
</table>
maybe it looks a bit different, but only a bit. in the next line you see a table starting with the cellpadding of 5. change this 5 to 0.
aditionally, place a <br> directly after the code that i pasted above (means, directly before the beginning table where you changed the 5 to 0).
still in the PRIVFOLDER template you search for <td width="33%" align="right"><font class="sf">100%</font>
</td>
</tr>
</table>
<br>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD ALIGN="CENTER">
< !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!>
</TD></TR></TABLE>
</td>
directly after that you paste
<td width="10"> </td>
@groovesalad
could you make a screeny please? and please log in as a user, not as an administrator and check if you can see the colors then.
greetz
I don't have this code:
<td width="33%" align="right"><font class="sf">100%</font>
</td>
</tr>
</table>
<br>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD ALIGN="CENTER">
< !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!>
</TD></TR></TABLE>
</td>
in my privfolder. What else should I search for?
Xelation
07-26-2003, 05:35 AM
hey kreftt thanks, that did it! although I had to edit the templates and replace the variable from $pmprec% to $pmpercent%
legendarysk8er
07-26-2003, 05:35 AM
Nice hack, but my members wouldn't need it.
kreftt
07-26-2003, 07:56 AM
@gutspiller
2 weeks ago you had this code, now rhe advert is there instead of it. so put it after <!-- END: AdSolution-Tag 4.0: AdSpot-Code -->
</TD></TR></TABLE>
</td>
greetz
kreftt
Asterik
08-18-2003, 11:15 AM
<!-- Database error in vBulletin 2.3.2:
Invalid SQL: DELETE FROM privatemessage WHERE privatemessageid=20' AND folderid!='-2'
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 '' AND folderid!='-2'' at line 1
mysql error number: 1064
Date: Monday 18th of August 2003 08:06:07 AM
Script: http://www.plugspark.com/forums/forums/private.php
Referer: http://www.plugspark.com/forums/private.php?folderid=-2
-->
I get this when i try to delete a message :sleep:
kreftt
08-18-2003, 08:13 PM
so there is some error in your deletion-code in private.php, most likely a missing ' after privatemessageid=
the hack didnt change a thing at that place, you made that mistake somewhere else.
please post the sections "start do stuff (move, etc) " and "start delete" from your private.php and we'll see what we can do
greetz
kreftt
Asterik
08-18-2003, 10:17 PM
// ############################### start delete ###############################
if ($HTTP_POST_VARS['action']=="dodelete") {
if (!$delete) {
eval("standarderror(\"".gettemplate("error_pmnotchecked")."\");");
exit;
}
$privatemessageid=verifyid("privatemessage",$privatemessageid);
$DB_site->query("DELETE FROM privatemessage WHERE privatemessageid=$privatemessageid AND userid=$bbuserinfo[userid]");
eval("standardredirect(\"".gettemplate("redirect_pmdelete")."\",\"private.php?s=$session[sessionhash]&folderid=".intval($folderid)."\");");
} #end dodelete
Asterik
08-18-2003, 10:19 PM
^-- Start Delete
v-- Start Do Stuff
if ($HTTP_POST_VARS['action']=="dostuff") {
$what = '';
if ($delete!="") {
$what="delete";
}
if ($move!="") {
$what="move";
}
if ($what=="mark") {
// ************************
// mark as (un)read
}
if ($what=="move") {
if (is_array($privatemessage)) {
while(list($key,$val)=each($privatemessage)) {
$DB_site->query("UPDATE privatemessage SET folderid=".intval($folderid)." WHERE privatemessageid=".intval($key)." AND userid=$bbuserinfo[userid]");
} //end while
} else {
eval("standarderror(\"".gettemplate("error_pmnoselected")."\");");
exit;
}
eval("standardredirect(\"".gettemplate("redirect_pmmove")."\",\"private.php?s=$session[sessionhash]&folderid=".intval($folderid)."\");");
}
if ($what=="delete") {
if (is_array($privatemessage)) {
while(list($key,$val)=each($privatemessage)) {
$DB_site->query("DELETE FROM privatemessage WHERE privatemessageid=".intval($key)."' AND folderid!='-2'");
} //end while
} else {
eval("standarderror(\"".gettemplate("error_pmnoselected")."\");");
exit;
}
eval("standardredirect(\"".gettemplate("redirect_pmdelete")."\",\"private.php?s=$session[sessionhash]&folderid=".intval($thisfolder)."\");");
}
}
kreftt
08-19-2003, 02:35 PM
ok, your dostuff-section looks wrong, there is a mistake in the delete-query leading to the error.
there are two more diefferences to how this section should look in 2.3.2, so if you update your dostuff-section to look like this:
if ($HTTP_POST_VARS['action']=="dostuff") {
$what = '';
if ($delete!="") {
$what="delete";
}
if ($move!="") {
$what="move";
}
if ($what=="mark") {
// ************************
// mark as (un)read
}
if ($what=="move") {
if (is_array($privatemessage)) {
while(list($key,$val)=each($privatemessage)) {
$DB_site->query("UPDATE privatemessage SET folderid=".intval($folderid)." WHERE privatemessageid=".intval($key)." AND userid=$bbuserinfo[userid]");
} //end while
} else {
eval("standarderror(\"".gettemplate("error_pmnoselected")."\");");
exit;
}
eval("standardredirect(\"".gettemplate("redirect_pmmove")."\",\"private.php?s=$session[sessionhash]&folderid=".intval($folderid)."\");");
}
if ($what=="delete") {
if (is_array($privatemessage)) {
while(list($key,$val)=each($privatemessage)) {
$DB_site->query("DELETE FROM privatemessage WHERE privatemessageid=".intval($key)." AND userid=$bbuserinfo[userid]");
} //end while
} else {
eval("standarderror(\"".gettemplate("error_pmnoselected")."\");");
exit;
}
eval("standardredirect(\"".gettemplate("redirect_pmdelete")."\",\"private.php?s=$session[sessionhash]&folderid=".intval($thisfolder)."\");");
}
}
you should be set
and no, this isnt because of my hack ;)
greetz
kreftt
Pseudomizer
08-20-2003, 01:26 AM
Hi @LL,
works fine with 2.3.0 and backup PN hack. Good job. *thumbup*
Cheers,
Pseudomizer
PixelFx
09-01-2003, 12:48 AM
Great hack, also matts on worked great, just got this installed on my personal site. using vb 2.3.2
question:
you have a ADD FOLDERS section,
how would add a Remove Folders section?
Rob
kreftt
09-01-2003, 02:39 AM
you would have to code it yourself, i dont know enough php to do it :(
sorry
kreftt
MaDCaT75
09-01-2003, 04:30 AM
Oy..... can someone install this for me? I'm afraid I'll screw it up. :ermm:
Red Blaze
10-15-2003, 03:56 PM
Just alittle thing. I installed this, and it looks very good. Only thing is that the gauge won't work. It won't say how much I'm using, nor will the images show up. I installed everything correctly. I'm useing 2.3.2. Any Ideas?
kreftt
10-16-2003, 12:39 PM
yes. pm me the url to your forum (your homepage link is dead) and set me up a testaccount please and ye shall be helped.
greetz
kreftt
weirdpixels
10-17-2003, 12:35 PM
does anyone know if its possible to add a feature to this hack that allows members to delete there custom folders?
Red Blaze
11-11-2003, 02:19 PM
kreftt, I moved my site back to its original domain. I was wondering if you could still help me with the guage problem. ^^;
Mr. HillBilly
11-28-2003, 05:58 AM
Works great with 2.3.3 :)
kreftt
11-28-2003, 12:34 PM
good news, thx for the info
bexie
12-13-2003, 06:34 PM
The input box for a new folder is missing...any ideas? The go button is there, but...
Thanks!
gmarik
12-14-2003, 07:23 AM
Interesting. Some functions and parts of layout could be combined with vb3.
kreftt
12-14-2003, 07:45 PM
@bexie
your homepage gives lots of parse errors at the moment. please send me your edited templates to kreftt@gmx.com and i'll have a look
@gmarik
indeed, and ill update as soon as vb3 is final
greetz
kreftt
Imprezer
12-28-2003, 07:21 AM
Installed! 2.3.3
Works awesome!
chrisvonc
01-17-2004, 12:43 AM
Installed fine on my 2.3.2 test forum. :) 1 question though:
- The centering of the whole PM Folderview is off center to the left. Any idea what might be causing that? I didnt have any other PM folder hacks preinstalled before this one. I will attach a screenshot.
Follow up: I did find the post #211 that I think fixes this but I too dont have the "$offlineusers" or the code for the 2nd suggestion as in post #217. I also updated my screenshot.
Thanks in advance
Chris
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
$msginfolder = $DB_site->query_first("SELECT COUNT(*) AS foldermsgtotal FROM privatemessage WHERE userid=$bbuserinfo[userid] AND folderid=$folder[folderid]");
with
$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
$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
$ignoreusers="";
if (trim($bbuserinfo['ignorelist'])!="") {
$ignoreusers='AND fromuserid<>'.implode(' AND fromuserid<>',explode(' ', trim($bbuserinfo['ignorelist'])));
}
in front of these queries.
greetz
kreftt
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.