Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[mod]anonym to external link
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2011-11-08 11:44:22
how to have a anonum to external only links...not links from my domain
Unknown User
2011-11-08 14:53:20
ok in backend/functions.php find..

	// Text

$s = preg_replace(

"/\[url=((http|ftp|https|ftps|irc):\/\/[^<>\s]+?)\]((\s|.)+?)\[\/url\]/i",

"<a href=http://kpaste.net/redir/\\1 target=_blank>\\3</a>", $s);



// http://www.example.com

$s = preg_replace(

"/\[url\]((http|ftp|https|ftps|irc):\/\/[^<>\s]+?)\[\/url\]/i",

"<a href=http://kpaste.net/redir/\\1 target=_blank>\\1</a>", $s);
replace with..




	// Text

$s = preg_replace(

"/\[url=((http|ftp|https|ftps|irc):\/\/[^<>\s]+?)\]((\s|.)+?)\[\/url\]/i",

"<a href='\\1' target='_blank'>\\3</a>", $s);



// http://www.example.com

$s = preg_replace(

"/\[url\]((http|ftp|https|ftps|irc):\/\/[^<>\s]+?)\[\/url\]/i",

"<a href='\\1' target='_blank'>\\1</a>", $s);





search...





function format_urls($s){

return preg_replace(

"/(\A|[^=\]'\"a-zA-Z0-9])((http|ftp|https|ftps|irc):\/\/[^<>\s]+)/i",

"\\1<a href=http://kpaste.net/redir/\\2 target=_blank>\\2</a>", $s);

}





replace with...





function format_urls($s){

return preg_replace(

"/(\A|[^=\]'\"a-zA-Z0-9])((http|ftp|https|ftps|irc):\/\/[^<>\s]+)/i",

"\\1<a href='\\2' target='_blank'>\\2</a>", $s);

}







in each theme/footer.php find..



</BODY>

or

</body>





before that add..





<script src="<?php echo $site_config["SITEURL"];?>/scripts/anon.js" type="text/javascript"></script>

<script type="text/javascript"><!--

protected_links = "<?php echo $site_config["SITEURL"];?>";



auto_anonymize();

//--></script>





in shoutbox.php search...





if(!isset($_GET['history'])){ 

echo "</body></html>";

}else{

end_frame();

stdfoot();

}







replace with...



if(!isset($_GET['history'])){ 

echo "<script src='".$site_config["SITEURL"]."/scripts/anon.js' type='text/javascript'></script>

<script type='text/javascript'><!--

protected_links = '".$site_config["SITEURL"]."';



auto_anonymize();

//--></script></BODY></HTML>";

}else{

end_frame();

stdfoot();

}



create a folder called scripts and add the attached anon.js to it or change the above path to your own scripts directory.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5335"]anon.js[/url]
anon.js
Download
Unknown User
2011-11-08 17:54:48
Cooly its perfect

Thank you very much   :)  ;)
Unknown User
2011-11-08 17:58:15
"Noname12, post: 76437":
Cooly its perfectThank you very much   ;)  :)

No probs enjoy ;)
Unknown User
2011-11-08 18:02:03
a small problem

the external links in shoutbox are without anonym to

Ok is only forum and torrent description
Unknown User
2011-11-08 18:04:07
"Noname12, post: 76439":
a small problemthe external links in shoutbox are without anonym to

Ok is only forum and torrent description


gimme 5 mins ill make a fix for that too.
Unknown User
2011-11-08 20:44:28
sorry took so long got a blue screen of death damn windows lol

in shoutbox.php search...

if(!isset($_GET['history'])){ 

echo "</body></html>";

}else{

end_frame();

stdfoot();

}
replace with...


if(!isset($_GET['history'])){ 

echo "<script src='".$site_config["SITEURL"]."/scripts/anon.js' type='text/javascript'></script>

<script type='text/javascript'><!--

protected_links = '".$site_config["SITEURL"]."';



auto_anonymize();

//--></script></BODY></HTML>";

}else{

end_frame();

stdfoot();

}



first post updated.
Unknown User
2011-11-08 21:21:39
tell the truth you went for a wank lol
Unknown User
2011-11-08 21:23:30
"XIII, post: 76444":
tell the truth you went for a wank lol


lmfao  :)
Unknown User
2011-11-09 02:45:20
Its ok now Cooly, thanks again
Unknown User
2011-12-13 06:22:47
when i put a link in my shoutbox like [url="http://www.youtube.com/watch?v=C-qXIQXt1EY"]http://www.youtube.com/watch?v=C-qXIQXt1EY[/url] open the anonym.to but i have a blank site and the link in browse is [url="http://kpaste.net/redir/http://www.youtube.com/watch?v=C-qXIQXt1EY"]http://kpaste.net/redir/http://www.youtube...h?v=C-qXIQXt1EY[/url]

the same when i put a link from my tracker

I have  FF 8.0.1
Unknown User
2011-12-13 07:29:37
http://kpaste.net/redir/
is Torrentialstorm's site so it should be back if not il probably set something up for people to use.
Unknown User
2011-12-13 08:01:32
its ok now,thanks
Unknown User
2012-05-13 04:20:09
when the link is https nothing happend in anonym to

maybe somebody make change in script



var protected_links = "";

var a_to_va = 0;

var a_to_vb = 0;

var a_to_vc = "";

function auto_anonymize()

{

auto_anonyminize();

}

function auto_anonyminize()

{

var a_to_vd = window.location.hostname;

if(protected_links != "" && !protected_links.match(a_to_vd))

{

 protected_links += ", " + a_to_vd;

}

else if(protected_links == "")

{

 protected_links = a_to_vd;

}

var a_to_ve = "";

var a_to_vf = new Array();

var a_to_vg = 0;

a_to_ve = document.getElementsByTagName("a");

a_to_va = a_to_ve.length;

a_to_vf = a_to_fa();

a_to_vg = a_to_vf.length;

var a_to_vh = false;

var j = 0;

var a_to_vi = "";

for(var i = 0; i < a_to_va; i++)

{

 a_to_vh = false;

 j = 0;

 while(a_to_vh == false && j < a_to_vg)

 {

  a_to_vi = a_to_ve[i].href;

  if(a_to_vi.match(a_to_vf[j]) || !a_to_vi || !a_to_vi.match("http://"))

  {

   a_to_vh = true;

  }

  j++;

 }



 if(a_to_vh == false)

 {

  a_to_ve[i].href = "http://anonym.to?" + a_to_vi;

  a_to_vb++;

  a_to_vc += i + ":::" + a_to_ve[i].href + "n" ;

 }

}

var a_to_vj = document.getElementById("anonyminized");

var a_to_vk = document.getElementById("found_links");

if(a_to_vj)

{

 a_to_vj.innerHTML += a_to_vb;

}

if(a_to_vk)

{

 a_to_vk.innerHTML += a_to_va;

}

}

function a_to_fa()

{

var a_to_vf = new Array();

protected_links = protected_links.replace(" ", "");

a_to_vf = protected_links.split(",");

return a_to_vf;

}

2012-09-11 22:48:39
appears to work so far in tt 2.08. I was just looking to get rid of the kpaste.net. I kept getting server 500 errors on it.
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728