PDA

View Full Version : Sharing vivvo header with other program.


van_ucsd
04-11-2007, 09:48 AM
Hello everyone,
I have been trying to share the header (vivvo header) with another program (4images) located in the different directory under the same domain and so far no success yet.
What i did was replacing the header of 4images to have the same header with vivvo. After doing so, the logo and the dhtml menu just don't show up anymore.

Please advise me what to do.

thanks

utvara
04-11-2007, 11:38 PM
Hmm, this is a log shot but... here goes nothing :)

First concern is getting the content you want (in this case 4images gallery) in vivvo container while maintaining vivvo boxes - tricky part :(.

You can try containing the output of 4images by using the ob_start, ob_get_clean functions


ob_start();

// include your 4images

$out = ob_get_clean();


This should be executed before any vivvo script!

Now I'm not familiar with 4images script so this might produce side effects.


global variables collision
inclusion path distort
whatever else happens on the way :)


If your real lucky and get the output in $out contain it in vivvo frame.

For how to contain "something" in vivvo frame refer to http://www.vivvo.net/forums/showthread.php?t=675.

Second big concern are generated urls (not likely to match the desired ones, cause you probably wanna go through framed version of 4images again).

There are few solutions to this problem:

use Apache mod_rewrite to redirect script
preg_replace/str_replace all urls in $out to desired ones


These are just the general direction... the rest is trial and error.

This approach get be used on other scrips as well but there are no guaranties.

Hope you succeed in your integration quest :)

utvara