A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Custom Profile URL??
Mar 2, 2010
12:07 pm
Rookie
Forum Posts: 1
Member Since:
Feb 27, 2010
Offline

Just seen the option for making differnet profile urls??

I'm currently running Mingle to make everyone have a profile page and stuff.. and everyones profile url is

http://www.delayeduk.com/USERNAMEHERE for eg. http://www.delayeduk.com/Chris

 

So how would I go about this so when you click someones user name on the forum it goes to there profile instead of forum profile??

Cheers.

 

Mar 2, 2010
3:10 pm

SP Master
Forum Posts: 22190
Member Since:
Nov 9, 2008
Online

I don't think that will be possible. We do support directing a profile request to a non-forum page (and not the Wp profile either) but that requires a query variable to be used with a users ID.
The url you have quoted above does not use this sort of format. Unless it can be changed of course.

Yellow Swordfish
Aug 16, 2010
1:14 pm
Member
Forum Posts: 6
Member Since:
Jul 27, 2010
Offline

Is this still the case with SimplePress? 

 

The alternative way that Mingle works with profiles, other than the method Chris listed, is by the url site.com/user/profile/?u=username.

 

Is this just not possible?

Aug 16, 2010
1:21 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

no clue what mingle is, but…

site.com/profile will give you the current user profile…

site.com/profile/username will give the curernt profile of a user…

and on forum – profiles – profile options, you can redirect to any url you want, but the catch is that the receivng end has to accept the data in query args…  so you could do

site.com/user/profile/?u=username

but you would have to have something else that catches that as a mingle user (ie plugin)…  the query arg url is normally for off wp domain urls…

does that answer your question?

Aug 16, 2010
2:56 pm
Member
Forum Posts: 6
Member Since:
Jul 27, 2010
Offline

Mingle is a WordPress plugin that turns user profiles into a front-end affair, redirecting all user profiles on a WordPress site into a Facebook-like wall page. That way users can interact, and never see the backend. Basically drop-in social network without all the complexity of BuddyPress.

So, when you click a user's name anywhere on the site (comments, recent posts, etc, etc), it sends you to a profile page like so:

http://wpmingle.com/cartpauj/

 

If you have pretty permalinks, it send you to site.com/username. Without it, it's the site.com/user/profile/?u=username.

A user can view their own profile at site.com/user/profile.

 

Now, Simple-Press uses the WordPress username too. So, what would I put in the following boxes:

URL for 'Other' Page:

Query String Variable Name:

Aug 16, 2010
3:06 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

url is the page you want to redirect to… ie

site.com/user/profile

and the query arg would be the name of the query arg… ie

u

but the value passed will be the userid, not the username…  if you wanted to change that, you would have to edit the code…  file sf-support.php and routine sf_attach_user_profilelink()

Aug 16, 2010
3:16 pm
Member
Forum Posts: 6
Member Since:
Jul 27, 2010
Offline

Thank you, Mr Papa. That was very helpful. :)

Aug 16, 2010
3:19 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

np. here to help!  let me know if you have any more questions…

Aug 16, 2010
4:01 pm
Member
Forum Posts: 6
Member Since:
Jul 27, 2010
Offline

Sorry, one more question.

Is the reference at line 1232?

 

return sf_attach_user_profilelink($userid, $username);

I just can't figure out which reference to sf_attach_user_profilelink() you're referring to. I'm figuring I need to change the variable from "$userid" to "$username" somewhere…correct? 

Aug 16, 2010
4:14 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

I guess you arent running the latest 4.3.3?  oh, this is the older 4.2 forum… but, the routine is

sf_attach_user_profilelink

and the code to change is

case 5:
            # Handoff to user specified page
            if($sfprofile['displaypage'])
            {
                $out = '<a href="'.$sfprofile['displaypage'];
                if($sfprofile['displayquery']) $out.= '?'.sf_filter_title_display($sfprofile['displayquery']).'='.$userid;
                $out.= '">'.$targetitem.'</a>';
            } else {
                $out = $targetitem;
            }
            return $out;
            break;

now this is from 4.3.3 but should be similar…

you need to change the

$userid

to be the username instead of id if thats what you want… is it really username??? or display name?  or nickname?  be sure to urlencode() encode I would imagine… like

urlencode(sf_get_member_item($userid, 'display_name'))

will give you the display name of the user instead of id…

Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online: Yellow Swordfish, woody, scitexnz, williambennettiv, Jason Clark, Superfast, ahcreate
56 Guest(s)

Currently Browsing this Page:
1 Guest(s)

See All Online Activity

Top Posters:

-Radio-: 1251

Lee H: 606

Luffer: 535

Conrad_Farlow: 501

jim: 478

neon: 263

ovizii: 240

Tal: 240

Member Stats:

Guest Posters: 2624

Members: 7354

Moderators: 1

Admins: 2

Forum Stats:

Groups: 5

Forums: 16

Topics: 10877

Posts: 79454

Moderators: Brandon C (162)

Administrators: Yellow Swordfish (22180), Mr Papa (23688)