21
falcon73
Re: Coppermine Photo Gallery Version 1.4.2 Stable
  • 2005/12/19 4:23

  • falcon73

  • Just popping in

  • Posts: 36

  • Since: 2004/10/21


Hmm...OK.
This problem is fixed now with open up cpmfetch_dao in your favorite editor and find this line:

var $sqlPictureAlbumSelect ' p.filepath AS pFilepath, p.filename AS pFilename, p.aid AS pAid, p.filesize AS pFilesize, p.title AS pTitle, p.caption AS pCaption, p.owner_name AS pOwner_name, p.owner_id as pOwnerId, p.ctime AS pCtime, p.hits AS pHits, a.title AS aTitle, a.description AS aDescription, p.pid AS pPid, p.pic_rating AS pPic_Rating,  p.votes AS pVotes, p.pwidth AS pWidth, p.pheight AS pHeight, u.user_lastvisit AS uUser_lastvisit, u.user_regdate AS uUser_regdate, u.user_email AS uUser_email, u.user_website AS uUser_website, u.user_location AS uUser_location, u.user_interests AS uUser_interest, u.user_occupation AS uUser_occupation';


And replace it with:
var $sqlPictureAlbumSelect ' p.filepath AS pFilepath, p.filename AS pFilename, p.aid AS pAid, p.filesize AS pFilesize, p.title AS pTitle, p.caption AS pCaption, p.owner_name AS pOwner_name, p.owner_id as pOwnerId, p.ctime AS pCtime, p.hits AS pHits, a.title AS aTitle, a.description AS aDescription, p.pid AS pPid, p.pic_rating AS pPic_Rating,  p.votes AS pVotes, p.pwidth AS pWidth, p.pheight AS pHeight, u.user_lastvisit AS uUser_lastvisit, u.user_regdate AS uUser_regdate, u.user_email AS uUser_email';


Thanks!
falcon73

22
galdernet
Re: Coppermine Photo Gallery Version 1.4.2 Stable
  • 2006/1/9 11:39

  • galdernet

  • Just popping in

  • Posts: 2

  • Since: 2006/1/9 1


Hello everybody,

I have been able of installing cpmfetch, and when I create a block that calls to a gallery it works, so perfect.

My problem is that I don't know 2 concepts:

1) Where must I link to in the menu, to access the overall Coppermine frontpage?

2) I have read that creating a block is necesary, but how can I do to hide or not hide this block? I want to show it just when they make click in the part of the menu under the name "My gallery".

Thanks in advance,

Galder

23
bigzaphod
Re: Coppermine Photo Gallery Version 1.4.2 Stable
  • 2006/1/16 17:04

  • bigzaphod

  • Just popping in

  • Posts: 25

  • Since: 2005/9/27


I am desperately trying to bridge XOOPS and coppermine. I need to know how do I add a link on my main menu to access the gallery. The bridge seems to have worked, and if I log into coppermine, it takes me to xoops, but, I don't have any idea how to 'wrap' the gallery so I can link to it from main menu....please help if you can... I have been reading about cpmfetch, not sure if that's what I need or not.

Thanks for your help guys!!

24
Phatbloke
Re: Coppermine Photo Gallery Version 1.4.2 Stable
  • 2006/1/16 17:22

  • Phatbloke

  • Just popping in

  • Posts: 48

  • Since: 2005/4/22


Im not sure how much you know XOOPS and templates but i will try and explain the easiest way.
In the admin menu goto templates
You will need to be using a template other than the default. Easiest way is to clone the default. Then goto system and edit the template system_block_mainmenu.html

Add in the red

href="<{$xoops_url}>/"><{$block.lang_home}>
Photo Gallery


Now in the preferences / system / general settings make sure the template you cloned is being used.

All done hopefully

25
Phatbloke
Re: Coppermine Photo Gallery Version 1.4.2 Stable
  • 2006/1/16 22:18

  • Phatbloke

  • Just popping in

  • Posts: 48

  • Since: 2005/4/22


galdernet

Here is what i have for my custom block on my home page. I created a custom block called photo gallery. It displays last uploads and random images with the album name and caption underneath.
Make sure the content type is php script and change the locations of files to suit where you have cpmfetch and your gallery
include('photogallery/plugins/cpmfetch/cpmfetch.php');
$objCpm = new cpm('/photogallery/');
?>



Random Pictures





$styleguide = array(
        
"subtitle" => "Album:%a 
%t"
,
        
"imagestyle" => "photoclip",
                 
"cellstyle" => "photos",
        
"imagesize" => 'thumb');
$objCpm->cpm_viewRandomMedia (2,4,$styleguide); ?>




Last Upoads





$styleguide = array(
        
"subtitle" => "Album:%a 
%t"
,
        
"imagestyle" => "photoclip",
                
"cellstyle" => "photos",
        
"imagesize" => 'thumb');
$objCpm->cpm_viewLastAddedMedia (2,4,$styleguide);
$objCpm->cpm_close(); ?>



26
bigzaphod
Re: Coppermine Photo Gallery Version 1.4.2 Stable
  • 2006/1/17 15:20

  • bigzaphod

  • Just popping in

  • Posts: 25

  • Since: 2005/9/27


OK - I'm going to try those suggestions...my only other question for now is, does coppermine need to be within the XOOPS install. The reason I ask is becuase I was already using coppermine...then installed xoops...can I just fill in with relative paths?

Thanks so much for your help!!

27
Phatbloke
Re: Coppermine Photo Gallery Version 1.4.2 Stable
  • 2006/1/17 15:30

  • Phatbloke

  • Just popping in

  • Posts: 48

  • Since: 2005/4/22


Hi

I think off hand it can be anywhere as long as the domain is the same. For example you cant have it as http://photogallery.mysite.com and http://xoops.mysite.com but http://mysite.com/photogallery/ and http://mysite.com/xoops/ are fine.
So using relaitve paths will make it work fine. Good luck with the themes if you need more help let me know. I have had some luck making the menus 'semi' dynamic but its still not 100%

28
bigzaphod
Re: Coppermine Photo Gallery Version 1.4.2 Stable
  • 2006/1/17 20:24

  • bigzaphod

  • Just popping in

  • Posts: 25

  • Since: 2005/9/27


OK Phatbloke, I'll start by saying thainks,

I got the main menu link working...that wasn't a biggie and it h elped me learn about using the templates better. My next question is, I have visited your site and your gallery seems to be almost completely integrated, or skinned, how the hell did you do that? That's what I'm really looking for. I understand it may be a lot to ask but what you have done is exactly what I'm trying to accomplish, but I haven't found instructions or forums on how to do that yet....thanks!

I also tried your custom block, but with no success. Coppermine is installed in root, folder name cpg142. cpmfetch is installed under xoops/cpmfetch...and here are the error messages I get

Fatal error: Cannot instantiate non-existent class: cpm in /home/content/*/*/*/*****/html/xoops/html/modules/system/blocks/system_blocks.php(40) : eval()'d code on line 2
Warning [PHP]: Unknown(/cpmfetch/cpmfetch.php): failed to open stream: No such file or directory in file /home/content/*/*/*/*****/html/xoops/html/modules/system/blocks/system_blocks.php(40) : eval()'d code line 1
Warning [PHP]: Unknown(/cpmfetch/cpmfetch.php): failed to open stream: No such file or directory in file /home/content/*/*/*/*****/html/xoops/html/modules/system/blocks/system_blocks.php(40) : eval()'d code line 1
Warning [PHP]: (null)(): Failed opening '/cpmfetch/cpmfetch.php' for inclusion (include_path='.:/usr/local/lib/php') in file /home/content/*/*/*/*****/html/xoops/html/modules/system/blocks/system_blocks.php(40) : eval()'d code line 1

So, anyone that can help, it would be appreciated. I am learning and promise to pass it on when I get it down :)

Thanks guys!

29
Phatbloke
Re: Coppermine Photo Gallery Version 1.4.2 Stable
  • 2006/1/17 21:20

  • Phatbloke

  • Just popping in

  • Posts: 48

  • Since: 2005/4/22


Ok a quick start for the theme providing you know basic html.
Basically how i did it and refined it from this.

Open your main page or a page that is rather empty and go view source. Copy all this data to a text file. Now edit all the paths for images so they resolve. ie in your situation something like title.gif would be themes/themename/images/title.gif but since the dirs are dif you need ../themes/themename/images/title.gif

Now once you think thats sussed get rid of everything from your main table so you get a blank table left. In that blank table put in something like the following. I just copied this out of the default template.






{SYS_MENU}


{SUB_MENU}


{LANGUAGE_SELECT_FLAGS}

{THEME_SELECT_LIST} {LANGUAGE_SELECT_LIST}




{ADMIN_MENU} {GALLERY}



Then save it as template.html and make a new folder in coppermine themes dir with your theme name. Change the theme in coppermine config to use the one just made. Give it a go, this is very crude and a bit of tweaking will be required unfortunatly. Eventually you will get it sussed provided you know a little html and use of tables.

I'm thinking a default theme could be made that automatically uses XOOPS one although would take a bit of coding. Might have a wee look see how hard otherwise let me know how you go. I you get stuck flick me what you have.

As for the cpmfetch im not sure if it needs to be in the coppermine dir. Try putting it in where i have it /cpg142/plugins/cpmfetch see if it helps

30
bigzaphod
Re: Coppermine Photo Gallery Version 1.4.2 Stable
  • 2006/1/17 22:41

  • bigzaphod

  • Just popping in

  • Posts: 25

  • Since: 2005/9/27


OK - I see where you are going, I would still like to get the custom block working, but that's a good start. I was kind of hoping for more integration than the built in bridging offers. Anyone know what bridging does other than 'merge' user databases?

Login

Who's Online

391 user(s) are online (299 user(s) are browsing Support Forums)


Members: 0


Guests: 391


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits