TinyPortal

Development => Support => Topic started by: clothahump on October 26, 2009, 09:12:38 AM

Title: Path to TPadm-article.gif incorrect?
Post by: clothahump on October 26, 2009, 09:12:38 AM
Just added an article to show on top of the forum page but the path to TPadm-article.gif is incorrect, where do I set the correct path?
Title: Re: Path to TPadm-article.gif incorrect?
Post by: G6Cad on October 26, 2009, 11:12:16 AM
Rightclick on the red cross and check the path  :up:
Title: Re: Path to TPadm-article.gif incorrect?
Post by: clothahump on October 26, 2009, 11:52:43 AM
I have done that and the path is incorrect.
Title: Re: Path to TPadm-article.gif incorrect?
Post by: G6Cad on October 26, 2009, 11:59:13 AM
Where does the link say the image SHOULD be then ? And when you see where, have you checked your files and folders on the server that the image is located there ? If it is, then you haver permission issues, if it's not, add the image to the folder the path looks for it
Title: Re: Path to TPadm-article.gif incorrect?
Post by: mc on October 26, 2009, 12:06:53 PM
From what I remember, there are a couple issues with the TP images, and where they get copied to.

If you right click and see where the image should be, copy the images on the server to where the page is expecting them to be (from memory, I think it's normally from the default theme into whatever theme you're using)


and G6 just beat me to it!
Title: Re: Path to TPadm-article.gif incorrect?
Post by: clothahump on October 26, 2009, 12:10:08 PM
The link points at Root not a folder (http://www.tropicalfishforums.co.uk/TPadm-article.gif), the images is actually located at http://www.tropicalfishforums.co.uk/tp-files/tp-articles/icons/TPadm-article.gif
Title: Re: Path to TPadm-article.gif incorrect?
Post by: G6Cad on October 26, 2009, 12:16:58 PM
Then your install must be wrong.

Make sure everything installed correctly and that all files, folders and code from tp got installed in it's place.

How do I manually install TinyPortal (http://docs.tinyportal.co.uk/index.php?topic=29)
Title: Re: Path to TPadm-article.gif incorrect?
Post by: clothahump on October 26, 2009, 12:31:56 PM
I hope that this does not damage the site, I have only just finished transferring over from VB and there is no way back.
Title: Re: Path to TPadm-article.gif incorrect?
Post by: G6Cad on October 26, 2009, 12:33:49 PM
Instead of us guessing everything right now regarding what you have done so far, please add in as much info as possible for us.

Please read the Posting Guidelines (http://www.tinyportal.net/index.php?topic=581)
Title: Re: Path to TPadm-article.gif incorrect?
Post by: mc on October 26, 2009, 12:37:19 PM
It shouldn't damage the site.

If you download a copy of all the editted files listed in the manual installation guide, then make sure the necessary edits are done, it won't affect anything on the site.
If you do find any problems, simply correct the file, then upload it, and you shouldn't even notice any interruptions on the site (unless you add in a typo when editting!)
Title: Re: Path to TPadm-article.gif incorrect?
Post by: clothahump on October 26, 2009, 12:50:03 PM
I am unable to find the following code in the theme I am using.
// The end of tab section.
echo '
<td class="maintab_' , $last , '">&nbsp;</td>
Title: Re: Path to TPadm-article.gif incorrect?
Post by: G6Cad on October 26, 2009, 01:14:22 PM
Skipp other themes then the default Core ( SMF default theme ) It's to that theme everything gets added as thats the foundation for everything, so keep working in the core theme ONLY until everything is set and working

And again, Please read the Posting Guidelines (http://www.tinyportal.net/index.php?topic=581) and add in the info we ask for.
Title: Re: Path to TPadm-article.gif incorrect?
Post by: mc on October 26, 2009, 01:32:33 PM
Rather than carry out edits on your live site, I'd suggest you install wampserver (http://www.wampserver.com/) on your own computer, set-up SMF + TP onto it, then use that for devloping/testing before making changes to your live site.
Title: Re: Path to TPadm-article.gif incorrect?
Post by: clothahump on October 26, 2009, 01:50:26 PM
Thanks for the link to wampserver but that would take all day to download as I am on dial up.

Link to my site: http://www.tropicalfishforums.co.uk
SMF version: SMF ver. 1.1.10
TP version: TP ver. v1.0 beta 4
Theme name and version: Siradis
Browser Name and Version: Firefox latest
Mods installed: SMF Media Gallery 2.0, Redimensionner les images
Related Error messages: None
Title: Re: Path to TPadm-article.gif incorrect?
Post by: clothahump on October 26, 2009, 02:32:47 PM
Followed the instructions for manual install and nothing has changed, at least it works so probably best to leave things alone.
Title: Re: Path to TPadm-article.gif incorrect?
Post by: clothahump on October 26, 2009, 07:06:51 PM
Slight problem after the editing of files, if I try and visit admin I am prompted for password but when page refreshes it does not go to the admin panel, I have to log out and back in to gain access.
Title: Re: Path to TPadm-article.gif incorrect?
Post by: G6Cad on October 26, 2009, 07:48:27 PM
Did you do as i asked you to ?   I still see your custom theme on your site.

On simplemachines you have a file called repair_settings.php, download that and use it as instructed on simplemachines.org
Title: Re: Path to TPadm-article.gif incorrect?
Post by: clothahump on October 26, 2009, 07:52:17 PM
Already ran repair, I really do need to use the custom theme, is this causing the problems?
Title: Re: Path to TPadm-article.gif incorrect?
Post by: Zetan on October 26, 2009, 08:05:06 PM
I don't want to get too involved with this topic as you are already getting support, but let me explain the use of the default theme.

All mods get installed to the default theme. therefore you should be using the default theme when installing mods. Custom themes use some custom files which override the default theme files when in use.

There are very few custom theme files that need to be edited to accommodate a mod, those that do will need to be edited manually and usually you can find instructions or support of which files to edit at the mod authors site.

tinyportal 1.*.* doesn't need to integrate into many custom theme files, if any at all. Most of the edits are to the default theme files, which are still in use regardless of which custom theme files are overriding other files.

You need to ensure all the edits to the default theme including paths are correct. repair_settings.php can help with the paths.
Title: Re: Path to TPadm-article.gif incorrect?
Post by: clothahump on October 26, 2009, 08:09:36 PM
Many thanks Zetan, so the custom theme should not be edited to show correct menu items etc as this is drawn from the default?
Title: Re: Path to TPadm-article.gif incorrect?
Post by: Zetan on October 26, 2009, 08:20:22 PM
The menu, yes. Each theme has it's own menu and menu tabs are usually found in each theme's index.template.php file. This file along with the style.css file are often the most edited files.

The index.template.php file is also where some mods need to be integrated into.

Title: Re: Path to TPadm-article.gif incorrect?
Post by: clothahump on October 26, 2009, 08:30:56 PM
OK, probably best to start again with a fresh install of the theme then.
Title: Re: Path to TPadm-article.gif incorrect?
Post by: G6Cad on October 26, 2009, 08:46:14 PM
Yes, that was what i tried to explain in my 3rd reply i think :)

Always keep all the work, modifications, extras etc to the default theme as that theme is the foundation of the whole site.
When everything is working in the default theme, then you go ahead with your custom theme, check what it adapts and whats not, whats not adapted, that is what you add to the custom theme,


And thank you Zetan  :up:
Title: Re: Path to TPadm-article.gif incorrect?
Post by: Zetan on October 26, 2009, 08:55:09 PM
You did explain it fine :) I just wanted to make sure the point was understood.

It is easier once you understand what's going on between the default theme and custom theme's and the way that custom files override the default.

Title: Re: Path to TPadm-article.gif incorrect?
Post by: clothahump on October 26, 2009, 08:56:22 PM
Probably just me, tired and slightly frustrated, thank you both. :)
Title: Re: Path to TPadm-article.gif incorrect?
Post by: ZarPrime on October 26, 2009, 10:55:59 PM
clothahump,

The other thing about custom themes besides what Zetan and G6 was saying is that certain images that work fine with the default theme would need to have another instance of the image copied into the default theme's images folder.  For instance, the badges that we have here for each of the team members, like Zetan's and mine for support and G6's for Admin, need to be in the images folder of the custom theme because the custom theme won't look for those images in the default theme.

Your members should understand, with a little advance notice, that you are working on the site temporarily so that if they see the default theme instead of your custom theme they will know that it's only temporary.

ZarPrime
Title: Re: Path to TPadm-article.gif incorrect?
Post by: clothahump on October 26, 2009, 11:00:27 PM
Lost the site completely now, ran upgrade which failed and now unable to access admin to take it out of maintenance mode, nearly time for bed I think. :(
Title: Re: Path to TPadm-article.gif incorrect?
Post by: ZarPrime on October 27, 2009, 01:04:44 AM
Hmmm, well, if the site is at http://www.tropicalfishforums.co.uk/index.php I just looked at it and it doesn't seem to be in maintenance mode.  Did you get it fixed or are we talking about another site?

ZarPrime
Title: Re: Path to TPadm-article.gif incorrect?
Post by: clothahump on October 27, 2009, 07:20:05 AM
Sorry, I edited settings so I could get back in, I forgot it was that easy.