Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Intergration in Vbulletin problem  (Read 4885 times)

0 Members and 1 Guest are viewing this topic.

pitzerwm

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 51
Intergration in Vbulletin problem
« on: September 25, 2009, 03:56:33 am »

Ok, I read everything, searched and I'm sure that it is a small stupid problem at my end.  my site http://forum.autocareforum.net

I installed, everything went good , I got the code

Quote
<?php
  include "./cpmfetch.php";
  $objCpm = new cpm("./cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();
?>

Of course this isn't what aI can use, so I modify it to fit on my vbulletin home page.

Quote
<tr><td>

  include "http://autocareforum.biz/photogallery/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("http:/autocareforum.biz/photogallery/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();

</td>
</tr>

As you can see by the attachment, it doesn't actually show the pixs.

Hopefully, I don't pi$$ off the smart Gods.

Maybe this is connected, but it talks about an "index2.php but I haven't found that, maybe that would help me understand this.

BTW, thanks for taking the time to create this.  I can see that it is a great contribution.

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Intergration in Vbulletin problem
« Reply #1 on: September 25, 2009, 08:48:10 am »

Read up the syntax of the include command: you don't include by URL, but by relative or absolute path (the URL is technically possible under certain circumstances, but you should not use that at all for variours reasons actually).
In what relation do forum.autocareforum.net and autocareforum.biz stand on folder level / file system level? Are they on the same server? Is one an alias of the other? Or are they just different domains on different servers?
Try http://www.webdiner.com/webadv/begin/paths.htm as a helper article on paths and http://www.php.net/manual/en/function.include.php for the syntax of the include command.
Logged

pitzerwm

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 51
Re: Intergration in Vbulletin problem
« Reply #2 on: September 25, 2009, 06:46:59 pm »

At this time they are on separate servers.  I will be moving them together by the end of the year.  I will read the docs/examples.
Logged

pitzerwm

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 51
Re: Intergration in Vbulletin problem
« Reply #3 on: September 25, 2009, 07:52:13 pm »

I did read all of the examples.  I understand relative/absolute but the php is beyond me at this time.  The gallery is on one server/host as .biz and the VB is on another server/host as .net/.com.  I thought that you could use this across servers. Because the VB is PHP I hoped that would work.  When I move VB to the same host, I imagine that I won't have an issue.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Intergration in Vbulletin problem
« Reply #4 on: September 25, 2009, 11:24:32 pm »

When I move VB to the same host, I imagine that I won't have an issue.
Probably yes.
Logged

pitzerwm

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 51
Re: Intergration in Vbulletin problem
« Reply #5 on: September 25, 2009, 11:29:42 pm »

Thanks
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.