TinyPortal

Development => Support => Installation => Topic started by: Ed on February 24, 2011, 07:43:52 PM

Title: Missing Expand/Collapse icons on TP upgrade in Helios
Post by: Ed on February 24, 2011, 07:43:52 PM


I recently upgraded to the latest version of TP, had a few issues, had to manually delete TP and do fresh install, then delete the TPortal.template.php to get the portal to work properly.

Now, the only problem I seem to have left is the buttons are missing for expanding and collapsing the blocks on the portal page, and the edit button. They appear to be from the default SMF theme, which don't look great with the Helios theme.

I can probably make the buttons easily enough if they don't exist in the Helios theme, but I'm not sure if this is an error that's happened before (I've searched and not found anything about it) and if there's an easy fix for it, such as moving buttons from one directory to another, or something? If I make some buttons for this, which directory should I put them into, please?
Title: Re: Missing Expand/Collapse icons on TP upgrade in Helios
Post by: ZarPrime on February 25, 2011, 12:13:57 AM
Ed,

Those buttons exist only in the default SMF theme and the custom theme reads those from the default theme folder.  The easiest way to get a different look for the 5 buttons would be to, as you mention, create your own buttons for your custom theme.  If you are only using one theme on your site, a custom theme for instance, You could backup your existing buttons and name your newly created buttons the same as the existing ones and upload them to the same location.  The existing buttons are at this location on your site ...

For the Panels ...
/public_html/forum/Themes/default/images/tinyportal/TPupshrink.gif
/public_html/forum/Themes/default/images/tinyportal/TPupshrink2.gif

For the blocks ...
/public_html/forum/Themes/default/images/tinyportal/TPcollapse.gif
/public_html/forum/Themes/default/images/tinyportal/TPexpand.gif

Edit Button is ...
/public_html/forum/Themes/default/images/tinyportal/TPedit2.gif

So, to summarise ...

1.  Create the 5 buttons and save them as the same name as the existing ones on your computer ...
TPupshrink.gif
TPupshrink2.gif
TPcollapse.gif
TPexpand.gif
TPedit2.gif

2.  Login to your site via FTP and rename the existing buttons as backup, something like this ...
/public_html/forum/Themes/default/images/tinyportal/TPupshrink.gif.BAK
/public_html/forum/Themes/default/images/tinyportal/TPupshrink2.gif.BAK
/public_html/forum/Themes/default/images/tinyportal/TPcollapse.gif.BAK
/public_html/forum/Themes/default/images/tinyportal/TPexpand.gif.BAK
/public_html/forum/Themes/default/images/tinyportal/TPedit2.gif.BAK

3.  Upload, via FTP, your newly created buttons to the same location.

ZarPrime
Title: Re: Missing Expand/Collapse icons on TP upgrade in Helios
Post by: Ed on February 25, 2011, 06:00:02 PM
Thanks for the detailed instructions, ZarPrime. That's great O0

The trouble is, I have several themes in operation on the site for the users to choose from, so changes those files will affect all the themes, which will make the others look screwy.

Also, on closer inspection, it turns out the Helios theme I'm using is a TP version, which apparently it shouldn't be -- is that going to cause me any trouble? I assume the only way I can get around this problem is to either manually edit the Helios theme to include the new gifs, or upgrade the whole forum to SMF 2.0 and install the new version of Helios that's designed to run with that version. It isn't backwards compatible -- I've already tried that.
Title: Re: Missing Expand/Collapse icons on TP upgrade in Helios
Post by: Ed on February 27, 2011, 10:57:50 AM
Any other thoughts, anybody? :)
Title: Re: Missing Expand/Collapse icons on TP upgrade in Helios
Post by: bloc on February 27, 2011, 12:05:18 PM
If you got a "tinyportal" folder inside your Helios/images/ folder then TP will use THOSE images in there instead of default/images/tinyportal. If not, then you need to copy over from default and change those in Helios to darker ones.

I am not sure about what images Helios for SMF 1.1 contains - but it will prob. be lacking some if its an older version. I do recall it was shipped with specific images for TP though.
Title: Re: Missing Expand/Collapse icons on TP upgrade in Helios
Post by: ZarPrime on February 27, 2011, 03:28:23 PM
Thank you Bloc. O0 I had thought that this would work but I wasn't sure.  I didn't want to mention it until I could test it and, right now, all of my test sites, except for my SMF 2.0 RC3 test site, are a little messed up and I just couldn't test it.  I just wasn't sure if any of the code would need to be changed as well.

Anyway, this is good news and now that we know that this works like that, Ed should be able to have a TinyPortal folder in each of his custom theme images folders. O0

Thank you,
ZarPrime
Title: Re: Missing Expand/Collapse icons on TP upgrade in Helios
Post by: Ed on February 27, 2011, 10:24:51 PM
That's a nice easy solution. Thanks for the advice, Bloc.

Edit: I've just tried doing that and it didn't work. I put a tinyportal folder containing the gifs into the Helios theme directory, and when that didn't work, I put another in the default SMF theme images directory.

QuoteI am not sure about what images Helios for SMF 1.1 contains - but it will prob. be lacking some if its an older version. I do recall it was shipped with specific images for TP though.

I have some copies of the really old Helios themes, before Multi, where each colour was a separate skin, but the Helios Multi final I have is the one specifically made to work with TP (helios_multi11_rc3_tp), hence it has TP php files in it that seem to interfere with what SMF and the up to date portal files are trying to do. I'm not sure what to do about that, because the ordinary (non TP) version of Helios Multi is not available for download anywhere. All that's on the SMF site is the version made for SMF 2.0

That said, the only quirk I can see on my forum at present is an additional bar below the forum header buttons on thread pages that says "TP Frontpage". It's not right, but it's not obtrusive, either, so I don't suppose it matters.

I guess the best advice would be to upgrade to using SMF 2.0 and then I can use the latest version of Helios. I've put off doing that so far, because I was waiting to make sure it was stable. We've had relatively few problems with 1.1.x versions lately.

BTW, if anybody has the same problem, I've made an edit button for Helios that I'll attach to this post. I'll just use the standard Helios upshrink buttons for the rest.

Thanks again for the help, Bloc and Zar :)
Title: Re: Missing Expand/Collapse icons on TP upgrade in Helios
Post by: ZarPrime on February 27, 2011, 10:48:43 PM
NP Ed.  On the Helios version you have, take a look in the Admin --> Current Theme settings while Helios is the theme you are looking at and see if there is a setting in there for TP Support.  If there is, try tuning it off.  If that doesn't work, Bloc has put a lot of his old 1.1.x themes up on his site recently but it seems he didn't upload the last version of Helios for SMF 1.1.x.  You might try going to his site and asking if he can upload the version of Helios that isn't edited for use with TP 0.98.  If he has it handy, I'm sure he'll stick it up there.

ZarPrime