Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 10 Apr 2018, 08:46
plongeur.com plongeur.com is offline
 
Join Date: Mar 2017
change username link

Hi,

My vbulletin instance is part of a wider site with external pages. These external pages have a user profile containing much more info than the vbulletin profile so i would rather have the username linked to the external profile than the vbulletin one (and have link from the external to go to the vbulletin profile for settings)

Is there any way to achieve this ?
Having a look at the template this would mean changing the "vb:url 'profile'" to get it to point to the external one, but would the vbulletin profile still be accessible ?
Can i do the change globally using replacement variables ?

I will also ask on vbulletin.org

Thanks in advance.
Reply With Quote
  #2  
Old 10 Apr 2018, 12:42
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
So by only having the username, you want to create a link that shows them the profile page on vBulletin?
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #3  
Old 10 Apr 2018, 13:12
plongeur.com plongeur.com is offline
 
Join Date: Mar 2017
Not at all .

Basically, anywhere the username is mentionned in vbulletin, you have a link to the public profile of the user vbulletin if you click on the username.
I would like to change the target of this link to point it to the public profile of the same user on my site.
Reply With Quote
  #4  
Old 10 Apr 2018, 14:36
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
The easy way to do this is by creating a replacement variable (under Styles & Templates).

For example, with SEO turned off, you can make it rewrite
https://yoursite.com/forum/member.php?u=1
to
https://yoursite.com/member/1

But it depends on the structure of the URL. What does it look like?
It might be necessary to make modifications to the function that creates the SEO friendly URL.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #5  
Old 10 Apr 2018, 15:22
plongeur.com plongeur.com is offline
 
Join Date: Mar 2017
Well the hard part is i still want user to be able to access the vbulletin profile from a link in the "site" profile , just not getting there when clicking on the username link...
Reply With Quote
  #6  
Old 10 Apr 2018, 15:44
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
You can still do that with a .htaccess rewrite rule.

For example when they visit https://yoursite.com/forum/member/1 it will redirect them to the vbulletin profile page and when they visit https://yoursite.com/member/1 it will redirect them to the profile page of the other software.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #7  
Old 10 Apr 2018, 16:01
plongeur.com plongeur.com is offline
 
Join Date: Mar 2017
Ok this is nice, i can achiev what i want with the replacement variable.
All i have to do is make sure the end the url is the same on both profiles, but this is manageable with rewrite.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Username Management Addon - Latest Username Changes on Forumhome Marco van Herwaarden vBulletin 3.5 Add-ons 19 22 Jun 2012 07:17



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 07:57.

Layout Options | Width: Wide Color: