problem embedding g2 into my php website ??? HELP
pcp20us
![]()
Joined: 2006-03-31
Posts: 109 |
![]() |
Hello.. I am trying to embed G2 into my site.I am using PHP so i have created the gallery2emmbedded file as in the doco for this. Here is the file below. I have played around with the template.tpl and other tpl files to sort of get the results I am after but then there is to much to modify in the future thats why i went to php and style sheets. This is being tested on an inhouse webserver so i cant give your a link to my pages. Thanks Pete <?php $g2_Config['embedPath'] = '/'; //print_r($g2_Config); // handle the G2 request <style type="text/css"> </style> </body> </div> </html> - Please add '[module / theme name]' along with specific subject in the title of your topic Pete |
|
pcp20us
![]()
Joined: 2006-03-31
Posts: 109 |
![]() |
MMM how do you get support on these programs.Am I not follwing the right procedure.? Thanks cheers Pete |
|
shocksll
![]()
Joined: 2005-06-22
Posts: 352 |
![]() |
ok, the path is the full directory path from your root to your gallery2 directory. If you took my directions literally, your gallery2embedded.php file should be in your gallery2 directory, so you can use dirname(__FILE__) to get the currently directory of this file as your path. the embedPath is the path to your main application. Typically this is going to be your wwwroot. This is a web path not a directory path, thus just a single slash, '/' the g2Uri is a web path to your gallery2 installation. Typically this is just going to be /gallery2/. You can include your domain name in there if you want like http://example.com/gallery2/ but then you'll have to change that if you ever change domain names, so it's suggested to leave the domain information out and just give the web path relative to the wwwroot. loginredirect is the location you want people to be sent if they need to login. embeduri is the web path to this gallery2embedded.php file. Typically this is going to be /gallery2/gallery2embedded.php try these settings $g2_Config['path'] = dirname(__FILE__) . '/'; $g2_Config['embedPath'] = '/'; $g2_Config['g2Uri'] = '/swgallery/'; $g2_Config['loginredirect'] = '/'; $g2_Config['embedUri'] = '/swgallery/gallery2embedded.php'; also, can you post or PM me the url to your site so I can check out your problems? Thanks. Steve Lineberry |
|