Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Blues
Regular
Regular



Joined: Jun 17, 2006
Posts: 81
Location: MD

PostPosted: Sat Jul 15, 2006 1:40 pm Reply with quote

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.
 
View user's profile Send private message Visit poster's website
Dauthus
Worker
Worker



Joined: Oct 07, 2003
Posts: 211

PostPosted: Sun Jul 16, 2006 12:47 am Reply with quote

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.

_________________
Image
Vivere disce, cogita mori 
View user's profile Send private message Visit poster's website
Blues







PostPosted: Sun Jul 16, 2006 7:58 am Reply with quote

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

PostPosted: Sun Jul 16, 2006 10:26 am Reply with quote

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.
 
View user's profile Send private message Send e-mail
Dauthus







PostPosted: Sun Jul 16, 2006 1:30 pm Reply with quote

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







PostPosted: Sun Jul 16, 2006 1:41 pm Reply with quote

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







PostPosted: Sun Jul 16, 2006 4:06 pm Reply with quote

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 < [ Only registered users can see links on this board! Get registered or login! ] > (Anthony Coy) [ Only registered users can see links on this board! Get registered or login! ]
## MOD Ported: PHP-Nuke 7.6pl3.1
## MOD Ported by: Dauthus < [ Only registered users can see links on this board! Get registered or login! ] > (David Taylor) [ Only registered users can see links on this board! Get registered or login! ]
## 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







PostPosted: Sun Jul 16, 2006 4:44 pm Reply with quote

Blues - thank you for the clarification.
 
Blues







PostPosted: Sun Jul 16, 2006 6:49 pm Reply with quote

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!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©