Jump to content
xisto Community

adly3000

Members
  • Content Count

    59
  • Joined

  • Last visited

Everything posted by adly3000

  1. sorry for the broken url, but ihavenot space on my site now to upload those pics.PSP stands for printshop pro.
  2. I've finally made the tutorial my both of my current signature images! I made a poll to see if people wanted me to make it, and seven people said yes, so here you go: Important Note! The outcome of the image depends on the number of lens flares and the positions of them in steps 4 and 5! Ambience: 1. Open Photoshop and creat a new document. Make sure that it is square. Mine is 300x300. 2. Press ctrl + a to select all of the canvas, then right click on it and press fill. Chose black or another dark colour to fill it with, then press ctrl + d to deselect the canvas. 3. Click on Filter -> Render -> Lens Flare and keep the setting default (50-300mm Zoom, Brightness 100%) 4. Place the lens flare in the middle at the top of your image.Posted: Thu Feb 17, 2005 1:06 pm Post subject: My signature tutorials - Ambience and Abstract! 5. Repeat step 3 however many times you like until you end up.You can just use that image if you want to. 6. Press ctrl + u and set the Saturation down to -100 to greyscale the image. 7. Click on Filter -> Pixelate -> Mezzotint and choose Medium Strokes. 8. Then go to Filter -> Blur -> Radial Blur and select Zoom, Best quality and Amount 100. 9. Press ctrl + f twice to repear step 8 twice. 10. Press ctrl + u and tick the box that says Colorize. 11. Choose the settings you want. This changes the colour of the image. I chose Hue 200, Saturation 100 and Lightness 0. 13. Press ctrl + j to copy the layer. 12. Make sure you are on the top layer, then click on Filter -> Distort -> Twirl and set the Angle to 100. 13. Press ctrl + j again to copy the layer we are on. 14. Set the blending mode on the top layer to Lighten. 15. Go to Filter -> Distort -> Twirl and set the angle to -50 this time. There you have it! That is how I made my Ambience signature. All I did was to make a new image that was 300x100 and I copied the 300x300 image onto it and moved it around until I got what I liked! Something Fishy Studios: This just continues from Ambience. 16. Click on the bottom layer then press ctrl + j twice to copy it twice. Make sure that they are all set to Lighten. 17. Click on Filter -> Distort -> Shear and make it look like S letter.Remember to have Repeat Edge Pixels selected. 18. Press ctrl + j do copy the layer, then press Edit -> Transform -> Flip Horizontal. 19. Press ctrl + e to merge the two layers together. 20. Click on Image -> Rotate Canvas -> 90 CCW. 21. Repeat steps 16 -> 19. 22. Go to Image -> Rotate Canvas -> 90 CW. 23. Enjoy!Important Note! The outcome of the image depends on the number of lens flares and the positions of them in steps 4 and 5! If you have any comments or questions about either of the tutorials then please post them here. It took me ages to write these!
  3. Hmm. I wrote this for a thread, but I decided to submit it here too. First you need to download or make the patterns. I have some ready made patterns here: http://lygo.com/ly/sitemissing.html.You have to save each image in that directory, and place them into your Patterns folder (C:\Program Files\Jasc Software Inc\Paint Shop Pro 7\Patterns). I made this mini-tutorial in PSP 7, but I don't think it's hard to figure out how to do this in other programs. After you have downloaded the patterns. ^ Find that in PSP and click the Pattern option. ^ When you click on the pattern, you'll see this small window pop up. Find the pattern you want to use. ^ Then click on the Flood Fill tool. ^ Then press the letter "O" on your keyboard to see the Options window popup. Change the opacity to 10(press enter after you type in a new number). You can change the opacity level as you see fit. Then click anywhere on the image. Make sure the pattern is at the top. ^ Remember, by changing the opacity level you can make the stripes more or less visible.
  4. hmm.. i have one question is Invision Power Board better than phpBB2?and what's the difference between them?!i used phpBB2 but i never see Invision Power Board before.
  5. thanks no9t9; if ($_GET['date'] == 'asc') { $i = 0; $j = $total }else if ($_GET['date'] == 'desc') {$i = -$total; $j = $0 }for ($x=$i;$x<$j;$x++) { do stuff } this helps alot, that is the the same as: $start = 0;$end = $total;$step = 1;if (isset($_GET{"date"}) && $_GET{"date"} == "desc") { $start = $total; $end = 0; $step = -1;}for ($x = $start; $x <= $end; $x += $step) {// something}
  6. i agree with OpaQue: just cahnge the ($HTTP_*_VARS arrays i.e. $HTTP_POST_VARS) to ($_* i.e. $_POST) i also agree with Spectre: using isset in trhe if statement is better than just if: if (isset($_POST['addr']) && $_POST['addr'] != '' ) { $searchable = $_POST['addr']; echo 'searchable = '.var_dump($searchable).'</br>'; $stack=array(); ...extra code }... the above code better than the following one: if ($_POST['addr']) { $searchable = $_POST['addr']; echo "searchable = ".var_dump($searchable)."</br>"; $stack=array(); ...extra code }
  7. i'd like to make for loop which dependes on a $_GET variable: here is my tries: if (isset($_GET['date']){switch($_GET['date']) { case 'asc':$exp1 = "$x>0";$exp2 = "$x=$total"; $condition = '$x++'; break; case 'desc';$exp1 = "$x=$total";$exp2 = "$x>0"; $condition = '$x--'; break; }} then for($exp1; $exp2; $condition){//** do something **//} that is what i want to do, sure this code is wrong so what is the valid code?!!
  8. thanks all.that is helping me to the right way thanks.
  9. thanks all.Spectre, I think your code is more simple so i used it and it works thatnks again
  10. Hello, I get the following error: Parse error: syntax error, unexpected T_STRING in /usr/local/psa/home/vhosts/club-amigos.co.uk/httpdocs/contact.php on line 44 when l run the following script: Any help would be appreciated. <?php /* PHP Form Mailer - phpFormMailer v2.1, last updated 30th Nov 2005 - check back often for updates! (easy to use and more secure than many cgi form mailers) FREE from: http://www.thedemosite.co.uk/ Should work fine on most Unix/Linux platforms */ // ------- three variables you MUST change below ------------------------------------------------------- $valid_ref1="http://adly3000.trap17.com/contact_test.html";// chamge "Your--domain" to your domain $valid_ref2="http://adly3000.trap17.com/contact_test.html";// chamge "Your--domain" to your domain $replyemail="EMAIL REMOVED - Send PM to This User Instead";//change to your email address // ------------------------------------------------------------ //clean input in case of header injection attempts! function clean_input_4email($value, $check_all_patterns = true) { $patterns[0] = '/content-type:/'; $patterns[1] = '/to:/'; $patterns[2] = '/cc:/'; $patterns[3] = '/bcc:/'; if ($check_all_patterns) { $patterns[4] = '/\r/'; $patterns[5] = '/\n/'; $patterns[6] = '/%0a/'; $patterns[7] = '/%0d/'; } //NOTE: can use str_ireplace as this is case insensitive but only available on PHP version 5.0. return preg_replace($patterns, "", strtolower($value)); } $name = clean_input_4email($_POST["name"]); $email = clean_input_4email($_POST["email"]); $thesubject = clean_input_4email($_POST["thesubject"]); $themessage = clean_input_4email($_POST["themessage"], false); $error_msg='ERROR - not sent. Try again.'; $success_sent_msg='{ print "<meta http-equiv=\"refresh\" content=\"0;URL=error.html\">"; } // email variable not set - load $valid_ref1 page if (!isset($_POST['email'])) { echo "<script language=\"JavaScript\"><!--\n "; echo "top.location.href = \"$valid_ref1\"; \n// --></script>"; exit; } $ref_page=$_SERVER["HTTP_REFERER"]; $valid_referrer=0; if($ref_page==$valid_ref1) $valid_referrer=1; elseif($ref_page==$valid_ref2) $valid_referrer=1; if(!$valid_referrer) { echo "<script language=\"JavaScript\"><!--\n alert(\"$error_msg\");\n"; echo "top.location.href = \"$valid_ref1\"; \n// --></script>"; exit; } $themessage = "name: $name \nQuery: $themessage"; [code]<?php /* PHP Form Mailer - phpFormMailer v2.1, last updated 30th Nov 2005 - check back often for updates! (easy to use and more secure than many cgi form mailers) FREE from: http://www.thedemosite.co.uk/ Should work fine on most Unix/Linux platforms */ // ------- three variables you MUST change below ------------------------------------------------------- $valid_ref1="http://forums.xisto.com/no_longer_exists/ chamge "Your--domain" to your domain $valid_ref2="http://forums.xisto.com/no_longer_exists/ chamge "Your--domain" to your domain $replyemail="EMAIL REMOVED - Send PM to This User Instead";//change to your email address // ------------------------------------------------------------ //clean input in case of header injection attempts! function clean_input_4email($value, $check_all_patterns = true) { $patterns[0] = '/content-type:/'; $patterns[1] = '/to:/'; $patterns[2] = '/cc:/'; $patterns[3] = '/bcc:/'; if ($check_all_patterns) { $patterns[4] = '/\r/'; $patterns[5] = '/\n/'; $patterns[6] = '/%0a/'; $patterns[7] = '/%0d/'; } //NOTE: can use str_ireplace as this is case insensitive but only available on PHP version 5.0. return preg_replace($patterns, "", strtolower($value)); } $name = clean_input_4email($_POST["name"]); $email = clean_input_4email($_POST["email"]); $thesubject = clean_input_4email($_POST["thesubject"]); $themessage = clean_input_4email($_POST["themessage"], false); $error_msg='ERROR - not sent. Try again.'; $success_sent_msg='{ print "<meta http-equiv=\"refresh\" content=\"0;URL=error.html\">"; } // email variable not set - load $valid_ref1 page if (!isset($_POST['email'])) { echo "<script language=\"JavaScript\"><!--\n "; echo "top.location.href = \"$valid_ref1\"; \n// --></script>"; exit; } $ref_page=$_SERVER["HTTP_REFERER"]; $valid_referrer=0; if($ref_page==$valid_ref1) $valid_referrer=1; elseif($ref_page==$valid_ref2) $valid_referrer=1; if(!$valid_referrer) { echo "<script language=\"JavaScript\"><!--\n alert(\"$error_msg\");\n"; echo "top.location.href = \"$valid_ref1\"; \n// --></script>"; exit; } $themessage = "name: $name \nQuery: $themessage"; mail("$replyemail", "$thesubject", "$themessage", "From: $email\nReply-To: $email"); mail("$email", "Receipt: $thesubject", "$replymessage", "From: $replyemail\nReply-To: $replyemail"); echo $success_sent_msg; /* PHP Form Mailer - phpFormMailer (easy to use and more secure than many cgi form mailers) FREE from: http://www.thedemosite.co.uk/ */ ?>
  11. I would like to add one day to date.Doesn't any one have a simple code that I can have. or mabe a link. date("Y-m-d H:i:s") + (1800 * 24);//this doesnt work ;/ but i need to have 24 hours after date for a check. Thanks for taking the time i hope some one can help me out. Dont warry about it if you dont have some thing already made.
  12. i solved the problem and here's the code: <?function fn_flagmsgs($flagedmsgs, $flagtypeis){ global $dmsg; global $flagtype; //-- open imap connection --// $mboxflag = @imap_open("{mail.adly3000.trap17.com:143}", "".$_SESSION['SESSION_USER_NAME']."+".$_SESSION['SESSION_MAIL_HOST']."", $_SESSION['SESSION_USER_PASS']) or header("Location: error.php?ec=3"); //-- set flags for the specified message numbers --// reset($flagedmsgs); while (list($key, $val) = each($flagedmsgs)) { $flagedmsgs2[$key] = imap_uid($mboxflag, $val); } switch ($flagtypeis) { case "Seen": imap_setflag_full($mboxflag, implode(',', $flagedmsgs2), '\\Seen', ST_UID); break; case "Unseen": imap_clearflag_full($mboxflag, implode(',', $flagedmsgs2), '\\Seen', ST_UID); break; } //-- close imap connection page --// imap_close($mboxflag);}?> the i call that function to set any flag.
  13. i'd like to set or clear the seen flag to any selected message: if (isset($_GET['hmark']) && isset($_GET['dmsg']) && isset($_GET['fresh'])){ $dmsg = $_GET['dmsg']; $flagtype = $_GET['hmark']; $fresh = $_GET['fresh']; $used = isset($_SESSION['used']) ? $_SESSION['used'] : array(); if (!isset($used[$fresh])) { if ($flagtype=='Seen') { include("functions/flagmsg.php"); fnflagmsgs($dmsg, $flagtype); } elseif ($flagtype=='UnSeen') { list($un, $flagtype) = explode("Un",$flagtype); include("functions/unflagmsg.php"); fnunflagmsgs($dmsg, $flagtype); } $used[$fresh] = TRUE; $_SESSION['used'] = $used; }}1- 'hmark' is a select in the form whic will pass 'Seen'.2- 'dmsg' is checkboxes. 3- 'fresh' is a hidden field to prevent repeatation on refreash. the flagmsg.php contains: function fnflagmsgs($flagedmsgs, $flagtypeis){ global $dmsg; global $flagtype; //-- open imap connection --// $mboxflag = @imap_open("{mail.adly3000.trap17.com:143}", "".$_SESSION['SESSION_USER_NAME']."+".$_SESSION['SESSION_MAIL_HOST']."", $_SESSION['SESSION_USER_PASS']) or header("Location: error.php?ec=3"); //-- delete specified message numbers --// for ($x=0; $x<sizeof($flagedmsgs); $x++) { imap_setflag_full($mboxflag,imap_uid($mboxflag,$flagedmsgs[$x]),'\\\\".$flagtypeis."',ST_UID); } //-- close imap connection page --// imap_close($mboxflag);}so it doesnot set or even clear the flags, why i don't know?!hmmmm.... the greatest is that my view page set the seen flag as desired?! lol plz plz plz help me!!! :help:
  14. problem in IE6 with overlib i am using the following codes in my html and page is generating dynamically <div id="overDiv" style="position:absolute; visibility:hide; z-index:1000;"></div> and <a href="mailto:snsanju@gmail.com" onMouseOver="window.status='User Details'; overlib('email: snsanju@gmail.com',RIGHT, ABOVE, HAUTO, VAUTO); return true;" onMouseOut="window.status=''; nd(); return true;"></a> it shows the popup fine at correct position if less records(only one page), now consider if there are more records say greater than 100, and i scroll down then instead showing the popup at correct position it is displaying at top which is not visible by us. other than this IE6 its ok. whats wrong with this.
  15. i wrote a funtion to list the imap mailboxes and then write the usneen messages besides to thier relative mail boxes: 1- it will search the mail boxes and display the inbox at the top then it will display the remaining mailboxes. everything working great, but always showing me unseen=0????!! i don't know why?! <?session_start();$mboxrit = @imap_open("{mail.adly3000.trap17.com:143}", "".$_SESSION['SESSION_USER_NAME']."+".$_SESSION['SESSION_MAIL_HOST']."", $_SESSION['SESSION_USER_PASS'],OP_HALFOPEN) or header("Location: error.php?ec=3");$list = imap_list($mboxrit,"{mail.adly3000.trap17.com:143}","*");function cmp ($desired_mailbox_name, $b){ if (strcasecmp($desired_mailbox_name, 'INBOX') == 0) { return -1; } elseif (strcasecmp($b, 'INBOX') == 0) { return 1; }}if (is_array($list)){ reset($list); while(list($key, $val) = each($list)) { $mailbox_name = imap_utf7_decode($val); list($undesired_mailbox_name[$key], $desired_mailbox_name[$key]) = explode("}", $mailbox_name); } usort($desired_mailbox_name, 'cmp'); while(list($key, $val) = each($desired_mailbox_name)) { if ($val != ".mailboxlist") { $mailbox_status = imap_status($mboxrit,"{mail.adly3000.trap17.com:143}".$val."",SA_UNSEEN); if (isset($mailbox_status)) $unseen = $mailbox_status->unseen; if (strstr($val, ".")) { list($inbox,$boxname) = explode(".", $val); } $val = ((isset($boxname)) ? $boxname : $val); $mailboxes = (isset($mailboxes) ? $mailboxes."<tr>" : "<tr>"); $mailboxes .= "<td>".$val; if ($unseen > 0) $mailboxes .= " (".$unseen.")"; $mailboxes .= "</td>"; $mailboxes .= "</tr>"; } }}imap_close($mboxrit);?><html><head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body><table width="100%" border="0" cellspacing="0" cellpadding="0"> <? echo $mailboxes; ?></table></body></html>
  16. i did a php function to format url, i will pass some $_GET variable to it and it will eliminate them from the url, and here's the code: <?$PS = $_SERVER['PHP_SELF'];$QS = $_SERVER['QUERY_STRING'];// *** remove undesired parameters from url *** //function formaturl($remove_me1,$remove_me2,$remove_me3){ global $PS, $QS, $PS_new; //$GET if (!strpos($PS, "?") && !empty($QS)) { $QS_new = "?"; reset($_GET); while (list($key,$value) = each($_GET)) { if ($key != $remove_me1 && $key != $remove_me2 && $key != $remove_me3) { if(strlen($QS_new) > 1) $QS_new .= "&"; $QS_new .= $key . "=" . $value; } } if (strlen($QS_new) > 1) $PS_new = $PS.$QS_new; } return $PS_new;}// ***************************************** //?>any help would be appticated
  17. so what's you favourites php scripts sites? mine are : 1- hotscript 2- phpbuilder 3- developershed 4- internet so what's yours?
  18. hmmm i like to play on thecrims do com its a great game which attracts people all over the world. and i found later another one called futureinfinity do com too.try to see them, iam sure you will like them.
  19. i learned the last night a new trick so i write it to you, may help you later: 1- that makes the upper checkbox check or uncheck all the other check boxes. 2- on check or uncheck the bg of that checkbox will change. you may say it's easy but i used array name in the checkboxes whcih makes it difficult really ver difficult.(mmmm.. so ask why i choosed the hard way instead of naming my checkboxes box1,box2,...etc., cuz i use php code and i need to make an array for later use.) and here's the code: <html><head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><script language="JavaScript">function check(){ var length = document.form1.elements.length; if (document.form1.checkall.checked==1) { for (i=length-1; i>0; i--) { var e = document.form1.elements[i]; if (e.type=='checkbox' && e.name.indexOf("dmsg") != -1) { e.checked=1; var msgno = 'msg'+i; changebg(e, msgno); } } } else { for (i=length-1; i>0; i--) { var e = document.form1.elements[i]; if (e.type=='checkbox' && e.name.indexOf("dmsg") != -1) { e.checked=0; var msgno = 'msg'+i; changebg(e, msgno); } } }}function changebg(row, msgno){ var checkrow = row; if (checkrow.checked == 1) { document.getElementById(msgno).bgColor="#66CCFF"; } else { document.getElementById(msgno).bgColor="#FFFFFF"; }}</script></head><body><form name="form1" method="post" action=""> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center"><input type="checkbox" name="checkall" value="checkbox" onClick="check();"></td> <td> </td> </tr> <? for ($x=10; $x>0; $x--) { ?> <tr id="msg<? echo $x; ?>"> <td align="right" style="bgcolor: #ff0000"><input type="checkbox" name="dmsg[]" value="<? echo $x; ?>" onClick="changebg(this, 'msg<? echo $x; ?>');"></td> <td>box <? echo "$x"; ?></td> </tr> <? } ?> </table></form></body></html>i hope that may help you in future. Ahmed;
  20. i'd like to know which message i had not been seen, so i searched the manual and fid 2 flags says Unseen == 'U' || Recent == 'N' mean. but i don,t understand what does Unseen == 'U' || Recent == 'N' mean(what he mean by flags)? i want to check if the message is not seen, so how to do that? i tried $inbox = @imap_open("{mail.mysite.com:110/pop3}", "".$_SESSION['SESSION_USER_NAME']."+".$_SESSION['SESSION_MAIL_HOST']."", $_SESSION['SESSION_USER_PASS']) or header("Location: error.php?ec=3");$headers = imap_header($inbox, $x);if($headers->Unseen == 'U' || $headers->Recent == 'N')but always show the message as unseen!!!!
  21. 2 days ago i had a problem like that to make one login for oscommerce and phpbb.ok you should:1- open your IPB and look what is the username saves as in session(e.g. $ss_username).2- then you can save that session variable in cookie("UserName", ".$ss_username.") or a database table.3- in your chat search for the cookie or search in you database table.that's all;i hope that helps you.
  22. thanks all for replying; here's the lines 1-9: it says the problem is at line 5: <html><head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css"> .labelstyle {FONT-SIZE: 13PX; FONT-FAMILY: tahoma, Arial, Helvetica, sans-serif} .inputstyle {BACKGROUND: #ffffff; COLOR:#006699; FONT-FAMILY:tahoma, Arial, Helvetica, sans-serif; FONT-SIZE:13; BORDER-RIGHT: #006699 1px solid; BORDER-LEFT: #006699 1px solid; BORDER-TOP: #006699 1px solid; BORDER-BOTTOM: #006699 1px solid}</style><script language="JavaScript">as you can see its the css, which i can't remove!!!! and here's what i hope to do: 1- if the form did not submit echo form; 2- if the form submitted then: i- register the login data in session variables for later use. ii- header("Location: page.php"); final question: $hi = "welcome"; is that an output or i can assign any variables before the header?
  23. i really hate the header function it always get an error saying (cannot ------- headers already sent by-----) and here's my error: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/adly3000/public_html/Mail/index.php:5) in /home/adly3000/public_html/Mail/index.php on line 81Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/adly3000/public_html/Mail/index.php:5) in /home/adly3000/public_html/Mail/index.php on line 81Warning: Cannot modify header information - headers already sent by (output started at /home/adly3000/public_html/Mail/index.php:5) in /home/adly3000/public_html/Mail/index.php on line 90 i don't know why it can not :send session cookie , send session cache limiter, or modify header information. and what do it mean (headers already sent [output started] )what is output started refers to?!!!! i have not an echo?!!!!
  24. thanks for your reply. but i would like to say the first package really needs more space even more 5mb to be 25 mb,because i just uploaded oscommerce and phpbb and now have one megabyte?!!!!!!!! so what if i want to install one of the cms of the fantastico scripts?!! i saw alot of forums which allow web hosting throwgh points but there system differs the make: 1- new topic = 2 points 2- every point to that topic = 1 point to the author 3- any reply = 1 point to the reply's poster i think that's will be better for your hosting system!!
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.