Jump to content

roeyhaim

Members
  • Posts

    33
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

roeyhaim's Achievements

Member

Member (2/5)

0

Reputation

  1. Hello everyone I try to work with Uploadify and Facebox. When the user upload a image i want the image to be link to the BIG image and this link should open in facebox. If i put a link directly it's work fine The problem start when i try to work with uploadify, then the link act as regular link and not with facebox. This is my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>upload</title> <link href="<?php echo $base; ?>/js/uploadify.css" type="text/css" rel="stylesheet" /> <link href="<?php echo $base; ?>/js/facebox.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> <script type="text/javascript" src="<?php echo $base; ?>/js/swfobject.js"></script> <script type="text/javascript" src="<?php echo $base; ?>/js/jquery.uploadify.v2.1.4.min.js"></script> <script type="text/javascript" src="<?php echo $base; ?>/js/facebox.js"></script> <script type="text/javascript"> $(document).ready(function() { $('a[rel=facebox]').facebox({ loadingImage : '<?php echo $base; ?>/js/loading.gif', closeImage : '<?php echo $base; ?>/js/cancel.png' }); $('#file_upload').uploadify({ 'uploader' : '<?php echo $base; ?>/js/uploadify.swf', 'script' : '<?php echo $base; ?>/index.php/home/uploadify', 'cancelImg' : '<?php echo $base; ?>/js/cancel.png', 'folder' : 'uploads', 'fileDesc' : 'Image Files', 'fileExt' : '*.jpg;*.jpeg;*.gif;*.png', 'multi' : true, 'auto' : true, 'onComplete': function(event, ID, fileObj, response, data){ $("#uploaded_preview").append("<a href='<?php echo $base; ?>/uploads/" +response+ "' rel='facebox'><img src='<?php echo $base; ?>/uploads/thumbs/" +response+ "' width=\'150px\' height=\'150px\'></a>"); $("input:hidden.image").val(response); } }); }); </script> <div id="uploaded_preview"> </div> <input id="file_upload" name="file_upload" type="file" /> <input type="hidden" class="image" name="image" id="image" value=""/> <p> <a href="http://images.paraorkut.com/img/pics/images/h/hey_sexy-2377.jpg" rel="facebox">This link work fine</a> </html> any idea how i can make this work?
  2. but when i add this line my whole web site not working. Error: 500 internal server error
  3. Hello, i have a ckeditor on my site and when i try to put text on center its show as i want on the editor but when i save it, it save as: <h1 style=\"text-align: center;\"> Hello</h1> and it's not on the center. any ideas how to fix it?
  4. Hello. when i try to send email from my site to gmail it's send the messege to spam. i have a domain and a mailbox on my server. this is my code, i there any way to change it so it's not go to spam? <?php require_once('./mail/class.phpgmailer.php'); $mail = new PHPGMailer(); $mail->Username = 'username'; $mail->Password = 'password'; $mail->From = 'admin@my-domain.com'; $mail->FromName = 'admin'; $mail->Subject = 'Try Admin'; $mail->AddAddress('any-email@gmail.com'); $mail->Body = 'Hey buddy, heres an email!'; if($mail->Send()) echo "OK <br>"; else echo "Fail <br>"; ?>
  5. nobody know? :confused:
  6. Hello... i'm building a simple cms and i have a question... I use ckeditor to edit pages and i want that the user can build a page structure. the user can build a table any way he wants. and he type "##IMAGE##" after he save the page the structure will be like he wants and all the "##IMAGE##" will be replace with the code: "<img src=<?php images/image_name.jpg>" this is dynamic page that come from SQL query. the user only build a structure and the php will show all the result in this structure. any ideas how to do this? hope you understand...
  7. ok... so is there any way to export without the styles? only plain text in XLS? any simple function?
  8. yes.... all the code is OK except for this line...
  9. Hello. can anyone tell me why this code don't work? eveything work except for the "document.getElementById("name").style.borderColor = 'red';" <script type="text/javascript"> window.onload = function() { document.getElementById("submit").disabled = true; document.getElementById("name").onchange = checkIt; document.getElementById("chip_num").onchange = checkIt; } function checkIt() { if (document.all||document.getElementById) { var Aname; var Achip; Aname = document.getElementById("name").value.length; Achip = document.getElementById("chip_num").value.length; if (Aname<1 && (Achip<14 && Achip>1)) { document.getElementById("submit").disabled = true; document.getElementById("name").style.borderColor = 'red'; } else { document.getElementById("submit").disabled = false; } } } </script> ...... <form action="animals.php?action=insert" method="post" name="add"> <table width="50%"> <tr> <td align="center">name:</td> <td><input type="text" maxlength="25" name="name" id="name"></td> </tr> .........
  10. no... because when i write it as HTML code (not inside PHP ) its OK this is my css for this page: body, html { margin:0; padding:10px; color: #242424; background-color: #EBEBEB; background-image: url('../images/page_g.jpg'); background-repeat: repeat-x; background-attachment: fixed; background-position: top left; font-family: "Times New Roman", arial, sans-serif; z-index: -1; } a{ color: black; text-decoration: none; border-width: none; } textarea, select{ border: 1px solid gray; } input { text-align: center; } input, textarea{ width:75%; border: 1px solid gray; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; /* future proofing */ -khtml-border-radius: 5px; /* for old Konqueror browsers */ } select { width:75%; border: 1px solid gray; }
  11. Hello please help me. i dont understand why but in all the radio that this function create i have break between the radio and the text I attached an image that show you what i got... any idea how to solve this? <table width="80%" dir="rtl"> <?php $i = 0; foreach($files as $pName) { echo "<tr>"; echo "<td>" . $pName . "</td>"; echo "<td>"; echo "<input type='radio' name='pageCode$i' value='$editCode[$pName]' />Edit</td>"; echo "<td><input type='radio' name='pageCode$i' value='$showCode[$pName]' />show</td>"; echo "<td><input type='radio' name='pageCode$i' value='' />none</td>"; echo "</tr>"; $i++; } ?> </table> [attachment deleted by admin]
  12. Hello all is there any way to save a dynamic table to xls file as is? i mean the colors and all the style i use for the table. is there any function that do this? i found PHPExcel.... but i dont have the time or the power to start learn all the functions.... any simple class that do so?
×
×
  • Create New...

Important Information

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.