xoops forums

Maadman

Just popping in
Posted on: 2010/12/16 20:01
Maadman
Maadman (Show more)
Just popping in
Posts: 64
Since: 2006/1/17
#1

Upgraded to 2.5 How/where do you modify custom templates?

I used cloned templates on several modules before this upgrade. After upgrading I cannot figure out how to edit these templates now. Anytime I try to view them through the admin menu now it always says "file not created" and then its back to square one. I even tried modifying the html file of the template offline, reuploading it through ftp, and clearing the cache... still the old template is loaded on the web page. Why are these not editable though the administration/templates menu anymore? And where on earth are they stored now? Thanks.

Maadman

Just popping in
Posted on: 2010/12/16 22:01
Maadman
Maadman (Show more)
Just popping in
Posts: 64
Since: 2006/1/17
#2

Re: Upgraded to 2.5 How/where do you modify custom templates?

Anyone? There was nothing in the release notes regarding this.

Xoops has really went down the toilet over the last 3 or so years. Sad to see.

Mamba

Moderator
Posted on: 2010/12/16 22:19
Mamba
Mamba (Show more)
Moderator
Posts: 10838
Since: 2004/4/23
#3

Re: Upgraded to 2.5 How/where do you modify custom templates?

In the XOOPS 2.5.0 release notes:

Quote:
If you use custom templates, you should convert them into files inside your theme folder before upgrading.

We've updated the release notes 2-3 weeks ago
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

Maadman

Just popping in
Posted on: 2010/12/16 22:37
Maadman
Maadman (Show more)
Just popping in
Posts: 64
Since: 2006/1/17
#4

Re: Upgraded to 2.5 How/where do you modify custom templates?

Thank you for the reply Mamba but what should I do now that I have already completed the upgrade? It has to be pulling the data from those same custom templates from somewhere. I can see it on the page. Where is it stored?

Maadman

Just popping in
Posted on: 2010/12/16 22:42
Maadman
Maadman (Show more)
Just popping in
Posts: 64
Since: 2006/1/17
#5

Re: Upgraded to 2.5 How/where do you modify custom templates?

Also when you say convert them into files inside your theme folder what do you mean? Upload them into a /templates/ folder inside that? Upload the old tplset.xml file in there? I upgraded all the way from 2.0.17. It was very simple to edit the custom templates on that version. You clicked "edit template" and it pulled right up inside of the browser.

ghia

Community Support Member
Posted on: 2010/12/17 9:44
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#6

Re: Upgraded to 2.5 How/where do you modify custom templates?

This is a missing feature in 2.5.0
Maybe easiest way is to revert back to 2.4.5
Else you need to save the templates from the database to /themes/yourtheme/modules/...
See included suico theme for an example.

serial-weber

Just popping in
Posted on: 2010/12/17 10:18
serial-weber
serial-weber (Show more)
Just popping in
Posts: 53
Since: 2008/4/28
#7

Re: Upgraded to 2.5 How/where do you modify custom templates?

Hi,

I had this problem in my local test site and here is what I did to resolve it!
1.
Connect your self as administrator of the web site
Go to Administration menu -> Preferences -> System options -> General settings
At Default template set Choose default

2.
Copy all files block which are in the module folder C:\Program Files\EasyPHP5.2.10\www\site_folder\modules\module_name\templates\
in
C:\Program Files\EasyPHP5.2.10\www\site_folder\theme\theme_name\module_name\

3.
Go to Modules -> System -> Templates
Choose the template you want to change.

I hope that it will help you

Maadman

Just popping in
Posted on: 2010/12/19 8:37
Maadman
Maadman (Show more)
Just popping in
Posts: 64
Since: 2006/1/17
#8

Re: Upgraded to 2.5 How/where do you modify custom templates?

Thanks for the help everyone. I ended up locating them in the database and making the changes yesterday as a quick fix. I did try your way today serial-weber and it worked just fine.

Maybe a suggestion I can make to you mamba if you are the one who can edit the release notes is this.
Quote:

If you use custom templates, you should convert them into files inside your theme folder before upgrading..


I think you should put this notification above each versions upgrade instructions. I for one read the release notes and then skimmed down over the versions that did not apply to me to find the instructions for my version only and this notification is only listed above the earliest version. I'm sure others have done the same so that may help.

I didn't really mean xoops was going down the toilet either I was just frustrated and had a guy on my back all day about that issue. :)

Thanks again.

allnewtome

Not too shy to talk
Posted on: 2010/12/24 16:50
allnewtome
allnewtome (Show more)
Not too shy to talk
Posts: 175
Since: 2005/11/30
#9

Re: Upgraded to 2.5 How/where do you modify custom templates?

Please help! Upgrading 2.4.2 to 2.5.0

I go to System > Templates > Download (to download custom templates)

I save the file (.tar.gz) and upload it.

Then try to extract it

$ tar -xvzf templates.tar.gz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Error exit delayed from previous errors


What am I doing wrong?

Thanks

allnewtome

Not too shy to talk
Posted on: 2010/12/24 16:59
allnewtome
allnewtome (Show more)
Not too shy to talk
Posts: 175
Since: 2005/11/30
#10

Re: Upgraded to 2.5 How/where do you modify custom templates?

P.S. On further searching, it appears that my problem is the same as here:

Template Set Manager Download - bad tar.gz file

That question is from a few weeks ago but remains unsolved.

What do you recommend?

1. Do not upgrade to 2.5.0 until this is resolved.
2. Upgrade to 2.5.0 but use a new theme entirely.
3. Some other solution.

Thank you all once again.