Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Latest Addons
AD Gallery 49
SyntaxHighlighte... 51
Newsletters v4.03 112
Facebook Like Box 124
Newsletters v4.02 57
Metro 161
Facebook Connect 169
Shoutbox Panel 126
Redactor for PHP... 106
MI Floating Side... 108
Facebook Login/R... 154
Avatar Studio v2.03 179
Relationship Sta... 98
Sexual Orientati... 116
Fisherman 143
Popular Addons
iTheme2 5800
Arise 5788
User Control v1.23 4618
Event Calendar 4050
Photowidget panel 3887
Radio-Theme red2... 3355
Highslide Gallery 3313
CSS/JavaScript D... 3229
Facebook Connect... 2985
Dynamic Menu 2892
Slideshow Lightb... 2721
L-AMANT 2659
Enigma 2634
2Dark 2606
Black 2576
View Thread
Who is here? 1 guest(s)
 Print Thread
SEO-Fusion
PreFiX
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 :/
 
http://animefanai.lt
Ankur
HaYaLeT wrote:

Nice! Very nice! Very Thanks!


Thanks Wink

Archer wrote:

@Ankur There is something wrong with your site. http://ankurthaku.../news.html

Google and NOD32 are blocking access to it. Check your site dude !


Thats not an Active site anymore... Frown I will delete that Crap soon... anyways, Thanks for the info Smile
ankurthakur.co.cc/images/freelancer.png
 
http://ankurthakur.in/
Ankur
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 :
Download source  Code
/*-----------------+
|   NORMAL PAGES   |
+-----------------*/

function replace_normal_pages($matches)
{
   $replace = "'".$matches[1].ucfirst($matches[2]).URL_POSTFIX."'";
   return $replace;
}



Change :
Download source  Code
$replace = "'".$matches[1].ucfirst($matches[2]).URL_POSTFIX."'";



to :
Download source  Code
$replace = "'".$matches[1].$matches[2].URL_POSTFIX."'";



ankurthakur.co.cc/images/freelancer.png
 
http://ankurthakur.in/
jannik
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
 
www.mubase.dk
PreFiX
Ankur wrote:

Damn ! Thats my mistake... Sorry...

Ok ! Please Edit seo_friendly_urls_panel/includes/seo_functions.php :

You will find this Function :
Download source  Code
/*-----------------+
|   NORMAL PAGES   |
+-----------------*/

function replace_normal_pages($matches)
{
   $replace = "'".$matches[1].ucfirst($matches[2]).URL_POSTFIX."'";
   return $replace;
}



Change :
Download source  Code
$replace = "'".$matches[1].ucfirst($matches[2]).URL_POSTFIX."'";



to :
Download source  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?
img690.imageshack.us/img690/1971/partiu.png
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 :/
 
http://animefanai.lt
Ankur
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?
img690.imageshack.us/img690/1971/partiu.png


Try to edit seo_friendly_urls_panel.php and find this Function :
Download source  Code
function 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 :
Download source  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)
ankurthakur.co.cc/images/freelancer.png
 
http://ankurthakur.in/
jannik
Hi Ankur.
Im sending you the link in a pm since it is a closed beta site.

This is my code in maincore:

Download source  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...
 
www.mubase.dk
Ankur
jannik wrote:

This is my code in maincore:

Download source  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 :
Download source  Code
define("TRUE_PHP_SELF", str_replace("", "", $current_page));



should be : (For Links without .html)
Download source  Code
define("TRUE_PHP_SELF", str_replace(".php", "", $current_page));



should be : (For Links with .html)
Download source  Code
define("TRUE_PHP_SELF", str_replace(".php", ".html", $current_page));




See in Post : http://www.php-fu...ost_171705
ankurthakur.co.cc/images/freelancer.png
 
http://ankurthakur.in/
wheeler
Hi

Im now on the latest, still doesnt work with panels and the maincore is fine.
Michael Wheeler
 
Ankur
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 ? Cool
ankurthakur.co.cc/images/freelancer.png
 
http://ankurthakur.in/
jannik
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
Frown
 
www.mubase.dk
PreFiX
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

img651.imageshack.us/img651/575/forumasa.png
Sorry for my bad english :/
 
http://animefanai.lt
Ankur
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... Smile

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
Frown


Can you set me up ad FTP and an Admin Account on your site ? Cool

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... Cool
ankurthakur.co.cc/images/freelancer.png
 
http://ankurthakur.in/
PreFiX
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 :/
 
http://animefanai.lt
Ankur
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 :

Download source  Code
function cleanmytext($text)
{
   $text = str_replace(" ", "-", $text);
   $text = preg_replace("/([\s\s]+|[--]+)/", "-", $text);
   return $text;
}




Just add another Line of text :
Download source  Code
$text = str_replace("/", "-", $text);



ankurthakur.co.cc/images/freelancer.png
 
http://ankurthakur.in/
Ankur
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
Frown


Damn ! You din't followed the Steps in the Readme and you are making it more complex... Angry

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...
ankurthakur.co.cc/images/freelancer.png
 
http://ankurthakur.in/
jannik
Hi Ankur.
Im sorry if im a stupid cowWink 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
 
www.mubase.dk
Ankur
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 :
Download source  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 :
Download source  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...
ankurthakur.co.cc/images/freelancer.png
 
http://ankurthakur.in/
jannik
Im sorry. This is a bit to hard for meShock

Im afraid I have to give up on this one. Sad
 
www.mubase.dk
chatlaq
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

i.imm.io/yXgz.png
Php Fusion Turkey Admin
 
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
How does the password encryption on php fusion work? User Administration 4 17-05-2013 19:40
Upgrade from PHP Fusion 7.00 to 7.02 Upgrading issues 3 17-05-2013 09:12
PHP-Fusion font for new header Themes Support 4 28-04-2013 04:50
How to insert a video from YouTude for php-fusion Content Administration 3 27-04-2013 00:10
Probleme beim übertagen von Usern in neue Fusion Ideas for Modifications and Requests 3 20-04-2013 14:45
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.
Cookiebar Panel byVenue