#1 2003-11-02 13:05:31

tom
Member
2003-11-01
3

Change The Theme

Hey everybody,

i want to change the theme of my phpwebgallery v1.3. I downloaded rounded-purple.zip
i unzipped this in template
When i change in the gallery configuration to rounded, i get this error :

Warning: Failed opening './template/rounded/htmlfunctions.inc.php' for inclusion (include_path='.:/usr/share/pear') in /var/web/www.hetvarken.be/fotoboek/include/init.inc.php on line 34
Erreur de traitement n° TTT1:
Le fichier template ./template/rounded/category.vtp est introuvable.
Pour plus d'informations, consultez la doc en ligne


Fatal error: Call to undefined function: initialize_template() in /var/web/www.hetvarken.be/fotoboek/category.php on line 107

anyone familiar with this error ?

is there a howto or doc about changing to other themes ?

thx

regards, Tom

Offline

 

#2 2003-11-02 18:56:47

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
14068

Re: Change The Theme

anyone familiar with this error ?

is there a howto or doc about changing to other themes ?

Well  :-? ... not yet

The only important thing to know is to place gif files and conf.php file into the directory template/default/theme.

In releases before 1.3, what I was calling "template" became "theme" with release 1.3 : · theme = set of pictures used on the site (mainly for the default template
· template = management of HTML display of the gallery (concerns HTML and CSS)

Offline

 

#3 2003-11-03 21:27:10

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
14068

Re: Change The Theme

Offline

 

#4 2003-11-04 20:31:58

Guest_tom
Guest

Re: Change The Theme

thx, this was exactly what i needed!

grtz

Tom

 

#5 2003-11-09 01:05:54

tenaka
Member
2003-11-09
37

Re: Change The Theme

Hi guys,

I am sorry but I still don't get the point of this:

my question would be: where are the 'advertised' html templates? I found header and footer, tried to edit header => worked well so far but although I attached my own style sheet to the header.html file my settings are being overriden , I guess by some setting from phpwebgallery.

can anyone explain how I can add my own stylesheet to header.html? I mean I want the header to look like the rest of my page

thx

Offline

 

#6 2003-11-09 09:13:45

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
14068

Re: Change The Theme

CSS properties can me added in file template/default/style.inc.php (it's not a real stylesheet). You can also add a link to your stylesheet in the <head> of template/default/category.vtp. The file template/default/header.htm only contain HTML tags to place at the top of the <body> (not in the <head>)

Offline

 

#7 2003-11-09 10:13:09

tenaka
Member
2003-11-09
37

Re: Change The Theme

Well, thx for the quick answer,

but I am still helpless. I just know enough of html to build my site, I don't have any clue of php. My stylesheet travelling.css contains 5 different formattings for fonts. It is only about sizes, fonts and maybe underlined fonts. I want the html tags I adde in the header.html to look like I want it. I am using dreamweaver. If I import the stylesheet into header.html the preview looks ok but after uploading the settings seem to get overridden.

maybe you can give me an example of how to achieve my goal?

cheers

tenaka

p.s. forgot something:

how do I change the formatting of the text in \gallery\language\english that appears when my gallery is started? the original text was "No category selected. Please select one in the menue"?

Offline

 

#8 2003-11-09 11:07:39

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
14068

Re: Change The Theme

My stylesheet travelling.css contains 5 different formattings for fonts. It is only about sizes, fonts and maybe underlined fonts. I want the html tags I adde in the header.html to look like I want it. I am using dreamweaver. If I import the stylesheet into header.html the preview looks ok but after uploading the settings seem to get overridden.

maybe you can give me an example of how to achieve my goal?

in template/default/category.vtp (1.3), before

Code:

      6   </head>

insert

Code:

<link rel="stylesheet" type="text/css" href="./template/default/travelling.css">

(please, move your travelling.css into template/default)
in the header.htm, dont place <body> or <html> tags ! just links or a picture for example.

how do I change the formatting of the text in \gallery\language\english that appears when my gallery is started? the original text was "No category selected. Please select one in the menue"?

open (in a text editor) the file language/english.php and modify the text as you wish :-)

Offline

 

#9 2003-11-09 23:48:05

tenaka
Member
2003-11-09
37

Re: Change The Theme

Hi z0rglub,

seems like I was not specific enough with my questions:

I did what you suggested, but how do I tell a specific line in my header to use formatting a from my travelling.css and the next line or word to use formatting b from the same stylesheet? I mean if it was a html file with an attached style sheet I could do that easy, hope you understand what I am trying to say. I will give you the few lines that are contained in my style sheet:

Code:

.normaleschrift {  font-family: Arial, Helvetica, sans-serif; font-size: 16px; color: #FFFFFF; font-weight: bold; font-style: normal; text-transform: lowercase}
.normschrunterstr { font-family: Arial, Helvetica, sans-serif; font-size: 16px; color: #FFFFFF; font-weight: bold; font-style: normal; text-transform: lowercase; text-decoration: underline}
a {  }
a {  text-decoration: none}
.normaleschriftduenn { font-family: Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; font-weight: bold; font-style: normal; text-transform: lowercase }
.normaleschriftmitell { font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #FFFFFF; font-weight: bold; font-style: normal; text-transform: lowercase }
.normaleschriftmitellohnebold { font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #FFFFFF; font-weight: normal; font-style: normal; text-transform: lowercase }
.normaleschriftmitellbolditalique {

font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #FFFFFF; font-weight: bold; font-style: italic; text-transform: lowercase
}

concerning my second question: I asked how to change the formatting ( I want to use my stylesheet on that text) not the text.

thx

tenaka

Offline

 

#10 2003-11-17 22:48:05

tenaka
Member
2003-11-09
37

Re: Change The Theme

Could somebody please help me?

Here is the link so you can see what I am talking about:

**Broken link**

click on galleries and you will see what I am talking about.

thx so far

Offline

 

#11 2003-11-17 23:30:40

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
14068

Re: Change The Theme

I did what you suggested, but how do I tell a specific line in my header to use formatting a from my travelling.css and the next line or word to use formatting b from the same stylesheet? I mean if it was a html file with an attached style sheet I could do that easy, hope you understand what I am trying to say.

You have to understand how it will work : first the CSS styles from the category.vtp file will be used and then the CSS properties from your included stylesheet will be used. If you redeclare some tags (like <a>), the last definition will be taken or the nearest to the real tag (if you use somewhere <a href="..." style="color:green;"> then your link will be green whatever you asked in your stylesheet).

concerning my second question: I asked how to change the formatting ( I want to use my stylesheet on that text) not the text.

In the generated HTML code find where the text you want to format another way is, then find the CSS properties used, and finaly modify the CSS property in template/default/style.inc.php. I give you the general way to do that, you can reproduce it for every part of the page :-D

Offline

 

#12 2003-11-18 00:24:23

tenaka
Member
2003-11-09
37

Re: Change The Theme

thx for that quick reply  :D

but this thing is too advanced for me, I will just wait, maybe a good soul will give me a small help on how to do this. I am using dreamweaver to setup my page and I cannot even open the .vtp files except with notepad where they will appear unformatted.

Maybe I can find somebody at my university who can give me a hand as all this theoratical help you provided couldn't help me. I mean I investigated all the advice you gave me but somehow I am missing a link: I cannot see how all those files: header.html, category.vtp and style.inc.php are connected.

Anyway phpwebgallery is  a great tool so keep on your efforts and a good night to everybody out there

Offline

 

Board footer

Powered by FluxBB