UBB.Dev
Posted By: Extrm Bob Adding smileys - 03/25/2002 5:50 PM
I never had this problem before so never figured out how to do it.
How do I add more smileys?
Th editors at DMOZ like to use alot of smileys when they post and I have all the custom made smileys we use in our private editor forum. We recently, today infact, opened a public forum so site submitters can get help or ask questions about the workings of the Open Directory.
I have almost a meg of custom smilies that I would like to add, but, I can't figure out how to add them.
Do I upload them to the icon folder?
If I upload them which file do I edit to add the replacements?
On the private DMOZ forum we use replacements vars that all the editors are familiar with. I would like to use them.

On a different topic. I'm playing arround with mod_rewrite to rewrite forum urls to search engine friendly urls. Something along the lines of what Gforum does. The software I use now has a hack you can add for it, but, it is a little buggy. I am refining it so that it will work correctly and when I'm finished I'll port it over the UBBThreads. Would anyone be interested in this sort of hack?

Posted By: Rick Re: Adding smileys - 03/25/2002 5:55 PM
If you are looking for markup smileys then you just need to add them into the icons directory. Then you need to edit ubbt.inc.php. The do_markup and undo_markup functions is where the smileys are converted so you just need to add the new regular expressions in there. Just look for the following in both functions

// Convert the smileys

The hack you are working on sounds great. There are still only a couple of search engines that can search dynamic pages so this would probably come in very handy.
Posted By: AllenAyres Re: Adding smileys - 03/25/2002 11:08 PM
I agree, the SE mod sounds cool []/forum/images/icons/smile.gif[/]
Posted By: Extrm Bob Re: Adding smileys - 03/26/2002 12:39 AM
I'm moving right along with the smilies. Found an easier way instead of using regex and preg_replace.

I started on the SE rewrite mod. I have the rewite rules finished and just have to make the changes in the script and test them out.

One question. I'm doing this with v5.1.
Did you introduce templates in v6?

If you did I'm going to wait until I have v6 before I finish this. It will be much easier to make the changes in the templates and with v6 on the horizon this won't work on the new version. Since it's right arround the corner I think I'll wait.
Posted By: navaho Re: Adding smileys - 03/26/2002 1:28 AM
Yes, templates have been added to V.6. I have your fax by the way, and you have mail coming. []/forum/images/icons/laugh.gif[/]
Posted By: Extrm Bob Re: Adding smileys - 03/26/2002 7:44 PM
Great to here David. I think my wife faxed it 2 times.
Thanks
Posted By: Cola Re: Adding smileys - 03/26/2002 8:48 PM
look at my site, i have tons of smileys and the are stored in folders, just add them by klicking on them. I´ll post the script when i change it so that it can generaly be used.

so long
Cola

http://www.mondmurmel.de
Posted By: XanthViper Re: Adding smileys - 03/27/2002 6:30 PM
Thanks for making this easier Scream. Been something I have been talking about back in the W3 days... []/forum/images/icons/cool.gif[/]
Posted By: Nettomo Re: Adding smileys - 03/27/2002 8:01 PM
Hi Extrm Bob ,

Sorry im not Englisch !

http://www.chattersonline.com/test/...0&fpart=&mon=&year=&cs=2

Nettomo
Posted By: WrÅith Re: Adding smileys - 03/27/2002 9:19 PM
^Looks great! I just wish I could read German. []/forum/images/icons/smile.gif[/]

Anyone want to translate. []/forum/images/icons/crazy.gif[/]
Posted By: Nettomo Re: Adding smileys - 03/27/2002 9:48 PM
Hi WrÅith ,

Dieser Onlinetranslator funzt gut !
This on-line translator funzt well!

http://world.altavista.com/tr

Nettomo
[]/forum/images/icons/cool.gif[/] []/forum/images/icons/cool.gif[/] []/forum/images/icons/cool.gif[/]
Posted By: WrÅith Re: Adding smileys - 03/27/2002 10:29 PM
Danke!

Es scheint, hübsche Vertiefung zu bearbeiten. []/forum/images/icons/smile.gif[/] Ich muß Ihren Code ändern, um mit den Ikonen zu arbeiten, die ich bereits hinzugefügt habe, aber ich denke, daß es funktioniert.

Ich informiere Sie, wann ich es habe, auf meiner Site zu arbeiten.
Posted By: Nettomo Re: Adding smileys - 03/28/2002 11:26 AM
Hi WrÅith ,
für die ersten 10 Smilies ist der UBB-Code bereits im UBBThreads vorhanden ! (Gelben Smilies)
Alle weiteren Smilies muß der UBB-Code (ubbt.inc.php & languages) zugewiesen werden !
(habe ich alles genau dukomentiert)

Hi WrÅith,
for the first 10 Smilies is the UBB code already in the UBBThreads available! (yellow ones SMI-READ) all further Smilies must the UBB code (ubbt.inc.php & LANGUAGES) be assigned! (I have everything exactly dukomentiert)

Nettomo
[]/forum/images/icons/cool.gif[/] []/forum/images/icons/cool.gif[/] []/forum/images/icons/cool.gif[/]
Posted By: dRiver Re: Adding smileys - 03/29/2002 11:04 PM
Here is an english version.

No images included.

make sure you remane your smiles to suit or edit the text to suit your smilie

thanx Nettomo. This hack is absolutley fantastic.

dRiver []/forum/images/icons/cool.gif[/]

sorry forgot attachments still not working

File is here

Attached File
45597-markup.zip  (4 downloads)
Posted By: dRiver Re: Adding smileys - 03/30/2002 6:40 AM
Ok just finished installing this to my board. Works great.

I have re-upped the zip file onto the server so the link in the above post now includes all the images and icons.

Some of the images I have used are different from the original post by Nettomo.

I feel inspired so I will rework this to include List and Poll mark up.

Hope you and your users enjoy this. I know I was missing this feature in UBBThreads.

Full credit to Nettomo for this hack.

dRiver
Posted By: Nettomo Re: Adding smileys - 03/30/2002 5:33 PM
Hi dRiver ,
Wenn es funktioniert ist es wunderbar *gg*

Das Problem ist :
Das Ubbthreads 5.5.1 und seine languages & UBB-Codes
Passen alle nicht zueinander ,
daher erweiterte ich es um einige Codes !

Selbst bei deiner Übersetzung müssen alle Codes angeglichen werden !

Leider bin ich in sachen php Anfänger ,
daher passte ich es nur soweit an wie es mir möglich war .

Wollen wir hoffen das es im Ubbthreads 6.0 besser wird .

Gruß
Uwe


Hi dRiver ,
If it functions is marvelous it * gg *

The problem is: The Ubbthreads 5,5,1 and its LANGUAGES & UBB code fitting everything not to each other, therefore I extended it by some codes!

Even in the case of your translation all codes must be adapted!

Unfortunately I am in things php beginner, therefore I adapted it only so far like it to me was possible.

We want to hope it in the Ubbthreads 6,0 become better.

Greeting Uwe


German languages

[]http://home.nikocity.de/nettomo/bilder/markup.jpg[/]
Posted By: Nettomo Re: Adding smileys - 03/30/2002 8:04 PM
German languages Original Hack
[]http://home.nikocity.de/nettomo/bilder/ubb-textformat-geman.jpg[/]

Englisch languages Original Hack
[]http://home.nikocity.de/nettomo/bilder/ubb-textformat-englisch.jpg[/]

Es liegt an den UBB-Code übersetzungen ,
diese stimmen nicht im UBBThreads 5.5.1

It is because of the UBB code translations, these is correct not in the UBBThreads 5,5,1

Nettomo
Posted By: dRiver Re: Adding smileys - 03/31/2002 2:23 PM
Getting lost in the translation here I thinks

I'll get a test board up asap

[]http://www.lenzmultimedia.com/download/Capture_3.jpg[/]

[]http://www.lenzmultimedia.com/download/Capture2.jpg[/]

I translated the whole lot including the java script so I could keep track. I got the list mark up happening just trying to work on the poll markup. Hard when you dont know java and its trial and error.

anyway test bord will be up soon

Posted By: dRiver Re: Adding smileys - 03/31/2002 5:59 PM
Ok just setup a new testboard.

hmmmmmmmmmm so thats what a clean threads install looks like
been so long I had forgotten

Test Board

I have got the list and poll markup working and have updated the file on the server along with some typo's I made


Download Here

enjoy

dRiver

opps found another one

the scipt gives the table a width of 400 I have set mine to 100% so it can fit the images in. This is in addpost, editpost, newpost and newreply. I have updated the file on the server, so these changes are included. if you downloded it already you need to alter those four files. It occurs at
code:
echo "
<p><br>UBB-Textformat<br>

<table border=0 cellpadding=0 cellspacing=0 width="100%">
<tr>
<td align=left height="18">

Posted By: Nettomo Re: Adding smileys - 04/01/2002 4:54 PM
Hi dRiver ,
nun habe ich sämtlichen Smilies
einen eigenen UBB-Code zugewiesen ,
somit treten auch keine language Probleme
mit den Smilies mehr auf !

Rear ones more dRiver,
now I have all SMI-READ its own UBB code assigned,
thus step also no LANGUAGE of problems with SMI-READ more up!

[]http://home.nikocity.de/nettomo/bilder/ubb-textformat-v2.5.jpg[/]

Download :
http://www.chattersonline.com/test/...0&fpart=&mon=&year=&cs=2

Nettomo
[]/forum/images/icons/grin.gif[/] []/forum/images/icons/grin.gif[/] []/forum/images/icons/grin.gif[/]

Posted By: stanmo Re: Adding smileys - 05/14/2002 8:45 AM
Can someone please post the add smilies hack again? Thanks!
© UBB.Developers