CpmFetch - Embedding in templates (SMF, Wordpress, PHPBB, etc, ...) - Page 3 CpmFetch - Embedding in templates (SMF, Wordpress, PHPBB, etc, ...) - Page 3
 

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 - Embedding in templates (SMF, Wordpress, PHPBB, etc, ...)

Started by vuud, May 07, 2005, 07:27:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dagon

Quote from: vuud on August 18, 2005, 09:08:15 PM
PHPBB Bridge

A few users in the other forums here have had issues with phpbb bridge and using cpmfetch.

Aparently, and I have no first hand knowledge of this, but phpbb bridge seems to do something where your photos are added in with the wrong user_id, or at least one that does not exist.

If you have phpbb and are using the bridge to it... and you cannot get photos to display on the cftest page, then check the following...

Get the owner_id of the photos from the pictures table and make sure that Id exists in the users table.

If not, create another cpg user... that will be the real owner for the photos and all will work well

If you create another user, only the photos for that user shows up.

What the bridge is doing is creating photos with the phpbb user_id located in the phpbb_users table.  The cpgxxx_users table is not used in bridged mode. 

It would be nice if CpmFetch could be configured to look at the phpbb_users table for the user_id as an option.  Is there any way to do this?

Thanks!

vuud

Quote from: Dagon on September 08, 2005, 01:53:50 AM
Quote from: vuud on August 18, 2005, 09:08:15 PM
PHPBB Bridge

A few users in the other forums here have had issues with phpbb bridge and using cpmfetch.

Aparently, and I have no first hand knowledge of this, but phpbb bridge seems to do something where your photos are added in with the wrong user_id, or at least one that does not exist.

If you have phpbb and are using the bridge to it... and you cannot get photos to display on the cftest page, then check the following...

Get the owner_id of the photos from the pictures table and make sure that Id exists in the users table.

If not, create another cpg user... that will be the real owner for the photos and all will work well

If you create another user, only the photos for that user shows up.

What the bridge is doing is creating photos with the phpbb user_id located in the phpbb_users table.  The cpgxxx_users table is not used in bridged mode. 

It would be nice if CpmFetch could be configured to look at the phpbb_users table for the user_id as an option.  Is there any way to do this?

Thanks!

Nope.  Your best bet may be to do something to read in the phpbb users and write equivalent settings to the cpg forum.

I don't see adding this in the future.  Someone else may do a hack for it... 




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

ohfishing

Hello, I am having some rookie trouble. I thought I would also post my problem in this thread becuase it was not awnsered in another. I installed cpmfetch to phpbb 2.0.17 I ran the cftest page and got error 75 ROOT and error 80 config init ... the path to the directory is wrong and i dont know how to fix it .. You set your partial URL to stl-web/bulletin/phpBB5/cpg135/ PASS
10 No dots in partial url PASS
15 coppermine.php not present PASS
20 coppermine_dao.php not present PASS
25 cpmfetch.php found PASS
30 cpmfetch_dao.php found PASS
35 Server OS = FreeBSD st06.startlogic.com 4.9-RELEASE-p11 FreeBSD 4.9-RELEASE-p11 #0: Sat i386 INFO
40 WebServer = Apache/1.3.31 (Unix) mod_log_bytes/0.3 FrontPage/5.0.2.2635 PHP/4.3.10 mod_ssl/2.8.19 OpenSSL/0.9.7c INFO
45 PHP Version = 4.3.10 INFO
55 DOCUMENT_ROOT: /home/ohfishin/public_html INFO
60 C_DOCUMENT_ROOT: [b]Not found [/b] INFO
65 doc_root: Not found (IIS Servers only) INFO
70 SCRIPT_FILENAME: /home/ohfishin/.panel/web/bulletin/phpBB5/cpmfetch/cftest.php INFO
75 DOCUMENT_ROOT is not a good match [b]BAD[/b]
80 CPG Config file not found: /home/ohfishin/public_htmlstl-web/bulletin/phpBB5/cpg135//include/config.inc.php [b]FAIL[/b]
 http://ohfishing.com/stl-web/bulletin/phpBB5/cpmfetch/cftest.php I have my cpm folder inside my PHPBB folder  right next to coppermine if it matters. I dont know how to change to the correct path to congif.init and i have no idea what error 75 is. Plz help!
OHfishing

vuud

Quote from: ohfishing on October 09, 2005, 09:58:26 PM
Hello, I am having some rookie trouble. I thought I would also post my problem in this thread becuase it was not awnsered in another. I installed cpmfetch to phpbb 2.0.17 I ran the cftest page and got error 75 ROOT and error 80 config init ... the path to the directory is wrong and i dont know how to fix it .. You set your partial URL to stl-web/bulletin/phpBB5/cpg135/ PASS
10 No dots in partial url PASS
15 coppermine.php not present PASS
20 coppermine_dao.php not present PASS
25 cpmfetch.php found PASS
30 cpmfetch_dao.php found PASS
35 Server OS = FreeBSD st06.startlogic.com 4.9-RELEASE-p11 FreeBSD 4.9-RELEASE-p11 #0: Sat i386 INFO
40 WebServer = Apache/1.3.31 (Unix) mod_log_bytes/0.3 FrontPage/5.0.2.2635 PHP/4.3.10 mod_ssl/2.8.19 OpenSSL/0.9.7c INFO
45 PHP Version = 4.3.10 INFO
55 DOCUMENT_ROOT: /home/ohfishin/public_html INFO
60 C_DOCUMENT_ROOT: [b]Not found [/b] INFO
65 doc_root: Not found (IIS Servers only) INFO
70 SCRIPT_FILENAME: /home/ohfishin/.panel/web/bulletin/phpBB5/cpmfetch/cftest.php INFO
75 DOCUMENT_ROOT is not a good match [b]BAD[/b]
80 CPG Config file not found: /home/ohfishin/public_htmlstl-web/bulletin/phpBB5/cpg135//include/config.inc.php [b]FAIL[/b]
http://ohfishing.com/stl-web/bulletin/phpBB5/cpmfetch/cftest.php I have my cpm folder inside my PHPBB folder  right next to coppermine if it matters. I dont know how to change to the correct path to congif.init and i have no idea what error 75 is. Plz help!

Try adding a slash at the beginning of the partial url you are setting

Are you bridged with phpBB?  If so you have another problem that is going to loom up before you


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

toykilla

using this code on my forums (invision 2.1.1) does not appear to work. I tested the code on a blank html page and it works:

http://www.infinitigtrforums.com/forums/edits.php

however when i place the same code in the Invisionboard skin i get this returned where the pictures should be:

cpm_viewRandomMedia(1,1); $objCpm->cpm_close(); ?>

vuud

Quote from: toykilla on October 12, 2005, 10:41:49 PM
using this code on my forums (invision 2.1.1) does not appear to work. I tested the code on a blank html page and it works:

http://www.infinitigtrforums.com/forums/edits.php

however when i place the same code in the Invisionboard skin i get this returned where the pictures should be:

cpm_viewRandomMedia(1,1); $objCpm->cpm_close(); ?>



Can invisionboard skins execute PHP?  If so, do you have the " <?php " in front of this? 




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

Bernard

I cannot select specific catgegories.

Here is my source:

      include "./cpmfetch.php";
      $objCpm = "";
      $objCpm = new cpm('/galerie');
      $source = "cat=4";
      $styleguide = array(
         //"TABLESTYLE" => "photoclip",
         //"rowstyle" => "photoclip",
         "cellstyle" => "photoclip",
         "linkstyle" => "photoclip",
         "alttag" => "One of the last photos submitted",
         "subtitle" => "%o<br>%V views",
         "imagestyle" => "photoclip",
         "imagesize" => 'thumb',
         "imagewidth" => '100');      

      //$objCpm->cpm_viewRandomMedia(2,3,$styleguide);
      $objCpm->cpm_viewRandomMediaFrom  ( 2, 3, $source, "");
      print "<p>&nbsp;</p>";
      $objCpm->cpm_close();


Works only with $source="cat=1" ??

I am using the latest cpmfetch 1.6.2 and coppermine 1.3. See my installation here http://www.crostuttgart.de/galerie/

Thanks for your help in foward !


ps: stupid question - i don´t have a "new topic" button here ..

vuud


Good on the new topic button - last thing we want is a ton of new threads popping up in here :)

Are you sure you have more than one category?  Are you thinking albums?  That could be why cat=1 works, but cat=4 does not.

Just a thought





Quote from: Bernard on October 14, 2005, 11:14:31 PM
I cannot select specific catgegories.

Here is my source:

      include "./cpmfetch.php";
      $objCpm = "";
      $objCpm = new cpm('/galerie');
      $source = "cat=4";
      $styleguide = array(
         //"TABLESTYLE" => "photoclip",
         //"rowstyle" => "photoclip",
         "cellstyle" => "photoclip",
         "linkstyle" => "photoclip",
         "alttag" => "One of the last photos submitted",
         "subtitle" => "%o<br>%V views",
         "imagestyle" => "photoclip",
         "imagesize" => 'thumb',
         "imagewidth" => '100');      

      //$objCpm->cpm_viewRandomMedia(2,3,$styleguide);
      $objCpm->cpm_viewRandomMediaFrom  ( 2, 3, $source, "");
      print "<p>&nbsp;</p>";
      $objCpm->cpm_close();


Works only with $source="cat=1" ??

I am using the latest cpmfetch 1.6.2 and coppermine 1.3. See my installation here http://www.crostuttgart.de/galerie/

Thanks for your help in foward !


ps: stupid question - i don´t have a "new topic" button here ..

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: ohfishing on October 09, 2005, 09:58:26 PM
Hello, I am having some rookie trouble. I thought I would also post my problem in this thread becuase it was not awnsered in another. I installed cpmfetch to phpbb 2.0.17 I ran the cftest page and got error 75 ROOT and error 80 config init ... the path to the directory is wrong and i dont know how to fix it .. You set your partial URL to stl-web/bulletin/phpBB5/cpg135/ PASS
10 No dots in partial url PASS
15 coppermine.php not present PASS
20 coppermine_dao.php not present PASS
25 cpmfetch.php found PASS
30 cpmfetch_dao.php found PASS
35 Server OS = FreeBSD st06.startlogic.com 4.9-RELEASE-p11 FreeBSD 4.9-RELEASE-p11 #0: Sat i386 INFO
40 WebServer = Apache/1.3.31 (Unix) mod_log_bytes/0.3 FrontPage/5.0.2.2635 PHP/4.3.10 mod_ssl/2.8.19 OpenSSL/0.9.7c INFO
45 PHP Version = 4.3.10 INFO
55 DOCUMENT_ROOT: /home/ohfishin/public_html INFO
60 C_DOCUMENT_ROOT: [b]Not found [/b] INFO
65 doc_root: Not found (IIS Servers only) INFO
70 SCRIPT_FILENAME: /home/ohfishin/.panel/web/bulletin/phpBB5/cpmfetch/cftest.php INFO
75 DOCUMENT_ROOT is not a good match [b]BAD[/b]
80 CPG Config file not found: /home/ohfishin/public_htmlstl-web/bulletin/phpBB5/cpg135//include/config.inc.php [b]FAIL[/b]
http://ohfishing.com/stl-web/bulletin/phpBB5/cpmfetch/cftest.php I have my cpm folder inside my PHPBB folder  right next to coppermine if it matters. I dont know how to change to the correct path to congif.init and i have no idea what error 75 is. Plz help!

Document root means it cannot find your document root variable.  Something the server should set, and a constant source of annoyance for me.  The link there did not work for me either.


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

Bernard

Quote from: vuud on October 15, 2005, 08:30:17 AM

Good on the new topic button - last thing we want is a ton of new threads popping up in here :)

Are you sure you have more than one category?  Are you thinking albums?  That could be why cat=1 works, but cat=4 does not.

Just a thought

>> Yes I have many cats ... displaying a single album also does not work. If you don't mind you can have a look at my gallery structure on http://www.crostuttgart.de/galerie/


vuud

Quote from: Bernard on October 15, 2005, 01:50:53 PM
Quote from: vuud on October 15, 2005, 08:30:17 AM

Good on the new topic button - last thing we want is a ton of new threads popping up in here :)

Are you sure you have more than one category?  Are you thinking albums?  That could be why cat=1 works, but cat=4 does not.

Just a thought

>> Yes I have many cats ... displaying a single album also does not work. If you don't mind you can have a look at my gallery structure on http://www.crostuttgart.de/galerie/



Tag,

I will have to look at it better, and having your link there will be a help.   Your syntax seems correct... hmmmm

I'll check it later on

Bye

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

ericmn

Hi, seems really cool stuff...
I use coppermine 1.3.5 bridged to SMF 1.0.5 (with tinyportal) a.so latest version of Cpmfetch
and tried to show random or latest image in block, but all i get is just same image all the time.
Please help....

vuud

Quote from: ericmn on November 07, 2005, 03:55:33 AM
Hi, seems really cool stuff...
I use coppermine 1.3.5 bridged to SMF 1.0.5 (with tinyportal) a.so latest version of Cpmfetch
and tried to show random or latest image in block, but all i get is just same image all the time.
Please help....

I am guessing that its the typical user table not populated in coppermine... it causes problems.  If you only have one picture uploaded by a normal coppermine user, that will be the only one available.

You need to somehow create users in the cpg table to match the smf users (or at least pretend to)

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

akime

cpmfetch doesn't work with my coppermine gallery.
The test says that everything is ok http://smv.rbg-langenau.de/cpmfetch/cftest.php
I don't know whats wrong?

v8central

Quote from: Klementz on August 31, 2005, 11:01:24 PM
I successfully got cpmFetch working on Coppermine embedded in Mambo. However, if you click a link it breaks out of the Mambo wrapper. This question was already asked in this thread, but there was no answer (because I think the question was not understood). Here is the problem:

Here is my Coppermine gallery embedded in Mambo:

http://www.clements.on.ca/component/option,com_wrapper/Itemid,41/

If you use the gallery, you will find that it stays embedded in Mambo.

Here is an example of a working cpmFetch page on my site:

http://www.clements.on.ca/content/view/81/105/

You can see that it is working fine, and embedding content inside Mambo. But when you click on one of the thumbnails, it breaks out of Mambo, and goes into an "unwrapped" Coppermine.

I don't want this to happen, since I obviously want to keep visitors inside the site (my mother gets confused enough as it is!).

Is there any way to fix this? I fear it may be a Mambo thing, and unsolvable, because cpmFetch is getting links from Coppermine, not Mambo. If you click the first link (Coppermine embedded), and start clicking around in the gallery, you will notice that the URL never changes.
I see your problem, and I'll be facing the same thing but I can't even get the content displaying like in your example yet - can you give me any tips please ?

CPG Guru

Hi

Im making one wallpaper site & on top i want to have 5 different random pics from 5 defined categories

Example : Nature, Wildlife, celebs, Love, Hot

I want to know if on same page i want to put cpmfetch code again to display random pics from predefined categories . Is That Possible

Ive simply tried to copy & put code in each block after defineing respected category , Result was the first pic was fine but 2nd pic gives an error 

Fatal error: Cannot redeclare class cpm in /home/SITENAME/public_html/cpmfetch/cpmfetch.php on line 33


This was redeclare error ..

So please recommend what to do now ,

Alternate is i should use iframes to do that but that'll not be search engine friendly


v8central

Quote from: v8central on November 11, 2005, 03:40:23 AM
Quote from: Klementz on August 31, 2005, 11:01:24 PM
I successfully got cpmFetch working on Coppermine embedded in Mambo. However, if you click a link it breaks out of the Mambo wrapper. This question was already asked in this thread, but there was no answer (because I think the question was not understood). Here is the problem:

Here is my Coppermine gallery embedded in Mambo:

http://www.clements.on.ca/component/option,com_wrapper/Itemid,41/

If you use the gallery, you will find that it stays embedded in Mambo.

Here is an example of a working cpmFetch page on my site:

http://www.clements.on.ca/content/view/81/105/

You can see that it is working fine, and embedding content inside Mambo. But when you click on one of the thumbnails, it breaks out of Mambo, and goes into an "unwrapped" Coppermine.

I don't want this to happen, since I obviously want to keep visitors inside the site (my mother gets confused enough as it is!).

Is there any way to fix this? I fear it may be a Mambo thing, and unsolvable, because cpmFetch is getting links from Coppermine, not Mambo. If you click the first link (Coppermine embedded), and start clicking around in the gallery, you will notice that the URL never changes.
I see your problem, and I'll be facing the same thing but I can't even get the content displaying like in your example yet - can you give me any tips please ?

*BUMP*

Anyone ?

vuud

Quote from: CPG Guru on November 13, 2005, 05:25:10 PM
Hi

Im making one wallpaper site & on top i want to have 5 different random pics from 5 defined categories

Example : Nature, Wildlife, celebs, Love, Hot

I want to know if on same page i want to put cpmfetch code again to display random pics from predefined categories . Is That Possible

Ive simply tried to copy & put code in each block after defineing respected category , Result was the first pic was fine but 2nd pic gives an error 

Fatal error: Cannot redeclare class cpm in /home/SITENAME/public_html/cpmfetch/cpmfetch.php on line 33


This was redeclare error ..

So please recommend what to do now ,

Alternate is i should use iframes to do that but that'll not be search engine friendly



You only need to create the cpmfetch object once before all your calls and close it once after.  In between you can do as many calls to get images and stats that you want.

I suspect thats your problem
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

CPG Guru

Quote from: vuud on November 14, 2005, 09:59:11 PM

You only need to create the cpmfetch object once before all your calls and close it once after. In between you can do as many calls to get images and stats that you want.

I suspect thats your problem



I agree that we can call it any no. of time , but as i told u i want 1 pic from each category in Horizontal line , but if i used your this code the first category comes in first line 2nd in 2nd line & so on all this executes in vertical manner

<?php   
include "cpmfetch.php";
$objCpm = new cpm('/photos');
$objCpm->cpm_viewRandomMedia (1,4);           
$objCpm->cpm_viewRandomMedia (1,3);
$objCpm->cpm_viewRandomMedia (1,35);
$objCpm->cpm_close();
?>

Again, I want to insert 5 pics in Horizontol way, so please suggest the best way.

vuud

Quote from: CPG Guru on November 15, 2005, 03:33:04 AM
Quote from: vuud on November 14, 2005, 09:59:11 PM

You only need to create the cpmfetch object once before all your calls and close it once after. In between you can do as many calls to get images and stats that you want.

I suspect thats your problem



I agree that we can call it any no. of time , but as i told u i want 1 pic from each category in Horizontal line , but if i used your this code the first category comes in first line 2nd in 2nd line & so on all this executes in vertical manner

<?php   
include "cpmfetch.php";
$objCpm = new cpm('/photos');
$objCpm->cpm_viewRandomMedia (1,4);           
$objCpm->cpm_viewRandomMedia (1,3);
$objCpm->cpm_viewRandomMedia (1,35);
$objCpm->cpm_close();
?>

Again, I want to insert 5 pics in Horizontol way, so please suggest the best way.


A messy way that leaps to mind would be to do it in a table... this would yield tables in tables, but unless you are php-ready and want to code a bit to display the images, you can do:

<?php
include "cpmfetch.php";
$objCpm = new cpm('/photos');
?>


<table>
<tr>
<td><?php $objCpm->cpm_viewRandomMediaFrom(1,1,"cat=1");  ?></td>
<td><?php $objCpm->cpm_viewRandomMediaFrom(1,1,"cat=2");  ?></td>
<td><?php $objCpm->cpm_viewRandomMediaFrom(1,1,"cat=3");  ?></td>
<td><?php $objCpm->cpm_viewRandomMediaFrom(1,1,"cat=4");  ?></td>
<td><?php $objCpm->cpm_viewRandomMediaFrom(1,1,"cat=5");  ?></td>
</tr>
</table>
<?php $objCpm->cpm_close(); ?>



I cant remember if the "cat=1" should go before the 1,1 or not.  Hmmmm

Anyway, the other way is to get back result sets and build your own img ref tag from it.

This will make a series of 1 image tables inside the table of 5 cells.

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