CpmFetch - (OLD/LOCKED) stats/thumbnails/randoms/etc from outside CPG - Page 17 CpmFetch - (OLD/LOCKED) stats/thumbnails/randoms/etc from outside CPG - Page 17
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

CpmFetch - (OLD/LOCKED) stats/thumbnails/randoms/etc from outside CPG

Started by vuud, December 17, 2004, 10:19:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vuud


I am thinking that it is the include, and not being able to find coppermine.php.   I am guessing here, but I am thinking that whereever the php file is being executed from is not right above the gallery directory.  If you can try including the whole path to the coppermine.php file, it may help.  The trick is the reference has to be right from where the php is being executed... so if file A includes file B (which is your block), file B's contents are executed at file A's location.

More on the include function is at:
http://us2.php.net/manual/en/function.include.php

Let me know if this helps!


Quote from: pierse on March 20, 2005, 06:56:48 PM
okay... still trying to get this code to work:

Quoteinclude "gallery/cpmfetch/coppermine.php";
$objCpm = new cpm('/gallery');

$objCpm->cpm_formatStats("Here is a percent sign %% There are
   %f files in %c categories containing %a albums,  having served %v views and getting %n comments");

$objCpm->cpm_close();

I am using Tiny Portal For SMF beta .5; using a phpbox block;

I get the following error:

QuoteWarning: Unknown(gallery/cpmfetch/coppermine.php): failed to open stream: No such file or directory in /home/pierson/public_html/smf/Sources/Load.php(1042) : eval()'d code(31) : eval()'d code on line 1

Warning: Unknown(gallery/cpmfetch/coppermine.php): failed to open stream: No such file or directory in /home/pierson/public_html/smf/Sources/Load.php(1042) : eval()'d code(31) : eval()'d code on line 1

Warning: (null)(): Failed opening 'gallery/cpmfetch/coppermine.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/pierson/public_html/smf/Sources/Load.php(1042) : eval()'d code(31) : eval()'d code on line 1

Fatal error: Cannot instantiate non-existent class: cpm in /home/pierson/public_html/smf/Sources/Load.php(1042) : eval()'d code(31) : eval()'d code on line 2


Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

mrmike987

It didnt work...


Quote from: vuud on March 20, 2005, 06:01:56 AM
Quote from: mrmike987 on March 20, 2005, 05:14:30 AM
Thanks for the responce but I suck at code and have no idea how to do it. The docs dont help people like me,,

Sorry, I figured if you got that far you'd be okay with the list.

Basically you have this:

$objCpm->cpm_viewLastAddedMediaFromAlbum(1,1,6,array("subtitle" => "<center>Added<br>%w"));

If you want to have it link to the gallery you just need to add another option to the array:
array("subtitle" => "<center>Added<br>%w", "imagelink" => "gallery")

So use that in your call:

$objCpm->cpm_viewLastAddedMediaFromAlbum(1,1,6,array("subtitle" => "<center>Added<br>%w","imagelink" => "gallery"));

The others on that documentation page I sent would just get added in the same way.

Happy fetching :D

PS. For some reason I am thinking that on the newer versions the default is the gallery, if not it should be!







vuud


See, thats what happens when you ask for help...  Sorry about that...

Replace where I said "gallery" with "album"... that will fix it.

If either one us read the docs, we could have fixed this by now :D





Quote from: mrmike987 on March 20, 2005, 08:14:25 PM
It didnt work...

Quote from: vuud on March 20, 2005, 06:01:56 AM
Quote from: mrmike987 on March 20, 2005, 05:14:30 AM
Thanks for the responce but I suck at code and have no idea how to do it. The docs dont help people like me,,

Sorry, I figured if you got that far you'd be okay with the list.

Basically you have this:

$objCpm->cpm_viewLastAddedMediaFromAlbum(1,1,6,array("subtitle" => "<center>Added<br>%w"));

If you want to have it link to the gallery you just need to add another option to the array:
array("subtitle" => "<center>Added<br>%w", "imagelink" => "gallery")

So use that in your call:

$objCpm->cpm_viewLastAddedMediaFromAlbum(1,1,6,array("subtitle" => "<center>Added<br>%w","imagelink" => "gallery"));

The others on that documentation page I sent would just get added in the same way.

Happy fetching :D

PS. For some reason I am thinking that on the newer versions the default is the gallery, if not it should be!






Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

pierse

I changed all the information to direct url address. All the other errors are gone... I have a new one now...

QuoteFatal error: Cannot instantiate non-existent class: cpm in /home/pierson/public_html/smf/Sources/Load.php(1042) : eval()'d code(31) : eval()'d code on line 2

Thanks for the link... but I'm new to php code... so all that coding, got me lost and confused.

vuud

Quote from: pierse on March 21, 2005, 05:31:50 AM
I changed all the information to direct url address. All the other errors are gone... I have a new one now...

QuoteFatal error: Cannot instantiate non-existent class: cpm in /home/pierson/public_html/smf/Sources/Load.php(1042) : eval()'d code(31) : eval()'d code on line 2

Thanks for the link... but I'm new to php code... so all that coding, got me lost and confused.

Pierse, I am note sure what is going on in there.  If the other errors are gone then you should not be getting a problem finding the object.

For lack of the energy to install tinyportal or any other real ideas right now (its late) try the following:


* Change the include to require

* Add this in above the code there
error_reporting(E_ALL);
ini_set('display_errors',1);  // 0 is off, 1 is on

Maybe it will cause something new to be displayed.  Also, hopefully your on a version that is somewhat new... 



Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

hansgans

1 question here


<?php 
include "/gallery/cpmfetch/coppermine.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewLastAddedMediaFromAlbum(3,3,4);
$objCpm->cpm_close();
?>




but how to add windowtarget _blank

plz help

thx 

pierse

From what I am understanding and from what I was told by the developer of the tiny portal, it is a problem with this line

$objCpm = new cpm('/gallery');
Quote
That is something with the included file...the class cannot be started. Have you checked the class actually exist in the coppermine.php file? That it is not included there too?
This is what he said to me.... I'm lost and I'm sorry... perhaps I should give up.

vuud

Quote from: pierse on March 21, 2005, 12:24:08 PM
From what I am understanding and from what I was told by the developer of the tiny portal, it is a problem with this line

$objCpm = new cpm('/gallery');
Quote
That is something with the included file...the class cannot be started. Have you checked the class actually exist in the coppermine.php file? That it is not included there too?
This is what he said to me.... I'm lost and I'm sorry... perhaps I should give up.

Yes, that is exactly the case.  If you are willing to let me into your code for a few minutes I can see if there is something obvious.  personal message me if you want to try that.

Did you try the other suggestions I left above?
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

vuud


You need to add it into the options array.

After the (3,3,4), you need to make it (3,3,4,array( "key" => "value"))

Where key and value are at least one of the options from the docs...

http://www.fistfullofcode.com/projects/copperminefetch/docs/readme.html#optionsarray

You also want to include in your web page the js file from the cpmfetch directory... this will give you full size like cpg does





Quote from: hansgans on March 21, 2005, 08:51:33 AM
1 question here


<?php 
include "/gallery/cpmfetch/coppermine.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewLastAddedMediaFromAlbum(3,3,4);
$objCpm->cpm_close();
?>




but how to add windowtarget _blank

plz help

thx 
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

pierse

yes I did do the other suggestions... I used full links, changed it to require, and added the debug... same error as reported above.

vuud

Well, for those that are interested... there is a new dev version up...

This would be 1.1.6 (hereby designated lucky #13 becuase I had tooth number 13 removed from my head today and am not happy about it).

Regardless... Here are the changes:

getMediaCount now obeys approved and privacy filters
getMediaCountAddedSince now obeys approved and privacy filters
getMediaCountForAlbum now obeys approved and privacy filters
getAlbumCount now obeys approved and privacy filters
getViewCount now obeys privacy filters
Documentation slightly improved

Added %D (# days old) to subtitle and AltTag options

This allows you to set subtitles and alttags like so:
"Added %D days ago" which gives "Added 105 days ago"


Added in cpm_setDateFormat to allow some very flexible date formatting

Where to begin... this allows you to set the way the date is generated in the subtitle and alt tags when you use %w to display the date added.  It basically takes anything the DATE function will take.  There are maybe 20 things you can use in there.  I've covered it in my readme file and online docs, so I wont do it again here.   Its really cool if you don't like the default date I've chosen.

See the list online at:

To use, you just call this function after you created the object and before you call for the images.  You can call it as much as you want.  If you call it with no format string, it will revert back to my default.

As always, please report problems with this version... I want to release the new stable one by the end of the week (as people are still using the old stable which is... well... old)



















Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

vuud

Quote from: pierse on March 22, 2005, 04:27:58 AM
yes I did do the other suggestions... I used full links, changed it to require, and added the debug... same error as reported above.

I don't know then... make sure you have a new version (not a really old one).  Otherwise I do not know what to tell you.

It should work..  The only thing I can think of is that you are not using a newer version, and a real old one where the new fangled constructor was not in use.

Otherwise, someday I will play with SMF and getting it working there

Which it should do!
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

Floods

Hi,

Firstly I am a newbie to this PHP stuff, I am trying hard to grasp it.

I have installed copermine 1.3.2 onto the server and a few test images, everything works fine in in the normal coppermine pages. I plan to use coppermine to feed an HTML website with images of painting from my father (the artist). So I have started looking at Coppermine fetch (last stable release 1.1. The website test page is here..... http://www.rainbow-studios.com/cpmfetch/cftest.php

I installed as per directions however CPG is installed at the root level and the pictures are in /albums. The CFTEST page runs without code errors but the thunbnails do not appear, this is because the path to the images is incomplete, it only has //albums rather than the //www.rainbow-studios.com/albums..... etc.

Can you guide me to where I change the path to the images to include the domain name?

Thanks in advance

Sean Flood

vuud

Quote from: Floods on March 24, 2005, 12:26:29 AM
Hi,

Firstly I am a newbie to this PHP stuff, I am trying hard to grasp it.

I have installed copermine 1.3.2 onto the server and a few test images, everything works fine in in the normal coppermine pages. I plan to use coppermine to feed an HTML website with images of painting from my father (the artist). So I have started looking at Coppermine fetch (last stable release 1.1. The website test page is here..... http://www.rainbow-studios.com/cpmfetch/cftest.php

I installed as per directions however CPG is installed at the root level and the pictures are in /albums. The CFTEST page runs without code errors but the thunbnails do not appear, this is because the path to the images is incomplete, it only has //albums rather than the //www.rainbow-studios.com/albums..... etc.

Can you guide me to where I change the path to the images to include the domain name?

Thanks in advance

Sean Flood



Hi,

Move to the last development release, or wait till next week when it will be marked as the new stable.  I'd recommend just doing it now, since little else will change.

That will fix all your problems!

:D

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

sheylak

hi guys good morning :D

well i just wondering if this code is ok. i want when click the picture open in new window like target=_blank
Quote<?php
include "./cam/cpmfetch/coppermine.php";
$objCpm = new cpm("/cam");
$objCpm->cpm_viewRandomMedia(2,2,array( "windowtarget" => "_blank"));
$objCpm->cpm_listMediaCount ();
$objCpm->cpm_close();
?>

is ok? because when i go to my page  i read this part of the code windowtarget = _blank .......please help and im sorry for my english is not my first lenguage! :)

vuud


It looks correct.  Don't bother with the stable 1.0 release... get the newest dev from

http://cpmfetch.fistfullofcode.com

If that does not fix it, then post a link where I can see it.  or message me the link if it is sensitive.

Hope that helps somewhat




Quote from: sheylak on March 24, 2005, 05:40:01 PM
hi guys good morning :D

well i just wondering if this code is ok. i want when click the picture open in new window like target=_blank
Quote<?php
include "./cam/cpmfetch/coppermine.php";
$objCpm = new cpm("/cam");
$objCpm->cpm_viewRandomMedia(2,2,array( "windowtarget" => "_blank"));
$objCpm->cpm_listMediaCount ();
$objCpm->cpm_close();
?>

is ok? because when i go to my page  i read this part of the code windowtarget = _blank .......please help and im sorry for my english is not my first lenguage! :)
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

mrmike987

I'm having trouble adding the new date format.  I just dont know where to add this code.
cpm_setDateFormat ($_format = "")

My code:
$objCpm->cpm_viewLastAddedMediaFromAlbum(2,5,6,array("subtitle" => "<center>Added<br>%w","imagelink" => "album"));


Thanks for all your help ;D





Quote from: vuud on March 22, 2005, 07:22:46 AM
Well, for those that are interested... there is a new dev version up...

This would be 1.1.6 (hereby designated lucky #13 becuase I had tooth number 13 removed from my head today and am not happy about it).

Regardless... Here are the changes:

getMediaCount now obeys approved and privacy filters
getMediaCountAddedSince now obeys approved and privacy filters
getMediaCountForAlbum now obeys approved and privacy filters
getAlbumCount now obeys approved and privacy filters
getViewCount now obeys privacy filters
Documentation slightly improved

Added %D (# days old) to subtitle and AltTag options

This allows you to set subtitles and alttags like so:
"Added %D days ago" which gives "Added 105 days ago"


Added in cpm_setDateFormat to allow some very flexible date formatting

Where to begin... this allows you to set the way the date is generated in the subtitle and alt tags when you use %w to display the date added.  It basically takes anything the DATE function will take.  There are maybe 20 things you can use in there.  I've covered it in my readme file and online docs, so I wont do it again here.   Its really cool if you don't like the default date I've chosen.

See the list online at:

To use, you just call this function after you created the object and before you call for the images.  You can call it as much as you want.  If you call it with no format string, it will revert back to my default.

As always, please report problems with this version... I want to release the new stable one by the end of the week (as people are still using the old stable which is... well... old)





















vuud


It goes before it at some point on the page.  Like so...


$objCpm->cpm_setDateFormat("format string goes here");
$objCpm->cpm_viewLastAddedMediaFromAlbum(2,5,6,array("subtitle" => "<center>Added<br>%w","imagelink" => "album"));


Quote from: mrmike987 on March 24, 2005, 10:51:37 PM
I'm having trouble adding the new date format.  I just dont know where to add this code.
cpm_setDateFormat ($_format = "")

My code:
$objCpm->cpm_viewLastAddedMediaFromAlbum(2,5,6,array("subtitle" => "<center>Added<br>%w","imagelink" => "album"));


Thanks for all your help ;D





Quote from: vuud on March 22, 2005, 07:22:46 AM
Well, for those that are interested... there is a new dev version up...

This would be 1.1.6 (hereby designated lucky #13 becuase I had tooth number 13 removed from my head today and am not happy about it).

Regardless... Here are the changes:

getMediaCount now obeys approved and privacy filters
getMediaCountAddedSince now obeys approved and privacy filters
getMediaCountForAlbum now obeys approved and privacy filters
getAlbumCount now obeys approved and privacy filters
getViewCount now obeys privacy filters
Documentation slightly improved

Added %D (# days old) to subtitle and AltTag options

This allows you to set subtitles and alttags like so:
"Added %D days ago" which gives "Added 105 days ago"


Added in cpm_setDateFormat to allow some very flexible date formatting

Where to begin... this allows you to set the way the date is generated in the subtitle and alt tags when you use %w to display the date added.  It basically takes anything the DATE function will take.  There are maybe 20 things you can use in there.  I've covered it in my readme file and online docs, so I wont do it again here.   Its really cool if you don't like the default date I've chosen.

See the list online at:

To use, you just call this function after you created the object and before you call for the images.  You can call it as much as you want.  If you call it with no format string, it will revert back to my default.

As always, please report problems with this version... I want to release the new stable one by the end of the week (as people are still using the old stable which is... well... old)




















Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

nameless

I got this working and it was very easy to install but I am having problems with my side nav bar with Wordpress and the Kubrick theme staying in place in IE. Firefox it shows great. Here's my code below. Oh yea I also have a counter in PHP which had no problems. Sometimes navbar shows correctly at the top other times it'll go to the bottom. TIA. :)


<div id="sidebar">
<ul>  
<li>
                              <center><b> You are visitor number <script language="JavaScript" src="counter.php" type="text/JavaScript"></script></b></center>
                       </li>
<li>
<?php include (TEMPLATEPATH '/searchform.php'); ?>
</li>

<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
<li><h2><?php _e('Author'); ?></h2>
<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
</li>
-->

<li>
<?php /* If this is a category archive */ if (is_category()) { ?>
<p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>

<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
<p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
for the day <?php the_time('l, F jS, Y'); ?>.</p>

<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
for <?php the_time('F, Y'); ?>.</p>

     <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
for the year <?php the_time('Y'); ?>.</p>

<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
<p>You have searched the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
for <strong>'<?php echo wp_specialchars($s); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>

<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives.</p>

<?php ?>
</li>
<?php get_calendar(); ?>
<?php wp_list_pages('title_li=<h2>' __('Pages') . '</h2>' ); ?>

<li><h2><?php _e('Archives'); ?></h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>

<li><h2><?php _e('Categories'); ?></h2>
<ul>
<?php list_cats(0'''name''asc'''1011110,'','','','',''?>
</ul>
</li>

<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<?php get_links_list(); ?>

<li><h2><?php _e('Meta'); ?></h2>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
                                       <li><a href="http://sub.domain.net/pics">Grandpa'sPhoto Gallery</a><br>
                                           <?php 
                                               
include "./cpmfetch/coppermine.php";
                                               
$objCpm = new cpm("/pics");
                                               
$objCpm->cpm_viewRandomMedia(4,1);
                                               
$objCpm->cpm_close();
                                            
?>

                                         </li>
<?php ?>

</ul>
</div>



vuud


Hi, glad it worked for you!  Love to hear from people that its working well.  If your on the stable version, the new stable will be out this weekend unless someone tells me its not working right

Is the problem you are showing below a problem with cpmfetch or wordpress?  I don't know wordpress, but I'd be happy to help with cpmfetch problems

Thanks again!





Quote from: nameless on March 25, 2005, 02:02:54 AM
I got this working and it was very easy to install but I am having problems with my side nav bar with Wordpress and the Kubrick theme staying in place in IE. Firefox it shows great. Here's my code below. Oh yea I also have a counter in PHP which had no problems. Sometimes navbar shows correctly at the top other times it'll go to the bottom. TIA. :)


<div id="sidebar">
<ul>   
<li>
                               <center><b> You are visitor number <script language="JavaScript" src="counter.php" type="text/JavaScript"></script></b></center>
                        </li>
<li>
<?php include (TEMPLATEPATH '/searchform.php'); ?>
</li>

<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
<li><h2><?php _e('Author'); ?></h2>
<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
</li>
-->

<li>
<?php /* If this is a category archive */ if (is_category()) { ?>
<p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>

<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
<p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
for the day <?php the_time('l, F jS, Y'); ?>.</p>

<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
for <?php the_time('F, Y'); ?>.</p>

      <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
for the year <?php the_time('Y'); ?>.</p>

<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
<p>You have searched the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
for <strong>'<?php echo wp_specialchars($s); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>

<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives.</p>

<?php ?>
</li>
<?php get_calendar(); ?>
<?php wp_list_pages('title_li=<h2>' __('Pages') . '</h2>' ); ?>

<li><h2><?php _e('Archives'); ?></h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>

<li><h2><?php _e('Categories'); ?></h2>
<ul>
<?php list_cats(0'''name''asc'''1011110,'','','','',''?>
</ul>
</li>

<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<?php get_links_list(); ?>

<li><h2><?php _e('Meta'); ?></h2>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
                                        <li><a href="http://sub.domain.net/pics">Grandpa'sPhoto Gallery</a><br>
                                            <?php 
                                               
include "./cpmfetch/coppermine.php";
                                               
$objCpm = new cpm("/pics");
                                               
$objCpm->cpm_viewRandomMedia(4,1);
                                               
$objCpm->cpm_close();
                                            
?>

                                          </li>
<?php ?>

</ul>
</div>



Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco