CpmFetch Announcements from FistFullOfCode.com - Issue #4
[The exact Center of the Internet BTW]
--------------------------------------------------------------
Sign up for email notifications at
http://cpmfetch.fistfullofcode.com This will get you:
* Emails for new releases and development releases
* Notifications of new tutorials and online help
* Security notification (if we ever have one)
* Email addresses held closely - no spam, not shared
----------------------------------------------------------------
* * * Development release 1.3.6 is ONLINE now * * *
( get it at
http://cpmfetch.fistfullofcode.com )
***********************************************
IMPORTANT: The coppermine.php file has been removed... see
below for making changes to your system so this (and all future)
versions continue to work.
***********************************************
I have posted a new development release online. Updating to this is purely up to you...
If there is something you like here, go ahead. If not stick with what you have. If you think
you have a bug now, upgrade to this before reporting it (or else)
:::::::::News:::::::::::
Well, I have had less and less time to work on this, but thankfully I got a
breather today and finished up a bunch of functions and changes. There
is of course, more on my list.
Coppermine forums online:
As some of you may have noticed, someone in a lapse of judgement :p gave
CpmFetch its own child board and gave me moderator status. While I have not
really had a chance to abuse my power, I play to when I get a chance.
The board is now at
http://forum.coppermine-gallery.net/index.php?board=57.0I'd like to ask people to first try posting in the relevant thread there before E-mailing me... If I
can't help right away perhaps some other people can help. There are some smart people
in there... really.
This will most likely be the last changes before marking it as a stable, so please try it out
and tell me what bugs you find. Some significant refactoring has taken place, so I am
sure I broke something.
:::::::::::Here is what is new:::::::::::::::
* Using CPMFETCH (NOT cfimageget) from your html pages !!!!!
* Recode coppermine.php to cpmfetch.php [VERY IMPORTANT]
* Recode coppermine_dao.php to cpmfetch_dao.php
* Random from Top rated
* Random from Most viewed
* Cfimageget_classic.php removed
* Improved cftest.php
* Conversion to arrays back from coppermine_dao (instead of result sets)
USING CPMFETCH (NOT CFIMAGEGET) FROM YOUR HTML PAGES !!!!!
=========================================
Whodathunkit? Anyway, I posted a new thread on the support forums giving a
run down on how to do this easily. Its so damned simple that I may not ever
put out an SSI module! We will have to see:
http://forum.coppermine-gallery.net/index.php?topic=18547.0Its incredibly fun, and just to boot, its 100% ORGANIC
RENAME COPPERMINE.PHP TO CPMFETCH.PHP
RENAME COPPERMINE_DAO.PHP TO CPMFETCH_DAO.PHP
============================================
I renamed the coppermine.php and coppermine_dao.php files to something
a little less sounding than coppermine. This is a painful change for everyone since it
will involve you altering any page you are using cpmfetch on. It was not a
decision made lightly - but I feel it had to be done. This should reduce some
confusion and make it easier to work with the coppermine photo gallery in close
proximity.
What you have to change:
* Any page that used coppermine.php has to be changed from:
include "./coppermine.php";
to
include "./cpmfetch.php";
Again, sorry - but its for the best.
RANDOM FROM TOP RATED
RANDOM FROM MOST VIEWED
=================================
cpm_viewRandomMostViewedMediaFrom ($source, $rows, $columns, $options)
cpm_viewRandomTopRatedMediaFrom ($source, $rows, $columns, $options)
So a simple request like "I'd like to show a random number of the highest rated image" is a lot
harder than you would think. These two are very similar so I will only cover the
description of what happens internally to figure this out. I am OPEN to suggestions on
improving these...
When you request 5 rows x 5 columns (10 images) the functions do a few things:
1. Gets the total number of images available to that source
2. Mutiples the number by a percent to qualify (currently 25% for rated and 10% for viewed)
3. Gets that many back from the database sorted by rating or views (depending)
4. Randomly grabs the count you want from there.
CONVERSION TO ARRAYS BACK FROM COPPERMINE_DAO
===========================================
(INSTEAD OF RESULT SETS)
This will not affect almost everyone, but internally I was handing around mysql resultsets.
Moving forward this will be done by assocaitive arrays. This makes my job a lot
easier with some things I want to do. The drawback? You can't get a resultset back
for the foreseeable future from the dao. If this is a big problem for you, let me know
and if your reason is good enough - I will work something out. Requesting a resultset to be
returned will now return an associative array.
CFIMAGEGET_CLASSIC.PHP REMOVED
============================================
This is the old version, no redeeming qualities at all. Saw one person trying
to use it, so I am just plain out removing it from the package.
IMPROVED CFTEST.PHP
============================================
CFTEST was useful once upon a time. After some changes to object creation
and destruction it was less so. So I spent some time redoing it all so it will help you
and me get you working faster. I'll be changing it as you, the user community,
find new and innovative ways to break my lovingly crafted program.
::::::::::::::A WORD ABOUT DEV RELEASES:::::::::::::
Typically development releases are done in software when new features are added... New features sometimes
introduce bugs (software errors) that the testing we do here misses. If this happens, it is usually something
strange. The dev releases here are generally very stable. Changes sometimes even make the program
more stable, which adding new features.
Overall, In most circumstances, if your random thumbnail is not working for a few minutes when you upgrade
you are going to be okay. If a dev release has something you like, give it a try. I always have all the older versions up
for download so you can go back if it breaks.
If you do have a problem, PLEASE let me know. That way I can fix it. If I don't know about it, it could be
a long time before it gets fixed.
-------------------------------------------------------------------------------------------------------
Thanks!
Bill@fistfullofcode.com aka Vuud