View Full Version : Miscellaneous Hacks - MySpace type User Profile Link
MiahBeSmokin420
02-11-2008, 10:00 PM
Tested with vb 3.6.7 and 3.6.8
Tested on IE7 and FF2
Ok lets say your site is:
http://Example.com/Forums/
And the path to members profiles is even longer:
http://Example.com/Forums/member.php?=member.php?username=ExampleUserName
Well lets give your members a smaller and easy link to remember.
How about:
http://Example.com/Username
Oh ya thats alot better huh?
Ok well this is how you do it.
Add this to the .htaccess in root of example.com
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://Example.com/Forums/member.php?username=$1 [R]Replace this:
http://Example.com/Forums/
With the link to your forums.
All members and guests will be able to go to:
http://Example.com/ThereUserName
And automatically be forwarded to the profile of the user name they entered after the site link.
Thats it just one easy .htaccess file edit and your done.
NOTE:
Want to use a diffrent domain like:
http://ExampleTwo.com/UserName
Just add the .htaccess file to that domain instead
just make sure that whats in red below links to your site
RewriteRule ^(.*)$ http://Example.com/Forums/member.php?username=$1
Enjoy and click install if you use this mod.
Also Some Credit to Eikinskjaldi (https://vborg.vbsupport.ru/member.php?u=130702) for pointing me in the right way to get this working.
MiahBeSmokin420
02-12-2008, 09:02 AM
Extra little things you can do with this:
Find in navbar template:
<!-- breadcrumb, login, pm info -->Directly Above or if you have a top nav bar then add above that:
<if condition="$show['member']">
<b>My Url: <a href="http://Example.com/$bbuserinfo">Example.com/$bbuserinfo[username]</a>
</b></if>[U] Which will add:
My Url: Example.com/UserName
Note: this will only be view able to members.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In Register template find:
<div class="smallfont" style="margin-bottom:$stylevar[formspacer]px">
<strong>$vbphrase[username]</strong>:<br />
Add above:
<BR><strong>Your user name will also be your permanent link to your profile and can not be changed.<BR>Example: http://Example.com/YourUserName</strong><BR><BR>
Changing Example.com to the domain you are going to use to shorten profile links with.
Which will add a small note during registration letting soon to be new members know that there user name will also be used as part of the link to there profile.
Hope that this info is useful to you and remember to click install if you use this mod.
sheryjutt
02-12-2008, 11:45 AM
Any ScreenShot Please
MiahBeSmokin420
02-12-2008, 11:50 AM
how are you going to have a screen shot for a link???
the closest your are going to get to a screen shot is look at my signature on here and you will see that it says my profile link
and then once you click on the it will redirect you to my profile
but my site is closed right now while we are updating alot of things
but its a link you ready dont need a screen shot
just upload the .httaccess to your public_html after you put replace the link with your forum link like it says and then just go to that domain /yourusersname
MiahBeSmokin420
02-12-2008, 11:51 AM
also if your user name has a space make sure you type the space in the url when you try to go to it or else it will say some dumb stuff
Gryphon
02-12-2008, 01:47 PM
Any ScreenShot Please
:rolleyes:
CallieJo
02-12-2008, 04:52 PM
What is the difference with this and this: https://vborg.vbsupport.ru/showthread.php?t=165986
Thanks ;)
Gryphon
02-12-2008, 04:53 PM
What is the difference with this and this: https://vborg.vbsupport.ru/showthread.php?t=165986
Thanks ;)
Different author ;)
That other one will not allow usernames with special characters, only numbers and letters.
MiahBeSmokin420
02-12-2008, 06:46 PM
Different author ;)
That other one will not allow usernames with special characters, only numbers and letters.
bingo
CallieJo
02-12-2008, 07:10 PM
Different author ;)
That other one will not allow usernames with special characters, only numbers and letters.
I see...very clever;)
bingo
Good work!
Does this also change the url noted in the profile to reflect the new url?
Alfa1
02-12-2008, 10:17 PM
I have one site, but with multiple url's pointing to it:
mymainurl.com
mysecondurl.com
I want to display mymainurl.com/forum/member.php?=member.php?username=ExampleUserName
as
mysecondurl.com/username
Is this possible?
iogames
02-12-2008, 11:10 PM
Bulletproof?
mystic10
02-12-2008, 11:42 PM
what if i want the same thing but for admincp...and put their ip so when then log on with their id it must match the ip for them to log on to admin cp or mod cp can u kindly help
MiahBeSmokin420
02-13-2008, 01:44 AM
I see...very clever;)
Good work!
Does this also change the url noted in the profile to reflect the new url?
it dose not change any of the urls its just a basic redirect type deal
the link that you enter http://example.com/username is not even a real link it just redirects you to http://example.com/forums/member.php?=username
which would be the profile of the members name you entered after http://Example.com/
also please make sure you click install if you are using this
I have one site, but with multiple url's pointing to it:
mymainurl.com
mysecondurl.com
I want to display mymainurl.com/forum/member.php?=member.php?username=ExampleUserName
as
mysecondurl.com/username
Is this possible?
yes thats the way i have mine set up
just add the .httaccess file in the other domain you have and set it to go to the domain you want it to
Bulletproof?
not really sure what that means
what if i want the same thing but for admincp...and put their ip so when then log on with their id it must match the ip for them to log on to admin cp or mod cp can u kindly help
i dont know you would have to ask someone else im not sure that would most likely need a totaly diffrent mod
MiahBeSmokin420
02-13-2008, 01:48 AM
**Updated** Added info the my reserved post.
iogames
02-13-2008, 05:49 PM
Well, actually it sends me to the Profile Page of the User... BUT!
still looks the same!
http://www.iogames.com/chat/member.php?username=coder
Why?
MiahBeSmokin420
02-13-2008, 06:02 PM
ya its supoesed to
this is just so that members do not have to remember the whole link
do you think that a member wants to go to his friend and be like:
Hey man check out my profile the link is
http://www.iogames.com/chat/member.php?username=coder
no i dont think they want to try to remember that whole thing when all they have to do is remember a much smaller link which would be your site link and then there username
see the point of this?
TCE Killa
02-13-2008, 06:13 PM
Thanks alot for this Stillfallin, I've been looking for this for awhile. Marked installed :)
Btw, are you online on COD4 PS3? If so, get back to me through PM. Thanks.
MiahBeSmokin420
02-13-2008, 08:36 PM
nope i dont have a ps3 yet i should have one here probally next month
iogames
02-14-2008, 11:10 PM
ya its supoesed to
this is just so that members do not have to remember the whole link
do you think that a member wants to go to his friend and be like:
Hey man check out my profile the link is
http://www.iogames.com/chat/member.php?username=coder
no i dont think they want to try to remember that whole thing when all they have to do is remember a much smaller link which would be your site link and then there username
see the point of this?
Now I see! well I will add the explanation to users
MiahBeSmokin420
02-14-2008, 11:35 PM
Now I see! well I will add the explanation to users
if you do the first part of this addon for this in this post
https://vborg.vbsupport.ru/showpost.php?p=1441336&postcount=2
then they should be able to figure it out
but ya hope you like it
Alfa1
02-16-2008, 05:07 PM
I have one site, but with multiple url's pointing to it:
mymainurl.com
mysecondurl.com
I want to display mymainurl.com/forum/member.php?=member.php?username=ExampleUserName
as
mysecondurl.com/username
Is this possible?
yes thats the way i have mine set up
just add the .httaccess file in the other domain you have and set it to go to the domain you want it to
I do not have different directories per url. It's all the same. My profiles can be accessed on both:
mymainurl.com/forum/member.php?u=1
and
mysecondurl.com/forum/member.php?u=1
It is the same page. How do I set this in .htaccess?
stwilson
02-18-2008, 04:09 PM
Does this work in 3.7B5? I tried but no go and was not sure if I was doing something wrong.
MiahBeSmokin420
02-18-2008, 05:28 PM
i dont know i dont have 3.7
im would imagine it would though
TCE Killa
02-18-2008, 07:48 PM
If you want this to show up in your welcome box instead of by your navbar... Then in your navbar template, find:
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
And add below:
<if condition="$show['member']">Your Profile URL: <a href="http://YourDomain.com/$bbuserinfo[username]">YourDomain.com/$bbuserinfo[username]</a>
</if>
Changing 'YourDomain' with your forums domain name.
See screenshot in what I mean.
jeepcircle
02-18-2008, 07:49 PM
Is there a way to allow this only for people in certain usergroups?
MiahBeSmokin420
02-19-2008, 10:05 AM
not realy i dont know why you would want to do that though
but im sure you could hide that link to user groups that way they dont know it is there for them
but doing that would just not be cool
caocao1
02-19-2008, 10:23 AM
thanks for your post :D
Alfa1
02-19-2008, 01:55 PM
MiahBeSmokin420; do you have a solution to my question above?
MiahBeSmokin420
02-20-2008, 04:25 PM
MiahBeSmokin420; do you have a solution to my question above?
sorry missed that post
just add the httaccess file to both domains and then just point them to where your foums are installed i guess
but from the way you said that there it looks like you have 2 diffrent forums on 2 diffrent domains cause i dont see how you can have the same forum with 2 domains without having one of the domains redirect to the other
so honestly idk man
jeepcircle
02-20-2008, 11:49 PM
not realy i dont know why you would want to do that though
but im sure you could hide that link to user groups that way they dont know it is there for them
but doing that would just not be cool
It would be cool if you had a "premium member" group (or something of the like) where they could have there own address like that. Just a thought
MiahBeSmokin420
02-21-2008, 12:15 AM
ya that would be cool but unfortunately there is now way that i know of to make a htaccess file have user group permissions seeing as how it is controlled by the server and not vb
iogames
02-21-2008, 12:29 AM
Can you add this info on the 'Welcome Email'??? for them not to forget their URLs?
MiahBeSmokin420
02-21-2008, 08:48 AM
dont quote me on this but im almost positive what you would add to the the welcome email is:
Your profile url: http://yourdomain.com/$username
that should do it but i would send a test email to your seld before you make that a permant change to the welcome email
Jongo
02-23-2008, 02:52 PM
This is an awesome addition to my board, the members love it.
Thanks ever so much for uploading it!
TCE Killa
03-04-2008, 03:21 PM
Their is an error with this though, it effects the currently active users/who's online list.
It keeps saying everyone is viewing an error message and looking at a user profile, but no one is infact doing that. I got rid of it from the .htaccess and it is fine again, any way to fix this? Thanks.
MiahBeSmokin420
03-06-2008, 12:53 AM
Their is an error with this though, it effects the currently active users/who's online list.
It keeps saying everyone is viewing an error message and looking at a user profile, but no one is infact doing that. I got rid of it from the .htaccess and it is fine again, any way to fix this? Thanks.
There is no way it could mess with anything in vB
Especially not the WOL
Take a screen shot of the WOL page
dancue
03-06-2008, 02:23 AM
Thanks. Nice and simple.
For those of you who want to place a link in your userCP do the following edit in the UserCP_Shell:
find:
$navbar
add below:
<!-- table for MySpace profile link -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" align="center">My URL</td>
</tr>
<tr>
<td class="$navclass[signature]" nowrap="nowrap" align="center">
<b><a href="http://YourDomain.com/$bbuserinfo[username]">YourDomain.com.com/$bbuserinfo[username]</a>
</b></td>
</tr>
</table>
<br>
<!-- / table for MySpace profile link -->
edit:
For those of you still using the default vBulletin style replace "$navclass[signature]" with "info" or any other predefined class. Otherwise you will get an error.
TCE Killa
03-07-2008, 10:50 PM
I'll get a screenshot tomorrow, but I hope you can help, thanks man.
TCE Killa
03-09-2008, 10:15 PM
Heres a screenshot of the problem, and like I'm saying, when I remove the code from .htaccess or whatever it is, it works fine again:
MiahBeSmokin420
03-09-2008, 10:29 PM
maybe all 3 people were viewing a profile
but im telling you that a htaccess file with the info i have posted
CAN NOT and WILL NOT mess with any part of vB in any way
Its just impossiable
now if my mod were to in some way interact with the vB files and/or vB coding then yes it could be because of this
but there is now way that it could do that i promise you that
you either got something messed up in the htaccess file or there is more in the htaccess file then what this mod requires idk
MiahBeSmokin420
03-09-2008, 10:31 PM
also dont add the htaccess fiel to your forums directory
add it the the public html dir
TCE Killa
03-09-2008, 10:48 PM
Yep, its in the public html folder. I tried putting it in the other htaccess but that one didn't work. It's definetely not everyone viewing a user profile with an error message because when I take it out of the htacess file, everything is fine again and you can see what everyone is doing. Do you want me to post the text I got in the htaccess file? Thanks.
MiahBeSmokin420
03-10-2008, 12:18 AM
no thats fine
what kinda server are you running on?
cause it works fine on linix
i tested it on 4 of my own servers and on 4 diffrent vB boards
if your on a windows server then i dont know what to say except that linix is better lol
i realy dont know what to tell you man no one else has reported any problems with this
Alfa1
03-10-2008, 01:36 AM
sorry missed that post
just add the httaccess file to both domains and then just point them to where your foums are installed i guess
but from the way you said that there it looks like you have 2 diffrent forums on 2 diffrent domains cause i dont see how you can have the same forum with 2 domains without having one of the domains redirect to the other
so honestly idk man
I have one domain, one forum, but two url's pointing to the same domain/forum.
I have one site, but with multiple url's pointing to it:
mymainurl.com
mysecondurl.com
I want to display mymainurl.com/forum/member.php?=member.php?username=ExampleUserName
as
mysecondurl.com/username
Is this possible?
Any idea's?
TCE Killa
03-10-2008, 02:22 AM
no thats fine
what kinda server are you running on?
cause it works fine on linix
i tested it on 4 of my own servers and on 4 diffrent vB boards
if your on a windows server then i dont know what to say except that linix is better lol
i realy dont know what to tell you man no one else has reported any problems with this
I don't know either lol, its a confusing one. I'm with windows, I wonder if all other different server users on my forums don't see the profile viewing and error message when they're viewing whos online.
Relientk
03-18-2008, 05:32 PM
Can someone please tell me how to uninstall this mod? or at least temp remove it? I am having a problem with installing another mod because anything that goes to for example http://www.mydomain.com/forum/installthis.php it keeps saying that there is no such user or whatever. I just want to install and it will not let me. And I have uploaded the correct file in the correct place but because of this mod I am unable to do this. So, my thought is to uninstall this mod just so I can do this other mod. Then once I have this mod installed I can then re-install this mod. I love this mod! So, I want to keep it...but can anyone tell me how to temp. put it back to the way it was before?! thanks so much!
MiahBeSmokin420
03-19-2008, 06:33 AM
ya easy you just undo what you did
and once again like i said before there is no way possible that this mod can mess with anything feature or anything else in vb
but for the people that think it is messing with things then thats cool believe what you want to believe but im telling you right now
if you did exactly like the instructions say then there is no way possible for this to mess with anything in vb period
Relientk
03-19-2008, 06:42 AM
ya easy you just undo what you did
and once again like i said before there is no way possible that this mod can mess with anything feature or anything else in vb
but for the people that think it is messing with things then thats cool believe what you want to believe but im telling you right now
if you did exactly like the instructions say then there is no way possible for this to mess with anything in vb period
Hi thanks for the reply. My question is how exactly do I undo the .htaccess file?! I am not sure what code to put in it to overwrite this mod. Just temp. I love this mod! I think it's great! Any help is much appreciated.
MiahBeSmokin420
03-20-2008, 08:47 PM
just delete it omg what do you not understand about undo what you did
Relientk
03-22-2008, 04:38 AM
just delete it omg what do you not understand about undo what you did
Oh, ok.
I am new with the whole .htaccess files.
I'm sorry, but why be rude about it?! :(
KeyHunterz
03-23-2008, 01:38 AM
When I install this i cant access my cpanel or admin/modcp. It tries to redirect me to a userprofile.
MiahBeSmokin420
03-23-2008, 02:22 AM
sounds weird idk what to say
dancue
03-23-2008, 04:25 PM
I have upgraded to 3.7 RC1 and it works!
Template edits will have to change for those areas you'd like to add it to. (Remember to replace yourdomain.com with the respective domain name.)
open memberinfo_block contact info (for the link under contact info within the profile page)
find:
<a href="$prepared[profileurl]">$prepared[profileurl]</a>
replace with:
<a href="http://YourDomain.com/$bbuserinfo[username]">YourDomain.com/$bbuserinfo[username]</a>
open navbar template (This will place it within the welcome block, below private messages)
find:
<if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
add below:
<if condition="$show['member']">Your Profile URL: <a href="http://YourDomain.com/$bbuserinfo[username]">YourDomain.com/$bbuserinfo[username]</a>
</if>
jdebler
03-28-2008, 02:53 PM
Thanks for this!
Can anyone tell me how would I change the text in the .htaccess code if I wanted the URL to be something like:
http://example.com/users/USERNAME ?
Would the last line be:
RewriteRule ^users/?(.*)$ http://Example.com/Forums/member.php?username=$1 [R]
Just took a guess based on the reading I have done.
MiahBeSmokin420
03-29-2008, 01:08 AM
i think if you wanted to do that you would just create a folder in called users and then just add the httacces file in there
but i havent tried that and dont plan on it so i dont know should work though
indie2industry
03-29-2008, 03:33 AM
is there a way to stop it from redirecting picture links?? Half of them dont show anymore
MiahBeSmokin420
03-29-2008, 06:21 AM
i dont know what you mean
are you saying that you got something like this
a directory called
http://yourdomain.com/pictures
and its redirecting as if it were a member?
if so just add a / at the end
http://yourdomain.com/pictures/
if thats now what you mean then please explain a lil more cause ya i dont know what you mean
indie2industry
03-29-2008, 09:06 PM
I just changed some file access permissions. for the pictures.
Now for the problem, when you go to this link
http://www.indie2industry.com/vbdigishop.php?do=product&productid=13
is supposed to take you to this page..
http://www.indie2industry.com/forum/vbdigishop.php?do=product&productid=13&title=producer-agreement-bundle
But instead, it goes here and gives me this for a url
http://indie2industry.com/forum/member.php?username=vbdigishop.php
and the vbulletin message it gives me is
"This user has not registered and therefore does not have a profile to view."
I'll give you a login via pm so you can actually see the problem..
It does this in VARIOUS other areas also, but when I remove the redirect mod, everythings back to normal, except for the Redirect URL, lol
indie2industry
03-29-2008, 11:41 PM
i think i see the problem
KeyHunterz
03-30-2008, 06:46 PM
Thats the same problem I had.
MiahBeSmokin420
03-30-2008, 10:33 PM
humm thats weird
possiably because you do not have your forum in a folder but instead you have it in the root of your domain
meaning for example
yourdomain.com/index.php | is your forum
yourdomain.com/forum/index.php | is how i have mine
that could be the reason
cause i know if i go to mydomain.com/somepiclink.jpg
and if i mistype the link then it dose the same thing
but as long as the link is 100% pure then it goes to where i want it to
i guess if you have you forum in the root of your domain hosting then this will not work that well
i guess you could always make a new folder like lets say:
yourdomain.com/member/ then add the httacces file in there
but then that would change things to make it so they have to go to
yourdomain.com/member/there usename here
i dont kow what else to say about that sorry
Alfa1
04-02-2008, 08:07 PM
Could you please help me with my question?
https://vborg.vbsupport.ru/showpost.php?p=1461139&postcount=45
MiahBeSmokin420
04-04-2008, 03:09 AM
I have one domain, one forum, but two url's pointing to the same domain/forum.
Any idea's?
do this....
make a text document and put in this document the link to your forums
also add both domains in which you want to use or what not
then send it to me by pm or something and then ill get it to work for you
no garentees or what not but ill do what needs to be done if it will work for you i dont know some people cant use this cause they use windows servers but if you are using a linux server it should work fine
just send me that info and ill hook you up
also if you already have httacces files in your folder in which this will be added then send me them in a rar or zip file with the txt doc that way i can make sure you still have your current settings
jdebler
04-04-2008, 10:52 AM
do this....
make a text document and put in this document the link to your forums
also add both domains in which you want to use or what not
then send it to me by pm or something and then ill get it to work for you
Please post the solution if you can! :)
MiahBeSmokin420
04-04-2008, 08:54 PM
after i see everything on his site and all that and get it working
then yes i will post the solution if there is one
why are you having problems with this mod as well?
if so what problems are you having and all that good stuff
jdebler
04-04-2008, 11:34 PM
after i see everything on his site and all that and get it working
then yes i will post the solution if there is one
Cool!
why are you having problems with this mod as well?
if so what problems are you having and all that good stuff
Nope, no problem on a basic level. Works great. I just want to know what else I can do with it. :)
MiahBeSmokin420
04-05-2008, 04:37 AM
Cool!
Nope, no problem on a basic level. Works great. I just want to know what else I can do with it. :)
well thats about it
please click install
T3G4Life
04-26-2008, 03:57 PM
what if your using VBSeo it does not seem to work, any idea how to fix? Currently the links /members/membername.html
Alfa1
04-27-2008, 01:05 AM
do this....
make a text document and put in this document the link to your forums
also add both domains in which you want to use or what not
then send it to me by pm or something and then ill get it to work for you
no garentees or what not but ill do what needs to be done if it will work for you i dont know some people cant use this cause they use windows servers but if you are using a linux server it should work fine
just send me that info and ill hook you up
also if you already have httacces files in your folder in which this will be added then send me them in a rar or zip file with the txt doc that way i can make sure you still have your current settings
Any news on this?
any chance of setting it up as a subdomain as in
http://username.example.com
thanks
AWMGolfer
11-22-2008, 11:32 PM
I am using this on vb3.7 and it works beautifully. I am just looking to make one change in the user profile. On the contact tab it shows a direct link to the user profile. Where would I go in the templates to change that and what would I replace it with to show it as www.sitename/username (http://www.sitename/username)
Thanks!!
EDIT: I figured it out!! Thanks again for a great addition to my site!!
Warlord
12-05-2008, 11:57 PM
Awesome! I LOVE this!
Warlord
12-06-2008, 12:28 PM
Hmmm... this hack seems to interfere with me getting to phpMyAdmin. (it thinks that the link to my phpMyAdmin is a username and redirects me to the forums saying that there is no such user.
I can work around this by deleting the htacess file when I need in phpMyAdmin and uploading it again when I'm logged in, but is there a way to actually make it so that certain filenames in the root directory of your site are called correctly?
Warlord
12-24-2008, 01:13 AM
We were having some problems with this code, as it seemed to redirect actual directories that exist thinking that they were member user names.
The following code seems to work better. It also includes the fix for the log-in issues some users experience when site administrators use vBulletin and vBAdvanced.
Options +FollowSymLinks
RewriteEngine on
#
# Externally redirect to canonical hostname to fix vBadvanced login
# problems and to prevent duplicate content problems in search engines
RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
#
# Internally rewrite all requests for URL-paths which do not resolve
# to existing files or directories to user profile script
RewriteCond $1 !^vb/member\.php$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /vb/member.php?username=$1 [L]
Warlord
01-28-2009, 11:48 PM
If you actually want to rewrite the links change:
RewriteRule (.*) /vb/member.php?username=$1 [L]
to
RewriteRule (.*) /vb/member.php?username=$1 [R]
You will have to hard code any variables (like profile pic) in your memberinfo template though or they won't appear.
zombietom
02-27-2009, 05:26 PM
I been trying to get this to work but it wouldn't so ..i got to looking and found my problem
here is the current code to add to htacess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://Example.com/Forums/member.php?username
notice -- example.com/Forums....
Well that is a Capital F and that was causing it not to work for me...i changed the F to a f and it works fine on 3.7.1
thanks
zombietom
02-27-2009, 06:54 PM
member profiles to reflect their new profile url in contact tab
Edit the template "memberinfo_block_contactinfo" and find this code:
<dd><a href="$prepared[profileurl]">$prepared[profileurl]</a></dd>
Add or change it to:
<dd><a href="http://www.yoursite.com/$prepared[username]">http://www.yoursite.com/$prepared[username]</a></dd>
What it was leave the orginal code and add this:
<br>or<dd><a href="http://www.yoursite.com/$userinfo[username]">http://www.yoursite.com/$userinfo[username]</a></dd>
to see example go to www.tzaclan.net/zombietom and then click on contact info tab-- look toward the bottom
You will need to change yoursite.com to that of your forum.
PS -the one guy was right , you do get a error report if you are watching the "who's online" section --it will show users looking at profiles that are not there so it gives a error,no emails or anything,just you will not really know what the person is looking at in the forums sometimes.
dancue
05-13-2009, 09:07 PM
member profiles to reflect their new profile url in contact tab
Edit the template "memberinfo_block_contactinfo" and find this code:
<dd><a href="$prepared[profileurl]">$prepared[profileurl]</a></dd>
Add or change it to:
<dd><a href="http://www.yoursite.com/$bbuserinfo[username]">http://www.yoursite.com/$bbuserinfo[username]</a></dd>
What it was leave the orginal code and add this:
<br>or<dd><a href="http://www.yoursite.com/$userinfo[username]">http://www.yoursite.com/$userinfo[username]</a></dd>
to see example go to www.tzaclan.net/zombietom and then click on contact info tab-- look toward the bottom
You will need to change yoursite.com to that of your forum.
PS -the one guy was right , you do get a error report if you are watching the "who's online" section --it will show users looking at profiles that are not there so it gives a error,no emails or anything,just you will not really know what the person is looking at in the forums sometimes.
That code you provided will give the current user their profile url....If they view another person's profile it will not give you their's, but yours again.
dancue
05-13-2009, 09:16 PM
Here is the code you should use.
Replace This:
<a href="$prepared[profileurl]">$prepared[profileurl]</a>
With This:
<a href="http://YourSiteName.com/$prepared[username]">YourSiteName/$prepared[username]</a>
zombietom
05-14-2009, 12:59 AM
yeah -- i fixed the error on my site but this hack makes a lot of error notices in the "what's going on" section...so i stopped using it ...i might work it out again someday...i used it for a few months..but got tired of seeing the errors and not where the user really was....
so now i just use Linkbee.com (http://linkbee.com/27351) to shorten the long urls
mimi123
07-27-2010, 05:15 PM
omg i need one for my vb 4.0 plz help
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.