
| Autor |
Nachricht |
Sir_Adavis
phpBB2.de User

Anmeldungsdatum: 29.01.2005
Beiträge: 183
|
Verfasst am:
Fr 20 Apr, 2007 20:35 |
  |
Which is the mod that converts the pages to end with .html ? Like this site for example... |
|
|
   |
 |
Google
|
Verfasst am:
|
 |
|
|
 |
jonny-b
phpBB2.de User


Anmeldungsdatum: 19.05.2004
Beiträge: 2400
Wohnort: New York City
|
Verfasst am:
Fr 20 Apr, 2007 23:21 |
  |
Enable Short URLs
Here you can enable static Links for the Forum (.html). To use this function your Webserver MUST use Apache with loaded Module mod_rewrite !. You also have to make the needed changes in the File .htaccess.shorturl and rename it to .htaccess then! The original .htaccess File in the Forums Root-Folder must be deleted !
ACP --> Plus, Config. |
_________________ I make themes for Plus 1.53a and phpBB2.
Check out mergenine for more info. |
|
     |
 |
Sir_Adavis
phpBB2.de User

Anmeldungsdatum: 29.01.2005
Beiträge: 183
|
Verfasst am:
Fr 20 Apr, 2007 23:45 |
  |
Is there any link with more info to find how to do this? I use 1.52 Plus and I don't have this option... |
|
|
   |
 |
jonny-b
phpBB2.de User


Anmeldungsdatum: 19.05.2004
Beiträge: 2400
Wohnort: New York City
|
Verfasst am:
Sa 21 Apr, 2007 01:25 |
  |
Oh, id suggest updating to plus 1.53a if you can.
http://phpbbhacks.com/download/2207
I just did it to my site, works like a charm. |
_________________ I make themes for Plus 1.53a and phpBB2.
Check out mergenine for more info. |
|
     |
 |
Sir_Adavis
phpBB2.de User

Anmeldungsdatum: 29.01.2005
Beiträge: 183
|
Verfasst am:
Do 26 Apr, 2007 15:42 |
  |
In my .htaccess I have this code:
| Code: |
DirectoryIndex index.html index.htm portal.php index.phpAddType MediaPlayer asx
AddType video/x-ms-asf asx |
Can I paste the code provided at the mod after it? |
|
|
   |
 |
jonny-b
phpBB2.de User


Anmeldungsdatum: 19.05.2004
Beiträge: 2400
Wohnort: New York City
|
Verfasst am:
Do 26 Apr, 2007 16:50 |
  |
i did.  |
_________________ I make themes for Plus 1.53a and phpBB2.
Check out mergenine for more info. |
|
     |
 |
Sir_Adavis
phpBB2.de User

Anmeldungsdatum: 29.01.2005
Beiträge: 183
|
Verfasst am:
Do 26 Apr, 2007 20:18 |
  |
|
   |
 |
Sir_Adavis
phpBB2.de User

Anmeldungsdatum: 29.01.2005
Beiträge: 183
|
Verfasst am:
Mi 10 Sep, 2008 12:32 |
  |
| jonny-b hat folgendes geschrieben: |
Enable Short URLs
Here you can enable static Links for the Forum (.html). To use this function your Webserver MUST use Apache with loaded Module mod_rewrite !. You also have to make the needed changes in the File .htaccess.shorturl and rename it to .htaccess then! The original .htaccess File in the Forums Root-Folder must be deleted !
ACP --> Plus, Config. |
Ok I did this. My urls for parent categories are like this:
http://www.XXX/forum14,aeeαaeίκτυο.html
mixed greek and latin characters. How can I edit this error? |
|
|
   |
 |
jonny-b
phpBB2.de User


Anmeldungsdatum: 19.05.2004
Beiträge: 2400
Wohnort: New York City
|
Verfasst am:
Mi 10 Sep, 2008 19:20 |
  |
not really sure. sounds like something in the header, charsets or something? |
_________________ I make themes for Plus 1.53a and phpBB2.
Check out mergenine for more info. |
|
     |
 |
Sir_Adavis
phpBB2.de User

Anmeldungsdatum: 29.01.2005
Beiträge: 183
|
Verfasst am:
Sa 13 Sep, 2008 08:00 |
  |
There is a /cache/c_seolist.php file with all the forum names. If I edit this would it be a solution? |
|
|
   |
 |
Sir_Adavis
phpBB2.de User

Anmeldungsdatum: 29.01.2005
Beiträge: 183
|
Verfasst am:
Mo 22 Sep, 2008 07:57 |
  |
|
   |
 |
Sir_Adavis
phpBB2.de User

Anmeldungsdatum: 29.01.2005
Beiträge: 183
|
Verfasst am:
Sa 27 Sep, 2008 13:50 |
  |
Do we know who is the creator of that mod to search through Google? |
|
|
   |
 |
jonny-b
phpBB2.de User


Anmeldungsdatum: 19.05.2004
Beiträge: 2400
Wohnort: New York City
|
Verfasst am:
Sa 27 Sep, 2008 21:56 |
  |
From the Hacks_list.php
Search Engine ShortURLs Mod v1.0.0 larsneo This MOD replaces the Forum Links from .php to static .html Links No website is available. |
_________________ I make themes for Plus 1.53a and phpBB2.
Check out mergenine for more info. |
|
     |
 |
Sir_Adavis
phpBB2.de User

Anmeldungsdatum: 29.01.2005
Beiträge: 183
|
Verfasst am:
Mo 29 Sep, 2008 08:24 |
  |
Thanks a lot!
I found this at includes/page_tail.php:
| Code: |
// Begin speaking links ShortURL
if ($plus_config['enable_shorturls'] == 1 && !defined('AJAX_HEADERS'))
{
$cache_seo = $phpbb_root_path . 'cache/c_seolist.'.$phpEx;
if (@!file_exists($cache_seo))
{
if (is_writable($phpbb_root_path . '/cache')) {
$write_string = '<?php'."\n".'if ( !defined(\'IN_PHPBB\') )'."\n".'{'."\n".' die(\'Hacking attempt\');'."\n".'}'."\n\n".'$seo_list_in = array( ';
$write_string_b = "\n".'$seo_list_out = array( ';
// cache Forums (read)
$sql = "SELECT forum_id, forum_name FROM " . FORUMS_TABLE;
if( !$result = $db->sql_query($sql) )
{
message_die(CRITICAL_ERROR, "Could not query Forum information", "", __LINE__, __FILE__, $sql);
}
// cache Forums
while ( $row = $db->sql_fetchrow($result) )
{
$search = array( 'Φ', 'Δ', 'ά', 'φ', 'δ', 'ΰ', 'ι', 'θ', 'ό', '$','\\','/', '---');
$replace = array( 'Φ', 'Δ', 'α', 'φ', 'δ', 'υ', 'ι', 'θ', 'ο', '-', '-', '-', '-');
$name = eregi_replace (",|:|'|΄|`|\"|\/|-|( )+|#|_", "-", $row['forum_name']);
$name = eregi_replace ("&", "-and-", $name);
$name = eregi_replace ("!|\?", "", $name);
$name = eregi_replace ("&", "-and-", $name);
$name = eregi_replace ("\(|\)|;", "", $name);
$name = eregi_replace ("\[|\]", "", $name);
$name = eregi_replace ("(-)+", "-", $name);
$name = str_replace ($search, $replace, $name);
$name = strtolower ( $name );
$write_string .= '\'|"(?:./)?viewforum.php\?f='.$row['forum_id'].'&(?:amp;)topicdays=([0-9]*)&(?:amp;)start=([0-9]*)"|\','."\n".'\'|"(?:./)?viewforum.php\?f='.$row['forum_id'].'"|\','."\n";
$write_string_b .= '\'"viewforum'. $row['forum_id'] . '-\\1-\\2,'. $name . '.html"\','."\n".'\'"forum'. $row['forum_id'] . ','. $name . '.html"\','."\n";
}
//-----------------------------------------------
// cache Categories (read)
$sql = "SELECT cat_id, cat_title FROM " . CATEGORIES_TABLE;
if( !$result = $db->sql_query($sql) )
{
message_die(CRITICAL_ERROR, "Could not query Categorie information", "", __LINE__, __FILE__, $sql);
}
// cache Categories
while ( $row = $db->sql_fetchrow($result) )
{
$search = array( 'Φ', 'Δ', 'ά', 'φ', 'δ', 'ΰ', 'ι', 'θ', 'ό', '$','\\','/', '---');
$replace = array( 'Φ', 'Δ', 'α', 'φ', 'δ', 'υ', 'ι', 'θ', 'ο', '-', '-', '-', '-');
$name = eregi_replace (",|:|'|΄|`|\"|\/|-|( )+|#|_", "-", $row['cat_title']);
$name = eregi_replace ("&", "-and-", $name);
$name = eregi_replace ("!|\?", "", $name);
$name = eregi_replace ("&", "-and-", $name);
$name = eregi_replace ("\(|\)|;", "", $name);
$name = eregi_replace ("\[|\]", "", $name);
$name = eregi_replace ("(-)+", "-", $name);
$name = str_replace ($search, $replace, $name);
$name = strtolower ( $name );
$write_string .= '\'|"(?:./)?index.php\?c='.$row['cat_id'].'"|\','."\n";
$write_string_b .= '\'"forumc'. $row['cat_id'] . ','. $name . '.html"\','."\n";
}
//-----------------------------------------------
$write_string_b .= "); \n ?>";
$write_string .= "); \n". $write_string_b;
if(@$f = fopen($cache_seo, 'w'))
{
fwrite($f, $write_string);
fclose($f);
@chmod($cache_seo, 0666);
}
}
}
}
// End speaking links ShortURL |
Can somebody understand what I have to change in order to replace "," with "-" at short urls.
As I asked before:
Is there a way to change http://www.XXX/forum14,forumname.html to http://www.XXX/forum14-forumname.html
Just to change , with - |
|
|
   |
 |
Lihualee
phpBB2.de User

Anmeldungsdatum: 22.09.2008
Beiträge: 5
|
Verfasst am:
Mo 29 Sep, 2008 18:37 |
  |
thanks a lot , bump up up up!! |
_________________ love |
|
     |
 |
|
|
|
|
|
Nächstes Thema anzeigen
Vorheriges Thema anzeigen
Du kannst keine Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum nicht antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen. Du kannst Dateien in diesem Forum posten Du kannst Dateien in diesem Forum herunterladen
|
|
|