PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Template guide (http://www.photopost.com/forum/photopost-pro-how-do-i/131508-template-guide.html)

dropmachine April 21st, 2007 02:12 AM

Template guide
 
So I have searched around, but I can't seem to find what I am looking for.

Are there any template guides? I gotta admit, I find them pretty confusing to say the least. Its just a bit tricky figuring out what controls what and all that.

Thanks very much.

Chuck S April 21st, 2007 12:49 PM

We dont have hacking guides. However we do have a list on which templates go to what files

http://www.photopost.com/forum/photopost-product-faqs/109478-templates-what-faq.html

dropmachine April 22nd, 2007 11:54 PM

Yep, thats exactly what i was looking for.

Bit of a problem though. While I can edit the templates, I cannot get it to recognize new additions to the CSS file that I am using.

I ahve chosen the Silver theme, but the template will ignore anything I put in there that isn't seemingly original in the CSS file.

Strange.

Chuck S April 23rd, 2007 11:06 AM

It is not strange. If your defining new classes you need to change templates to use those new classes.

It all depends what your trying to do so without more of an example I cant really assist. Please explain in more detail what your doing.

dropmachine April 23rd, 2007 11:38 AM

Well, basically this is what I currently have :

http://madcatzracing.com/gallery/

I want it to look like this:

http://www.dropmachine.com/images/.jpg



So, i figured on adding additional cells on top of whever it was required, with a new class that calls the title graphic images as a background.

Its not working out. So maybe I have to do it as a straight graphic? Only problem is, it won't look as good.

Chuck S April 23rd, 2007 11:52 AM

Have you defined the additonal class in the stylesheet what is it?

Have you altered the templates to use this new class and how are you doing it?

dropmachine April 23rd, 2007 12:02 PM

Well, for example, this would be the sample css text:

.greylineright {
background-image: url(../stylesheets/graphics/greylineright.png);
background-repeat: no-repeat;
background-position: right top;
}



In say Categories.tmpl, i would just do this (but not in bold or caplitals):

<td class="{$Style['GREYLINERIGHT']}" align="right" nowrap="nowrap">
{$cats['numposts'][$x]}</span> {$cats['lpostlink'][$x]}
</td>


Basically defining new classes in silver.css and then trying to sub them into the template files.

Doesn't seem to be working, unless they are classes that have previously been stated. Anything I add seems to be ignored.

Chuck S April 23rd, 2007 12:08 PM

There is your issue. You have never defined the class $Style which are defined elsewhere. We use a style array for our forum integration to remap classes when using forum styles and the $Style array is predefined in each integration file

{$Style['GREYLINERIGHT']}

The class name is not that use since you are not using that array use the straight class name

greylineright


All times are GMT -5. The time now is 11:20 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97