Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Own Redirector and Anonymization V2.0 Details »»
Own Redirector and Anonymization V2.0
Version: 2.01, by redlabour redlabour is offline
Developer Last Online: Oct 2012 Show Printable Version Email this Page

Version: 3.5.5 Rating:
Released: 10-10-2005 Last Update: 09-27-2006 Installs: 7
Code Changes Additional Files  
No support by the author.

This Hack is not longer supported!!! Please use :

Own Redirector and Anonymization V2.0.1 for 3.6.x

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 10-21-2005, 12:38 AM
leroub's Avatar
leroub leroub is offline
 
Join Date: Jul 2005
Location: In my computer
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thx for this hack.... work very fine....
Reply With Quote
  #13  
Old 10-22-2005, 09:43 PM
tokenyank tokenyank is offline
 
Join Date: Jul 2005
Location: London
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by redlabour
Can?t work because vBulletin does not use URL?s without www. for redirecting unhacked.

Was this just a question if it works or do you need this without www. ?

But of course you can ad this Line so that it works with both. With www. or without.
Not everyone will put www.domain.com

Some will put domain.com or http://www.domain.com or http://domain.com

Where you say you can add a line so it works with both, would you do it like this?

Instead of this:
Code:
$url_info = parse_url($rightlink);
                 if ($url_info["host"]=="www.YOURDOMAIN.de"):
                 return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
                 else:
                 return "<a href=\"http://www.YOURDOMAIN.de/forum/links.php?url=$rightlink\" target=\"_blank\">$text</a>";
                 endif;
It would be:
Code:
$url_info = parse_url($rightlink);
                 if ($url_info["host"]=="www.YOURDOMAIN.de") || ($url_info["host"]=="YOURDOMAIN.de") || ($url_info["host"]=="http://YOURDOMAIN.de") || ($url_info["host"]=="http://www.YOURDOMAIN.de"):
                 return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
                 else:
                 return "<a href=\"http://www.YOURDOMAIN.de/forum/links.php?url=$rightlink\" target=\"_blank\">$text</a>";
                 endif;
?
Reply With Quote
  #14  
Old 10-23-2005, 07:01 AM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tokenyank
Not everyone will put www.domain.com

Some will put domain.com or http://www.domain.com or http://domain.com

Where you say you can add a line so it works with both, would you do it like this?
??? It makes no difference because the http:// is added automatically . :surprised:

Why did you want to do this ?
Reply With Quote
  #15  
Old 10-23-2005, 07:24 AM
tokenyank tokenyank is offline
 
Join Date: Jul 2005
Location: London
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Because as it is now any link that is http://whatever.com does not get parsed through the link.php only links with www in them.

So, I'll take your word that I don't need to declare the http:// but could you tell us how to add another domain to the variable as I would like to declare that domain.com is handled the same way as www.domain.com, also I have another domain that is not part of my vB domain but do not want the link.php to parse it...

So, long post made short... Could you tell us how to add more domains so it will not parse through links.php?

I just tried it like this:
Code:
$url_info = parse_url($rightlink);
                 if ($url_info["host"]=="www.YOURDOMAIN.de") || ($url_info["host"]=="YOURDOMAIN.de") || ($url_info["host"]=="http://YOURDOMAIN.de") || ($url_info["host"]=="http://www.YOURDOMAIN.de"):
                 return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
                 else:
                 return "<a href=\"http://www.YOURDOMAIN.de/forum/links.php?url=$rightlink\" target=\"_blank\">$text</a>";
                 endif;
and it did not work
Reply With Quote
  #16  
Old 10-23-2005, 09:01 AM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh now i understand - i will take a look of it tomorrow.
Reply With Quote
  #17  
Old 10-25-2005, 06:53 AM
tokenyank tokenyank is offline
 
Join Date: Jul 2005
Location: London
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any progress?
Reply With Quote
  #18  
Old 10-25-2005, 07:08 AM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry im busy - maybe anyone other can help ?
Reply With Quote
  #19  
Old 06-08-2006, 04:24 PM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still works with 3.6 BETA :

https://vborg.vbsupport.ru/showthread.php?t=118042
Reply With Quote
  #20  
Old 09-28-2006, 02:09 PM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thx to "Schattenjaeger" for the Security Fix to 2.0.1 !
Reply With Quote
  #21  
Old 11-12-2006, 06:19 AM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This Hack is not longer supported!!! Please use :

Own Redirector and Anonymization V2.0.1 for 3.6.x
Reply With Quote
Reply

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

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06619 seconds
  • Memory Usage 2,304KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete