Guest Anonymous Posted April 12, 2008 Posted April 12, 2008 Re: New improved mailbox. Assuming you understand of course *why* you add them... There is no reason to add single quotation marks to numeric values, they are only needed in 99% of cases for string fields (char, varchar, text etc). And I'll give a scooby snack to the first person who can tell me the one instance of where quotation marks are not required around a string field... Quote
POG1 Posted April 12, 2008 Posted April 12, 2008 Re: New improved mailbox. Assuming you understand of course *why* you add them... There is no reason to add single quotation marks to numeric values, they are only needed in 99% of cases for string fields (char, varchar, text etc). And I'll give a scooby snack to the first person who can tell me the one instance of where quotation marks are not required around a string field... using a variable to set the string? Quote
Magictallguy Posted April 18, 2008 Posted April 18, 2008 Re: New improved mailbox. Using the Replace method of a String class. This would replace single quotation marks with two adjacent single quotation marks to make sure that the data is formatted correctly when you concatenate values for a SQL statement. Assuming you understand of course *why* you add them... There is no reason to add single quotation marks to numeric values, they are only needed in 99% of cases for string fields (char, varchar, text etc). And I'll give a scooby snack to the first person who can tell me the one instance of where quotation marks are not required around a string field... Quote
Rouge Posted September 3, 2008 Posted September 3, 2008 Re: New improved mailbox. Mailbox (1) is not working the (1) is not showing at all can someone give me some instruction's Quote
Yuri_orlov Posted September 4, 2008 Posted September 4, 2008 Re: New improved mailbox. Assuming you understand of course *why* you add them... There is no reason to add single quotation marks to numeric values, they are only needed in 99% of cases for string fields (char, varchar, text etc). And I'll give a scooby snack to the first person who can tell me the one instance of where quotation marks are not required around a string field... when the string is already contained within a variable Quote
Guest Anonymous Posted September 4, 2008 Posted September 4, 2008 Re: New improved mailbox. Yes... I guess this is valid however what I was looking for is discussed here Quote
hobbes Posted September 5, 2008 Posted September 5, 2008 Re: New improved mailbox. I like this mod as it offers a great improvement over the old mccodes mailbox! Keep it up, I would love to see more updates on this! :mrgreen: Why not go for a forum mod as well based on the same script? :) Quote
Haunted Dawg Posted September 20, 2008 Author Posted September 20, 2008 Re: New improved mailbox. Here is a new updated version: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Whats included: Smileys clickable. Adds a line break when needed. Quote
POG1 Posted September 20, 2008 Posted September 20, 2008 Re: New improved mailbox. if($f['mail_from'] == $ir['userid']) { $pass = 1; } else { $pass = 0; } if($f['mail_to'] != $ir['userid']) { if($pass != 1) { echo 'This mail is not yours!'; $h->endpage(); exit; } } that's a bit long winded Quote
hobbes Posted September 20, 2008 Posted September 20, 2008 Re: New improved mailbox. nice to see someone who added line breaks and clickable emoticons, only thing is that when you read an old message, it subtracts your mailbox counter to the negatives. Quote
bocco Posted September 20, 2008 Posted September 20, 2008 Re: New improved mailbox. i fixed that for you, there is still one more problem, if you delete a mail before reading it will still show you have unread mail You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Haunted Dawg Posted September 20, 2008 Author Posted September 20, 2008 Re: New improved mailbox. Well i coded this to fit my mainmenu.php Quote
Blackdogg Posted September 20, 2008 Posted September 20, 2008 Re: New improved mailbox. do you still have the pics of the smilies as thte rapidshare linkisno longer valid :( Quote
Zero-Affect Posted September 20, 2008 Posted September 20, 2008 Re: New improved mailbox. no offense but it looks horrible and if you type for example lol in the textarea then click a smiley it ain't gunna add lol Quote
Haunted Dawg Posted September 20, 2008 Author Posted September 20, 2008 Re: New improved mailbox. Yeah umm zero if it looks horrible use the original mccode one :wink: Quote
Zero-Affect Posted September 21, 2008 Posted September 21, 2008 Re: New improved mailbox. i prefer my edited version of richards thanks though Quote
grimsybaby Posted January 15, 2009 Posted January 15, 2009 Re: [mccode v2] New improved mailbox. mail isnt showing you have a new message on the main menu :s has anyone got a fix? im useing the most updated version posted :) Quote
REGGIE KRAY Posted February 10, 2009 Posted February 10, 2009 Re: [mccode v2] New improved mailbox. Killah's version works great for me and show's that I have mail. The only thing im not keen on is it doesnt link directly from viewuser you have to make a note of the user ID number to type in. Quote
Haunted Dawg Posted February 10, 2009 Author Posted February 10, 2009 Re: [mccode v2] New improved mailbox. In the mailbox.php just change $_GET['act'] to $_GET['action'] Quote
HITMAN 17 Posted March 20, 2009 Posted March 20, 2009 Re: [mccode v2] New improved mailbox. please can you add smilies back cheers Quote
mentaljason Posted April 3, 2009 Posted April 3, 2009 Re: [mccode v2] New improved mailbox. Fixed for those who had the erros that you cant send or read use this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
HITMAN 17 Posted April 4, 2009 Posted April 4, 2009 Re: [mccode v2] New improved mailbox. does this when you dlete messages delete them from the game Quote
Harley Posted April 4, 2009 Posted April 4, 2009 Re: [mccode v2] New improved mailbox. +1 thank you very much! Quote
gideon prewett Posted April 5, 2009 Posted April 5, 2009 Re: [mccode v2] New improved mailbox. ok i may be slow but im stuck does anybody have a version of this that updates when u have a mail for v2 im useing the standard mainmenue if it helps Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.