SmartFAQ is developed by The SmartFactory (https://www.smartfactory.ca), a division of InBox Solutions (https://www.inboxsolutions.net)

How do I manage smilies?
You can add more smilies to your system using the form at the bottom of the page (there are many websites where you can obtain new ones). Simply enter a shortcut code for your new smile (this should be unique), a name for it, select the file you want to upload using the browse button, and decide whether or not you want it to be one of those displayed on submission forms. Select submit to upload it. Clicking on the edit link for an existing smarty will open up a form with the same options. You can even replace the image file if you want.


The comments are owned by the author. We aren't responsible for their content.
user

 Smiley Icons pushed the table wider - a way to fix


When you reply a post or add new comment, you like to use smiley, right? The standard smiley in the XOOPS is a 9-icon row plus [more...] format, now you want more smilies.


Yes I always love the smilies, but when I added more, I immediately found the input form(s) got pushed wider and wider because of the codes that holds smiley does not have a space "in-between" icons, this is a very simple issue but there are TWO files need to modify so you got a clean, auto-wrap smilies page according to your layout/table width, modify two files fit to all forms.

1. root

\class\xoopsform\formdhtmltextarea.php

BACKUP first as usual, then find

$ret "  ";


find

$ret .= "getName()."", " ".$smiles[$i]['code']." ");' onmouseover='style.cursor="hand"' src='".XOOPS_UPLOAD_URL."/".$myts->oopsHtmlSpecialChars($smiles['smile_url'])."' border='0' alt='' />";


change to


$ret .= " getName()."", " ".$smiles[$i]['code']." ");' onmouseover='style.cursor="hand"' src='".XOOPS_UPLOAD_URL."/".$myts->oopsHtmlSpecialChars($smiles['smile_url'])."' border='0' alt='' /> ";



find

$ret .= " [getName()."","smilies",300,475);'>"._MORE."]";



change to


$ret .= "  [getName()."","smilies",300,475);'>"._MORE."] ";



2. Root
\include\xoopscodes.php

find

echo "";


change to

echo "  ";


..... and ... not done yet for #2, read:

well, basically you do the exactly same things in the step 1 for the step 2, save and upload them, you smiley faces should now fit to ALL forms width that have the smiley sections on it and won't push your layout out of control!!

 
user

 adding smilies


thanks.

 


Login

Who's Online

163 user(s) are online (2 user(s) are browsing XOOPS FAQ)


Members: 0


Guests: 163


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Did you know ?

You can only position a block beneath a module by hacking the theme.html file

Random question

How do I restore my backups?