|
SEO-Fusion
|
| PreFiX |
Posted on 24-07-2012 07:44
|

Junior Member

Posts: 20
Joined: 24/07/2012
|
When i try to post in ShoutBox archive:
Then i get link from: /infusions/shoutbox_panel/shoutbox_archive.html
To: /infusions/shoutbox_panel/Shoutbox_archive.html
And of course 404 error as well...
Same with Avatar Galery, When i change category links, filename change too.(first file letter to capital letter)
Edited by PreFiX on 24-07-2012 11:29
Sorry for my bad english :/
|
| |
|
|
| Ankur |
Posted on 24-07-2012 16:36
|

Admin

Posts: 1291
Joined: 02/11/2010
|
Thanks 
Thats not an Active site anymore... I will delete that Crap soon... anyways, Thanks for the info
|
| |
|
|
| Ankur |
Posted on 24-07-2012 17:07
|

Admin

Posts: 1291
Joined: 02/11/2010
|
PreFiX wrote:
When i try to post in ShoutBox archive:
Then i get link from: /infusions/shoutbox_panel/shoutbox_archive.html
To: /infusions/shoutbox_panel/Shoutbox_archive.html
And of course 404 error as well...
Same with Avatar Galery, When i change category links, filename change too.(first file letter to capital letter)
Damn ! Thats my mistake... Sorry...
Ok ! Please Edit seo_friendly_urls_panel/includes/seo_functions.php :
You will find this Function :
Code/*-----------------+
| NORMAL PAGES |
+-----------------*/
function replace_normal_pages($matches)
{
$replace = "'".$matches[1].ucfirst($matches[2]).URL_POSTFIX."'";
return $replace;
}
Change :
Code$replace = "'".$matches[1].ucfirst($matches[2]).URL_POSTFIX."'";
to :
Code$replace = "'".$matches[1].$matches[2].URL_POSTFIX."'";
|
| |
|
|
| jannik |
Posted on 24-07-2012 19:22
|

Member

Posts: 95
Joined: 26/12/2005
|
I have updated to 7.02.05 but still cannot see any panel anywhere.
It is enabled, and I have tried to put it left, right or centered.
Do anyone know what can be the problem?
regards
Jannik |
| |
|
|
| PreFiX |
Posted on 25-07-2012 03:47
|

Junior Member

Posts: 20
Joined: 24/07/2012
|
Ankur wrote:
Damn ! Thats my mistake... Sorry...
Ok ! Please Edit seo_friendly_urls_panel/includes/seo_functions.php :
You will find this Function :
Code/*-----------------+
| NORMAL PAGES |
+-----------------*/
function replace_normal_pages($matches)
{
$replace = "'".$matches[1].ucfirst($matches[2]).URL_POSTFIX."'";
return $replace;
}
Change :
Code$replace = "'".$matches[1].ucfirst($matches[2]).URL_POSTFIX."'";
to :
Code$replace = "'".$matches[1].$matches[2].URL_POSTFIX."'";
Thank you, it helped.Your seo mod is the best phpfusion seo mod what i ever seen, but how to replace some special letters to simple letters, my lang, is Lithuanian and it have similiar letters to: "a,c,e,i,s,u,z".Can you provide any code to replace links?

If you don't understand what i wroted then write me to P.M, my english isn't so good :/
I tried what other people sayed, in previous posts , but it didn't helped me.
I had some bugs with those panels too, but fixed it somehow.But still having some bugs in some pages.In some pages i can't disable and enable specific panels.
(In my own created php fusion infusion of course...It worked well before I installed seo mod.(panels disabling function))
Edited by PreFiX on 25-07-2012 04:12
Sorry for my bad english :/
|
| |
|
|
| Ankur |
Posted on 25-07-2012 15:43
|

Admin

Posts: 1291
Joined: 02/11/2010
|
PreFiX wrote:
Thank you, it helped.Your seo mod is the best phpfusion seo mod what i ever seen, but how to replace some special letters to simple letters, my lang, is Lithuanian and it have similiar letters to: "a,c,e,i,s,u,z".Can you provide any code to replace links?
Try to edit seo_friendly_urls_panel.php and find this Function :
Codefunction cleanmytext($text)
{
$text = preg_replace("/[^a-zA-Z0-9_-\s]/", "", $text);
$text = str_replace(" ", "-", $text);
$text = preg_replace("/([\s\s]+|[--]+)/", "-", $text);
return $text;
}
Try Removing the first Line :
Code$text = preg_replace("/[^a-zA-Z0-9_-\s]/", "", $text);
I hope it will make your wish... ;)
jannik wrote:
I have updated to 7.02.05 but still cannot see any panel anywhere.
It is enabled, and I have tried to put it left, right or centered.
Do anyone know what can be the problem?
regards
Jannik
Can you please provide your website Link?
Please make sure that you have done Correct modifications in maincore.php. There are 2 different modifications in maincore.php for 2 different type of SEO URLs... B)
|
| |
|
|
| jannik |
Posted on 26-07-2012 06:16
|

Member

Posts: 95
Joined: 26/12/2005
|
Hi Ankur.
Im sending you the link in a pm since it is a closed beta site.
This is my code in maincore:
Code//Original line before seo
//define("TRUE_PHP_SELF", $current_page);
//Seo start
if (preg_match("/\/(administration)\//", $current_page))
{
define("TRUE_PHP_SELF", $current_page);
}
else
{
define("TRUE_PHP_SELF", str_replace("", "", $current_page));
}
//Seo end
When i activate the panel login.php becomes Login.html and so on... So it works... but I cannot see a panel, and it is not removing the ".html" in the links... |
| |
|
|
| Ankur |
Posted on 26-07-2012 06:33
|

Admin

Posts: 1291
Joined: 02/11/2010
|
jannik wrote:
This is my code in maincore:
Code//Original line before seo
//define("TRUE_PHP_SELF", $current_page);
//Seo start
if (preg_match("/\/(administration)\//", $current_page))
{
define("TRUE_PHP_SELF", $current_page);
}
else
{
define("TRUE_PHP_SELF", str_replace("", "", $current_page));
}
//Seo end
When i activate the panel login.php becomes Login.html and so on... So it works... but I cannot see a panel, and it is not removing the ".html" in the links...
You have incorrect code in maincore.php !!!
Line :
Codedefine("TRUE_PHP_SELF", str_replace("", "", $current_page));
should be : (For Links without .html)
Codedefine("TRUE_PHP_SELF", str_replace(".php", "", $current_page));
should be : (For Links with .html)
Codedefine("TRUE_PHP_SELF", str_replace(".php", ".html", $current_page));
See in Post : http://www.php-fu...ost_171705
|
| |
|
|
| wheeler |
Posted on 26-07-2012 07:26
|

Member

Posts: 91
Joined: 07/07/2004
|
Hi
Im now on the latest, still doesnt work with panels and the maincore is fine.
Michael Wheeler
|
| |
|
|
| Ankur |
Posted on 26-07-2012 07:39
|

Admin

Posts: 1291
Joined: 02/11/2010
|
wheeler wrote:
Hi
Im now on the latest, still doesnt work with panels and the maincore is fine.
Can you please setup me an FTP and an Admin Account at your website ?
|
| |
|
|
| jannik |
Posted on 26-07-2012 11:30
|

Member

Posts: 95
Joined: 26/12/2005
|
Hi Ankur.
Yes, I can see that. I triet to remove the .php just to try something, since nothing happend.
I have changed maincore back to
define("TRUE_PHP_SELF", str_replace(".php", "", $current_page));
But still nothing happens
 |
| |
|
|
| PreFiX |
Posted on 26-07-2012 12:28
|

Junior Member

Posts: 20
Joined: 24/07/2012
|
I have a bug.When in link i have "/" for example
forum/Tema-133-AF-subtitravimo/igarsinimo-komanda.html
Web Design dissapears.
(I changed Thread to Tema).
Here is a scheenshot
Sorry for my bad english :/
|
| |
|
|
| Ankur |
Posted on 26-07-2012 15:07
|

Admin

Posts: 1291
Joined: 02/11/2010
|
wheeler wrote:
Hi
Im now on the latest, still doesnt work with panels and the maincore is fine.
Damn ! You had set the setting Enable SEO Mod? as No in Admin Panel --> SEO Admin Page.
Also, you didn't uploaded .htaccess file.
Anyways, now I have fixed both of them... The site is working good now... 
jannik wrote:
Hi Ankur.
Yes, I can see that. I triet to remove the .php just to try something, since nothing happend.
I have changed maincore back to
define("TRUE_PHP_SELF", str_replace(".php", "", $current_page));
But still nothing happens

Can you set me up ad FTP and an Admin Account on your site ? 
PreFiX wrote:
I have a bug.When in link i have "/" for example
forum/Tema-133-AF-subtitravimo /igarsinimo-komanda.html
Web Design dissapears.
Of course that will happen !
Because the BASEDIR will be different in this case and the browser will take it as another separate directory...
|
| |
|
|
| PreFiX |
Posted on 26-07-2012 19:39
|

Junior Member

Posts: 20
Joined: 24/07/2012
|
Ow, you didn't understood what i wrote.Thread title was : "AF subtitravimo/igarsinimo komanda" (Of course it's wroted Lithuanian..) and in thread title i had symbol: "/" so how can I replace "/" to something else like "-" ?
Sorry for my bad english :/
|
| |
|
|
| Ankur |
Posted on 27-07-2012 05:26
|

Admin

Posts: 1291
Joined: 02/11/2010
|
PreFiX wrote:
Ow, you didn't understood what i wrote.Thread title was : "AF subtitravimo/igarsinimo komanda" (Of course it's wroted Lithuanian..) and in thread title i had symbol: "/" so how can I replace "/" to something else like "-" ?
Oh... my bad reading :P
Just change in this Function :
Codefunction cleanmytext($text)
{
$text = str_replace(" ", "-", $text);
$text = preg_replace("/([\s\s]+|[--]+)/", "-", $text);
return $text;
}
Just add another Line of text :
Code$text = str_replace("/", "-", $text);
|
| |
|
|
| Ankur |
Posted on 27-07-2012 05:57
|

Admin

Posts: 1291
Joined: 02/11/2010
|
jannik wrote:
Hi Ankur.
Yes, I can see that. I triet to remove the .php just to try something, since nothing happend.
I have changed maincore back to
define("TRUE_PHP_SELF", str_replace(".php", "", $current_page));
But still nothing happens

Damn ! You din't followed the Steps in the Readme and you are making it more complex... 
You didn't added the Panel for SEO Panel.
You made changes in HTACCESS file and didn't mentioned them to me.
Also, you didn't gave me the Admin password and hence, I had to Code a file first and then execute it on your website to Add a panel into your site.
However, now I have done both the things and SEO is working good on the site...
|
| |
|
|
| jannik |
Posted on 27-07-2012 09:59
|

Member

Posts: 95
Joined: 26/12/2005
|
Hi Ankur.
Im sorry if im a stupid cow Im trying my best here. But yes. Sorry I had made changes in the .htaccess file.
You say it works? But it still shows login.php as Login.html... shouldnt it just be /login or have you changed something in the maincore now??
And again... Maybe Im stupid... but where is the panel on my site. I can see you have added it in the admin panel site, but cannot see it anywhere? now I have tried to mive it to the right... still nothing.
All the best
Jannik |
| |
|
|
| Ankur |
Posted on 27-07-2012 11:03
|

Admin

Posts: 1291
Joined: 02/11/2010
|
jannik wrote:
You say it works? But it still shows login.php as Login.html... shouldnt it just be /login or have you changed something in the maincore now??
This is intentional. All the root pages will be changed to .html.
downloads.php will be changes to downloads.html
articles.php will be changes to articles.html
and so on for other files...
If you want to change it, you need to make changes in seo_friendly_urls_panel/seo_friendly_urls_panel.php
For example:
You will find these Lines in this panel file :
Code// For Root Pages
$pattern = "/'(".$linkpath."|".$siteurl.")?([a-zA-Z0-9_-]+)\.php'/";
$output = preg_replace_callback($pattern, "replace_normal_pages", $output);
// For Forum Index
$pattern = "/'(".$linkpath."|".$siteurl.")?forum\/index\.php'/";
$output = preg_replace($pattern, "$1forum/index".URL_POSTFIX, $output);
// For Index/General Pages for Infusions
$pattern = "/'(".$linkpath."|".$siteurl.")?infusions\/([a-zA-Z0-9_-]+)\/(.*?)\.php'/";
$output = preg_replace($pattern, "$1infusions/$2/$3".URL_POSTFIX, $output);
// Log Out URL
$pattern = "/'(".$linkpath."|".$siteurl.")?index\.php\?logout=yes'/";
$output = preg_replace($pattern, "$1Logout".URL_POSTFIX, $output);
Similarly, Add before // For Root Pages :
Code// Log In URL
$pattern = "/'(".$linkpath."|".$siteurl.")?login\.php'/";
$output = preg_replace($pattern, "$1login".URL_POSTFIX, $output);
Dont forget to make changes in HTACCESS too...
jannik wrote:
but where is the panel on my site. I can see you have added it in the admin panel site, but cannot see it anywhere? now I have tried to mive it to the right... still nothing.
The Panel is not added to be shown. The panel performs the functions of SEO URLs replacements. There is nothing which needs to be shown. But the panel must be enabled in order to make SEO work...
|
| |
|
|
| jannik |
Posted on 27-07-2012 15:52
|

Member

Posts: 95
Joined: 26/12/2005
|
Im sorry. This is a bit to hard for me
Im afraid I have to give up on this one.  |
| |
|
|
| chatlaq |
Posted on 02-08-2012 12:59
|

Junior Member

Posts: 28
Joined: 15/12/2007
|
ankur very nice mod. a few bug for turkish on url. Turkish characters are truncated.
The following solution is described on the site. Will use the issue is resolved
http://www.mertoz...-htaccess/
url output: example/News-10-Ziraat-Trkiye-Kupas39nda-gruplarn-kura-ekimi-bugn-stanbul39da-yapld.html
Php Fusion Turkey Admin
|
| |
|