Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #1  
Old 11-18-2005, 09:20 AM
davide.dege Offline
forum loafer
 
Join Date: Nov 2005
Posts: 2
Category Description

how i can put the description in each category? Please help me because i saw a solution but i did not understand. thanks
dege

polpetta.org
Reply With Quote
  #2  
Old 11-18-2005, 10:08 AM
Connie
Guest
 
Posts: n/a
which description?
at which page you want to integrate it?
where did you see a solution?

you must be a little more exact, sorry, we have no christal balls...
Reply With Quote
  #3  
Old 11-18-2005, 08:27 PM
davide.dege Offline
forum loafer
 
Join Date: Nov 2005
Posts: 2
i would like to post a description on each category i create. So when i browse the category of my blog i can see in each category a small description. thanks!
Reply With Quote
  #4  
Old 11-18-2005, 08:42 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
yeah... you need an addisional DB field inside the categories table of pp that saves the description of the categories too. seemingly hardcore hack hack if you are not familiar with PP or PHP
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #5  
Old 11-18-2005, 08:53 PM
tinyblob's Avatar
tinyblob Offline
team pixelpost
 
Join Date: Nov 2005
Location: scotland
Posts: 523
following a couple of other peoples requests, i've decided to start work on a categories addon, to make better use of what's currently just a sorting tool.
i could do what you ask by adding another table to the database, which isn't exactly good for optimisation, but will keep the "real" database structure as released.
check of my recent posts for the threads in question, i need someone to put all these category ideas into one "request" thread so i can get started.
__________________
touchnothing.net
Reply With Quote
  #6  
Old 11-18-2005, 09:24 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
why another table? no enough reasons
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #7  
Old 11-18-2005, 11:11 PM
tinyblob's Avatar
tinyblob Offline
team pixelpost
 
Join Date: Nov 2005
Location: scotland
Posts: 523
like i said. to keep the database structure as released.
deleting an entire table through some hosting control panels is far easier than removing a single field.
plenty reasons to keep things modular, especially in a system like this.
__________________
touchnothing.net
Reply With Quote
  #8  
Old 11-21-2005, 06:09 AM
derevaun Offline
pp regular
 
Join Date: Mar 2005
Location: oly, wa
Posts: 47
I did something like that, without an extra table in the database. Instead, I have it read in a snippet of html that contains the description. I saved each description as n.html where n is the category number that appears in the address. The addon just retrieves the category number using $_GET['category'], tacks that onto a path, and uses file_get_contents() to insert the snippet at a custom tag.

It's probably not as elegant as a new table solution, and it requires arranging the snippets just right. I'd be happy to talk anyone through what I did, but an addon by someone who knows what they're doing might be a better choice

It's in use on my blog, below:
__________________
http://asiftosay.com
Reply With Quote
  #9  
Old 11-21-2005, 08:15 AM
tinyblob's Avatar
tinyblob Offline
team pixelpost
 
Join Date: Nov 2005
Location: scotland
Posts: 523
i'll be implementing this in my upcoming categories "mod". but i won't release this till after Pixelpost v1.5 is released, hopefully in the next few weeks.

if you want a hand implementing on your own install before then, PM me.
__________________
touchnothing.net
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 01:07 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs