I'm_Hackin'_Bored!
|
Adding/Removing Smiles from Posting BodyPLEASE ENTER THE FOLLOWING>>>>
http://hbclanserver.myfreeforum.org/index.php
Please indicate keywords you have searched on: Smilies, Posting Body, Adding Smilies, Removing Smilies, ect.
Now ask your question in clear English without "txt" speak>>>>
I'm curious if there is a way to add/remove smilies to the posting body. NOT the "View more Smilies" Option but actually on the posting body page. I noticed from searching in topics, the topic HERE mentions a way of doing it but the option or "checkbox" is no longer there when editing smilies. Is there any code edit or other way of removing specific smiles(not all of them obviously, that's easy) and adding smilies. Thanks in advance.
|
Zudane
|
If the checkbox is not there it is probably off to the right of the screen, try pressing tab to change between the sections, and it should move over for it.
|
admin (no pm's please)
|
You can re-order smilies in the admin panel. Only the first 16 will show in posting_body.tpl.
|
I'm_Hackin'_Bored!
|
| admin (no pm's please) wrote: | | You can re-order smilies in the admin panel. Only the first 16 will show in posting_body.tpl. |
ahh ok. There are actually 20. But there isnt a way to have more than the first 20 show up? Thanks again.
|
admin (no pm's please)
|
You could add them manually to posting_body.tpl.
|
I'm_Hackin'_Bored!
|
I assumed, but how? Are there variables or something I can use?
|
admin (no pm's please)
|
No, but you can look at the page source.
|
I'm_Hackin'_Bored!
|
This is what I have, I have experimented with it a bit but honestly don't know how to make it show more smilies. A little help please?
I understand the first bit is the smilies shown and the second is the process of clicking more smilies and the window of more.
| Code: | <tr>
<td valign="middle" align="center"> <br />
<table width="100" border="0" cellspacing="0" cellpadding="5">
<tr align="center">
<td colspan="{S_SMILIES_COLSPAN}" class="gensmall"><b>{L_EMOTICONS}</b></td>
</tr>
<!-- BEGIN smilies_row -->
<tr align="center" valign="middle">
<!-- BEGIN smilies_col -->
<td><a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" />
</a></td>
<!-- BEGIN switch_smilies_extra -->
<tr align="center">
<td colspan="{S_SMILIES_COLSPAN}"><span class="nav"><a href="{U_MORE_SMILIES}" onclick="open_window('{U_MORE_SMILIES}', 250, 300);return false" target="_smilies" class="nav">{L_MORE_SMILIES}</a></td>
</tr>
<!-- END switch_smilies_extra -->
<!-- END smilies_col -->
</tr>
<!-- END smilies_row -->
<!-- BEGIN switch_smilies_extra -->
<tr align="center">
<td colspan="{S_SMILIES_COLSPAN}"><span class="nav"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=500,resizable=yes,scrollbars=yes,WIDTH=1000');return false;" target="_phpbbsmilies" class="nav">{L_MORE_SMILIES}</a></span></td>
</tr>
<!-- END switch_smilies_extra -->
</table>
</td>
</tr>
</table>
</td>
|
|
admin (no pm's please)
|
That is the template source.
You can see how smilieys are done using the generated page source, and then manually add the code to the template.
|
I'm_Hackin'_Bored!
|
ok I figured the basics of how it works. But what are the <img src= paths? apparently just placing the smileys image file name "moms/lol.gif" for example does not work. Also it adds 20 more of the same smiley that I add. How do I only add one at a time? =/
But I will keep playing around.
|
I'm_Hackin'_Bored!
|
| admin (no pm's please) wrote: | That is the template source.
You can see how smilieys are done using the generated page source, and then manually add the code to the template. |
Ok. I looked at the page source and learned how the smilies work. But when I add a new smiley it still adds twenty more of the one I added next to the other ones. I can't figure out what makes it do that. I tried replacing the template code and adding onto the template code but it always makes twenty of each smiley. Can you help me further?
Template source is above.
Here is the page source for the first line of smilies.
| Code: | <tr align="center" valign="middle">
<td><a href="javascript:emoticon(':D')"><img src="http://galleryserver.myff.org//smilies/icon/icon_biggrin.gif" border="0" alt="" title="" />
</a></td>
<td><a href="javascript:emoticon(':)')"><img src="http://galleryserver.myff.org//smilies/icon/icon_smile.gif" border="0" alt="" title="" />
</a></td>
<td><a href="javascript:emoticon(':(')"><img src="http://galleryserver.myff.org//smilies/icon/icon_sad.gif" border="0" alt="" title="" />
</a></td>
<td><a href="javascript:emoticon(':o')"><img src="http://galleryserver.myff.org//smilies/icon/icon_surprised.gif" border="0" alt="" title="" />
</a></td>
</tr>
|
|
admin (no pm's please)
|
What code are you adding to the template?
|
I'm_Hackin'_Bored!
|
Example
| Code: |
<td><a href="javascript:emoticon(':lol2:')"><img src="http://galleryserver.myff.org//smilies/moms/lol.gif" border="0" alt="" title="" />
</a></td>
|
|
admin (no pm's please)
|
But where have you put it? I bet you have put it inside the loop:
| Code: |
<!-- END smilies_col -->
</tr>
<!-- END smilies_row -->
|
which would be why it would appear 20x.
|
I'm_Hackin'_Bored!
|
Not the exact loop. But yes call me a fool it was inside a loop.
I put it after everything and problem solved. Thank you very much.
|
|
|