Author |
Message |
Blues
Regular


Joined: Jun 17, 2006
Posts: 81
Location: MD
|
Posted:
Sat Jul 15, 2006 1:40 pm |
|
I recently uploaded and installed some additional emoticons. However, when clicking, "View more emoticons" it displays all of them in the new window, but the new ones are tiny. I am assuming there is code that auto-resizes them in the preview window. How do I force the emoticons to be shown full size within the window?
I am running Nuke 7.8
phpbb 2.0.18
Thanks in advance. |
|
|
|
 |
Dauthus
Worker


Joined: Oct 07, 2003
Posts: 211
|
Posted:
Sun Jul 16, 2006 12:47 am |
|
This is a shot in the dark but try opening the themes/YOURTHEME/forums/posting_simlies.tpl and look for the following code:
Code:<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>
|
Change the 250, 300 to the height and width you would like to use. |
_________________ Only registered users can see links on this board! Get registered or login!
Vivere disce, cogita mori |
|
|
 |
Blues

|
Posted:
Sun Jul 16, 2006 7:58 am |
|
Code:<td class="nav" colspan="{S_SMILIES_COLSPAN}"><a href="{U_MORE_SMILIES}" onclick="open_window('{U_MORE_SMILIES}', 250, 300);return false" target="_smilies">{L_MORE_SMILIES}</a>
|
Above is the code I had. I tried it, and it didn't work.
I started playing with this code:
Code:<a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{smilies_row.smilies_col.SMILEY_IMG}" alt="{smilies_row.smilies_col.SMILEY_DESC}" width="15" height="15" border="0" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td>
|
And those "15" adjusted will change the size of the pop-up emoticon window, but also increase the size of the emoticons, thus making the smaller ones look back, and distorting the new ones of odd shapes and sizes.
Next I tried removig the "15" and just leaving them as "" and he smilies were impossible to see, the size of ants.
Finally, I deleted the width="15" height="15" portion all together and this worked. It doesn't auto-size like I wish it would, such as moving the end smilie down to the next row based on the size I make the window...but it's better than it was.
Thanks for pushing me in the right direction. |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Sun Jul 16, 2006 10:26 am |
|
Out of curiosity, as this issue has never been mentioned before to the best of my knowledge, are the original smiley image sozes the same as the ones you uploaded?
'm just trying to get a handle on whether this is a bug I have not seen before or whetehr it is due to your new smiley images being a physically smaller image size. |
|
|
|
 |
Dauthus

|
Posted:
Sun Jul 16, 2006 1:30 pm |
|
The width="15 and height="15" should be the dimension of EACH image in the window, ie. each smilie. Removing that would make smilies of different sizes appear in their original size. The fixed dimensions for the width and height would make any image in the window 15 x 15. That's why some of the smilies were distorted.
I thought you were wanting to change the size of the popup window, not the size of the individual images. Sorry about that. Change the 15 to 30 and watch them blow up to twice their size |
|
|
|
 |
Blues

|
Posted:
Sun Jul 16, 2006 1:41 pm |
|
The new smilies were bigger, and Dauthus' reply explains it. The smilies did in fact all blow up in size when I adjusted the dimensions. |
|
|
|
 |
Dauthus

|
Posted:
Sun Jul 16, 2006 4:06 pm |
|
Blues wrote: | ... It doesn't auto-size like I wish it would, such as moving the end smilie down to the next row based on the size I make the window...but it's better than it was.... |
Here's a good mod for what you want. It has to be ported over but I have it running on 7.6pl3.1 and it does work:
Quote: | ###############################################################
## MOD Title: Admin Smilies Display
## MOD Author: Disturbed One < anthony@anthonycoy.com > (Anthony Coy) http://hvmdesign.com
## MOD Ported: PHP-Nuke 7.6pl3.1
## MOD Ported by: Dauthus < dauthus@gmail.com > (David Taylor) http://www.bootleghollow.com
## MOD Description: This MOD allows you to control the amount columns and rows that can
## display smilies in your posting body, within your ACP. You can also
## choose the width and height of the popup window, and how many columns
## to have display smilies within it.
## MOD Version: v1.0.0
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit: (5)
## admin/admin_board.php
## includes/functions_post.php
## language/lang_english/lang_admin.php
## templates/subSilver/posting_body.tpl
## templates/subSilver/admin/board_config_body.tpl
## Included Files: (1)
## contrib/admin/xs_smilies_display.cfg
############################################################## |
|
|
|
|
 |
Guardian2003

|
Posted:
Sun Jul 16, 2006 4:44 pm |
|
Blues - thank you for the clarification. |
|
|
|
 |
Blues

|
Posted:
Sun Jul 16, 2006 6:49 pm |
|
Thanks for the info Dauthus. I am not spun up on the "porting" matter you refer to, but I will look into that and see if I cant get it done. Thanks again! |
|
|
|
 |
|