Webmastersite.net
Register Log In

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

Comments on Static Generation {IMAGETITLE}

drunken
Beginner

Usergroup: Member
Joined: Dec 21, 2006

Total Topics: 1
Total Comments: 2
drunken
Posted Dec 21, 2006 - 10:50 AM:

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
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 27, 2006 - 8:17 AM:

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;
}
drunken
Beginner

Usergroup: Member
Joined: Dec 21, 2006

Total Topics: 1
Total Comments: 2
drunken
Posted Dec 28, 2006 - 4:56 AM:

thanks paul, great script!
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.