Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #11  
Old 04-17-2007, 09:39 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
Algorithm is simple (in "metacode"):

max_tag = base for all calculations is the most common tag;

weight = round(count_of_tested_tag/max_tag, with_precision_to_one_digit_after_comma);

tags10 = if(weight == 1.0)
tags09 = if(weight == 0.9)
tags08 = if(weight == 0.8)
....
tags01 = if(weight == 0.1)
tags00 = if(weight == 0.0)

Now I found we (or I should say I) forgot about tags00 in CSS definition :/
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #12  
Old 04-18-2007, 02:56 AM
dakwegmo's Avatar
dakwegmo+ Offline
Team Pixelpost
 
Join Date: Jul 2005
Location: West of Between
Posts: 689
Quote:
Originally Posted by dakwegmo View Post
Where is that algorithm? I've been looking through the code and can't seem to find it.
Sorry to be so dense. I found it in the paged_archive addon. I didn't have access to my server at the time, and for some reason didn't have this addon stored locally.
__________________
My Photoblog
If you find my help useful please consider feeding the PixelPost Kitty
If you're short on cash just feed my ego
Reply With Quote
  #13  
Old 04-18-2007, 05:05 AM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
Uhm... if you only need to change the fontsize why not do this in the CSS file?
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
  #14  
Old 04-18-2007, 01:40 PM
dakwegmo's Avatar
dakwegmo+ Offline
Team Pixelpost
 
Join Date: Jul 2005
Location: West of Between
Posts: 689
Quote:
Originally Posted by schonhose View Post
Uhm... if you only need to change the fontsize why not do this in the CSS file?
It's not just about the font size. guiz is talking about getting more control over when certain css classes are applied. I think he was under the impression that there was a set rule that when a tag is used once it gets the tags01 class applied, if it's used twice it gets tags02, if it's used three to five times it gets tags03, etc.

guiz the reason you can't find where to change the settings, is that everything is dynamic. What GeoS is telling us with the metacode he posted is that the classes for each tag are calculated dynamically. What it's doing, generally speaking, is finding the tag that you use the most and assigning class10 to it. Then it finds the tag you use the least and assigns class00 to it. For all other tags they are assigned a class based on how close they are to either of these extremes.

For example, if your most used tag was used 10 times, and your least used tag was only used once, then a tag that's been used 5 times is going to be assigned tag05. If you're extremes are 1 and 100 though, you would need to use a tag 50 times in order for it to get tag05.

Does that make sense?
__________________
My Photoblog
If you find my help useful please consider feeding the PixelPost Kitty
If you're short on cash just feed my ego
Reply With Quote
  #15  
Old 04-18-2007, 09:02 PM
guiz Offline
pp veteran
 
Join Date: Oct 2006
Location: Italy
Posts: 86
yes, now I have understand it: it is dinamic proportional to the sum of the photos I have.
as you say dakwegmo, I thought there would be a fixed table with number of images and the tagsxx class and that the user could change the variables
Reply With Quote
  #16  
Old 04-18-2007, 10:49 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
As you have some new idea and all data are in DB then you can create own addon playing with tags as you want
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 03:51 PM.

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