PDA

View Full Version : Tags and New templates


krooke
07-21-2007, 10:11 PM
Greetings to everyone at the pixelpost forums. I am a web author and working for other people have made me forget about myself. So i decided to give me a new website once and for all. After evaluating several choices, I chose pixelpost for the gallery as i am a 2d/3d artist and unlike many of you, i shall be displaying my digital artwork instead of photos. But enough of introductions. I do need a little hand with tags and templates.

Question 1
The documentation states that you can create new pages and add pixelpost tags to them. So, since i don't particularily like the fact that the start page is the last picture posted, (which uses the image_template.html file) i decided to create a proper "index" or start page for my gallery. I created a file called gallery_template.html. In here i have the categories, some info about myself, some stats generated through some mods i d/l from here, etc. But, when i put the <IMAGE_THUMBNAIL_ROW> nothing gets displayed, unlike every other tag i've thrown into this template. (yes i have pictures already in dthe Db) So i don't understand. Its like this tag refuses to display anything in this new template.... why? :confused:

Question 2.
Since i want this template to become my start page, how can i make pixelpost choose this template as start page instead of the default image_template.html? I want to leave image_template.html to display my full size pictures and for the commenting function only.

Any thoughts will be greately appreciated. And thanks for such a flexible marvelous script!
(BTW: For admins: The smilies are showing broken images in the post thread part of the forum...)

Dkozikowski
07-22-2007, 12:22 AM
Hello Krooke.

I'm about to head out the door so I apologize for the quick response or lack there of, but, the answer to question #1 is:

Most template tags designed to be used within image_template.html will only work within image_template.html.
This was done to help keep Pixelpost from parsing unneeded tags when browsing the other sections like browse and about.

So, technically, if you wanted to, you could copy the original Pixelpost code (if you can find it) place it into an addon structured file, and create your own template tag to do the same thing.
I know this is allot of work and may seem like a crazy solution but it's the only thing that can be done right now.

Question 2 will need a little more time to respond to than I have right now but if you have not been helped by tomorrow I'll come back in here and give you some ideas.

krooke
07-22-2007, 07:17 AM
Hi and thanks for such quick reply. OK i was able to sort it out using your handy "Recent Images" add on, which i tweaked a little to display the thumbnails horizontaly, not in a list. I had to do a lot of css and it went out well. So i no longer need the "thumbnails as row" tag. As for the index, my website's main index isn't the gallery's main page, so i will play with the links and that's it. What i do need is the ability to display, randomly or not, a sized-down image from the database into this new "gallery_template.html" file of mine and the entry page will be finished.

GeoS
07-22-2007, 08:46 PM
1. This tag (<IMAGE_THUMBNAIL_ROW>) is only for image_template file (as condition for code exucution is empty $_GET['x'] variable, so for $_GET['showimage'] variable in URL it will work).

2. You can check if at your box index.html is more important then index.php. If so then you can use index.html with iframe/frame with index.php?x=my_custom_start_page. You can also at such situation set index.html to be parsed same as PHP scripts and there do what you want.
Other option is to play with mod_rewrite and do what you imagine.

All is possible the only barrier is your imagination and technical possibilities.