vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - MySpace type User Profile Link (https://vborg.vbsupport.ru/showthread.php?t=170293)

Mutt 05-05-2008 08:31 PM

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

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.

Code:

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:

Quote:

RewriteRule (.*) /vb/member.php?username=$1 [L]
to


Quote:

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:
HTML Code:

<dd><a href="$prepared[profileurl]">$prepared[profileurl]</a></dd>
Add or change it to:
HTML Code:

<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:

HTML Code:

<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

Quote:

Originally Posted by zombietom (Post 1756335)
member profiles to reflect their new profile url in contact tab

Edit the template "memberinfo_block_contactinfo" and find this code:
HTML Code:

<dd><a href="$prepared[profileurl]">$prepared[profileurl]</a></dd>
Add or change it to:
HTML Code:

<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:

HTML Code:

<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:
Code:

<a href="$prepared[profileurl]">$prepared[profileurl]</a>
With This:
Code:

<a href="http://YourSiteName.com/$prepared[username]">YourSiteName/$prepared[username]</a>


All times are GMT. The time now is 02:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01202 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (6)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete