Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Emotikony
Louner
post
Post #1





Grupa: Zarejestrowani
Postów: 99
Pomógł: 5
Dołączył: 20.06.2005
Skąd: Bielsk Podlaski

Ostrzeżenie: (0%)
-----


Witam
Chciałbtm się zapytać, czy istnieje jakiś gotowy skrypt który konwertuje odpowiednie znaki na emotikony? Nie mam jeszcze tyle doświadczenia w programowaniu, żeby napisać własny. Szukałem takowego na stronach:

http://php.skryptoteka.pl/
na hasła: emoty, emotikony, konwerter znaków

http://www.webinside.pl/skrypty
na hasła: emoty, emotikony, emotki

http://www.wirtuals.net/

http://www.megaskrypty.com/index.php?cat=3

http://www.hotscripts.pl/index.php

http://php.resourceindex.com/search/index.cgi


Wszystko okazało się płonne. Czy ktoś mógłby mi pomóc ? (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)

Ten post edytował Louner 26.07.2005, 20:33:41
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
4d3x
post
Post #2





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 18.06.2005
Skąd: Rybnik

Ostrzeżenie: (0%)
-----


  1. <?php
  2. $dzial = '8';
  3.  
  4. $sql=&#092;"SELECT p.post_id, pt.post_id, pt.post_text, pt.bbcode_uid, t.topic_id, t.to
    p
  5. c_title, t.topic_first_post_id, t.forum_id, t.topic_replies, u.user_id,
  6.  
  7. u.username, u.user_posts, u.user_rank
  8.  FROM &#092;".TOPICS_TABLE.\" t, \".USERS_TABLE.\" u, \".POSTS_TABLE.\" p, \".POSTS_TEXT_TABLE.\" pt
  9.  WHERE t.forum_id = $dzial
  10.  AND t.topic_poster = u.user_id
  11.  AND t.topic_first_post_id = pt.post_id
  12.  AND t.topic_first_post_id = p.post_id
  13.  ORDER BY pt.post_id DESC&#092;";
  14.  $query=mysql_query($sql);
  15.  while(
  16. $result=mysql_fetch_assoc($query))
  17.  {
  18. $text = $result['post_text'];
  19. $text = bbcode_strip($text, $result['bbcode_uid']);
  20.  
  21. $text = str_replace(&#092;":)\", \"<img src=\"forum/images/smiles/icon_smile.gif\">\", $text);
  22. $text = str_replace(&#092;";)\", \"<img src=\"forum/images/smiles/icon_wink.gif\">\", $text);
  23. $text = str_replace(&#092;":P\", \"<img src=\"forum/images/smiles/icon_razz.gif\">\", $text);
  24. $text = str_replace(&#092;"X)\", \"<img src=\"forum/images/smiles/icon_twisted.gif\">\", $text);
  25. $text = str_replace(&#092;":D\", \"<img src=\"forum/images/smiles/icon_biggrin.gif\">\", $text);
  26. $text = str_replace(&#092;":(\", \"<img src=\"forum/images/smiles/icon_sad.gif\">\", $text);
  27. $text = str_replace(&#092;"->\", \"<img src=\"forum/images/smiles/icon_arrow.gif\">\", $text);
  28. $text = str_replace(&#092;";(\", \"<img src=\"forum/images/smiles/icon_cry.gif\">\", $text);
  29.  
  30. $link = append_sid('viewtopic.' . $phpEx . '?t=' . $result['topic_id']);
  31. if (strlen($text) > 1000){
  32. $text = substr($text, 0, 1000).'...[space][space] <a href=\"forum/'.$link.'\" class=\"wiecej\">Wiecej</a>';}
  33. $text = str_replace('
  34. ', '<br>', $text);
  35. $author = ' ';
  36. echo '<div style=\"text-align:justify; background:#FCFCFC; border: solid #CACACA 1px; padding:5px; margi
    n:5px; font-size:10pt\"><b><a
  37.  
  38. href=\"forum/'.$link.'\" class=\"tytul_newsa\">'.$result['topic_title'].'</a></b><hr width=\"90%\" align\"center\"><span
  39.  
  40. class=\"news\">'.$text.'</span><div align=\"right\"><br /><span class=\"autor\">'.$author.' :: </span><a href=\"forum/'.$link.'\"
  41.  
  42. class=\"autor\">Komentarzy: <span class=\"autor_red\">'.$result['topic_replies'].'</span></a></div></div>';
  43. }
  44. ?>


Powinno być dobrze
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 6.10.2025 - 05:13