TinyPortal

Development => Support => Topic started by: mallock on August 19, 2008, 02:43:40 PM

Title: Article and Category icons
Post by: mallock on August 19, 2008, 02:43:40 PM
I am running TP 1.0.5 beta on SMF 1.1.5.  I am having a problem with the icons for categories and Alternative listing icons.  Both drop down boxes have the following behavior:

Lets say I have uploaded icon1,gif and icon2.gif as pictures for either the category icon or alternative listing icon.  When I go to the dropdown box to select one of them, the only option I have is:  icon1.gificon2.gif

Where is the code that should separate those into two diffent options in the dropdown box?
Title: Re: Article and Category icons
Post by: mallock on August 29, 2008, 06:35:22 PM
Does anyone know why this is happening or has it happened to anyone else?
Title: Re: Article and Category icons
Post by: sibling chris on May 24, 2009, 05:12:57 PM
yes I know why this is happening

if you "view source" on the page you will see it uses the SELECT tag within which should be multiple OPTION tags, one for each icon. Howver the closing tage is missing the > character

I'm tyring to track down where this bit of code is.... will post if I solve it

Title: Re: Article and Category icons
Post by: sibling chris on May 24, 2009, 09:27:44 PM
ok sorted

TPortalAdmin.template.php line 1164 - look at the end of the line and change this...
'</option'

to this...
'</option>'

do the same on line 1220 and 1756

Title: Re: Article and Category icons
Post by: sibling chris on May 26, 2009, 01:02:15 PM
just upgraded to TP1.0 beta 4 and this problem is still apparent

lines 1083, 1139 and 1668
Title: Re: Article and Category icons
Post by: Nine on June 12, 2009, 03:13:40 PM
Please note that there are actually three instances of the same problem in the file.
Please see my post on bugtracker here. (http://www.tinyportal.net/index.php/topic,29728)
Title: Re: Article and Category icons
Post by: sibling chris on June 12, 2009, 04:59:24 PM
I think I mentioned the 3 instances, hope I got the line numbers right, sorry if I didn't!

Cheers
SC
Title: Re: Article and Category icons
Post by: Freddy on June 12, 2009, 05:24:16 PM
Thanks for the fix guys :)