Welcome, Guest. Please Login or Register.
August 26, 2025, 11:55:24 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Help with customizing « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Help with customizing  (Read 421 times)
Entity
Noobie
*
Posts: 36


Information Systems Operator

ICQ - 21348101entity17z@hotmail.com
Help with customizing
« on: March 19, 2002, 05:46:08 PM »
Reply with quote

I would like to add more smiles to the list so that my visitors can see more then just the 16. Where do I look to find that?

I have found and done everything I was looking to do, aside from the smilies.. I haven't had time to play with them yet. I am going to assume that they are in Post.php..

So far I have made modifications to Poll.php, Display.php, BoardIndex.php, MessageIndex, english.lng and template.php as well as recreating just about all of the images.

Where are administrator.gif, bdaycake.gif, heart.gif & snow.gif used? Are they even a part of the forum or just random images that found their way into the package?.. They seem totally out of place.
« Last Edit: March 20, 2002, 12:37:35 AM by Entity » Logged

Education is the progressive discovery of our own ignorance.
Entity
Noobie
*
Posts: 36


Information Systems Operator

ICQ - 21348101entity17z@hotmail.com
Re:Help with customizing
« Reply #1 on: March 19, 2002, 10:53:00 PM »
Reply with quote

..Moved to the top.
« Last Edit: March 20, 2002, 12:35:15 AM by Entity » Logged

Education is the progressive discovery of our own ignorance.
curious
Full Member
***
Posts: 178


WWW
Re:Help with customizing
« Reply #2 on: March 21, 2002, 02:46:17 AM »
Reply with quote

Quote from: Entity on March 19, 2002, 05:46:08 PMI would like to add more smiles to the list so that my visitors can see more then just the 16. Where do I look to find that?

<edit file>
Sources/Post.php
</edit file>


<search for>
<a href="javascript:cry()"><img src="$imagesdir/cry.gif" align=bottom alt="$txt[530]" border="0"></a>
</search for>


<add after>
<a href="javascript:xyz()"><img src="$imagesdir/xyz.gif" align=bottom alt="$txt[xyz]" border="0"></a>
</add after>

You can add as many smileys as you want, but you should insert a <br> after the first 3 or 4 new smileys to force a line break, so it doesn't mess up your table.



<edit file>
english.lng
</edit file>


<search for>
$txt[749] = "The 'number of posts' box can only contain digits.";
</search for>


<add after>
$txt[xyz] = "whatever tooltip you want to be shown, when cursor is over your smiley";
</add after>



<edit file>
ubbc.js
</edit file>


<search for>
function cry() {
   AddTxt=" :'(";
   AddText(AddTxt);
}
</search for>


<add after>

function xyz() {
   AddTxt=" abc";    // insert the smiley code instead of " abc". i.e. " :-)"
   AddText(AddTxt);
}
</add after>
Replace every "xyz" with your smiley's name.

Finally you have to upload your smiley image to your images dir (most probably "YaBBImages").

Follow these steps for every smiley you want to add.


[Edit]: Forgot ... Inspiration (and more) from mediman:
http://www.yabb.info/community/index.php?board=145;action=display;threadid=4752
« Last Edit: March 21, 2002, 02:56:12 AM by curious » Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Help with customizing « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.029 seconds with 20 queries.