|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
Modification Name: PM Folders 2.0 Author(s): Brett Description: Organizes PM's into Folders/Custom Folders. Demo: http://www.pavioni.com/ubb/ultimatebb.php (Login: ubbtest Pass: test) Download Link: https://www.ubbdev.com/ubb/upload/00006378/PMFolders6.7.zip To those who previously installed this: PM Backup/Repair (rename to cgi and run it in ubbcgi dir) Special Thanks: BassTeQ (for help on previous versions), Gizzy Shout Outs: Gizzy New Features: - User Groups - CP now has the ability to diferentate between the amount of new pms, replies and folders each group can have.
- Pagination - PM's can now be split up between pages by an admin specific number.
- Smarter Logic - The entire ubb_folders.cgi was redone from near scratch, meaning the logic in dealing with the pm's is better.
- Easier Templates - Template editing is now easier due to less code in them.
- Sorting - You can now sort pm's by sender, subject or date.
TODO: ? Originally posted by Charles Capps: Warning: The 60 limit is present to keep performance under control. Increasing it is not advised. 
|
1 member likes this:
Gizmo |
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
magnifique! 
|
|
|
|
Joined: Jan 2000
Posts: 5,832 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,832 Likes: 20 |
|
|
|
|
Joined: Jan 2000
Posts: 5,832 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,832 Likes: 20 |
Bug time: q!PM_no_detect_file! => q!We did not detect the PM Folder name in your files. Are you sure you URL is correct?!, Shouldn't that be "your"? q!PM_to_send_folder_is_bad! => q!Sorry, but as of the current version, we cannot sent messages to any other folder.!, Send? I'll look for more...
|
|
|
|
Joined: Jan 2000
Posts: 5,832 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,832 Likes: 20 |
Odd, when I load it and check primary settings it gives a blank page; I'll rehack in the morning :sigh:
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
I went through with Gizzy to fix a few glitches caught. The install file has changed when going through the files: ubb_pm.cgi, vars_wordlets.cgi. cp2_lib.cgi has an addition that I accidently neglected to put in. Also ubb_folders.cgi should be reuploaded 
|
|
|
|
Joined: Jan 2000
Posts: 5,832 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,832 Likes: 20 |
I swear that I'm just here to get all the bugs worked out...
It puts the lotion on the skin or else it gets the hose again...
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
I've been getting errors. In ubb_folders.cgi I had to change &StandardHTML(Template($vars_wordlets{PM_folder_max_limit}, {LIMIT => $limit[2]}) if($total_count > $limit[2]); to &StandardHTML(Template($vars_wordlets{PM_folder_max_limit}, {LIMIT => $limit[2]})) if($total_count > $limit[2]); In cp2_vars.cgi I had to change... }, { type => 'raw', content => &$PMSUB }, { type => 'raw', content => qq~</table></td></tr>~ }, )], to }, { type => 'raw', content => &$PMSUB }, { type => 'raw', content => qq~</table></td></tr>~ },
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
and Brett, a little suggestion. Instead of hardcoding the smaller tables in the template (the ones that can't use $TBT) take a look at &TBT_Custom  It lets you define width, etc
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
Updated ZIP for 2 fixes. I'll check into the TBT_Custom, but as they say, if it ain't broke dont fix it. 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Originally posted by Brett: Updated ZIP for 2 fixes. I'll check into the TBT_Custom, but as they say, if it ain't broke dont fix it.  it's broke for people who use custom $TBTs, including all Colorforums users
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
oh, and you could use &StandardHTMLPopup for the help pages too 
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
Can't really use StandardHTMLPopup, because i need them to setup as tables.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
 anyone else using this seeing PMs they deleted months ago?
|
|
|
|
Joined: Jan 2000
Posts: 5,832 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,832 Likes: 20 |
Lol, no, I can't say that I am lol...
|
|
|
|
Joined: Jan 2000
Posts: 5,832 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,832 Likes: 20 |
Hey Brett, found a new one... When users check their PM's for the inbox folder, they always show as bolded (new)... Also, by default my messages are showing sorted by topic and not date, when I click to make it date it doesn't save a preferance... So it's annoying as hell lol...
|
|
|
|
Joined: Jan 2000
Posts: 5,832 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,832 Likes: 20 |
Also, I just deleted some items in the sent folder, and magically everything that was in my inbox is missing... It also automatically said "The trash has been deleted" when I told it to delete some items in my sent folder...
Also, the issue with the pm's showing as new all the time, it doesn't happen for the sent folder.
Hit me up on aim and i'll give you FTP again if you want it.
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
Update zip file. Changes include public_pm_folders_review.pl and ubb_folders.cgi, which address the bold new pm's and transfer pm to trash wordlet as to trash being emptied.
But i was unable to recreate the emptying sent folder to empty the inbox, as it should be impossible. Are you deleting out of the folder or emptying it? Could you try it again(might want to backup members/pm_users/000*****.cgi?
|
|
|
|
Joined: Jan 2000
Posts: 5,832 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,832 Likes: 20 |
If I had PM's I would  ... I'll update the included files.
|
|
|
|
Joined: Mar 2004
Posts: 5
Junior Member
|
Junior Member
Joined: Mar 2004
Posts: 5 |
I installed it and only have 3 members. I registered a third to see what a non-admin would see. It's weird, I could see a PM that my friend sent me, but I was logged in as the new user, not the user my friend sent it to. I wasnt able to open the PM, but it was in my folder lol.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Originally posted by The Bear:
I installed it and only have 3 members. I registered a third to see what a non-admin would see. It's weird, I could see a PM that my friend sent me, but I was logged in as the new user, not the user my friend sent it to. I wasnt able to open the PM, but it was in my folder lol.
oh yeah, I had that problem somewhat. I actually had some PMs in my inbox that weren't mine. It didn't let me read anything but the title though
|
|
|
|
Joined: Jan 2000
Posts: 5,832 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,832 Likes: 20 |
Originally posted by Ian Spence:
oh yeah, I had that problem somewhat. I actually had some PMs in my inbox that weren't mine. It didn't let me read anything but the title though
Yeh my users are experiancing this as well. Also Brett, my pm's are still showing up bold! lol...
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
I just want to thank Gizzy for letting me test on his server. I was able to fix the dumb bold error.  However, i am baffled atm at why members are getting other members pm's. It did reflect on their pm_users/usernumber.cgi file. I also noticed 1 out of 2 pm's sent where placed in the sent folder of the recipent. I have no idea why this is happening, as very little was modified in ubb_pm, and this hack doesn't affect the way pm's are made and replied to. Sadly, however, i wish that all users that installed this, please uninstall this. It appears i have overlooked something. I apologize but it looks like i prematurally released it. *sigh* 
|
|
|
|
Joined: Jan 2000
Posts: 5,832 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,832 Likes: 20 |
yeh but i'm still having one issue, i restored my board from my backup but i still ahve some pm's in my inbox that aren't mine (no doubt cas the usernumber file holds the data and since the above error :sigh:)... Anyone know the best way to clear this up  ...
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
heh. I figured out that the 2 changes made ubb_pm did all the damage. It actually called ubb_folders and reinitalized already taken variables thus taking some out or putting the wrong values in. SO... i have applied the patch and so seems to be working great.
To those who is showing the deleted PM's, other PM's, there is a script located under the pmfolders zip file on the first post. Rename the txt file to cgi and run in your ubbcgi directory. It will essentially backup and recreate the pm files.
If you have not changed anything from the install yesterday, the only difference will be in ubb_folders.cgi and public_pm_folders_review.pl.
Either way, running the backup at least once will clean everything up. If you have a big board, it may seem slow abit.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
 I now have every PM I ever "deleted" in my Inbox/Sent/Trash. I'm guessing that deleting a PM isn't... deleting a PM after all
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Brett, I have 18 PMs in my inbox. I have pagination set for 15, and all 18 show on the page, but it says I have 18 pages.
If I set it for 10, it'll show ten, but it won't say how many pages I have
|
|
|
|
Joined: Jan 2000
Posts: 5,832 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,832 Likes: 20 |
Lol yeh, I noticed that too, I'd like to know why their not actually *purged*!
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Originally posted by Gizzy:
Lol yeh, I noticed that too, I'd like to know why their not actually *purged*!
My guess, cause the other person still has it in there sent box. I think once both people delete it, then it's purged
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
Oops. I just installed this. Sent a PM to my buddy. She replied to it ... and the reply was SENT to her. I did the zip file that's in the first post ...
Sue adwoff.com
|
|
|
|
Joined: Jan 2000
Posts: 5,832 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,832 Likes: 20 |
Lol, brett did you forget to make an update?
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
Okay, for the heck of it, I ran the pm.cgi file, and tried it out again, and things seem to be *working* now ...
Sue adwoff.com
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
Well, shoot. I spoke too soon. I'm seeing a deal now where sent PMs are appearing in the wrong user's mailbox. Let's see if I can explain. At my test site, I am always creating a bunch of user names to test things out. One of my names is Wisconsin since I'm originally from there. To test out the PM Notification hack, I sent a PM from my Wisconsin name to my regular name, Sue. Everything seemed cool. I then went back in under the Wisconsin name, and I saw a whole boat load of files in the "sent" folder? I'm like, Hmmmmmm ... that shouldn't be ... I hardly ever use the Wisconsin name ... I open it up, and I see this --> http://adwoff.com/mailbox.jpg Needless to say, those are *sent* e-mails from the "Sue" name mailbox ... if I try to access them under the *Wisconsin* name, it doesn't allow me to do so ... gives me the message: quote: FYI You are not the recipient for that private message
» Please use your browser's back button to return. --- Am I making sense here? I hope this isn't a huge bug issue to fix. Thanks.
Sue adwoff.com
|
|
|
|
Joined: Jul 2002
Posts: 42
Member
|
Member
Joined: Jul 2002
Posts: 42 |
Hmmmmm...my old PM folders worked fine on 6.5, but for some reason something doesn't look right on 6.7.1. Certain areas, the colors are off. There is no outline trim around the folders and in the inbox the words "Subject", "From:", "Date:" are the same color as the header strip. I've tried to change them in the "Style" section but that doesn't work either. If anyone has the time, would you please take a look and offer any suggestions. http://www.ronaldreagan.com/ubb/ultimatebb.php Login = Tester3 Password = testing I've tried re-hacking & re-installing the new files 3 times and I keep getting the same results. Thanks in advance for any help anyone can offer. 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
 Hey Brett, ya know what'd fix that? &Custom_TBT
|
|
|
|
Joined: Jul 2002
Posts: 42
Member
|
Member
Joined: Jul 2002
Posts: 42 |
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
It's not your fault, Brett just has to update the templates with the appropriate fixes.
I don't really have the time today to post the fixes though, sorry
|
|
|
|
Joined: Jul 2002
Posts: 42
Member
|
Member
Joined: Jul 2002
Posts: 42 |
Originally posted by Ian Spence:
It's not your fault, Brett just has to update the templates with the appropriate fixes.
I don't really have the time today to post the fixes though, sorry
Thanks Ian, that made me feel better. 
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
Sorry for the belated response, I have *fixed the issue(using TBT_Custom  ) with the templates. I also addressed the pages bug which shouldn't be any further problems. You'll need to reupload ubb_folders.cgi, and all the template files. Also there are 2 new pictures to upload located in noncgi, to be placed in that respective dir. ADWOFF: Those were the kind of issues in the inital version. Did you run the PM Repair/Rebuild Script? Afterwards, try getting the latest zip and reupload the files. 
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 190
Joined: June 2000
|
|
Forums63
Topics37,571
Posts293,923
Members13,848
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|