PDA

View Full Version : change profile-location with plugin


valle
02-09-2009, 02:58 PM
Hi,

I have a community-website which already provides profile-pages. Therefor I would like to redirect every username-link (member.php?...) to that other profile.

My idea was to write a plugin which hooks into member_start. But at that point i would need the username of the link just clicked. How do I get this? $vbulletin->userinfo['username'] returns my own username but not the username I just clicked on.

Greetings
Valentin

Sorry. This Thread points in the same direction but doesnt answer my question: https://vborg.vbsupport.ru/showthread.php?t=203183&highlight=member_start

Lynne
02-09-2009, 03:24 PM
Can't you use htaccess to do the redirect?

valle
02-09-2009, 03:30 PM
I might. But the problem remains the same: How do I get the username?

A typical url looks like this "member.php?$session[sessionurl]u=$thread[postuserid]". So no username is provided.

Right now I did edit all the templates and replaced "member.php" and all its parameters. But I think a much more elegant solution would be to hook into member.php and redirect everything with one plugin.

Lynne
02-09-2009, 04:10 PM
But you have the userid.

Take a look at this and see if it helps a bit - [How-to] Unique subdomain for each member profile (https://vborg.vbsupport.ru/showthread.php?t=155054)