Intergration in Vbulletin problem Intergration in Vbulletin problem
 

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

Intergration in Vbulletin problem

Started by pitzerwm, September 25, 2009, 03:56:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pitzerwm

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.


Joachim Müller

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.

pitzerwm

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.

pitzerwm

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.

Joachim Müller

Quote from: pitzerwm on September 25, 2009, 07:52:13 PM
When I move VB to the same host, I imagine that I won't have an issue.
Probably yes.

pitzerwm