DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • December 15, 2018, 05:20:25 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1] 2 3 ... 6   Go Down
  Print  
Author Topic: Emoticons for 0.9.8 pre-9  (Read 22331 times)
0 Members and 1 Guest are viewing this topic.
lonnyl
Guest
« on: October 19, 2004, 07:15:54 AM »

Ok.... This requires pre-9 and also has a patch for commentary.php for this to work......

Needed to hook after previous next display so added hook with the patch... the hook is called commentarytrail, as it is trailing the commentary.....

There are no images included with this.. you will need to find or create your own emoticon images (52 of them)  I personally did a search for emoticons and found a bunch of good ones for my own use, but I did not create them so I will not be re-distributing them.  

Thanks to Kendear for adding hooks...  

Very simple module and works just like what was outlined for 0.9.7

May add preferences in the future so that a player can choose to display emoticons or not...

TO DO: I think I will be changing the colons to stars on the key so that emotions don't turn into actions if they are the first thing on the text line....

http://www.pqcomp.com/modules/mydownloads/visit.php?cid=3&lid=42
« Last Edit: January 30, 2005, 11:35:22 AM by lonnyl » Logged
lonnyl
Guest
« Reply #1 on: October 19, 2004, 09:31:23 AM »

Updated right off.... liked the stars instead of colons much better and doesn't conflict with actions....
Logged
Spider
Guest
« Reply #2 on: October 22, 2004, 05:25:00 AM »

it's not that important I know, but as you changed to stars in the module you should probably change to stars from colons in the text file you supply with it.

There is also a typo in the uninstall function:
Code:
output("`4Installing Emoticons Module.`n");

should be:
Code:
output("`4Uninstalling Emoticons Module.`n");

Nice module though, I hope you don't mind but I've ripped it apart and changed all the emoticon replace things so that it works for the more standard smilies like : ), full credit to you though Smiley

Logged
lonnyl
Guest
« Reply #3 on: October 22, 2004, 06:22:11 AM »

You can change it to fit your needs.... I made it the way it is however so that users have a choice to use graphical emoticons or their text smileys....  and now with 98 and the user prefs settings users can turn it off if they don't like all the images.... and yet still see the smileyname *biggrin*... I don't know there was alot of debate on our end on which way would be best...... and originally in 97 we used the colons and modified the commentary code to accomidate the colons better.  In 98 I wanted to stay out of the code as much as possible so..... the stars were our soloution (and many forum systems I looked at work the same way)....
Logged
lonnyl
Guest
« Reply #4 on: November 19, 2004, 08:23:31 AM »

Updated to ver 1.2...
Now with clickable emoticons....

Needs a patch to commentary.php for Pre-10
The talkform needs to be named for this to work the patch addresses line 530
Code:
output_notl("<form action=\"$req\" method='POST' autocomplete='false'>",true);
and changes it to
Code:
output_notl("<form action=\"$req\" method='POST' autocomplete='false' name=\"talkform\">",true);

the patch is included, you may use it or copy and paste the line above....



« Last Edit: November 19, 2004, 08:24:19 AM by lonnyl » Logged
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #5 on: December 23, 2004, 05:07:55 AM »

one of the things that i hesitate to post again lonnyl, so not as to take away from the greatness of the module, but...
if there were an admin interface for the emoticon trigger, and url, it might improve this module.  the reason for these changes i suggest, is that i, and maybe others, will need to edit your code to fit our games.  i don't want all those emoticons, and i want quite a few others.
the queries to the DB would be a little taxing though, so this one is a little less probable of finding a viable solution.  take my suggestions with very little seriousness, just brainstorming and trying to think of ways to improve things.
Logged

lonnyl
Guest
« Reply #6 on: December 23, 2004, 06:03:31 AM »

This is one module that will HAVE to be modified to suit your needs....
Logged
Spider
Guest
« Reply #7 on: December 23, 2004, 06:52:28 AM »

it would be possible to set up a simple emoticons table in the database to store the replaced text and the URL, using the database is the only way you could do what you're suggesting though sixfoot4
Logged
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #8 on: December 23, 2004, 07:21:43 AM »

right spider, like i said, it would take a lot of db work to compare for a emoticon trigger.  You're right lonnyl, i just wanted to throw the idea out of my head, help me sleep better in the afternoon (cuz i work at night Tongue )
Logged

lonnyl
Guest
« Reply #9 on: December 23, 2004, 07:23:19 AM »

it would be possible to set up a simple emoticons table in the database to store the replaced text and the URL, using the database is the only way you could do what you're suggesting though sixfoot4

and greatly increasing sql calls.... and entering all this info in the game settings is at  least as difficult as changing it in the script.....   I could set up a bunch of variables that one could change.... but then again a find and replace is just as simple....

I really still feel that editing this to fit your needs is the BEST way at this time.  If we could find some public domain emoticons to distribute with it would be optimal.... but I as of yet have not found any.
Logged
Dannic
Guest
« Reply #10 on: December 26, 2004, 05:50:19 PM »

Just for your info and your  faq Smiley

Code:
               "category"=>"PQcomp",
      "allowanonymous"=>true,
      "override_forced_nav"=>true,
      "prefs"=>array(

Also:

Code:
module_addhook("faq-toc");

And:

Code:
case "faq-toc":
         $t = translate_inline("`@Frequently Asked Questions on Emoticons`0");
         output_notl("&#149;<a href='runmodule.php?module=emoticons&op=faq'>$t</a><br/>", true);
         break;

almost there:

Code:
function emoticons_run(){
   global $session;
   $op = httpget("op");
   
   if ($op != "faq") {
      require_once("lib/forcednavigation.php");
      do_forced_nav(false, false);
   }
   
   if ($op == "faq") {
      emoticons_faq();
   }

}

function emoticons_faq() {
   tlschema("faq");
   popup_header("Emoticon Questions");
   $c = translate_inline("Contents");
   rawoutput("<a href='petition.php?op=faq'>$c</a>");
   output("`n`n`c`bQuestions about Emoticons`b`c`n`n");
   output("`^1. Why are there little faces smiling at me?`n");
   output("`@That's because they know what you are doing.`n");
   output("Ok. So they really don't know what you are doing.  Though I'm sure if we tried to take over your webcam we could figure it out.`n");
   output("These little faces you see are really called Emoticons.  They are emotions in graphical form.`n`n");
   
   output("`^2. Where can I get them?`n");
   output("`@You really can't catch them.  They aren't contagioius.  It is just a serise of keystrokes and they appear in the commentary.`n`n");
   
   output("`^3. Ok, I guess I didn't ask the right question then.  How do you make emoticons?`n");
   output("`@Emoticons can only be made in the commentary.  There is a small list of them.");
   output("They all are enclosed in asteriks(*).  The following is a list of emoticons.`n`n");
   output("*frown*`n");
   output("*grin*`n");
   output("*lol*`n");
   output("*mad*`n");
   output("*redface*`n");
   output("*rolleyes*`n");
   output("*shocked*`n");
   output("*tongue*`n");
   output("*wink*`n");
   output("*confused*`n");
   output("*cry*`n`n");
   
   output("`^4. They are so small.`n");
   output("`@Do you hear that often?  Sorry, but to help cut down on page loading time it is best to keep them small.`n`n");
   
   output("`^5. I dont' see one I like.  Can you add more?`n");
   output("`@Sure, you find them and if I like them I will add them to the list.`n`n");
   
   popup_footer();
}

I only did a couple.  You can add to them as you like.
Logged
CortalUX
Dwellings Project
Mod God
*****
Offline Offline

Posts: 796


Wogga! Meep!


View Profile WWW
« Reply #11 on: December 30, 2004, 01:38:23 PM »

I've put Dannic's modificications in a zip file in my shared folder.
I think I've also managed to make them translation ready.
http://dragonprime.net/users/CortalUX/emoticons.zip
Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #12 on: December 31, 2004, 07:34:41 PM »

I really don't know why... but I made a good load of these emoticons. I give permission for you to distribute them. All hand-crafted by Sichae.

I missed 9 of them, because I really hand to idea what to do for them:
  • :doh: = doh.gif
  • :clap: = clap.gif
  • :lie: = lie.gif
  • :bateyes: = bateyes.gif
  • :pray: = pray.gif
  • :peace: = peace.gif
  • :nono: = nono.gif
  • :groove: = groove.gif
  • :giggle: = giggle.gif
  • :yakyak: = yakyak.gif
http://dragonprime.net/users/Sichae/emotepack.zip

If anyone wants to make those last nine, feel free to... I have no idea what they would even be like.
Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #13 on: January 18, 2005, 04:24:49 AM »

line 201 in cortal's
Code:
 output("*frown*`n",);

take out that comma.
Logged

sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #14 on: January 18, 2005, 04:50:53 AM »

fixed that issue, and also added settings for height and width of the emoticons.  Some of us aren't are visually impared as lonny  Tongue


http://dragonprime.net/users/sixf00t4/emoticons-not%20for%20download.zip
Logged

Pages: [1] 2 3 ... 6   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
89 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search