Previous Thread
Next Thread
Print Thread
Rate Thread
#214521 03/25/2002 10:50 AM
Joined: Jun 1999
Posts: 77
Journeyman
Journeyman
Joined: Jun 1999
Posts: 77
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?


Sponsored Links
Rapt0r #214522 03/25/2002 10:55 AM
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
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.


UBB.threads Developer
Rapt0r #214523 03/25/2002 4:08 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
I agree, the SE mod sounds cool []/forum/images/icons/smile.gif[/]


- Allen wavey
- What Drives You?
Sally #214524 03/25/2002 5:39 PM
Joined: Jun 1999
Posts: 77
Journeyman
Journeyman
Joined: Jun 1999
Posts: 77
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.

Rapt0r #214525 03/25/2002 6:28 PM
Joined: Oct 2000
Posts: 2,223
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,223
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[/]


Picture perfect penmanship here.
Sponsored Links
zerind #214526 03/26/2002 12:44 PM
Joined: Jun 1999
Posts: 77
Journeyman
Journeyman
Joined: Jun 1999
Posts: 77
Great to here David. I think my wife faxed it 2 times.
Thanks

Rapt0r #214527 03/26/2002 1:48 PM
Joined: Mar 2002
Posts: 14
Newbie
Newbie
Offline
Joined: Mar 2002
Posts: 14
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

Sally #214528 03/27/2002 11:30 AM
Joined: Apr 2000
Posts: 76
Journeyman
Journeyman
Joined: Apr 2000
Posts: 76
Thanks for making this easier Scream. Been something I have been talking about back in the W3 days... []/forum/images/icons/cool.gif[/]


i run sdstreetracing.com and streetracing.com
Rapt0r #214529 03/27/2002 1:01 PM
Joined: Nov 2001
Posts: 417
Enthusiast
Enthusiast
Joined: Nov 2001
Posts: 417
Hi Extrm Bob ,

Sorry im not Englisch !

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

Nettomo

Orlov #214530 03/27/2002 2:19 PM
Joined: Jan 2002
Posts: 218
Enthusiast
Enthusiast
Offline
Joined: Jan 2002
Posts: 218
^Looks great! I just wish I could read German. []/forum/images/icons/smile.gif[/]

Anyone want to translate. []/forum/images/icons/crazy.gif[/]

Sponsored Links
SDS #214531 03/27/2002 2:48 PM
Joined: Nov 2001
Posts: 417
Enthusiast
Enthusiast
Joined: Nov 2001
Posts: 417
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[/]

Orlov #214532 03/27/2002 3:29 PM
Joined: Jan 2002
Posts: 218
Enthusiast
Enthusiast
Offline
Joined: Jan 2002
Posts: 218
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.

SDS #214533 03/28/2002 4:26 AM
Joined: Nov 2001
Posts: 417
Enthusiast
Enthusiast
Joined: Nov 2001
Posts: 417
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[/]

Orlov #214534 03/29/2002 4:04 PM
Joined: Nov 2001
Posts: 54
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 54
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
Attachments
45597-markup.zip (0 Bytes, 4 downloads)

Last edited by dRiver; 03/29/2002 4:09 PM.
lanet #214535 03/29/2002 11:40 PM
Joined: Nov 2001
Posts: 54
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 54
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

lanet #214536 03/30/2002 10:33 AM
Joined: Nov 2001
Posts: 417
Enthusiast
Enthusiast
Joined: Nov 2001
Posts: 417
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[/]

Orlov #214537 03/30/2002 1:04 PM
Joined: Nov 2001
Posts: 417
Enthusiast
Enthusiast
Joined: Nov 2001
Posts: 417
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

Orlov #214538 03/31/2002 7:23 AM
Joined: Nov 2001
Posts: 54
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 54
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


lanet #214539 03/31/2002 10:59 AM
Joined: Nov 2001
Posts: 54
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 54
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">


Last edited by dRiver; 03/31/2002 12:10 PM.
lanet #214540 04/01/2002 9:54 AM
Joined: Nov 2001
Posts: 417
Enthusiast
Enthusiast
Joined: Nov 2001
Posts: 417
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[/]


Orlov #214541 05/14/2002 1:45 AM
Joined: Feb 2002
Posts: 22
Junior Member
Junior Member
Offline
Joined: Feb 2002
Posts: 22
Can someone please post the add smilies hack again? Thanks!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 254
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)