UBB.Dev
Posted By: Brett [6.3.x] [beta] PM Folders 1.0 Beta - 11/27/2002 6:49 PM
Name: PM Folders 1.0 Beta

Description: Allows users to have a inbox, sent and trash can to put their PM's into as well as up to 15 custom folders. This also dramatically changes the layout of the 'my profile' page.

Special Thanks: BassTeQ

Download: https://www.ubbdev.com/ubb/upload/00006378/pm_folders.zip

Demo: http://wwww.pavioni.com/cgi-bin/ubbcgi/ultimatebb.cgi
User: ubbtest
Pass: test

To Do:
- Add code to sort pm's in folders through subjects, date and users.
- It's 99% wordletized now, gotta get that 1% shocked

Notes:
- Though i've been testing this alot with success, i would not rule out bugs which is why this will be beta for awhile.
- The pictures in the demo are not showing because of permissions i need to take care of and do work in the script.
- This hack does not modify the pm topic or data hashes, just adds a hash on to it, so removing it will hold no problems.
- sleep
Posted By: LK Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/27/2002 8:09 PM
Again, great job! laugh
Posted By: Fahd Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/27/2002 9:18 PM
Sweet hack however how will this interact with the Private Message Notice hack (PM notice on the front page of the fourm summary)? I Guess I should hack it in, and see for myself rather than asking the question wink
Posted By: Brett Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/27/2002 9:38 PM
Thanks LK! laugh

rockband

Fahd: This hack doesn't even touch any forum_summary files, nor does it affect the data touched by the PM notice hack. There's no possiblity that this hack will interfere with it. smile
Posted By: Felix 10 Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/27/2002 11:25 PM
Brett,

There is something wrong with the display on the Profile page, nothing ligns up with my style template and it conflics with my footer. Once I click on any of the folders (Inbox, Sent, Trash) everything looks perfect!

Can you have a quick look and let me know what coul'd be the issue here?

URL

login: test
pass: test

Other than that everything is beautiful! Good job!

Thank you,
Felix
Posted By: BassTeQ Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/27/2002 11:39 PM
This looks like a really nice hack, Im looking forwad to installing it!

Thanks
Posted By: AllenAyres Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/28/2002 12:45 AM
suweet! laugh

Thank you brett smile
Posted By: Brett Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/28/2002 12:54 AM
hey Felix 10, i think i see the problem, i missed placed a $TBB in the wrong place. I believe i fixed it. Redownload the zip and upload the public_pm_folders_summary.pl

Your all very welcome smile
Posted By: BassTeQ Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/28/2002 1:05 AM
I've noticed a problem, when you are in the inbox say, and on the right hand side, in the drop down box, select another folder and hit Ok, it doesnt work. Im looking into at the moment.
Posted By: Brett Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/28/2002 1:09 AM
Hmm... This is meant to be a 'mover' where selected items will be moved to another folder with that button, but hey! What if, if you have nothing selected, it'll take you too another folder? I'll go ahead and work that in. smile

EDIT: (ZIP Updated) Got it in, had to use a javascript refresh. The only change there was in ubb_folders.cgi.
Posted By: BassTeQ Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/28/2002 1:17 AM
Ahh Ok, my bad smile
Maybe should put some wording there, Move to: then the option box dropdown.
Posted By: Brett Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/28/2002 1:38 AM
Done and wordletized smile
Posted By: BassTeQ Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/28/2002 1:43 AM
Great, Also Im getting a page not found when trying to move/delete a message ? Are you getting that also?

PS. Are you on ICQ ? We can discuss a few other issues Ive picked up there.
Posted By: Brett Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/28/2002 1:49 AM
62054427
Posted By: Felix 10 Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/28/2002 4:03 AM
I rehacked everything, still a couple of issues.It works rather strange
1. even though I have no new messages the Inbox shows 3 messages, as many as I had before deleting.
2. new messages go straight into the Trash
3.messages received all come from Me to Me, no sender name.
4. no way to tell if a message was read or not.
5. messages Sent should show TO WHO not FROM, it was, obviously, sent by you, the user.

Plus some weird messages saying that a message cant be moved into the same folder when you try to move it to Trash from Inbox.

are these issues fixable? or just disable the hack, members are annoyed by this good looking feature but not working propely.

Thanks,
felix
Posted By: BassTeQ Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/28/2002 5:24 AM
What do you mean the same thing ?

The errors brett it working on now are

1. Cant delete from the inbox

2. Incorrect message counts showing when you move a message

3. Which I havent told him about yet, is that there is a prob when deleting/moving messages in a custom defined folder.

Only small bugs though that need ironing out.
Posted By: Felix 10 Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/28/2002 6:37 AM
Quote
quote:
Originally posted by BassTeQ:
What do you mean the same thing ?

The errors brett it working on now are

1. Cant delete from the inbox

2. Incorrect message counts showing when you move a message

3. Which I havent told him about yet, is that there is a prob when deleting/moving messages in a custom defined folder.

Only small bugs though that need ironing out.
Read my post above BassteQ, there is a whole list of them. I rehacked everything twice, and trust me there isn't much margine for error, cant make a mistake in hacking those only two files, even a beginner like me gets it easy.

Thanks
Posted By: BassTeQ Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/28/2002 7:09 AM
hehe quite true, it is a n easy hack, I had a look at your board, you profile page seems to line up ok, I cant see whats not lined up.

As for the issues you pointed out I know brett is aware of a few of them, the others I never noticed, like the 'from' field.

Anyways I'm sure brett will fix these all in good time.

-------------------------------------------

Ive found the problem to it displaying your name, not who the message came from.
Also will now show wether or not the message has been read by the receipient.

In file public_pm_folders_review.pl

Find:
Quote
code:
Code
	if ($to eq 'yes') {
my $read_marker_1 = '';
my $read_marker_2 = '';
} else {
my $read_marker_1 = "<b>";
my $read_marker_2 = "</b>";
}

my($f, $t) = split(/./, $folder);
my $from_or_too = ($in{f} eq 'sent') ? $username : &get_public_name($to);
my $formatted_time = &DateFormat($date) . " " . &TimeFormat($time);

Replace that with:
code:
[qb]
Code
	if ($in{f} ne 'sent') {
if ("$read" eq "yes") {
$read_marker_1 = '';
$read_marker_2 = '';
} else {
$read_marker_1 = "<b>";
$read_marker_2 = "</b>";
}
}

my($f, $t) = split(/./, $folder);

$from_or_too = &get_public_name($from) if ($in{f} eq 'inbox');
$from_or_too = &get_public_name($to) if ($in{f} eq 'sent');

my $formatted_time = &DateFormat($date) . " " . &TimeFormat($time);

if ($in{f} eq 'sent') {
if ($from eq $user_number) {
if ($read_to eq "yes") {
$ReadReciept = $vars_wordlets{pm_sent_recip_read};
} elsif ($read_to eq "no") {
$ReadReciept = $vars_wordlets{pm_sent_recip_unread};
} else {
$ReadReciept = $vars_wordlets{'pm_sent'};
}
} else {
$ReadReciept = $vars_wordlets{'pm_received'};
}

$ReadReciept = qq|     <i>( $ReadReciept )</i> |;

} # End If sent folder
[/qb]
Find:
Quote
code:
Code
$read_marker_1 $from_or_too $read_marker_2 $user_profile{15}

Replace that with :
code:
[qb]
Code
$read_marker_1 $from_or_too $read_marker_2 $user_profile{15} $ReadReciept
[/qb]
--------------------------------------------

Also the sent box says FROM in the heading when it should say 'Sent to'.
To fix this.

Open public_pm_folders_review.pl
Find:
Quote
code:
Code
# standard top of HTML page
print "$Header";

Add below:
code:
[qb]
Code
$vars_wordlets{author_from_colon} = $vars_wordlets{author_to} if ($in{f} eq 'sent');
[/qb]
Posted By: Raichu's Babai Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/28/2002 1:11 PM
Quote
quote:
Originally posted by Felix 10:

are these issues fixable? or just disable the hack, members are annoyed by this good looking feature but not working propely.

Thanks,
felix
Think thats why its Label'd BETA! Gonna be lots of bugs until ppl test it out and report fixes. Either tell ur members that you are testing it out and ya might run into problems or dont put it up till its all ready..
Posted By: Felix 10 Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/28/2002 5:05 PM
Quote
quote:
Originally posted by BassTeQ:
hehe quite true, it is a n easy hack, I had a look at your board, you profile page seems to line up ok, I cant see whats not lined up.

As for the issues you pointed out I know brett is aware of a few of them, the others I never noticed, like the 'from' field.

Anyways I'm sure brett will fix these all in good time.
BassTeQ, the template is fine now after Brett quickly repairedred the missplaced a $TBB in the public_pm_folders_summary.pl

Now, as far as the other, I am sure Brett will read these, this is the feedback with a small list of small bugs. I am certain that Brett is already awared of these.

1. The SEND folder still does not show TO is only shows FROM which is wrong. Obviously I am the sender, I need to know TO WHOM the PM was send.
2. Moving PM's from INBOX and SEND Folder is still not working
3. Deleting in block gines you the error message:
"You cannot transfer messages to the same folder!"
4. Deleted PM's still show as a number in the box.
5. There is no feature to if a PM was whether read by the recepient or not

Please understand, I am not being critical I am just trying to help pointing things that need attention because I had the time to check this and the simple reason that I love it!

If you need to see those again, by all means. smile

URL
login: test
pass: test
Posted By: Felix 10 Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/28/2002 5:10 PM
Quote
quote:
Originally posted by Raichu Babai:
quote:
[qb]Originally posted by Felix 10:

are these issues fixable? or just disable the hack, members are annoyed by this good looking feature but not working propely.

Thanks,
felix
[/qb]
Think thats why its Label'd BETA! Gonna be lots of bugs until ppl test it out and report fixes. Either tell ur members that you are testing it out and ya might run into problems or dont put it up till its all ready..
Babai, I know.
I am aware that, as a Beta, still have to go through a fine comb smile

But I cant stop using it as is, it was love at first sight wink

Thank you
Posted By: 1QuickSI Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/28/2002 9:23 PM
The updated profile page is missing the rating of other users. Can this be put back in?

Otherwise incredable job!!!
Posted By: Felix 10 Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/29/2002 5:44 PM
Quote
quote:
Originally posted by BassTeQ:
hehe quite true, it is a n easy hack, I had a look at your board, you profile page seems to line up ok, I cant see whats not lined up.

As for the issues you pointed out I know brett is aware of a few of them, the others I never noticed, like the 'from' field.

Anyways I'm sure brett will fix these all in good time.

-------------------------------------------

Ive found the problem to it displaying your name, not who the message came from.
Also will now show wether or not the message has been read by the receipient.

In file public_pm_folders_review.pl

.........
YES !
getting there, a few minor adjustments and that is it! Looks great.

Quick question.
In Private Message Inbox Folders table The Text on the Header Strip is Black even though my template's Table Header Strip Text Color is White

According to these lines in your public_pm_folders_summary.pl

code:
[qb]
Code
 $TBT
<tr bgcolor="$vars_style{TableColorStrip}">
<td colspan="2">
<b><font size="$vars_style{TextSize}" face="$vars_style{FontFace}" color="$vars_style{TableStripTextColor}">
$vars_wordlets{my_profile_header}: $pubname
</font></b>
</td>
</tr>
[/qb]
It should match the template color but it does not. Any ideas what is wrong?

Thank you.
Posted By: Stamoulis Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/30/2002 2:53 PM
thx. for this very nice hack thumbsup

but in the inbox the pms seem not to be sorted by incoming date, is there any known bug ?
Posted By: Brett Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/30/2002 8:10 PM
Hey sorry i had to leave there yesterday. I went to my parents house for thanksgiving(they don't have a computer there) and won't be back to my apartment until tomorrow, but i'm doing a site for my old employers and may have some time to get something done here since i brought my hard drive.

I have read through and through and will hopefully get something done today if not tomorrow. I hope to get rid of the major errors first and then work on the little ones. I could have sworn that if was working fine when i first released it; but now i've gotten these errors too. I guess that's why it's beta.. ^_^

Sorry guys for all the trouble and will hopefully get this done quickly. smile

EDIT: Updated zip with BassTeQ's fixes. (Thanks again! smile )
Posted By: Poopy Pants Re: [6.3.x] [beta] PM Folders 1.0 Beta - 11/30/2002 11:12 PM
http://coloradof-body.com/cgi-bin/ultimatebb.cgi

I've created an account:

Logon: Test Account
Password: Test Account

If you look at the main page of the bullein board, the sponsor links are on the right on the page, but going into the Profile page, the links are all shot down at the bottom left? Any fixes?
Posted By: Brett Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/02/2002 4:07 AM
Welp, updated zip with some fixes, 'hopefully'. wink
- Deleting PM's done right this time
- Member Ratings show correctly
- Correct PM count and size for inbox/folders/etc...
- PM's now ordered from newest to oldest

EDIT: BassTeQ and I just went through the entire thing and can safefully say that we couldn't find any more errors. *crosses fingers*
Posted By: CTM Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/02/2002 7:11 PM
Dude.

I love this.

Nice work brett laugh
Posted By: Fahd Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/03/2002 12:14 AM
Still a few bugs left... wink

A user can't delete custom folders, and if you create them it seems that the first message in your inbox will be replicated in the new folder. That is until you do anything to this "ghost" message (e.g. move, it delte it) where-apon the original message from the inbox will be moved/deleted and the "ghost" message will disappear.

Also messages from the sent folder are delted straight-away (without being moved to the trash folder). I'm assuming that's intentional, although a warning to users would be a good idea (say by the delete button).

Other than that very cool so far thumbsup
Posted By: BassTeQ Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/03/2002 3:08 AM
Quote
quote:
Originally posted by Fahd:
Still a few bugs left... wink

A user can't delete custom folders, and if you create them it seems that the first message in your inbox will be replicated in the new folder. That is until you do anything to this "ghost" message (e.g. move, it delte it) where-apon the original message from the inbox will be moved/deleted and the "ghost" message will disappear.

Hrmm stange, Im running it on my test / production boards and on both I dont experience any of these issues.

quote:
[qb]
Also messages from the sent folder are delted straight-away (without being moved to the trash folder). I'm assuming that's intentional, although a warning to users would be a good idea (say by the delete button).

Other than that very cool so far thumbsup
[/qb]
This is intentional for the time being, the sent items use a different hash and brett said that he may look into a fix for that in the future.
Posted By: wwb95 Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/03/2002 4:10 AM
brett

it is the pest hack thank you

I have a problem
1- I can't delete a custom folder
2- When I move one pm from inbox it move all the pm in the inbox to the custom folder and it show the count in both folder the same number and when I open both folder I see the same thing. When I empty the custom folder it empty the inbox to
Posted By: wwb95 Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/03/2002 4:56 AM
Mange to find the problem

In ubb_folders.cgi find
Quote
code:
Code
		# add it 
$total_count++;
push(@pms, "$count&#0124;&#0124;^&#0124;&#0124;$in{add_name}&#0124;&#0124;^&#0124;&#0124;$in{add_desc}&#0124;&#0124;^&#0124;&#0124;0&#0124;&#0124;^&#0124;&#0124;0");

replace it by
code:
[qb]
Code
		# add it 
$total_count++;
push(@pms, "$total_count&#0124;&#0124;^&#0124;&#0124;$in{add_name}&#0124;&#0124;^&#0124;&#0124;$in{add_desc}&#0124;&#0124;^&#0124;&#0124;0&#0124;&#0124;^&#0124;&#0124;0");
[/qb]
Posted By: wwb95 Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/03/2002 5:05 AM
Fahd
If you have added a custom folder go to member_path/ pm_folders/user_numer.cgi
And place 0 in the first place
For example the line in member_path/ pm_folders/user_numer.cgi will look something like this
||^||ww||^||||^||0||^||0
replace it by
0||^||ww||^||||^||0||^||0
Posted By: BassTeQ Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/03/2002 6:18 AM
Actually I did find another small bug, it allows you to click Add Folder even if you dont enter a folder name, and it then creates a blak folder.

The fix.

In pm_public_folders_summary.pl

find:
Quote
code:
Code
function Rename(num) {
var ti = prompt("$vars_wordlets{PM_rename_folder}", '');
if(ti && ti != null && ti != "null" && ti != "") {
var di = prompt("What would you like this folder's description to be?", '');
document.RenameF.Num.value = num;
document.RenameF.Name.value = ti;
document.RenameF.Desc.value = di;
document.RenameF.submit();
}
}

After it Add:
code:
[qb]
Code
function validateForm(theForm)
{
if ( document.all.add_name.value.length == 0) {
alert('Folder name cannot be blank');
document.all.add_name.focus();
return false;
}
return true;
}
[/qb]
Find:
Quote
code:
Code
<form name="replier" method="post" action="$vars_config{CGIURL}/ultimatebb.cgi">

Replace that with:
code:
[qb]
Code
<form name="replier" method="post" action="$vars_config{CGIURL}/ultimatebb.cgi" onsubmit="return validateForm(this)" >
[/qb]
This just adds some simple javascript error checking.
Posted By: Brett Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/03/2002 7:25 AM
Thanks for the fixes and have just uploaded an updated zip. I will get back to work on this to determine the ghost error and delete custom folder error after i get done with something.
Posted By: wwb95 Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/04/2002 1:13 AM
Another problem
It assume that the public name is the user name.

You could use my hack in
https://ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=20;t=000565
To fix this problem by doing the following:

in ubb_folders.cgi
before
Quote
code:
Code
sub IN_Folder_Review_Delete_Move {

add
code:
[qb]
Code
sub getpublicnamee{
my $public_names=$_[0];
my $num;
my $one;
my @line;
@all_member_nums;
@all_members_list = grep(/d{8}/, &OpenFileAsArray("$vars_config{MembersPath}/memberslist.cgi"));
my $count=0;
foreach $one (@all_members_list) {
@line = split (/|!!|/, $one);
chomp($line[1]);
push (@all_member_nums, $line[1]);
$count++;
}
@this_member;
my $found=0;
my @all_members_list2;
@all_member_nums2;
@all_member_name;
my $count2=0;
if (-e "$vars_config{MembersPath}/publicmemberslist.cgi"){
@all_members_list2 = grep(/d{8}/, &OpenFileAsArray("$vars_config{MembersPath}/publicmemberslist.cgi"));
foreach $one (@all_members_list2) {
@line = split (/|!!|/, $one);
chomp($line[1]);
push (@all_member_nums2, $line[1]);
push (@all_member_name, $line[0]);
$count2++;
}
}
if ($count2 != $count){
my @public_name_file;
THIS: foreach $one (@all_member_nums) {
# open profile
@this_member = &OpenProfile($one);
chomp($this_member[15]);
push (@public_name_file, "$this_member[15]|!!|$one");
if ($this_member[15] eq ''){
$this_member[15]=$this_member[0];
}
if ($this_member[15] eq $public_names){
$num=$one;
}
}
&WriteFileAsArray("$vars_config{MembersPath}/publicmemberslist.cgi",@public_name_file);
chmod(0777, "$vars_config{MembersPath}/publicmemberslist.cgi");
}
else
{
$count=0;
THIS: foreach $one (@all_member_nums2) {
if ($all_member_name[$count] eq $public_names){
$num=$one;
}
$count++;
}
}
return $num;
}
[/qb]
find
Quote
code:
Code
                        $num = &GetUserNumber($in{username});

replace it by
code:
[qb]
Code
                        $num=&getpublicnamee($in{username});
[/qb]
Posted By: Fahd Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/04/2002 9:32 AM
Cheers guys your fixes for deleting a custom folder have worked. Alos this issue with ghosting messages seems to have disappeared.
Posted By: BassTeQ Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/05/2002 3:48 AM
One more prob smile When you send a new PM , it takes you back to the main forum page, it should take you back to your profile page. This is because the referer value is null. I think its null because these is no {http-referrer} when you click that button, for there to be a referrer you need to click a link.
Not sure about how that can be fixed.
Posted By: Brett Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/05/2002 8:02 AM
The solution would be to replace that $ENV{HTTP_REFERRER} in public_new_pm.pl(i think that's what it's called) to "$vars_config{CGIURL}/ultimatebb.cgi?ubb=my_profile".
Posted By: Felix 10 Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/05/2002 8:16 PM
Sorry for asking again, can anybody please tell me how do I change the black fonts from the Inbox table strip? they are not that visible and dont match my template.

Thank you
Posted By: BassTeQ Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/05/2002 11:27 PM
Quote
quote:
Originally posted by brett:
The solution would be to replace that $ENV{HTTP_REFERRER} in public_new_pm.pl(i think that's what it's called) to "$vars_config{CGIURL}/ultimatebb.cgi?ubb=my_profile".
I was thinking of that brett, but the problem is if you click the PM icon when your reading a thread, you would want it to take to back to that thread, not to your profile. What Im thinking is maybe add another hidden input filed called 'fromprofile' set its value to 'true' then in public_new_pm.pl you could check for fromprofile=true, if so go back to the profile, otherwise go use $ENV{HTTP_REFERRER} ?
What do you think ?
Posted By: BassTeQ Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/09/2002 3:30 AM
Just so everyone knows.

We have worked out a solution to my post above, and brett has updated his zip with my changes.

Brett has also added the changes as suggested by wwb95.

Suggested you read the install.txt as there is a little more hacking to be done smile
Posted By: Raichu Babai Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/10/2002 4:21 AM
Im getting this error when someone goes to esit thier profile:

An error has occurred:

delete argument is not a HASH element or slice at CGIPath/ubb_profile.cgi line 1020.

Line 1020 is:
Code
delete $public_names[$_]; $bool = 1;
Posted By: Fahd Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/10/2002 11:12 PM
I can confirm the same error. You'll also get it if you have quite a few people rated and you click the "view entire ratings list" link. Hopefully this'll be the last bug because this hack rocks too much to be bug infested wink

More information: This bug only seems to happen if you've got quite a few people rated. I think it kicks in when you've got enough such that the UBB has to display that : Click here to view entire list, hyperlink. If you've got a few people rated or no people rated then this bug doesn't come up. smile
Posted By: Brett Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/11/2002 12:07 AM
New zip uploaded. You'll need to rehack.
Posted By: Painfool Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/12/2002 5:40 AM
Just installed it tonight (12/11/02) and if you click "Write PM" without inputting a user name or member # I just get a blank screen. Is it just me? If not, shouldn't it generate an FYI and kick back to the My Profile screen, or better yet continue on but with empty "Send To" box?
Posted By: BassTeQ Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/12/2002 7:47 AM
Good point, I missed that one, I did the javascript for the Add A folder, but never checked that, I'll write some script, and send it to brett to update his zip.
Should do that tomorrow some time hopefully.
Posted By: Fahd Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/12/2002 9:48 PM
I think all of the major bugs are out of the way, just little things like what Painfool mentioned smile Anyways great job guys smile
Posted By: tgreene Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/12/2002 10:09 PM
I am not experiencing of these probs since re-hacking yesterday... The "pop-up" even works properly this time as well!
Posted By: BassTeQ Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/12/2002 11:55 PM
Here's the fix!

Code
**********************************
Open public_pm_folders_review.pl
**********************************

FIND:

function AddFolder() {
var ti = prompt("What's the name of the folder you would like to add?", '');
if(ti && ti != null && ti != "null" && ti != "") {
var di = prompt("What would you like this folder's description to be?", '');
document.AddFolder.add_name.value = ti;
document.AddFolder.add_desc.value = di;
document.AddFolder.submit();
}
}

ADD BELOW:

function validateNewPM(theForm){
if ( document.all.username.value.length == 0 && document.all.usernumber.value.length == 0) {
alert('Please Enter a UserName or UserNumber');
document.all.username.focus();
return false;
}
else if ( document.all.username.value.length != 0 && document.all.usernumber.value.length != 0) {
alert('Please enter a UserName OR UserNumber not Both!');
document.all.username.focus();
return false;
}
return true;
}

FIND:

<form name="replier" method="post" action="$vars_config{CGIURL}/ultimatebb.cgi">


REPLACE WITH:

<form name="replier" method="post" action="$vars_config{CGIURL}/ultimatebb.cgi" onsubmit="return validateNewPM(this)">


**********************************
Open public_pm_folders_summary.pl
**********************************

FIND:

-->
</script>


ADD BEFORE:

function validateNewPM(theForm){
if ( document.all.username.value.length == 0 && document.all.usernumber.value.length == 0) {
alert('Please Enter a UserName or UserNumber');
document.all.username.focus();
return false;
}
else if ( document.all.username.value.length != 0 && document.all.usernumber.value.length != 0) {
alert('Please enter a UserName OR UserNumber not Both!');
document.all.username.focus();
return false;
}
return true;
}

FIND:

<form name="replier" method="post" action="$vars_config{CGIURL}/ultimatebb.cgi">

REPLACE WITH:

<form name="replier" method="post" action="$vars_config{CGIURL}/ultimatebb.cgi" onsubmit="return validateNewPM(this)">
Enjoy!
Posted By: Painfool Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/13/2002 5:28 AM
Quote
quote:
Originally posted by Felix 10:
Sorry for asking again, can anybody please tell me how do I change the black fonts from the Inbox table strip? they are not that visible and dont match my template.

Thank you
I had the same problem (The Font Color matches the cells background color) - I hard-coded the font color in the public_pm_folder_review.pl in the templates directory (I think its review)

Painfool
Posted By: Painfool Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/13/2002 5:41 AM
Quote
quote:
Originally posted by BassTeQ:
Here's the fix!

Enjoy!
Actually its the .pl files in the template directory, not .cgi ... but it works great! Thanks!!
Posted By: Brett Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/13/2002 8:04 PM
I 'think' i got that font thing done, but let me know if it's not right. Anyway, i added BassTeQ's fixes. Can't thank BassTeQ enough!

smile
Posted By: BassTeQ Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/15/2002 11:38 PM
Quote
quote:
Originally posted by Painfool:
Actually its the .pl files in the template directory, not .cgi ... but it works great! Thanks!! smile
Whops my bad, ive edited the post to reflect that smile

quote:
[qb]Originally posted by brett:
I 'think' i got that font thing done, but let me know if it's not right. Anyway, i added BassTeQ's fixes. Can't thank BassTeQ enough!
smile
[/qb]
Brett, np's mate!
Posted By: Painfool Re: [6.3.x] [beta] PM Folders 1.0 Beta - 12/19/2002 3:45 AM
Is there something that can be changed to insure the unread messages are BOLD ? Seems like once I get a reply to a message it isnt as obvious and although I know its the top ones it would be nice to have a slighty more robust indication of messages unread.
Link is down frown Anyone have this?
Posted By: Saturn_Kindred Re: [6.3.x] [beta] PM Folders 1.0 Beta - 01/14/2003 10:56 PM
Does this work with version 6.3.1.1?
Posted By: BassTeQ Re: [6.3.x] [beta] PM Folders 1.0 Beta - 01/14/2003 11:48 PM
Works fine for me on my 6.3.1.1 board!
Posted By: Saturn_Kindred Re: [6.3.x] [beta] PM Folders 1.0 Beta - 01/14/2003 11:51 PM
I have this working on our boards, 6.3.1.1 and was wondering how I could change the 2 black lines in the image. Need to change the background of them so you can actually see the text.

Click for image
Posted By: BassTeQ Re: [6.3.x] [beta] PM Folders 1.0 Beta - 01/15/2003 6:10 AM
I dont have time to look at the code now, but Ill try tomorow for you!
Posted By: Saturn_Kindred Re: [6.3.x] [beta] PM Folders 1.0 Beta - 01/15/2003 3:14 PM
Thank you bassteq, its appreciated.
Posted By: BassTeQ Re: [6.3.x] [beta] PM Folders 1.0 Beta - 01/16/2003 12:00 AM
Here you go mate. If you have any probs just let me know.

[code][/code]
Posted By: Saturn_Kindred Re: [6.3.x] [beta] PM Folders 1.0 Beta - 01/16/2003 3:34 PM
That fixed it Bass, thanks for the help man.
Posted By: BassTeQ Re: [6.3.x] [beta] PM Folders 1.0 Beta - 01/16/2003 11:29 PM
No problems mate!
© UBB.Developers