WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums


Static Generation {IMAGETITLE}
uses spaces rather than _ or -

Version:
printPrint


Static Generation {IMAGETITLE}
drunken
Beginner

Usergroup: Member
Joined: Dec 21, 2006
Total Topics: 1
Total Posts: 2
Posted 12/21/06 - 10:50 AM:
quote post
#1
Hey There, I'd like to use image title in the static generation the detail page names..

But I've found it example generates
image title.html

rather than

image_title.html

Is there a mod for this?

Id really appreciate some help smiling face

Thanks,

Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 12/27/06 - 08:17 AM:
quote post
#2
In classes/onelink.php change
global $settings, $scriptname;
if ($_GET['html'] == 'yes')
{ // use static html path
$altered = linkreplacements($settings->htmlautogeneratelin, $this);
if ($settings->htmlautogenerateabsurl) $altered = $settings->htmlautogenerateabsurl .'/'. $altered;
return $altered;
}
to
global $settings, $scriptname, $pref;
if ($_GET['html'] == 'yes')
{ // use static html path
$altered = $settings->htmlautogeneratelin;
if (strstr($altered, 'TITLE}'))
{
$altered = str_replace($pref .'TITLE}', str_replace(' ', $settings->rewritespace, removespecialchars($this->title)), $altered);
}
$altered = linkreplacements($altered, $this);
if ($settings->htmlautogenerateabsurl) $altered = $settings->htmlautogenerateabsurl .'/'. $altered;
return $altered;
}


Edited by Paul on 12/28/06 - 07:48 AM
drunken
Beginner

Usergroup: Member
Joined: Dec 21, 2006
Total Topics: 1
Total Posts: 2
Posted 12/28/06 - 04:56 AM:
quote post
#3
thanks paul, great script!
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.