Announcement

  •  » Themes
  •  » Tables for theme/template?

#1 2011-06-03 01:03:28

tearran
Member
2011-06-03
10

Tables for theme/template?

I am having problems turning this http://paysonsplaces.x10.mx/paysonsplaces/ into a theme/template.  CSS/<div> are new to me.This was done with Tables. Any help would be great

Offline

 

#2 2011-06-03 14:03:26

flop25
Piwigo Team
2006-07-06
7037

Re: Tables for theme/template?

hello
you've almost finished :
.content {
width : auto;
}
#menubar {
    display: block;
    float: none;
}

Then if you want to embed the main content (div .content) into a table to manage your rounded corner, I suggest you to see the theme Pure_default [extension by flop25] Pure_default : first look at the tpl files of the 1.1.1, then in the 1.2.0, you'll see how to make your modification compatible with the evolution of Piwigo and with plugins by some php code instead of tpl files.

Btw you did a good job and a nice theme ! It would be great if you agree to publish it.


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2011-06-07 09:48:20

tearran
Member
2011-06-03
10

Re: Tables for theme/template?

Thanks for the response. Sorry did not realize how vague my post was till now. The main problems for me were reading people saying don't use <TABLE> use <DIV> (I will be using both for ease of layout) also did not know about smarty or what 

Code:

{$foo}

was referring to.  The Smarty Debug Console has been somewhat helpful. That said...

I am trying to create a theme from that template with a horizontal menu sorta like http://piwigo.org/ext/extension_view.php?eid=375 at 100% width and hopefuly Paypal cart http://piwigo.org/ext/extension_view.php?eid=499.
   
Started the theme http://paysonsplaces.x10.mx

Code:

'parent' => 'default',

Having problems with the image page as it stands. I am getting there slowly.  As far as publishing this theme would love to if someone would help optimize it. Any suggestions that would help will be greatly appreciated.

Thanks.

Last edited by tearran (2011-06-07 09:56:04)

Offline

 

#4 2011-06-07 11:27:37

flop25
Piwigo Team
2006-07-06
7037

Re: Tables for theme/template?

people saying don't use <TABLE> use <DIV>

just don't take that strictly : I use table but the minimum. A complete failure would be to use table to embed everything, but one or two table for design never killed someone ^^

Having problems with the image page as it stands.

ho you means all the data put after the footer ? ^^ what a disaster ! Can you post your code of picture.tpl here ?

I have noticed that your server take 4-6 sec to respond (but I'm in Europe so the ping is high, but your server is also running slowly) From your Cpanel, you should also enable the compression data.

If you want to publish it and a better help from us, you should upload it on our subversion server (connect on http://piwigo.org/svn/ but browse from web on http://piwigo.org/dev )


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#5 2011-06-07 23:05:11

tearran
Member
2011-06-03
10

Re: Tables for theme/template?

flop25 wrote:

ho you means all the data put after the footer ? ^^ what a disaster ! Can you post your code of picture.tpl here ?

Used the default picture.tpl

Found the culprit in my css. 

Code:

table {
         height: 100%;
}

was causing the overlapping.

flop25 wrote:

I have noticed that your server take 4-6 sec to respond (but I'm in Europe so the ping is high, but your server is also running slowly) From your Cpanel, you should also enable the compression data.

This is just a test server and it is overloaded. Some times it wont respond at all. I use http://www.easyphp.org/ to edit locally. Hopefully I will be able to use piwigo.com when it is finished.

flop25 wrote:

If you want to publish it and a better help from us, you should upload it on our subversion server (connect on http://piwigo.org/svn/ but browse from web on http://piwigo.org/dev )

I have not used svn before. Not finding the right combo of keyword in google to show how to add to svn. Got a lot on my plate trying to learn css smarty and <div>. uploaded theme in zip on my site http://paysonsplaces.x10.mx/paysonsplaces.zip called it ver 0.1. I would be happy to add it if i can get a link to an easy tut for svn and exactly were to upload to.

Thanks for all the help

Offline

 

#6 2011-06-08 12:19:04

flop25
Piwigo Team
2006-07-06
7037

Re: Tables for theme/template?

tearran wrote:

Hopefully I will be able to use piwigo.com when it is finished.

Are you sure you can have custom theme pwg.com ?

tearran wrote:

I would be happy to add it if i can get a link to an easy tut for svn and exactly were to upload to.

Is this http://piwigo.org/doc/doku.php?id=proje … .org&s[]=subversion what you need ? ^^


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#7 2011-06-09 10:09:56

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

Re: Tables for theme/template?

flop25 wrote:

tearran wrote:

Hopefully I will be able to use piwigo.com when it is finished.

Are you sure you can have custom theme pwg.com ?

Some Piwigo.com galleries have a custom theme :-) Example on http://aviariolovebird.piwigo.com

Offline

 

#8 2011-06-10 22:22:04

tearran
Member
2011-06-03
10

Re: Tables for theme/template?

Thanks for all the help.

flop25 wrote:

Are you sure you can have custom theme pwg.com ?

plg wrote:

Some Piwigo.com galleries have a custom theme :-) Example on http://aviariolovebird.piwigo.com

I was under the impression that piwigo.com was a full host. I will have to support in another way.

flop25 wrote:

Btw you did a good job and a nice theme ! It would be great if you agree to publish it.

I have decided  to publish with different backgrounds (My girlfriend and I want exclusive use of the BG images  on template shown above.). Still haven't quite gotten subversion figured completely out but enough to upload 1st Revision.
Download Page
Forum Page

Offline

 

#9 2011-06-11 16:32:14

flop25
Piwigo Team
2006-07-06
7037

Re: Tables for theme/template?

well good news !
thx for sharing your work


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 
  •  » Themes
  •  » Tables for theme/template?

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact