Pligg in French

Register an Account
Reply
 
Thread Tools Display Modes
  #101 (permalink)  
Old 04-28-2007, 05:04 PM
spheero's Avatar
Casual Pligger
 
Join Date: Dec 2006
Posts: 30
Could someone tell how could i get a nice looking url (with URL2 method) on the story link

in place of
Quote:
Le-march%C3%A9-automobile
I could get
Quote:
Le-marche-automobile
I tried to add
PHP Code:
function makeUrlFriendly($input) {
.....
.....
//added for french characters...
   
$output str_replace("é""e"$output);
   
$output str_replace("à""e"$output);
   
$output str_replace("ê""e"$output);
   
$output str_replace("à""a"$output);
   
$output str_replace("â""a"$output);
   
$output str_replace("ù""u"$output); 
And added some links, to see the results, but nothing happens !!!
Reply With Quote
  #102 (permalink)  
Old 04-28-2007, 05:11 PM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
There may be an easier way to do it. In your .htaccess file look for the category rewrite rule that looks like this (yours will have more categories)
Code:
RewriteRule ^(all|pligg)/([^/]+)/?$ story.php?title=$2 [L]
and make sure yours has
Code:
([^/]+)
and not

Code:
(a-A0-9+)
or whatever is currently there
Reply With Quote
  #103 (permalink)  
Old 04-28-2007, 05:15 PM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
Actually, nevermind. Although that code will help solve a lot of url method 2 errors it won't solve your problem
Reply With Quote
  #104 (permalink)  
Old 04-28-2007, 05:21 PM
AshDigg's Avatar
Mayor of PliggVille/Coder
 
Join Date: Dec 2005
Posts: 1,515
Quote:
Originally Posted by spheero View Post
And added some links, to see the results, but nothing happens !!!
Just to be sure, you submitted some links AFTER you made this change?

Can you post one of the links you're testing?

thanks
Reply With Quote
  #105 (permalink)  
Old 04-28-2007, 06:56 PM
spheero's Avatar
Casual Pligger
 
Join Date: Dec 2006
Posts: 30
These two links have been submited after the changes i made to lib/utils.php

http://www.spheero.com/upcoming

When you click for example on the seconde one, you get this

So, How would i do, to remove the %C3%A9 from the link ?
Reply With Quote
  #106 (permalink)  
Old 04-29-2007, 09:59 PM
spheero's Avatar
Casual Pligger
 
Join Date: Dec 2006
Posts: 30
I think we should add in the header section, of the lang.conf file, as they're missing

PHP Code:
//<SECTION>HEADER</SECTION><ADDED>0.57</ADDED>
PLIGG_Visual_Header_AdminPanel_Links "Gestion de News"
//<SECTION>HEADER</SECTION><ADDED>0.57</ADDED>
PLIGG_Visual_Header_AdminPanel_Comments "Gestion de Commentaires"
//<SECTION>HEADER</SECTION><ADDED>0.57</ADDED>
PLIGG_Visual_Header_AdminPanel_Editor "Editeur de Templates" 
Reply With Quote
  #107 (permalink)  
Old 05-03-2007, 02:41 PM
New Pligger
 
Join Date: Apr 2007
Posts: 2
Hello,
new pligg user (french pligg user)

I started to develop with the 9.1, then the 9.5, but i had some problem with the accent, sometime ? sometime Ã, sometime working but not in the database, vice versa... some new error message, etc...

But i've managed to work it out.

Replace in db.php, at the end
Code:
$db->query("SET NAMES 'utf-8'");
with

Code:
$db->query("SET NAMES 'latin1'");

hope that help !
Reply With Quote
  #108 (permalink)  
Old 05-04-2007, 01:37 AM
New Pligger
 
Join Date: May 2007
Posts: 18
Je suis vraiment content de voir qu'il y a des frenchi ici

Je suis nouveau avec pligg et ça a l'air assez interessant, bonne continuation et peut etre qu'on aura un jour une communauté française pour pligg
Reply With Quote
  #109 (permalink)  
Old 05-04-2007, 07:09 AM
New Pligger
 
Join Date: Feb 2007
Posts: 5
c est sympas de rencontrer des Francais ici.
J ai un robleme , car le vote ne se comptavblise plus . On voit que la personne a voter mais ca ne s aditionnent pas . ce serait sympas si quelqu un pourrait m'aider. je ne suis pas coder. envoyer moi un message .
Merci a tous
JC
Reply With Quote
  #110 (permalink)  
Old 05-10-2007, 10:01 AM
Banned
 
Join Date: Apr 2007
Posts: 25
Quote:
Originally Posted by Sacha QS View Post
dreas >
For that, you have to add all the accentuated characters you want in /libs/utils.php in the list at line 240.
This functions works by pairs: the accentuated character followed by its non-accentuated equivalent.

PHP Code:
  'é' => 'e'
Does not work for me : "é" is always written "%E9" in my urls...
Is there any other mod to apply elsewhere ?
(I'm using Pligg 9.1 Paul01 template - which seems very buggy...)
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pligg integration with SMF Forum autoinc Questions and Comments 66 08-27-2010 04:04 AM
Pligg Donation Drive 2009 chuckroast Questions and Comments 0 03-23-2009 05:42 PM
French pligg website - french caracters WebAbitibi Questions and Comments 5 10-25-2007 08:04 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development