vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   URL's for Members names (see inside) (https://vborg.vbsupport.ru/showthread.php?t=80086)

T3MEDIA 04-17-2005 11:18 PM

URL's for Members names (see inside)
 
Can some one make a simple php file that can turn long urls into simple ones for members?
for example
https://vborg.vbsupport.rus/member.p...ername=t3media will get you to my profile page.
Could some one make a php so it will look like http://www.vbulletin.org/page.php?=t3media

I think this would be an awsome addition (not really a hack) for members who have community sites based around thier profiles.
I think it could simply just pass info to the long string since its already there.

Fingers crossed on hoping someone can pull this off.

tnguy3n 04-18-2005 03:08 AM

it's very possible, but then it may be a little problem with users who user special characters or space or quotation marks etc in their username.

T3MEDIA 04-18-2005 11:16 AM

Quote:

Originally Posted by tnguy3n
it's very possible, but then it may be a little problem with users who user special characters or space or quotation marks etc in their username.

Yes indeed. I have a hack installed that only allows standard characters. No spaces etc. I get your point though. (BTW that hack is awsome)
How would you go about doing such a feat?

Vaelen 04-18-2005 11:28 AM

Don't those characters come back through URLs like spaces as %F20 or something like that... maybe you could use those somehow.

sabret00the 04-18-2005 12:24 PM

simple page using a
PHP Code:

$username addslashes($_REQUEST['u']);

// might wanna add a line in here to reconvert stuff like %20 to plain text

if (!$username)
{
print_standard_error("USER NOT FOUND");
exit();
}

$getID $DB_site->query_first("SELECT userid, username
FROM " 
TABLE_PREFIX "user
WHERE username = 
$username
"
);

$url $vboptions['bburl'] . "/member.php?u=" $getID['userid'];
print_standard_redirect("Whisking you to profile"); 

would work if you didn't wanna use a mod-rewrite for it :)

untested, as it was just me playing with code :)

Colin F 04-18-2005 12:45 PM

I use the code here: https://vborg.vbsupport.ru/showthrea...ight=subdomain

to redirect http://username.myforum.com to their profile, that might be something you could work with...

Marco van Herwaarden 04-18-2005 12:53 PM

PHP Code:

WHERE username $username 

That will never work, unless you quote it:
PHP Code:

WHERE username '$username' 


sabret00the 04-18-2005 01:02 PM

Quote:

Originally Posted by MarcoH64
PHP Code:

WHERE username $username 

That will never work, unless you quote it:
PHP Code:

WHERE username '$username' 


Oops, rookie mistake, too use to working with numbers :o

T3MEDIA 04-20-2005 09:55 PM

Quote:

Originally Posted by Colin F
I use the code here: https://vborg.vbsupport.ru/showthrea...ight=subdomain

to redirect http://username.myforum.com to their profile, that might be something you could work with...

Thanks for the heads up. Your vb 3.0.7 or at least 3.0.0?

The post seems outdated so I just wanted to be sure.

T3MEDIA 06-04-2005 12:48 AM

bump

T3MEDIA 09-16-2005 07:18 PM

bump


All times are GMT. The time now is 04:44 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.01013 seconds
  • Memory Usage 1,742KB
  • 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
  • (5)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)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