Jump to content

fdLP.

Legendary Member
  • Posts

    3,957
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by fdLP.

  1. Gloore is a website where people share their programming and other related topics tutorials, snippets, tutorials as links, discuss in the discussion boards. Each user can rate,comment,favorite and share each tutorial to their favorite site... by registering you get your own profile where you can update your status, share messages, get notifications, become friend with others and get their activity feed... and also comment on their profile.... Others features to come... We just launched so we need people to try our app and give us as much feedback as possible... You can either reply here with feedback or on our boards. Link at http://www.gloore.com Thanks. PS: this is intented as feedback topic and not advertising.
  2. as i can see from the code which in no way well documented... this script does not store your images in your database so you dont have any ID atm for any image uploaded via this script. So what i would suggest is on file upload connect to your database and store an ID with its filename in a table. Then when a user goes to ?id=image_id you will check against the db and show if there is any image with this ID -------------------------------------- So this is how you do it: create a table called images with 3 fields(if you want to track your users you can add other aswell which i dont cover here) -id INT 11 primary auto increment -image_id INT 11 -image_name TEXT then search for $URLvim = URL_SCRIPT.'?v='.$name; and replace with $URLvim = URL_SCRIPT.'?id='.$image_id; search for } // La funcion and add after it //check if the image id exists $img_id = rand(1000000000, 9999999999); $flag = FALSE; while ($flag==FALSE){ $query = mysql_query("SELECT * FROM images WHERE image_id='$img_id'"); $rows = mysql_num_rows($query); if ($rows==0){ $flag = TRUE; }else{ $img_id = $userf->rand(1000000000, 9999999999); $flag = FALSE; } } if ($flag == true){ mysql_query("INSERT INTO images VALUES ('', '$img_id', '$name')"); $image_id = $img_id; } search for if ($_GET['v']) { and replace with if ($_GET['id']) { below this line change $id = $_GET['v']; to $id = $_GET['id']; search for $v = $_GET['v']; if ($v=='.htaccess') { unset($v); $v=''; } and change it to $v = $_GET['id']; if ($v=='.htaccess') { unset($v); $v=''; } search for if (file_exists($imagen)==true) { till else last bracket and comment the whole if...else... clause and add after //check if ID exists in DB and if it exsits get the name and continue $query = mysql_query("SELECT * FROM images WHERE image_id='$id'"); if (mysql_num_rows($query)){ //image exist $rows = mysql_fetch_array($query); $image_id = $rows["image_id"]; $image_name = $rows["image_name"]; $imagen = DIR_IM.$image_name; $name = $image_name; $titulo = SEEING.' '.$id.' '.AT.' '; $info = getimagesize($imagen); //Obtenemos la informacion $statinfo = @stat($imagen); $ancho = $info[0]; $alto = $info[1]; $mime = $info['mime']; $tamano = $statinfo['size']; //Bytes $tamano_kb = round($tamano*0.0009765625, 2); $canales = $info['channels']; }else{ unset($modo); $modo = 1; $spit = true; $errormsg = NOT_EXISTS; $titulo = NOT_EXISTS_TITLE.ESP_TITULO; } or if you cant make it... send me your engine.php file
  3. I dont see why not to post here, since its a script not made by you.
  4. if your link is for example domain.com/image/imagename.jpg you can change it to domain.com/?id=image_id image_id can be the ID that you have assigned into your database as imagename.jpg you have to show us your code in order to change it.
  5. so you have image/imagename.png and want it to go to ?id=image_id?
  6. so you want to change http://yoursite.com/?di=1013081552314 to http://yoursite.com/image/imagename.png if so, i dont think its a good practise because others can upload an image with the same name so which one you will be serving to each one? i would go with http://domain.com/images/image_id/image_name if you wanna do it as this, reply and ill code it as soon as possible.
  7. http://docs.simplemachines.org/index.php?board=2.0;sort=subject
  8. οταν προσπαθεις σε localhost δεν γινεται να δεις την wan ip σου αλλα μονο την lan. δοκιμασε παντως εδω : http://www.whatismyip.com/faq/automation.asp
  9. εαν προσπαθεις να στειλεις απο το pc σου, ισως να μην λειτουργει και να χρειαζεσαι live server για να δουλεψει. Αλλιως μπορεις να χρησιμοποιησεις καποια open source email projects οπως PHPMailer, SwiftMaler(googlαρε)
  10. $my_email = 'nick_171717@hotmail.com'; $headers = 'From: '.$visitor_email."\r\n". 'X-Mailer: PHP/' . phpversion(); $subject = 'New Form submission'; $recieved_message = "You have received a new message from the user $name.\n"; $recieved_message .= "Here is the message:\n $message"; @mail($my_email, $subject, $recieved_message, $headers); δοκιμασε τον παραπανω κωδικα.
  11. @BsCyB επειδη εχω δουλεια, κοιταξε εδω => http://gloore.com/#/stergosz/tutorials/49314594096 και αργοτερα θα το δω.
  12. εφοσον δεν εμφανιζεις τιποτα αλλα κανεις post μονο, το htmlentities δεν το χρειαζεσαι. Δοκιμασε τον παρακατω κωδικα: επεισης , δες αν η database σου ειναι utf8_unicode_ci οπως και ολα τα tables σου, τα columns που εχουν κειμενο και οπως ειπα και να βαλεις και το meta tag <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> μετα το head tag.
  13. εφοσον εχεις μια φορμα που κανεις POST στην database σου, οταν πατησεις το button της φορμας σου και πριν βαλεις τα data μεσω του mysql_query("INSERT INTO ...."); οτιδηποτε μεταβλητη θα την περνας μεσω του mysql_real_escape_string() π.χ $text = mysql_real_escape_string($text); // εαν βαλω π.χ '1' or '' θα το κανει escape => \'1\' or \'\' ετσι ωστε να αποφυγεις το SQL injection εαν θες να εμφανισεις κατι που ειναι se foreign characters, πρεπει να το τρεξεις μεσω του htmlentities($text, ENT_COMPAT, 'UTF-8') , ετσι ωστε να κανει encode ολους τους χαρακτηρες... εαν παλι εχεις προβλημα, ποσταρε το μερος του κωδικα που χρησιμοποιεις για αυτη την λειτουργια
  14. μετα το connection με την database σου, βαλε mysql_query("SET NAMES UTF8"); οταν κανεις POST data στο column travel_description, απλα κανε escape το text μεσω του mysql_real_escape_string() οταν το εμφανιζεις, χρησιμοποιεισαι στο text για να διαβασει σε UTF-8 διαβασε περισσοτερο για to function αυτο στο php.net $text = htmlentities($text, ENT_COMPAT, 'UTF-8'); πρεπει παντα να χρησιμοποεις UTF8(MySQL) και UTF-8(Browser) encoding. επισης στο <head> tag βαλε <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> εαν εχεις και παλι προβλημα, reply.
  15. to site auto einai basismeno sto wordpress, exei ena thema panw kai alla tweaks
  16. den to vazeis sto a:link alla mono sto a{} kai tha kanei underline mono to text mesa sto button dhladh prospathise #menu a{text-decoration:underline;} an thes na valeis thn katw grammh(border) sto button epeidh leipei apo oti vlepw xrhsimopoieis eikones to opoio den briskw ton logo na to kaneis dioti kai to border radius yparxei sto CSS (borde-radius Xpx Xpx Xpx Xpx) kai to border mporeis na to valeis me border:1px solid #A1A1A1;(Peripou to xroma tou border apo tin eikona pou edwses) an thes na valeis
  17. efoson exei text-decoration:none; sta links otan clickareis h kaneis hover sta links sou bgazei akoma ta links ws underline? prospathise na ftiakseis ena allo class sta anchors kai dwse tou text-decoration:none; gia to 2ro erwthma , ennoeis contact form?yparxoun diafora etoima scripts arkei na googlareis
  18. edit to post sou kai kantou pm
  19. edit to post sou kai kantou pm
  20. edit to post sou kai kantou pm
  21. δεν ειναι dead, το bbcode εγινε miss spell μαλλον. πηγαινε εδω: http//www.gloore.com/profile.php?id=31105283426&ga=tutorials&tid=16489468987 εννω οτι το εγραψα στα γρηγορα και οπως βλεπεις δεν εχει ενα τρελο interface και προφανως χρειαζεται προστασια απο multiple votes απο ιδιο IP,user(αν εχεις members) και γενικα μπορεις να προσθεσεις και αλλα features πανω του... Μπορεις να ποσταρεις τι προσθετα θες και οταν εχω χρονο θα βοηθησω.
  22. http://www.usa.canon.com/cusa/support/consumer/printers_multifunction/pixma_mp_series/pixma_mp210
  23. Almost every big website does use of javascript. With javascript you can mostly do stuff without refreshing pages with using frameworks such as jQuery and others. jQuery can be combined with PHP which gives the user the ability to do stuff in a website such as post and show a new comment without reloading the page.
  24. μπορεις να πας εδω => Gloore.com - Simple Vote Up/Down script using JQuery και να δεις ενα απλο script για αυτο που ζητας, δεν το συνιστω για live sites γιατι δεν εχει αρκετη προσπασια αλλα θα καταλαβεις τα βασικα
  25. http://developers.facebook.com/docs/plugins/ ->Activity Feed ή ->Recommendations
×
×
  • Create New...