Jump to content

cybernet

Members
  • Posts

    88
  • Joined

  • Last visited

Everything posted by cybernet

  1. i have this area <textarea name='text' rows='10' cols='60'></textarea></p> and when i click on javascript:SmileIT(':smile:','shbox','shbox_text') i want to insert ":smile:" > without "
  2. i have this form $HTMLOUT .= "<h1>{$lang['comment_add']}\"" . htmlspecialchars($arr["name"]) . "\"</h1> <p><form method='post' action='comment.php?action=add'> <input type='hidden' name='tid' value='{$torrentid}'/> <textarea name='text' rows='10' cols='60'></textarea></p> <p><input type='submit' class='btn' value='{$lang['comment_doit']}' /></p></form>"; this javascript code <a href=\"javascript:SmileIT(':-)','shbox','shbox_text')\"><img border='0' src='{$xLeech['x']}/pic/smilies/smile1.gif' alt='Smile' title='Smile' /></a> <a href=\"javascript:SmileIT(':smile:','shbox','shbox_text')\"><img border='0' src='{$xLeech['x']}/pic/smilies/smile2.gif' alt='Smiling' title='Smiling' /></a> <a href=\"javascript:SmileIT(':-D','shbox','shbox_text')\"><img border='0' src='{$xLeech['x']}/pic/smilies/grin.gif' alt='Grin' title='Grin' /></a> <a href=\"javascript:SmileIT('','shbox','shbox_text')\"><img border='0' src='{$xLeech['x']}/pic/smilies/laugh.gif' alt='Laughing' title='Laughing' /></a> <a href=\"javascript:SmileIT(':w00t:','shbox','shbox_text')\"><img border='0' src='{$xLeech['x']}/pic/smilies/w00t.gif' alt='W00t' title='W00t' /></a> <a href=\"javascript:SmileIT(';-)','shbox','shbox_text')\"><img border='0' src='{$xLeech['x']}/pic/smilies/wink.gif' alt='Wink' title='Wink' /></a> <a href=\"javascript:SmileIT(':devil:','shbox','shbox_text')\"><img border='0' src='{$xLeech['x']}/pic/smilies/devil.gif' alt='Devil' title='Devil' /></a> <a href=\"javascript:SmileIT(':yawn:','shbox','shbox_text')\"><img border='0' src='{$xLeech['x']}/pic/smilies/yawn.gif' alt='Yawn' title='Yawn' /></a> <a href=\"javascript:SmileIT(':-/','shbox','shbox_text')\"><img border='0' src='{$xLeech['x']}/pic/smilies/confused.gif' alt='Confused' title='Confused' /></a> <a href=\"javascript:SmileIT(')','shbox','shbox_text')\"><img border='0' src='{$xLeech['x']}/pic/smilies/clown.gif' alt='Clown' title='Clown' /></a> <a href=\"javascript:SmileIT(':innocent:','shbox','shbox_text')\"><img border='0' src='{$xLeech['x']}/pic/smilies/innocent.gif' alt='Innocent' title='innocent' /></a> <a href=\"javascript:SmileIT(':whistle:','shbox','shbox_text')\"><img border='0' src='{$xLeech['x']}/pic/smilies/whistle.gif' alt='Whistle' title='Whistle' /></a> <a href=\"javascript:SmileIT('','shbox','shbox_text')\"><img border='0' src='{$xLeech['x']}/pic/smilies/unsure.gif' alt='Unsure' title='Unsure' /></a> <a href=\"javascript:SmileIT(':blush:','shbox','shbox_text')\"><img border='0' src='{$xLeech['x']}/pic/smilies/blush.gif' alt='Blush' title='Blush' /></a> <a href=\"javascript:SmileIT(':hmm:','shbox','shbox_text')\"><img border='0' src='{$xLeech['x']}/pic/smilies/hmm.gif' alt='Hmm' title='Hmm' /></a> <a href=\"javascript:SmileIT(':hmmm:','shbox','shbox_text')\"><img border='0' src='{$xLeech['x']}/pic/smilies/hmmm.gif' alt='Hmmm' title='Hmmm' /></a> <a href=\"javascript:SmileIT('','shbox','shbox_text')\"><img border='0' src='{$xLeech['x']}/pic/smilies/huh.gif' alt='Huh' title='Huh' /></a> <a href=\"javascript:SmileIT(':look:','shbox','shbox_text')\"><img border='0' src='{$xLeech['x']}/pic/smilies/look.gif' alt='Look' title='Look' /></a> <a href=\"javascript:SmileIT('','shbox','shbox_text')\"><img border='0' src='{$xLeech['x']}/pic/smilies/rolleyes.gif' alt='Roll Eyes' title='Roll Eyes' /></a> <a href=\"javascript:SmileIT(':kiss:','shbox','shbox_text')\"><img border='0' src='{$xLeech['x']}/pic/smilies/kiss.gif' alt='Kiss' title='Kiss' /></a> <a href=\"javascript:SmileIT('','shbox','shbox_text')\"><img border='0' src='{$xLeech['x']}/pic/smilies/blink.gif' alt='Blink' title='Blink' /></a> <a href=\"javascript:SmileIT(':baby:','shbox','shbox_text')\"><img border='0' src='{$xLeech['x']}/pic/smilies/baby.gif' alt='Baby' title='Baby' /></a><br/> and this .js file function SmileIT(smile,form,text){ document.forms[form].elements[text].value = document.forms[form].elements[text].value+" "+smile+" "; document.forms[form].elements[text].focus(); } function PopMoreSmiles(form,name) { link='moresmiles.php?form='+form+'&text='+name newWin=window.open(link,'moresmile','height=500,width=450,resizable=no,scrollbars=yes'); if (window.focus) {newWin.focus()} } function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=740,height=380,left = 340,top = 280');"); } <!-- function mysubmit() { setTimeout('document.shbox.reset()',100); } //--> function confirm_delete() { if(confirm('Are you sure you want to do this ?')) { if(confirm('Are you 100% sure ?')) { alert("Your are sure!"); self.location.href='./shoutbox.php?delall'; } } } function private_reply(to) { parent.document.forms[0].shbox_text.value='/private '+to+' '; parent.document.forms[0].shbox_text.focus(); } how can i insert a code into the form ? i tried in every way posible ( i don't have any knowledge of javascript )
  3. class Fields_View_Helper_FieldFacebook extends Zend_View_Helper_Abstract { public function fieldFacebook($subject, $field, $value) { $facebookUrl = stripos($value, 'facebook.com/') === false ? 'http://www.facebook.com/search/?q=' . $value->value : $value->value; return $this->view->htmlLink($facebookUrl, $value->value, array( 'target' => '_blank', 'ref' => 'nofollow', )); } } Warning: stripos() expects parameter 1 to be string, object given in line ...
  4. the problem is that the bittorrent client can't receive any seeders and peers, on the site it shows correctly if the're are 1 or many, but the client doesn't receive any of that info, why ? can someone please look on the file [attachment deleted by admin]
  5. by default, root has no password replace your config file with my attachment and then access phpmyadmin username root and dont fill anything on password field => enter in Privileges tab you will find 2-3 users named root edit their password with your desired password after your first edit you will be automatically sign out login again , this time with the password you just set edit the second root user it's should be fine now, SToP messing around with somethig you dont have any idea what it does, take this as an advice, not as a offence
  6. it's not about testing, it's about long term use
  7. some of the host providers think they can be hacked with shell and they set safe_mode = 1 .... is it safe ?
  8. i have these in a php file ini_set("memory_limit", "-1"); set_time_limit(0); if safe_mode is on i will get an error in the header what i'm trying to do is to skip these setting when safe_mode is on what i saw on php.net is this <?php // Check for safe mode if( ini_get('safe_mode') ){ // Do it the safe mode way }else{ // Do it the regular way } ?> http://www.php.net/manual/en/features.safe-mode.php#45263 but this post is since 2004, can i use the above code in php5.3.2 ?
  9. do_sqlquery("UPDATE {$TABLE_PREFIX}files SET tag='".AddSlashes($_POST["tag"])."', filename='$fname', comment='" . AddSlashes($_POST["comment"]) . "', category=" . intval($_POST["category"]) . " , visible = $visible, sticky = '" . $sticky . ", vip_torrent = '" . $vip_torrent . "''WHERE info_hash='" . $torhash . "'", true); mysql query is working but the query it self has a problem i think the problem is here , vip_torrent = '" . $vip_torrent . "'
  10. i still need help if you noticed the php codes are different
  11. i have this code onmouseover=\" return overlib('<img src=" . $xList_upload_dir . "/" . $balon . " width=200 border=0>', CENTER);\" onmouseout=\"return nd();\"> how do i integrate with this one in order to function as it should $torrents[$i]["filename"] = "<img src=\"images/plus.gif\" id=\"expandoGif".$data["hash"]."\" onclick=\"expand('".$data["hash"]."')\"><a href=\"index.php?page=torrent-details&id=".$data["hash"]."\" title=\"".$language["VIEW_DETAILS"].": ".$data["filename"]."\">".($data["filename"] != ""?$filename:$data["hash"])."</a>".($data["external"] == "no"?"":" (<span style=\"color:red\">EXT</span>)")."<div id=\"descr".$data["hash"]."\" style=\"margin-left: 12px; display: none;\">".$data["tag"]; here is the code that it working properly $torrents[$i]["filename"]="<a href=\"index.php?page=torrent-details&id=".$data["hash"]."\" onmouseover=\" return overlib('<img src=cyberfun_img/" . $balon . " width=200 border=0>', CENTER);\" onmouseout=\"return nd();\">".($data["filename"]!=""?$filename:$data["hash"])."</a>".($data["external"]=="no"?"":" (<span style=\"color:red\">Multi.</span>)");
  12. you could also use ispconfig even it's made for multi websites it runs perfectly and has fastcgi cgi suphp and more it's kind of a cpanel with fewer modules
  13. and it does work hip hip hooray )
  14. thanks i hope it works
  15. // 09 Announcement code to replace the Mass PM system / start // http://xList.ro/ function status_change($id) { mysql_query('UPDATE announcement_process SET status = 0 WHERE user_id = '.sqlesc($id).' AND status = 1'); } function hashit($var,$addtext="") { return md5("This Text ".$addtext.$var.$addtext." is added to muddy the water..."); } function safe($var) { return str_replace(array('&', '>', '<', '"', '\''), array('&', '>', '<', '"', '''), str_replace(array('>', '<', '"', ''', '&'), array('>', '<', '"', '\'', '&'), $var)); // line 36 } // 09 Announcement code to replace the Mass PM system / end error Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /var/www/clients/client1/web13/web/include/bittorrent.php on line 36 so the code expects a ')' but where ? thanks
  16. did someone knows where i can get a script like that
  17. can i get this javascript somewhere ? http://mashable.com/2009/09/03/mashable-meebo/ it's pretty cool
  18. when the upload is complete doesn't another page loads ?
  19. thanks i appreciate, but can you tell me the exact code ? and i would like the code for that button too , i mean that magnifier ( i hope i spell it wright )
  20. i would like to know how can i make my own boxes like this one in the screenshot if you do help me , i know i have to specify in css my box name ( i think ), so please tell what i should replace * i will create my own image for the box background thank you in advance, cybernet [attachment deleted by admin]
×
×
  • 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.