vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Give your users a new website address! (https://vborg.vbsupport.ru/showthread.php?t=44676)

James Cridland 10-15-2002 10:00 PM

Give your users a new website address!
 
Just a bit of fun, really, but this bit of PHP allows each of your users to have a website address of their own. It looks for a username's profile - if that username has set a homepage, it'll forward off there. If not, it shows their user profile.

As an example...

http://james.cridland.users.mediauk.com/ is me - but I've set my homepage to Virgin Radio so it'll go there instead.
http://paul.easton.users.mediauk.com/ is Paul - but because he's not set a homepage in his control panel, it just shows his user profile.
http://olly.benson.users.mediauk.com/ is Olly's own site.

This is an ideal way of giving your users something extra - a redirectable website address.

Code is enclosed. Have fun with it.

Erwin 10-16-2002 08:28 PM

Very cool. :) I may use this. The only problem is that some users may have questionable sites that uses this, and it would take forever to go through thousands of profiles. This hack has no approval system. But it's cool nonetheless.

Goldknight 10-16-2002 09:32 PM

Nice hack but I agree with Erwin about approval system, if it does and I will install.

But still, good job with hack

Abbas 10-16-2002 09:46 PM

Yeah, an approval system is definetely needed for this.

Excellent idea though!

Floris 10-16-2002 10:29 PM

Approval system in the form of what everything else uses on vB - moderation.

ManagerJosh 10-17-2002 04:24 AM

I'm thinking also perhaps the number of posts a user must have before getting such a page. No sense having blank pages for users who only post once or twice, then forget about your forums.

James Cridland 10-17-2002 06:08 AM

This hack only sends a redirect. It doesn't "frame" the information (though it could): there's therefore no obvious editorial link.

In any event, there's no difference between this link and the link you already give to all users in the form of their homepage: and you have been moderating those, haven't you? ;)

ManagerJosh - I can easily add a "number of posts" addition into this hack if it would be useful. Better would be a check when the user last visited (which is also easy to add), so that it only works, say, if the user has been to your site in the last three months. I don't like encouraging people to post rubbish or "Me too" just to keep their account active: just visiting should be enough.

MarkB 10-17-2002 09:10 AM

Is this easy to set for just a specific user group?

James Cridland 10-17-2002 10:05 AM

It is now. v1.1 (in the top message) lets you only switch on redirecting to "external" websites for one particular usergroup. It's also easier to configure.

Erwin 10-17-2002 10:53 AM

Quote:

Originally posted by James Cridland
This hack only sends a redirect. It doesn't "frame" the information (though it could): there's therefore no obvious editorial link.
Someone can still put a link from your site on a separate page and people will click on it thinking it's going to your site, but it redirects to a porn site or something. :) You're right, it should be monitored definitely. Having a separate usergroup is a good idea.


All times are GMT. The time now is 05:54 AM.

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,728KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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