View Single Post
Old September 2nd, 2004, 09:09 AM   #17 (permalink)
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
The format is this

http://www.domain.com/modules.php?na...wphoto&photo=1

Basically the name is the program name and every file call is just the filename no extention.

This is more than a forward change.

If you truly wanted to make Photopost Module compatible EVERY link needs to be changed throughout the program. Below is an example of a part of pmenu in showphoto 458-460

if ( $usercomment == 1 && $Globals['allowpost'] == "yes" ) {
$pmenu .= "<a href=\"{$Globals['maindir']}/comments.php?photo=$id\">{$Globals['pp_lang']['post']}</a>";
}

would be

if ( $usercomment == 1 && $Globals['allowpost'] == "yes" ) {
if ( $Globals['vbversion'] == "nuke" && $Globals['module'] == "yes" ) {
$pmenu .= "<a href=\"{$Globals['vbulletin']}/modules.php?name=photopost&file=showphoto&photo=$id\">{$Globals['pp_lang']['post']}</a>";
} else {
$pmenu .= "<a href=\"{$Globals['maindir']}/comments.php?photo=$id\">{$Globals['pp_lang']['post']}</a>";
}

Basically the entire program and every link needs to be written to that format posted above for module support
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote