View Full Version : Stripped down version?
MikeCaine
9th of February 2007 (Fri), 07:26
A while ago I need to install a gallery on an existing website and I used the 1.5 version of EE, but with various bits stripped out just to leave the core index page and subsequent photo pages.
How easy is it to do that in EE 2.02?
I'm making a new site and I need a gallery in it.
All I need is the central part of the index page and the individual photo pages.
What I need chopping out are the header, left hand side "new photo" and right hand side "news and links" sections.
I'm not too sure about templates and styles, so is there and easy step guide on how to do it, or has anyone else do it and can provide help on how they did it?
Thanks
Mike
yosemite
9th of February 2007 (Fri), 12:20
hey mike yes i did this with my ee2 and you can see it at http://www.yosemitestock.com/ee2/
i did this awhile ago and have since moved on so i can not remember how i did it although i can provide the file i modified
this one is located in your gallery/templates/pages/ee_2_default/index/default_XHTML_content.php
MikeCaine
10th of February 2007 (Sat), 04:33
Hi
That look very much like what I want to do. I'll do the 1.5 install > 2.02 upgrade over the weekend and then try it.
Can I get a copy of your file to compare to the original to see what you have to change and maybe get to understand how it works?
Thanks
Mike
jeronimo
10th of February 2007 (Sat), 12:20
Stripping down is quite easy. Because almost averything is template based, you can kick out things very easy. And also you can put functions in other pages and other places realy easy.
MikeCaine
11th of February 2007 (Sun), 04:34
I've had a go at playing with templates, and I think I get how it works, but I seem to have stuck an odd problem and I'd be grateful for any help
I'm putting together a site for a charitable event that I'm taking part in towards the end of the year and I want to incorporate EE into it. The site isn't live yet, but it can be accessed through http://www.italianjob.info/index1.html
(It's a rough first draft and I know there's typos etc to be sorted :-) )
The gallery section will eventually be at http://www.italianjob.info/gallery/ and as you can see I managed to remove the left and right columns OK
What has stumped me though is the odd way the red bar in the header of the page has been rendered.
What I've done is copied all the html preceeding "Italian Job Photos" from http://www.italianjob.info/gallery1.html into a header file and all the html after that bit into a footer file. I did alter the paths to go up an extra level.
I've spent hours looking to see why it has gone wrong but can't spot anything
Can anyone else help by spoting what's gone wrong? I'd love to get this sitle live as soon as possible to help with the fundraising
Thanks
Mike
MikeCaine
11th of February 2007 (Sun), 07:43
I'm more confused now
I've just done a very quick and dirty install of EE 1.5RC4 into
http://www.italianjob.info/test/
and it seems to work fine (apart from missing stylesheet). The header section is 100% as it should be, so why does it work in 1.5 but not in 2.02 ?
What am I missing here?
Mike
jeronimo
11th of February 2007 (Sun), 16:07
I am not fully shure about this. But EE2.02 puts things on the web in XTML format.
And the site with the missmade header (forgive me my english) is not strict XTML. Things like border thiknes, width and so on should be adressed from an style sheet.
E.G.
<td width="165" valign="top" bgcolor="#008837">
is not correct
Should be something like this
<td class="headerspan">
And then in an CSS you devine "headerspan"
.headerspan{
width:150px;
vertical-align:top;
bgcolor:#008837;
}
Hope this works for you
MikeCaine
11th of February 2007 (Sun), 18:25
This is where it starts to get a bit past my understanding and abilities
Do you think it would work if i rewrote the html for the included header and footer and included the relevant CCS in a file and left the rest of the non EE pages as they are at the moment?
I must admit that I've tried commenting out the strict XTML declarations out, but there's so many of them and I seem to have messed things up despite putting them back as they were.
I'm tempted to just go with EE 1.5 as that seems to work OK for me when I embed it into the site
Mike
jeronimo
12th of February 2007 (Mon), 05:40
Yeah you can always link to non xhtml pages. Why not? If you trie to make the look en feel the same, there are not so many people who will see the difference. And if they do, so what?
It's about your content, and you can present it any way you those. If it is .asp, .php, .html, for me it doesn't matter.
The only thing is that it can be easier for yourself if you make thing al the same.
A quick look in the wishlist from the forum learns that there will be some HTML output script in the (near) future. So then your pages are html in stead of XHTML.
Good luck!
-extra comment added-
If you look in the EE2 directory under /templates/pages/ee_2_default/all/basic_stuff_1.php there you will find an CSS that is included in all the EE pages. So adding header stuf there should do the tric.
MikeCaine
15th of February 2007 (Thu), 18:18
I'm probably going to run with EE 1.5 until I can get this sorted
Does anyone know how to remove the border from the white style in 1.5?
Thanks
Mike
MikeCaine
15th of February 2007 (Thu), 19:10
I've sorted the large border by just resizing the graphics used down to 3 pixels.
Any idea what controls the line under "Italian Job Photos", which is the last part of part of the header file, as it's pushing the page out wider than I want.
Thanks
Mike
jeronimo
16th of February 2007 (Fri), 09:26
This part?
Welcome!
All comments are welcome. Enjoy your stay and please come back again soon.
I think you should look in the control panel. Probably you can delete the text there.
Or else deleting
<h1 class="ee_css_header_large">
<?php print $current_group_header_html; ?>
</h1>
On line 67-69 in templates/pages/ee_2_default/index/default_xtml_content.php wil do the trick. (safe the orignal file on an other name, so you can always back it up)
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.