|
|
Re:members page
|
|
Date: 2005/11/27 02:06
|
By: Phil_K
|
Status: User
|
|
|
Karma: 2  
|
|
Fresh Joomlapolitan  | Posts: 16 |   | |
|
Hi.
Hmm .. any reason why to shoot at little birds with cannons ?
I have some similar feature running on a few of my sites, with CBE sv0.61 but basicly its the same feature.
To solve your problems with dotted names and directorys add the following lines before your redirecting line with the CB-RC2 path:
| Code: |
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
|
These lines check first if a post-attend like /phil.k on
www.joomlapolis.com/Phil.k is a file, than if it is a directory.
If one of it is positiv the redirecting url is not executed, if not it is passed to it.
Runs well for me with dotted names also.
Greets
Phil.
|
|
The administrator has disabled public write access. |
|
|
|
Re:members page
|
|
Date: 2005/11/28 07:49
|
By: trail
|
Status: Admin
|
|
|
Karma: 640  
|
|
Admin  | Posts: 472 |   | |
|
Phil_K wrote: Hi.
Hmm .. any reason why to shoot at little birds with cannons ?
I have some similar feature running on a few of my sites, with CBE sv0.61 but basicly its the same feature.
To solve your problems with dotted names and directorys add the following lines before your redirecting line with the CB-RC2 path:
| Code: |
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
|
These lines check first if a post-attend like /phil.k on
www.joomlapolis.com/Phil.k is a file, than if it is a directory.
If one of it is positiv the redirecting url is not executed, if not it is passed to it.
Runs well for me with dotted names also.
Greets
Phil.
this doesn't work for me in rc2..
with your code i still just get file not found on:
http://www.djtrail.nl/auke..
http://www.djtrail.nl/v.i.p
http://www.djtrail.nl/j.dekker
someone will figure it out sooner or later .. i think its possible to do with regex but i find it tricky and time consuming and not always fun 
Post edited by: trail, at: 2005/11/28 01:52 DJ Trail. CB Co-Founder & Test-Lead. Plugins: My Age, Starsign Matchmaking Horoscope, My Visitor, My Highscores, My ProfileID, My Components: Import & Invite Karma Casino (Use Test / Test) My Modules: Many 
|
|
The administrator has disabled public write access. |
|
|
|
Re:members page
|
|
Date: 2005/11/28 12:27
|
By: Phil_K
|
Status: User
|
|
|
Karma: 2  
|
|
Fresh Joomlapolitan  | Posts: 16 |   | |
|
Hi.
trail wrote:
this doesn't work for me in rc2..
with your code i still just get file not found on: http://www.djtrail.nl/auke.. http://www.djtrail.nl/v.i.p http://www.djtrail.nl/j.dekker
No Problem on my site. I added usernames like that and all went fine.
For debuging it helps to have a seperate php file printing out what is transmitted by the RedirectRule.
One Reason it doesn't work for you could be that i use a diffrent RewriteRule
| Code: |
RewriteRule ^(.*) index.php?option=com_comprofiler&task=userProfile&user=$1
|
on sites with no sef and a modified index.php on sites which use sef to have that url shaped. But basicly it's the same.
Greets
Phil.
|
|
The administrator has disabled public write access. |
|
|
|
Re:members page
|
|
Date: 2005/11/29 01:14
|
By: trail
|
Status: Admin
|
|
|
Karma: 640  
|
|
Admin  | Posts: 472 |   | |
|
Thanks! You fixed it 
I knew someone would 
I changed your RewriteRule ^(.*) index.php?option=com_comprofiler&task=userProfile&user=$1
to
RewriteRule ^(.*) index.php?option=com_comprofiler&task=userProfile&user='$1'
This will trigger a new feature making it possible to have a username that are numbers. Else it would see the number and think it was an ID and search for the userID.
My original redirect was: RewriteRule ^([^/.]+)/?$ /index.php?option=com_comprofiler&task=userProfile&user='$1' [L]
Yours works best, thanks for the excellent help DJ Trail. CB Co-Founder & Test-Lead. Plugins: My Age, Starsign Matchmaking Horoscope, My Visitor, My Highscores, My ProfileID, My Components: Import & Invite Karma Casino (Use Test / Test) My Modules: Many 
|
|
The administrator has disabled public write access. |
|
|
|
Re:members page
|
|
Date: 2005/12/03 21:14
|
By: hedingsi
|
Status: User
|
|
|
Karma: 19  
|
|
Expert Joomlapolitan  | Posts: 111 |   | |
|
I tried this out. It works fine for me. There's only one little bug: I can't view my own profile over the Menu Item My CB Profile (Mein Profil)
Is there any solution for this?
http://www.soundofdream.com/atv/english CB3PD (Community Builder 3rd Party Developer) -*-*-*-*-*-*-*Current Projects*-*-*-*-*-*-*-*-*-*- Karmaplugin with Lennox Mood Pluding with avarage rate and statement function Watermark Upload Conrtibute -*-*-*-*-*-*-*Homepage*-*-*-*-*-*-*-*-*-*- http://www.soundofdream.com
|
|
The administrator has disabled public write access. |
|
|