Grand 0 Report post Posted January 15, 2007 Hallo Leute, ich bin neu hier und hoffe das mir hier geholfen werden kann. Zum Vorhaben: Ich möchte alle ausgehenden Links über eine Redirector Seite leiten. Das Script das den Redirect macht hab ich bereits, es soll nun jeder Link der nach ausen geht über www.meinedomain.de/redirector.php?http://www.domain.de aufgerufen werden. Auf anderne Boards hab ich das bereits getestet, leider weis ich nicht wo ich das beim IPB einbauen muss damit der all externen Links da drüber jagt. Vielleicht kann mir hier einer Helfen, wäre sehr dankbar für Tips. Liebe Grüsse Grand Share this post Link to post
nuggler 0 Report post Posted September 19, 2007 (edited) /* +-------------------------------------------------------------------------- | Anonymous Referral Links | ======================================== | Anonymous Referral Links for IPB 2.2.x by 614uc0 +-------------------------------------------------------------------------- | > About this Mod | > Last Updated: 27th January 2007 +-------------------------------------------------------------------------- | | This modification includes http://anonym.to? in all links in its forum. | | Before: | http://www.example.xxx | Later: | http://anonym.to?http://www.example.xxx | | You can substitute the http://anonym.to? for any another site of its preference. | $anonym = "http://anonym.to/?"; | | The "http://anonym.to/?" are not added in links of its site. | | If you not to want that links is added "http://anonym.to/?" for others, you can specify the URL of site using one IF: | Find: | $url['html'] = str_replace($anonym, "", $url['html']); | Add After: | if (substr($url['html'], 0, 26) == "http://www.anothersite.xxx"){ | $anonym = ""; | } | +-------------------------------------------------------------------------- | Files to edit: | /sources/classes/bbcode/class_bbcode_core.php +-------------------------------------------------------------------------- | History: | | 1.0.1 - Change substr for vars['board_url'] (tks Silencing). | | 1.0.0 - Initial release +------------------------------------------------------------------------*/ | | > Installation Instructions | > Last Updated: 27th January 2007 | +-------------------------------------------------------------------------- Edit file: sources/classes/bbcode/class_bbcode_core.php Find: $show = $uri_type.'://'.substr( $stripped , 0, 35 ).'...'.substr( $stripped , -15 ); } return ( isset($url['st']) ? $url['st'] : '' ) . "<a href=\"".$url['html']."\" target=\"_blank\">".$show."</a>" . $url['end']; Replace With: $show = $uri_type.'://'.substr( $stripped , 0, 35 ).'...'.substr( $stripped , -15 ); } $anonym = "http://anonym.to/?"; $url['html'] = str_replace($anonym, "", $url['html']); if (ereg($this->ipsclass->vars['board_url'], $url['html'])){ $anonym = ""; } return ( isset($url['st']) ? $url['st'] : '' ) . "<a href=\"".$anonym.$url['html']."\" target=\"_blank\">".$show."</a>" . $url['end']; Save and upload class_bbcode_core.php Edited September 19, 2007 by nuggler Share this post Link to post