Topic RSS
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.
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.
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?
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?
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:
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:
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()
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?
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…
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)
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
Newest Members: somosguatemala, ahcreate, eatonrabbit, indifrendz.com, Superfast, Jason Clark, LisaGergets, williambennettiv, scitexnz, Brad Holland
Moderators: Brandon C (162)
Administrators: Yellow Swordfish (22180), Mr Papa (23688)
Log In
Register
Home
Add Reply
Add Topic
Offline

Quote
Online


Visit 
Privacy Policy



