Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
#44517 06/01/2002 3:09 PM
Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
Hello peeps.

Since you're all bored in here I might as well throw in a bone to chew on. I have the final PM hack installed on 5.45c and it works fine - with one minor exception. Every time it hits the limit of 30 messages that I've set, the autodelete kicks in, but it stops with an Internal Server Error. (Which doesn't really provide much clues as to what's wrong.) And, of course, from then on every time you try to open the inbox it'll try to autodelete, and crap out. So you have to be really fast to catch it and stop loading before that kicks in, and manually delete messages.

Everything else, including normal deletion works without any problems. The only problem is autodelete. It's the only thing on my boards that does not function 100%, and while it's not really a major issue, it'd be even better if I could get this fixed so that everything would be working perfectly.

So, any ideas what I could do?

Sponsored Links
#44518 06/01/2002 8:25 PM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Auto-delete has been known not to work. Can you turn the feature off?

#44519 06/02/2002 2:28 AM
Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
Nope, not that I know of... I suppose the only alternative would be to set the limit to 9999 messages or something...

#44520 06/02/2002 6:22 PM
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
That has never worked, Ive had a look at it myself looking for a quick fix, but its not easy.
I gave up as I didnt have time to sit there and try and work out how the autodelete works. frown


I can't afford a good signature editor frown
#44521 06/02/2002 8:13 PM
Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
deutscher moderator / v5 specialist
Offline
Joined: Dec 2000
Posts: 730
i think the problem is the runtime of the script...

can you send me the script via mail? then i can try out what is the matter...

Sponsored Links
#44522 06/03/2002 1:19 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
quote:
Originally posted by BassTeQ:
That has never worked, Ive had a look at it myself looking for a quick fix, but its not easy.
I gave up as I didnt have time to sit there and try and work out how the autodelete works. frown

Damn un-finished hacks. Some still have those annoying bugs in em.

#44523 06/03/2002 5:45 AM
Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
joking-down, I'll send it to you ASAP. Do you only need privatedelete.cgi? (I think that's all there is of the delete script. There are many other files in the hack though, and some modification of core ubb files is necessary.)

Kinda weird that this never worked and no one even bothered to mention it in the docs. eek

#44524 06/03/2002 7:06 PM
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Gladius, Id recommend sending all the files, this way it helps when you are trying to work out the flow of the scripts.

Cheers


I can't afford a good signature editor frown
#44525 06/03/2002 7:06 PM
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Gladius, Id recommend sending all the files, this way it helps when you are trying to work out the flow of the scripts.

Cheers


I can't afford a good signature editor frown
#44526 06/04/2002 5:38 AM
Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
He already let me know which others he needs too... I suppose if nothing can be done to fix autodelete, it wouldn't be hard to implement a limit so that once you reach the set amount of messages you can't receive any more until you delete some?

Sponsored Links
#44527 06/04/2002 6:01 PM
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Yeah I dont think that would be too hard, you would just need to check the username.count file, and dont let the user send a message if their count is higher then X.
Actually Ill have a look at that soon and let you know the results!


I can't afford a good signature editor frown
#44528 06/04/2002 7:01 PM
Joined: Nov 2000
Posts: 50
Member
Member
Offline
Joined: Nov 2000
Posts: 50
autodelete works !
the only Problem occurs on Unix machines while executing the autodelete part in privatedelete.cgi but the PM are deleted. On Windows NT all works fine wink

I also found a problem when configuring the settings to "no outbox". In this case the PM's which are sent should not be stored in the .db of the sender (I think so!?) but it's stored everytime and the autodelete will not work when "no outbox" is configured. I found this error on my board for some users who has configured "no outbox" with 4 PM in the inbox and 300kb big $username.db !

autodelete from PM 3.8 only works when configuring "single page". all other configuration will not be autodeleted !
I coded the last 8 hours on PM 3.8 to get rid of the problem.

When my "betatest" are finished I will post the modifications to get it run wink

#44529 06/05/2002 6:29 PM
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
That would be great, let us know how you go.


I can't afford a good signature editor frown
#44530 06/07/2002 1:58 PM
Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
Autodelete never worked for any setting, anywhere on my UNIX server.

Anyway, that guy that I mailed above never got back to me after I sent him the files so I'm supposing he's not working on it, so BassTeQ, I'd welcome your solution. (Or this new one, if it doesn't require a new install of the PM hack.)

#44531 06/07/2002 6:13 PM
Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
deutscher moderator / v5 specialist
Offline
Joined: Dec 2000
Posts: 730
[edit]
delete code because it dosen't work...

#44532 06/07/2002 6:28 PM
Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
deutscher moderator / v5 specialist
Offline
Joined: Dec 2000
Posts: 730
[edit]
tomorrow i check the code again....

#44533 06/09/2002 2:07 PM
Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
deutscher moderator / v5 specialist
Offline
Joined: Dec 2000
Posts: 730
i found no error in the code...
i think it's a timeproblem on a unix-server. try to limit the PMs a user can receive

#44534 06/09/2002 11:37 PM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Can't find the solution either. Is the author of it still around? He'd know his hack the best.

#44535 06/10/2002 1:21 PM
Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
I tried that, but he's not supporting it any more. So, BassTeQ, wanna give it a shot?

#44536 06/10/2002 10:04 PM
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Ok, Ive done some coding, and my solution was to not let the user send any messages if their message count exceeds the maximum. They must delete excess messages to be able to send a message. So it forces them to clean up their inbox smile

If you want the code let me know.


I can't afford a good signature editor frown
#44537 06/11/2002 1:23 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Thats some clever thinking BassTeQ. smile wink

#44538 06/12/2002 1:23 PM
Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
Of course I want the code. Glad to see my idea worked out!

I'll PM your my mail.

#44539 06/12/2002 5:52 PM
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Ok, in privateseng.cgi

Find:
Code
[/code]Replace with:
[code]
Thats pretty much it!
See how that works for you


I can't afford a good signature editor frown
#44540 06/13/2002 4:32 AM
Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
Thanks, I'll try it out and let you know. Btw, where do you check your own PMs on this board? I've searched all around but couldn't find a PM strip even on the front page of the boards. tipsy

Hmm, wait. What message does someone who wants to send a PM to someone with a full inbox get?

#44541 06/13/2002 6:20 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
This will come up:

The allowed limit of messages you can store is (Number of PM allowed here) You cannot send any more Private Messages until you delete old ones from your Inbox/Outbox.

#44542 06/13/2002 12:56 PM
Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
Um... I can see that being OK for the one who is trying to send more messages while already having his inbox/outbox full.

But what about when someone is trying to send someone with a full inbox a new PM? What notification does the sender get then? Because I see only one notice in the script there, where there should be two, one for someone trying to send OUT of a full inbox/outbox and one for someone trying to send TO a full inbox/outbox. Or did I get something wrong?

#44543 06/13/2002 5:35 PM
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
The code only applies to privatesend.cgi.
So the person with a full inbox/outbox can still receive messages, he/she just cant SEND them!


I can't afford a good signature editor frown
#44544 06/13/2002 7:21 PM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Sorry I got that mixed up Gladius. I thought you meant the sender not the reciever.

#44545 06/14/2002 5:57 AM
Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
No problem. Glad we got that cleared up. Very elegant solution, I think. smile

I'll install the hack later today.

#44546 06/14/2002 1:37 PM
Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
Ok, implemented it. Seems to work like a charm. Thanks!

#44547 06/14/2002 11:26 PM
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Glad to hear it, one small bug which I found in it, was having a problem when replying to messages.

Look in my code above, where it says

Code
[/code]Change that to:

[code]
Enjoy!


I can't afford a good signature editor frown
#44548 06/15/2002 5:08 AM
Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
Heh, that's great. I just came here to report this same thing and you've already got it. smile
Thanks again.

#44549 06/16/2002 5:17 AM
Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
Hmm, here's another more or less bug (or oversight), but I suppose this is from the original hack... When you're not logged in (i.e. unregistered or unrecognized), and try to send someone a PM from their profile or post via the http://etc.etc./privatesend.cgi?sendto=UserName , the server will return an internal server error.

Is there any way to turn this into a notice that you're not able to send PMs unless logged in or registered? So that it doesn't seem broken to unreg'd/unrecognized users. Just a task for the local code wizz's. wink

#44550 06/16/2002 5:34 PM
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Do you mean a PM or IM, because they are two different hacks?
I think you mean PM, either way all you would have to do is check for a valid cookie on the users side, and if it exists show them the msg screen, otherwise show them an error message ?

Ill a play with my board and see what I can do.


I can't afford a good signature editor frown
#44551 06/17/2002 4:26 AM
Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
PM only currently... but I do intend to install the IM hack on it too. (It requires PM first afaik.)

So if you come up for a solution for both (if the same thing happens with IM), it'd be cool.

#44552 06/17/2002 5:46 PM
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Ok, im a little busy at the moment buy when I get some spare time Ill look into it smile


I can't afford a good signature editor frown
#44553 06/17/2002 7:35 PM
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Ok found a bit of spare time smile
Heres the fix

In privatesend.cgi find:
Code
[/code]After that ADD:
[code]
Ive tested it and it works fine.


I can't afford a good signature editor frown
#44554 06/18/2002 5:10 AM
Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
Great stuff... I really appreciate your work. Thanks.

Here... Installed it and it works fine. wink

#44555 06/22/2002 7:03 AM
Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
Oh btw... Could you do another small fix? The ' character like in "Topic's Title" is simply ignored by PM for some reason... It'll show in the subject line as "Topics Title". I got this when I try to PM someone from inside a topic that has such a subject.

#44556 06/23/2002 5:52 PM
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Hrmm thats strange, I just sent a test PM on my board with ' in the subject like. ie
subject: this's a's test's

and it worked fine smile


I can't afford a good signature editor frown
Page 1 of 2 1 2

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)