Goins
Members-
Posts
23 -
Joined
-
Last visited
Never
Everything posted by Goins
-
can anymore please lead me to some info on how to do this.
-
Hey Thanks! But it still not working. Its just going straight Down.
-
Hey Sorry. That didn't work. <? $query = "SELECT * FROM layouts ORDER BY id DESC"; $result = mysql_query ($query); $datacheck = mysql_num_rows($result); if ($datacheck == 0) { echo "No data to display!"; } $theCounter = 0; $res = $db->Execute( $query ); while( $theCounter < 4 ){ ?> <table border="0" cellspacing="0" cellpadding="2" align="center" width="680px"><tr><td align="center"><a href="<a href="<? echo ("$url"); ?>myspace-layouts/viewimage/<?=$res->fields['id']?>"><img src="<? echo ("$url"); ?>userpics/layouts/thumbnail/<?=$res->fields['thumbnail']?>" height="140" width="140" alt="Extreme Graffiti " class="webgames"/></a> <div class="right-links"> <span class="subtitle"><a href="<? echo ("$url"); ?>myspace-layouts/viewimage/<?=$res->fields['id']?>" title="Extreme Graffiti ">Extreme Graffiti </a></span><br/> <span class="clickhere"><a href="<? echo ("$url"); ?>myspace-layouts/preview/<?=$res->fields['id']?>" title="Click to Preview">Preview</a> // <a href="<a href="<? echo ("$url"); ?>myspace-layouts/viewimage/<?=$res->fields['id']?>" title="Click to Get Code">Code</a></span></div></td> <br /> <? $theCounter++; $res->MoveNext(); } ?> <div class="left_articles"><div align="right"><a href="<? echo ("$url"); ?>myspace-layouts">All Images >></a></div></td></div>
-
This code displays recent image that i uploaded. It set so it shows 5 Recent Images. But The List Gose Straight Down. I want it to go Straight across. This code is repeated 5 times. <table border="0" cellspacing="0" cellpadding="2" align="center" width="680px"><tr><td align="center"><a href="<a href="<? echo ("$url"); ?>myspace-layouts/viewimage/<?=$res->fields['id']?>"><img src="<? echo ("$url"); ?>userpics/layouts/thumbnail/<?=$res->fields['thumbnail']?>" height="140" width="140" alt="Extreme Graffiti " class="webgames"/></a> <div class="right-links"> <span class="subtitle"><a href="<? echo ("$url"); ?>myspace-layouts/viewimage/<?=$res->fields['id']?>" title="Extreme Graffiti ">Extreme Graffiti </a></span><br/> <span class="clickhere"><a href="<? echo ("$url"); ?>myspace-layouts/preview/<?=$res->fields['id']?>" title="Click to Preview">Preview</a> // <a href="<a href="<? echo ("$url"); ?>myspace-layouts/viewimage/<?=$res->fields['id']?>" title="Click to Get Code">Code</a></span></div></td>
-
Anyone I really need this last part! :'(
-
So how dose it decide on what the thumbnail width and height is going to be? ???
-
I want the thumbnail to be a certain size such as 150X150? Not sure how to change it tho. function make_thumbnail($img, $thmb, $w, $h) { list($width, $height) = getimagesize($img); $new_width = ($width > $w) ? $w : $width; $new_height = ($height > $h) ? $h : $height; $ext = explode( ".", $img ); $ext = strtolower( $ext[count( $ext )-1] ); switch ($ext) { case 'gif': $type = 'gif'; break; case 'jpg': $type = 'jpeg'; break; case 'jpeg': $type = 'jpeg'; break; case 'png': $type = 'png'; break; } $image_p = imagecreatetruecolor($new_width, $new_height); switch( $type ) { case 'gif': $image = imagecreatefromgif($img); break; case 'jpeg': $image = imagecreatefromjpeg($img); break; case 'png': $image = imagecreatefrompng($img); break; } $white = imagecolorallocate($image_p, 255, 255, 255); imagefill($image_p, 1, 1, $white); imagecopyresampled($image_p, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height); switch ($type) { case 'gif': imagegif($image_p, $thmb); break; case 'jpeg': imagejpeg($image_p, $thmb, 100); break; case 'png': imagepng($image_p, $thmb); break; } } $pre_action = explode(";", $_GET['opt']); $action = $pre_action[0]; foreach ( $pre_action as $a => $b ) { if ( $a > 0 ) { $sub_action[] = $pre_action[$a]; } } ?>
-
Hey I figured it out Thanks alot!
-
Hehe, Thanks. No its not for Myspace Its for my myspace resource site. It is used to desgin skins. I want to be able for them specify the image url and than create the code for the background.
-
Hey everyone! i need help on real simple script. Its for a myspace script im trying to desgin. What i need it to do is when they enter a url of an image in a url box and click post it submits to a page and it adds the url to the Code. Such as if the image was http://google.com/image.jpg and they hit post it shows. So everytime some just post the url it will just change the image url code part. <style> .i {display:none;} table table div {width:295px; height:51px;} table div table div, table table td.text div, div table table div, table table table div {width:auto; height:auto;} [b]table table div {background-image:url(http://google.com/image.jpg);[/b] background-repeat:repeat-x; background-position:LEFT TOP;} table div table div, div table table div, table table table div, table table td.text div {background-image:none;} table table div object, table table div embed {-moz-opacity:0.2; filter: alpha(opacity=20);} table table table div object, table table table div embed, table table td.text div object, table table td.text div embed {-moz-opacity:1.0; filter:none;} </style>
-
Hey im using Ajax and Php To Insert Data Into the database. Can Someone Please CHeck my Code! Also Check The Php Cause Im not 100% Good At it. I keep just getting Just a second... In the Response Div Lol. Html <form action="javascript:insert()" method="post"> <input name="keyword" type="text" id="keyword" value=""/> <input name="name" type="text" id="name" value="<# FILENAME #>"/> <input type="submit" name="Submit" value="Insert"/> <div id="insert_response"></div> The <# FILENAME #> Is a template System It Pull The file name From the Database. Ajax.js /* ---------------------------- */ /* XMLHTTPRequest Enable */ /* ---------------------------- */ function createObject() { var request_type; var browser = navigator.appName; if(browser == "Microsoft Internet Explorer"){ request_type = new ActiveXObject("Microsoft.XMLHTTP"); }else{ request_type = new XMLHttpRequest(); } return request_type; } var http = createObject(); /* -------------------------- */ /* INSERT */ /* -------------------------- */ /* Required: var nocache is a random number to add to request. This value solve an Internet Explorer cache issue */ var nocache = 0; function insert() { // Optional: Show a waiting message in the layer with ID login_response document.getElementById('insert_response').innerHTML = "Just a second..." // Required: verify that all fileds is not empty. Use encodeURI() to solve some issues about character encoding. var keyword= encodeURI(document.getElementById('keyword').value); var name = encodeURI(document.getElementById('name').value); // Set te random number to add to URL request nocache = Math.random(); // Pass the login variables like URL variable http.open('get', 'insert.php?site_url='+site_url+'&name=' +name+'&nocache = '+nocache); http.onreadystatechange = insertReply; http.send(null); } function insertReply() { if(http.readyState == 4){ var response = http.responseText; // else if login is ok show a message: "Keyword added". document.getElementById('insert_response').innerHTML = 'Keyword added:'+response; } } And Php <?php // ======================================== \ // Package: Mihalism Multi Host // Version: 4.0.0 // Copyright (c) 2007, 2008 Mihalism, Inc. // License: http://www.gnu.org/licenses/gpl.txt GNU Public License // ======================================== / require_once "./source/includes/data.php"; if(isset($_GET['keywordl']) && isset($_GET['name'])){ $keyword= $_GET['keyword']; $name= $_GET['name']; $insertKeyword_sql = "UPDATE `mmh_file_storage` SET `keyword` = '{$keyword}' WHERE `filename` = '{$name}'"; $insertKeyword= mysql_query($insertKeyword_sql) or die(mysql_error()); echo $keyword; } else { echo 'Error! Please fill all fileds!'; } ?>
-
They dont help on the support forum, Thats why its so retarted
-
No one going to help? I really need help bad... Just this one time, I been Trying to DO it my self but i cant get it.
-
I really need help, this is the last part that i need done
-
Here Some More Help. Right Now This Is How It Is. But This Is How I am trying to get it to be.
-
Hey Sorry About that lordfrikk is correct that is a template tag. Thanks For the Reply Helraizer But i know how to put keywords into the database. But The Values For -file_id -filename -gallery_id -album_id -file_title Are Inserted when you upload the file, But now what i want to do is upload keywords and Categories if you under stand. Something Like This. <?php $sql = "INSERT INTO (`keyword`,`categories`) VALUES ('$keyword','$category')"; //NULL assuming the id is auto_increment $result = mysql_query($sql) or die("Error in sql: ".mysql_error()); ?> But This I Dont Understand How to do this. This Code Here Is repeated. So if you upload more than 1 image it just repeats itself. I want to add a List box that has predefined categories and a Input Field for the keywords. But just one submit button if you understand. I dont know how to submit all the fields and how to get it to submit to switch image. <if="is_file($mmhclass->info->root_path.$mmhclass->info->config['upload_path'].$mmhclass->funcs->thumbnail_name("<# FILENAME #>")) == false && preg_match("/links|viewer/", $mmhclass->input->server_vars['php_self']) == false && $mmhclass->templ->templ_globals['extension'] != "bmp" && $mmhclass->templ->templ_globals['extension'] != "ico""> <div style="text-align: center;"> <b>Notice</b>: Failed to generate thumbnail for file <b><# FILENAME #></b> because of an internal error. <br /><br /> </div> </endif> <if="preg_match("/viewer/", $mmhclass->input->server_vars['php_self']) == false"> <div style="text-align: center;"> <a href="viewer.php?file=<# FILENAME #>" class="button1">View Full Image</a> </div> <br /> </endif> <table cellpadding="5" cellspacing="0" width="100%"> <tr> <td style="width: 80%;"> <table width="100%" border="0" cellspacing="1" cellpadding="0"> <tr> <td><input readonly="readonly" class="input_field" onclick="javascript:highlight(this);" type="text" style="width: 310px" name="option" value="<# BASE_URL #><# UPLOAD_PATH #><# FILENAME #>" /></td> <td>Direct Link</td> </tr> <tr> <td><input readonly="readonly" class="input_field" onclick="javascript:highlight(this);" type="text" style="width: 310px" name="option" value="<a href="<# BASE_URL #>viewer.php?file=<# FILENAME #>"><img src="<# THUMBNAIL #>" border="0" alt="<# FILENAME #>" /></a>" /></td> <td>Thumbnail for Websites</td> </tr> <tr> <td><input readonly="readonly" class="input_field" onclick="javascript:highlight(this);" type="text" style="width: 310px" name="option" value="[url=<# BASE_URL #>viewer.php?file=<# FILENAME #>][img=<# THUMBNAIL #>][/url]" /></td> <td>Thumbnail for forums</td> </tr> <tr> <td><input readonly="readonly" class="input_field" onclick="javascript:highlight(this);" type="text" style="width: 310px" name="option" value="Thanks to <# SITE_NAME #> for <a href="<# BASE_URL #>">Free image hosting</a>" /></td> <td>Link to us</td> </tr> <tr> <td><input readonly="readonly" class="input_field" onclick="javascript:highlight(this);" type="text" style="width: 310px" name="option" value="[url=<# BASE_URL #>][img=<# BASE_URL #><# UPLOAD_PATH #><# FILENAME #>][/url]" /></td> <td>Hotlink for forums</td> </tr> <tr> <td><input readonly="readonly" class="input_field" onclick="javascript:highlight(this);" type="text" style="width: 310px" name="option" value="<a href="<# BASE_URL #>"><img src="<# BASE_URL #><# UPLOAD_PATH #><# FILENAME #>" border="0" alt="<# SITE_NAME #>" /></a>" /></td> <td>Hotlink for Websites</td> </tr> </table> </td> </tr> </table>
-
Anyone? Trying to stay uplate and get this.. ???
-
??? Im Stuck! I been stuck for a long time :'( Okay im trying to add keywords/categories. Right Now i got a Multi upload image hoster. When you upload images it gose to a page that displays links. On that page i am trying to put a box with Keyword input box and a List box with the categories. When a user uploads more than one image code below is just repeted. I finished the part to search the database but i cant add the keywords to the database i keep failing. The Database is called mmh_file_storage -file_id -filename -gallery_id -album_id -file_title -keyword -categories <if="is_file($mmhclass->info->root_path.$mmhclass->info->config['upload_path'].$mmhclass->funcs->thumbnail_name("<# FILENAME #>")) == false && preg_match("/links|viewer/", $mmhclass->input->server_vars['php_self']) == false && $mmhclass->templ->templ_globals['extension'] != "bmp" && $mmhclass->templ->templ_globals['extension'] != "ico""> <div style="text-align: center;"> <b>Notice</b>: Failed to generate thumbnail for file <b><# FILENAME #></b> because of an internal error. <br /><br /> </div> </endif> <if="preg_match("/viewer/", $mmhclass->input->server_vars['php_self']) == false"> <div style="text-align: center;"> <a href="viewer.php?file=<# FILENAME #>" class="button1">View Full Image</a> </div> <br /> </endif> <table cellpadding="5" cellspacing="0" width="100%"> <tr> <td style="width: 80%;"> <table width="100%" border="0" cellspacing="1" cellpadding="0"> <tr> <td><input readonly="readonly" class="input_field" onclick="javascript:highlight(this);" type="text" style="width: 310px" name="option" value="<# BASE_URL #><# UPLOAD_PATH #><# FILENAME #>" /></td> <td>Direct Link</td> </tr> <tr> <td><input readonly="readonly" class="input_field" onclick="javascript:highlight(this);" type="text" style="width: 310px" name="option" value="<a href="<# BASE_URL #>viewer.php?file=<# FILENAME #>"><img src="<# THUMBNAIL #>" border="0" alt="<# FILENAME #>" /></a>" /></td> <td>Thumbnail for Websites</td> </tr> <tr> <td><input readonly="readonly" class="input_field" onclick="javascript:highlight(this);" type="text" style="width: 310px" name="option" value="[url=<# BASE_URL #>viewer.php?file=<# FILENAME #>][img=<# THUMBNAIL #>][/url]" /></td> <td>Thumbnail for forums</td> </tr> <tr> <td><input readonly="readonly" class="input_field" onclick="javascript:highlight(this);" type="text" style="width: 310px" name="option" value="Thanks to <# SITE_NAME #> for <a href="<# BASE_URL #>">Free image hosting</a>" /></td> <td>Link to us</td> </tr> <tr> <td><input readonly="readonly" class="input_field" onclick="javascript:highlight(this);" type="text" style="width: 310px" name="option" value="[url=<# BASE_URL #>][img=<# BASE_URL #><# UPLOAD_PATH #><# FILENAME #>][/url]" /></td> <td>Hotlink for forums</td> </tr> <tr> <td><input readonly="readonly" class="input_field" onclick="javascript:highlight(this);" type="text" style="width: 310px" name="option" value="<a href="<# BASE_URL #>"><img src="<# BASE_URL #><# UPLOAD_PATH #><# FILENAME #>" border="0" alt="<# SITE_NAME #>" /></a>" /></td> <td>Hotlink for Websites</td> </tr> </table> </td> </tr> </table>
-
Hahahaa.. Its My Name. Lol By the way are you the creator of Craygo Craige List Poster? LIke Photobucket after you upload it has a place for title and description. Mine Has MultiUpload and it uploads fine and it go to the page with links after its done.
-
I need help with a script. I have a script that can upload images. after it uploads it shows the link for that image. i want to be able to add keywords on that page. any idea
-
I am having trouble adding keywords to an image uploader. It is a multiuploader so it has alot more than one upload box. If it was just one upload box i could do it but since it is more than one i am having problems. In the upload part this $extension=$mmhclass->funcs->file_extension($mmhclass->input->file_vars['userfile']['name'][$i]); $filename = ($mmhclass->funcs->random_string(20).".{$extension}"); $thumbnail = $mmhclass->funcs->thumbnail_name($filename); $filetitle = strip_tags((strlen($mmhclass->input->file_vars['userfile']['name'][$i]) > 20) ? (substr($mmhclass->input->file_vars['userfile']['name'][$i], 0, 20)."...") : $mmhclass->input->file_vars['userfile']['name'][$i]); I did have a make an input box like this name="keyword" type="text" size="50" And put that up their. $keyword = ($mmhclass->funcs->random_string(20).".{$extension}"); But it just store random strings witch it suppose to. I put the keyword part in here. $mmhclass->db->query("INSERT INTO `mmh_file_storage` (`filename`, `is_private`, `gallery_id`,`keyword`, `file_title`) VALUES ('{$filename}', '{$mmhclass->input->post_vars['private_upload']}', '{$mmhclass->info->user_data['user_id']}','{$keyword}', '{$filetitle}'); "); Any Help Please!