Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Mod: add filename to target of XP Publish "Finish" button  (Read 7103 times)

0 Members and 1 Guest are viewing this topic.

ErisDS

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Mod: add filename to target of XP Publish "Finish" button
« on: July 25, 2007, 03:01:58 pm »

The XP Publish "Finish" button directs users back to your coppermine folder.

However it doesn't include index.php or the "URL of your home page" in the path.

Thus if you have an index.html, or if your home page is not called index.php or if your coppermine folder redirects else where, users will not be taken back to the main page after completing the XP Publishing Wizard.

This will add your home page to the path used by the Finish button:

xp_publish (line 478)
Code: [Select]
htmluiTag.text = '<?php echo trim($CONFIG['site_url'], '/') . '/'?>';add the "home target" ..
Code: [Select]
htmluiTag.text = '<?php echo trim($CONFIG['site_url'], '/') . '/' $CONFIG['home_target']?>';
I have an index.html, so this little fix saves me a lot of trouble :)
« Last Edit: July 26, 2007, 09:02:03 am by GauGau »
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.