Home » Archive

Articles Archive for mai 2004

PHP, plugins, sql »

[31 mai 2004 | No Comment | ]

Out of a post (eg: in index.php)
// Generate tags to display several random pictures from a specific Coppermine album (if -1 : from all albums)
function CPGRndPicture($aid=-1, $count =-1, $nSize=1,$before=» ,$after=» , $activelink=true, $dummy=» ) // Generate tags to display a full album from a specific Coppermine album (if -1 : from all albums)…
function CPGAlbum($aid, $nCols=4, $nSize=1, $beforeCol=» ", $afterCol=» ", $beforeRow=» ", $afterRow=» ")
// Get the name of an album
function CPGAlbumName($aid)
// Get the name of a category
function CPGCategoryName($cid)
// Get the number of pictures within an album
function CPGAlbumPicCount($aid)
// Get …

Uncategorized »

[31 mai 2004 | No Comment | ]

Well, I was too fast to deliver the psnGallery2…In the sql, included in the « package» . There is a « (»  too much !
In order to fix the issue. Execute the following sql (eg, from phpMyAdmin) :

UPDATE wp_psnGallery SET value = ‘CPGPicture($elems[ 0 ], $elems[ 1 ], $elems[ 2 ], $elems[ 3 ], $elems[ 4 ], $elems[ 5 ], $elems[ 6 ]);’ WHERE « kind»  = ‘TAG’ AND « key»  = ‘picture’ LIMIT 1 ;

And here is sample of the display of one specific picture via the tag <cpg_picture>759|1</cpg_picture>
759|1

Uncategorized »

[29 mai 2004 | No Comment | ]

So ! Here we go !
The release of psnGallery 2 (wordpress + Copermine) is out since few days but as you know, the idahocline.com is down for unknow reason without news from the webhoster !
So as promised, here is the zip of the plugin
Have fun with it ! )

site »

[29 mai 2004 | No Comment | ]

Well, it seems that idahocline.com has huge issues ! So here is the phoenix !
Unfortunetaly my last database backup was …..old (few days) but…

Uncategorized »

[28 mai 2004 | No Comment | ]

As promised, the new release is available for download !
Click on download to get it !
Keep me inform if you encounter any issue !

Uncategorized »

[27 mai 2004 | No Comment | ]

Based on the work of Stevarino and to answer to WordPress Forum, here is another version :
I found the problem….It comes the formatting functions which convert few « special»  characters into more fancy one….

function run_phpinpost($data) {
$PHPTag = « phpcode» ;
$data = str_replace(array(» rn» ,» r» ), « n» , $data);
while (false !== strpos($data, « < ".$PHPTag .">« )) {
$Before= substr($data, 0, strpos($data, « < ".$PHPTag.">« ));
$After = substr($data, strpos($data, « » )+(strlen($PHPTag)+3));
$Evaluate = substr($data, strpos($data, « < ".$PHPTag.">« )+(strlen($PHPTag)+2));
$Evaluate = substr($Evaluate,0,strpos($Evaluate, « » )-1);
$Evaluate = str_replace(array(» ’» ,» ‘» ),» ‘» , $Evaluate);
$Evaluate = …

Uncategorized »

[27 mai 2004 | No Comment | ]

Well, I know it is always annoying to wait for news…. So here are some…
The most important addition/change with the release is the fact that all the configuration parameters are now stored in a table in the « wordpress»  database (see below to have further information).
Here are the differents news functionnalities available with psnGallery2 1.2.1 :

User Defined tags for posting where you associate a tag to php code
Coppermine Albums viewer within WP-Admin area
Coppermine Pictures viewer within WP-Admin area
psnGallery2 parameters viewer within WP-Admin area
Fix of few bugs
etc…

In the future versions, …

Uncategorized »

[26 mai 2004 | No Comment | ]

According the WordPress Support forum, several requests appeared..about having a way to found out the albumid, the pictureid, etc…
So, my answer is :
Here is a preview of the Administration page for psnGallery2 plugin.

The new psnGallery2 will be out soon. In fact, I am reviewing the way of handling the « customized»  tags and as you can imaigne in the preview above, a management of the plugin parameters is done now via another way (a configuration table). This is in test phase since yesterday.
If I have enough time, the new …

Uncategorized »

[9 mai 2004 | No Comment | ]

I finally integrated the « nicer archives« .
Easy, simple, nearly nothing to do to be integrated !
Click here to view it in action or in the Blog menu, select the option « Archives» .

site »

[7 mai 2004 | No Comment | ]

As you know now, the Star Wars Trilogy DVD will be out in September 2004 !
Here is the packaging preview :

68|5|1

This four disc DVD features the Star Wars trilogy.

Disc 1, Episode IV A New Hope: Eighteen years later, Luke Skywalker, a young farmboy on Tatooine, is thrust into the struggle of the Rebel Alliance when he meets Obi-Wan Kenobi, who has lived for years in seclusion on the desert planet. Obi-Wan begins Luke’s Jedi training as Luke joins him on a daring mission to rescue the beautiful Rebel leader …