vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - All External Link Redirect To anonym.to Site (https://vborg.vbsupport.ru/showthread.php?t=237329)

MrsTryst 09-29-2013 11:47 AM

*marked Installed*

Works in 4.2.1 HOWEVER When i added code in footer at the start, it never worked. Moved code to the end of footer and works perfectly.

Mr_Devlin 09-30-2013 09:07 AM

Quote:

Originally Posted by psd_hunter (Post 2357301)
Could someone please help me with this code and explain me how I can exclude my own website URL , and maybe some others from this?

I need my own board Url beeing untouched from this redirecting when Users post links to threads within my board.

Code:

// standard URL hyperlink
        return "<a href=\"http://anonym.to/$rightlink\" target=\"_blank\"" . ($is_external ? ' rel="nofollow"' : '') . ">$text</a>";

How does the code need to look like with the protected links inside?
Thanks a lot guys 'n gulls.

Cheers,
psd_hunter

It's not possible to exclude an URL in this simple way.
All Links will be transferred via the anonymizer-service. In my opinion there's no need to exclude any external link.

In the "ACP --> General settings" you'll find the option "Post Referrer Whitelist" where you can define friendly urls, that may pass the anonymizer.

Achelos 11-18-2013 06:59 AM

I'm very new to this, can someone please explain where this "Footer Template" is?

Krusty1231 11-18-2013 07:38 AM

Log into your admin panel.

Go to Styles and Templates. (click on it)

Click on Style Manager

This will expand and show you the current skins you have installed.

Find the skin you are currently using.

In the drop down menu - click on style variable editor.

Click edit templates

Scroll down the list presented and find "footer"

Hope it helps!

tbworld 11-18-2013 07:42 AM

Quote:

Originally Posted by Achelos (Post 2461697)
I'm very new to this, can someone please explain where this "Footer Template" is?

Goto your Admincp:
admincp -> Styles & Templates -> Style Manager --> Dropdown box (on right): "Edit Templates" --> Scroll till you find "footer" --> Then Click on it.

vBulletin Manual
http://www.vbulletin.com/docs/html/s...edit_templates

I hope it helps :)

Achelos 11-18-2013 08:00 AM

Thank you guys, wonderful :)

I edited the parent, so any child will take this change along as well.

I do have an additional question though, this does not seem to work for https-links. I reckon this is a fault from anonym's js-script?

Additionally, I noticed one has to refresh the page to see if it works. Is there a way to auto-refresh after a post? The userbase will stay small, so I'm not going to be murdering the server here :)

Mr_Devlin 11-22-2013 03:58 PM

Quote:

Originally Posted by Achelos (Post 2461714)
I do have an additional question though, this does not seem to work for https-links. I reckon this is a fault from anonym's js-script?...

Have a look at Post 42. That's the way to transfer any url via the given anonymizer. NOTE: Don't forget to roll back the changes you made in the footer template!

Quote:

Originally Posted by Achelos (Post 2461714)
Additionally, I noticed one has to refresh the page to see if it works. Is there a way to auto-refresh after a post? The userbase will stay small, so I'm not going to be murdering the server here :)

Add an meta tag to headinclude template:

Quote:

<meta http-equiv="refresh" content="X; URL=your.forumindex.php">
content=X means in seconds the time for refreshing
URL should be your forumhome index...

Note, that this kind of refresh will cause heavy server loads; it will be also not useful when posting...

Easier way is to use <CTRL>+<F5> (or <F5> only>...

Achelos 11-23-2013 10:40 PM

Mr_Devlin

That post42 edit results into links like:
Code:

http://anonym.to/http://anonym.to/http://anonym.to/http://anonym.to/http://anonym.to/http://anonym.to/http://seenive.com/
It seems to have the tendency to work cumulative, redirecting a redirection that's redirected through a redirection, if you catch my drift.

Also a shame that the footer-hack doesn't seem to be compatible with this: https://vborg.vbsupport.ru/showpost....postcount=1941 I am using the 7.84 version (without collapse)

Mr_Devlin 11-24-2013 05:53 PM

Quote:

That post42 edit results into links like:
Code:
http://anonym.to/http://anonym.to/ht...//seenive.com/
It seems to have the tendency to work cumulative, redirecting a redirection that's redirected through a redirection, if you catch my drift.
That's weird...Ok, here is a little work around:

Open class_bbcode.php (same file you used above) and search for this code (around line 2383):

PHP Code:

        $rightlink str_replace(array('`''"'"'"'['), array('`''&quot;'''''['), $this->strip_smilies($rightlink)); 

Change it to:

PHP Code:

        $rightlink str_replace(array('`''"'"'"'['), array('`''&quot;'''''[','http://anonym.to/?'), $this->strip_smilies($rightlink)); 


Achelos 11-27-2013 04:51 PM

I've done this, but it results in this error:

Code:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/id787280/domains/someforumname.com/public_html/includes/class_bbcode.php on line 2406
I am running: vB 4.2.2


All times are GMT. The time now is 04:54 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.01114 seconds
  • Memory Usage 1,755KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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