PDA


View Full Version : Integration and Paths


Talisman
05-26-2007, 07:57 AM
My upgraded CMPS works great wrapping columns around all the vB php file pages. But I still need to get this working around my gallery pages - am using PhotoPost Pro in it's own folder off the root directory (not inside the forum directory).

/root - CMPS location called home.php. No problems here.

/forum/index.php - vB forum display page works just fine using integration panel in the ACP.... as does all the other php files in the /forum directory.

/gallery/index.php - PhotoPost home page display. This is what I can't figure out. It's outside the vb folder so I can't just select it from the listed php files. I've tried the "other filenames to integrate" block using the full url path and also the domain-relative path. Neither worked. Also tried entering "ppindex" using the THIS_SCRIPT integration method, but again, how would the CMPS know where to find that file without any path designation?

I know I must be missing something real simple, but I'm stumped. Please help?

Thanks!!

Brian
05-26-2007, 11:35 AM
Sorry, but I don't think the CMPS is going to be able to be integrated with PhotoPost since it is not written around vBulletin.

Kirby
05-26-2007, 02:05 PM
It is possible to integrate CMPS with PhotoPost. However, I don't think the standard integration methods will work here.

Talisman
05-27-2007, 04:55 AM
Sorry, folks. I forgot the info is at the PhotoPost site forum.

PhotoPost Pro does integrate it's output completely by making a module-type CMPS page with Custom Page Module checked. You just have to make a few simple file edits, first. It works very nicely for the index page and any other PP page you want displayed this way.

I just didn't remember that the edits aren't posted here.

trgreen
06-04-2007, 07:30 PM
Talisman: I tried the exact same things you did, and in the same order! Same results of course...

I just spent an hour or so over at PhotoPost.com looking for info on this. Can you point me in the right direction? Anyone?

This seems to be something that a lot of people have asked for. It would be great if we could put it together for vBa CMPS 3. I'm sure it would get used a lot.

BTW, vBa 3 is awesome. Thanks a million, Brian. :)

Talisman
06-05-2007, 02:47 AM
Talisman: I tried the exact same things you did, and in the same order! Same results of course...

I just spent an hour or so over at PhotoPost.com looking for info on this. Can you point me in the right direction? Anyone?

Hi trgreen... Sorry I didn't include a link to this at the photopost forum. Since it involves making a few changes to their php files, it can't be posted here at the vBa site.

http://www.photopost.com/forum/showthread.php?t=127112
(Note: You must be a registered customer to access that thread.)

I looked around very briefly when I went looking for this again and I don't know if it's been reposted or expanded since that old thread was posted -- but it still works like a charm, even with the later release of PhotoPost and the new CMPS version. Yay! ;)

Also... You will notice that one step is included twice in the original post. You only need to do that once, so skip the duplication.

Other posts in that thread make important changes, as well, but the original instructions were not revised. So watch for these important points:

1. The "printheader" line will show up twice in one file. You need to actually replace that line instead of inserting the text above it - as it states originally.

2. Look for the post that gives you an expanded text replacement for that same edit (in the index file). You need the version that includes the "updateonline" statement. This refreshes the number of people viewing a gallery that's displayed on the index page after they've gone.

3. Another post in the thread tells you how to apply the same edits to all the PhotoPost pages - not just the index.php file.

Feel free to PM me here if I can be of any help. Or just post a comment in that thread and I'll reply to you over there. I've rewritten the instructions for my own reference but I haven't posted it. (Guess I probably should.)

Have fun.

trgreen
06-05-2007, 12:10 PM
Wow. Thanks for the quick reply. I'll certainly visit that thread and give it a shot. I'm pretty comfortable with PHP, so I'm not too worried. But if you wanted to post your re-write of the instructions here, that would be great!

(Following the logic in long threads is the hard part sometimes... :) )

Thanks again Talisman!

Talisman
06-05-2007, 10:17 PM
I'm pretty comfortable with PHP, so I'm not too worried. But if you wanted to post your re-write of the instructions here, that would be great!

(Following the logic in long threads is the hard part sometimes... :) )

Nah.. can't post it here since it contains PhotoPost's source code. But it's real easy and it's a short thread. You'll see. Just look for these:

1. Post #12 - (Printheader line.)

2. Posts #17 and #18 - (Resets users viewing gallery online counter.)

3. Post # 16 - (Applying hack to all the other PhotoPost pages.)

Cheers.

trgreen
06-06-2007, 12:42 PM
Understood. And thanks again! I'll give it a go...