vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   change profile-location with plugin (https://vborg.vbsupport.ru/showthread.php?t=204766)

valle 02-09-2009 02:58 PM

change profile-location with plugin
 
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/showthrea...t=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


All times are GMT. The time now is 10:31 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.00898 seconds
  • Memory Usage 1,713KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete