Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 3 4 Next > End >>
Re:members page
Date: 2005/11/27 02:06 By: Phil_K Status: User  
Karma: 2  
Fresh Joomlapolitan

Posts: 16
graphgraph
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.
Click here to see the profile of this user The administrator has disabled public write access.

Re:members page
Date: 2005/11/28 07:46 By: trail Status: Admin  
Karma: 640  
Admin

Posts: 472
graphgraph
joomladude wrote:
One problem I noticed is that after inserting the code in .htaccess file, if the site is under maintenance, you no longer going to be able to access the admin section by typing the http://www.mysite.com/administrator/.

I guess the code is treating the admin section as a user profile.
Regards,

JD


You can access it by using the complete url, http://www.domain.nl/administrator/index.php
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
Click here to see the profile of this user 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
graphgraph
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
Click here to see the profile of this user 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
graphgraph
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.
Click here to see the profile of this user 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
graphgraph
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
Click here to see the profile of this user 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
graphgraph
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
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 1 2 3 4 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login