Advertisement:

Author Topic: RedirectPage  (Read 25354 times)

Offline D#S

  • Jr. Member
  • **
  • Posts: 105
  • Gender: Male
    • UserJS for Opera
RedirectPage
« on: May 14, 2010, 03:22:21 AM »
Link to Mod

RedirectPage

Author: D#S (russian support: BIOHAZARD)
Current Version: 2.6
Compatibility: SMF 1.1.xx (v. 2.1 and above), 2.0-2.0.1
Languages:

Features
  • External links redirection (optional)
  • Members websites redirection (optional)
  • Icq and all other message services redirection (optional)
  • External links encoding (optional)
  • Includes a warning page when leaving the site (optional)
  • Custom text on redirect page
  • Custom text for guest (optional)
  • Delayed or instantly redirection (optional)
  • Setting the text of the plain links (optional)
  • Long links trim (optional)
  • Use noindex and nofollow for SMF copyright (optional)
  • Sites white list

Installation
Any previous versions of this mod MUST be uninstalled BEFORE installing this version.

Useful Links
Manual Installation Of Mods
How Do I Modify Files?

Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)




This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License (applies to all versions past and present).


Changelog
Legend:
! = Bugfix
- = Removed
+ = New Feature
o = Update
> = New Language
^ = Initial/New Release

Code: [Select]
2011.10.03 - v. 2.6
! Hidden from guests link in redirect page bread crumbs.
2011.09.04 - v. 2.5
+ Custom text for guest (optional).
2011.09.03 - v. 2.4a
! Empty white list error fixed.
2011.08.27 - v. 2.4
+ Sites white list.
- Aeva Media compatibility mode.
2011.08.26 - v. 2.3
+ Setting the text of the plain links (optional).
2011.08.26 - v. 2.2
o Hooks based installation.
2011.08.11 - v. 2.1
+ Use noindex and nofollow on SMF copyright (optional).
2011.07.28 - v. 2.0
o SMF 2.0 compatible version.
2011.01.25 - v. 1.9b
o SMF 1.1.12 & SMF 2.0 RC4 compatible version.
2010.08.23 - v. 1.9a
! Aeva Media 2.x compatibility fixed.
2010.07.26 - v. 1.9
+ Same host redirection configuring.
2010.07.18 - v. 1.8
+ Redirect only for guests (optional).
2010.07.18 - v. 1.7
o SMF 1.1.11 compatibility.
2010.07.17 - v. 1.6a
! Links trimming type changed.
2010.07.16 - v. 1.6
! Local links detection changed.
+ Long links trim.
2010.07.15 - v. 1.5b
! Empty members website error fixed.
2010.07.13 - v. 1.5a
> Turkish (UTF-8) added.
2010.07.13 - v. 1.5
+ Members websites redirection.
+ icq and all other message services redirection.
2010.07.13 - v. 1.4
+ iurl tag redirecting.
+ Selecting types of tags to redirecting in admin area.
2010.07.1 - v. 1.3
+ Aeva Media compatibility mode.
2010.05.17 - v. 1.2
+ robots.txt autocreation (if not presented).
> Deutsch (aka German) added.
2010.05.16 - v. 1.1d
! Fixed redirection while using an automatic redirect (instant or delayed) and encoding options.
2010.05.12 - v. 1.1c
+ Automatic permission configure for go.php.
2010.05.12 - v. 1.1b
! Links encoding fixed.
2010.05.11 - v. 1.1
+ You cann use forums theme or not.
+ Encode links (optional).
! Delayed redirection fixed.
2010.05.09 - v. 1.0
+ Instant redirection.
+ Delayed redirection.
+ Customisation of redirection page text.
> English UTF-8 added.
> Russian added.
2010.02.18 - v. 0.0
^ Initial release.
« Last Edit: October 02, 2011, 09:55:07 PM by D#S »
ai dont spik inglish
@ ol

Offline Afro

  • SMF Hero
  • ******
  • Posts: 1,855
  • Gender: Male
  • http://twitter.com/afrowall
    • Global Runs
Re: RedirectPage
« Reply #1 on: May 15, 2010, 07:17:44 AM »
Good mod.

How does this treat Google adsense links ?

Offline Sakae

  • Full Member
  • ***
  • Posts: 498
  • Gender: Male
    • TigreLOG
Re: RedirectPage
« Reply #2 on: May 15, 2010, 10:25:23 PM »
Oh... Does affect Google Adsense?
http://www.tigrelog.com.br
l: simple p: machines

Offline D#S

  • Jr. Member
  • **
  • Posts: 105
  • Gender: Male
    • UserJS for Opera
Re: RedirectPage
« Reply #3 on: May 16, 2010, 09:55:00 AM »
Oh... Does affect Google Adsense?
No, only links in posts, if there use [url] tag or if use autoconversion from plain text (as bla bla  http://somesite.dome/page.html bla bla)

[iurl] tag not parsed by this mod (yet), i plane make this optional (in future)
ai dont spik inglish
@ ol

Offline Afro

  • SMF Hero
  • ******
  • Posts: 1,855
  • Gender: Male
  • http://twitter.com/afrowall
    • Global Runs
Re: RedirectPage
« Reply #4 on: May 16, 2010, 10:01:10 AM »
Thanks D#S. I already know that. I just asked the questions immediately after the first post so people will know how it works.
Otherwise you will be getting such questions every now and then. Good mod.

Offline Eclipse16V

  • Sophist Member
  • *****
  • Posts: 1,070
  • Gender: Male
  • Tornado Map
    • Eclipse16V on Facebook
    • @Eclipse16V on Twitter
    • Tornado Map
Re: RedirectPage
« Reply #5 on: May 17, 2010, 09:07:35 AM »
Thanks for this MOD

German Lang UTF8
Code: [Select]
$txt['admin_menu_RedirectPage'] = 'Externe Seiten';
$txt['RedirectPage_settings_title'] = 'Externe Seiten Einstellungen';
$txt['RedirectPage_settings_desc'] = 'Bitte die Externe Seiten Einstellungen bearbeiten';
$txt['RedirectPage_type'] = 'Auto. Weiterleitung';
$txt['RedirectPage_type_normal'] = 'normal';
$txt['RedirectPage_type_delayed'] = 'verzögert';
$txt['RedirectPage_type_instant'] = 'sofort';
$txt['RedirectPage_delay'] = 'Verzögerung in Sekunden (nur für verzögerte Weiterleitung)';
$txt['RedirectPage_use_theme'] = 'Forum Theme nutzen';
$txt['RedirectPage_encode'] = 'Link verschlüsseln';
$txt['RedirectPage_text'] = 'Externe Seiten Text<br />
<span style="color: #555; font-size: 85%;">
Du kannst folgendes nutzen:
<ul style="margin: 0;">
<li>{LINK} - active link</li>
<li>{link} - Text Link</li>
<li>{SITE} - Forumname</li>
<li>{DELAY} - Verzögerungszeit</li>
</ul>
Leer lassen wenn der Standart Text genutzt werden soll.</span>';
$txt['RedirectPage_title'] = 'Einen externen Link folgen...';
$txt['RedirectPage_default_text'] = 'Du bist gerade dabei diese Homepage über einen Externen Link <b>{LINK}</b> zu verlassen.<br /><br />Der Betreiber dieser Homepage ist nicht für den Inhalt der Homepage <b>{SITE}</b> verantwortlich. Zusätzlich kann die Homepage Viren, Trojaner und andere Malware enthalten, um deinen PC zu beschädigen. Wenn Du nicht genau weißt was dich auf der anderen Seite erwartet, wird dir geraten diese nicht zu besuchen.<br /><br />Wenn Du diese Homepage besuchen willst, kannst Du <b><a href="{link}">HIER</a></b> die Homepage direkt aufrufen. Wenn Du die Homepage nicht besuchen willst, solltest Du <b><a href="javascript:window.close()">HIER</a></b> klicken um den Vorgang abzubrechen da eine automatische Weiterleitung zur Homepage in {DELAY} Sekunden erfolgt.';
I worked with:
SMF 2 in German

My Shop:
Das Lieschen

Offline D#S

  • Jr. Member
  • **
  • Posts: 105
  • Gender: Male
    • UserJS for Opera
Re: RedirectPage
« Reply #6 on: May 17, 2010, 09:34:26 AM »
Eclipse16Vб, thanks. Can you translate text below?
It`s needed to new version of mod

Code: [Select]
$txt['package_installed_done_plus'] = '
Dont forget to update your robots.txt.
Add to your robots.txt string<br />
<i>Disalow: /path_to_your_forum/go.php</i><br />
More info on <a href="http://www.robotstxt.org/" target="_blank">www.robotstxt.org</a>';
ai dont spik inglish
@ ol

Offline Eclipse16V

  • Sophist Member
  • *****
  • Posts: 1,070
  • Gender: Male
  • Tornado Map
    • Eclipse16V on Facebook
    • @Eclipse16V on Twitter
    • Tornado Map
Re: RedirectPage
« Reply #7 on: May 17, 2010, 10:09:15 AM »
Code: [Select]
$txt['package_installed_done_plus'] = 'Vergesse nicht deine robots.txt Datei zu aktualisieren. Füge dort folgendes ein:<br /><i>Disalow: /path_to_your_forum/go.php</i><br />Mehr Infos gibt es unter <a href="http://www.robotstxt.org/" target="_blank">www.robotstxt.org</a>';
I worked with:
SMF 2 in German

My Shop:
Das Lieschen

Offline D#S

  • Jr. Member
  • **
  • Posts: 105
  • Gender: Male
    • UserJS for Opera
Re: RedirectPage
« Reply #8 on: May 17, 2010, 11:35:07 AM »
thanks

Eclipse16V, please look at non UTF-8 German in the mod

Mein Deutsch ist nicht besonders gut :o)
« Last Edit: May 17, 2010, 11:42:19 AM by D#S »
ai dont spik inglish
@ ol

Offline Eclipse16V

  • Sophist Member
  • *****
  • Posts: 1,070
  • Gender: Male
  • Tornado Map
    • Eclipse16V on Facebook
    • @Eclipse16V on Twitter
    • Tornado Map
Re: RedirectPage
« Reply #9 on: May 17, 2010, 03:05:30 PM »
OK

New German Lang

here in german
Code: [Select]
$txt['admin_menu_RedirectPage'] = 'Externe Seiten';
$txt['RedirectPage_settings_title'] = 'Externe Seiten Einstellungen';
$txt['RedirectPage_settings_desc'] = 'Bitte die Externe Seiten Einstellungen bearbeiten';
$txt['RedirectPage_type'] = 'Auto. Weiterleitung';
$txt['RedirectPage_type_normal'] = 'normal';
$txt['RedirectPage_type_delayed'] = 'verz&ouml;gert';
$txt['RedirectPage_type_instant'] = 'sofort';
$txt['RedirectPage_delay'] = 'Verz&ouml;gerung in Sekunden (nur für verz&ouml;gerte Weiterleitung)';
$txt['RedirectPage_use_theme'] = 'Forum Theme nutzen';
$txt['RedirectPage_encode'] = 'Link verschl&uuml;sseln';
$txt['RedirectPage_text'] = 'Externe Seiten Text<br />
<span style="color: #555; font-size: 85%;">
Du kannst folgendes nutzen:
<ul style="margin: 0;">
<li>{LINK} - Aktiver Link</li>
<li>{link} - Text Link</li>
<li>{SITE} - Forumname</li>
<li>{DELAY} - Verz&ouml;gerungszeit</li>
</ul>
Leer lassen wenn der Standard Text genutzt werden soll.</span>';
$txt['RedirectPage_title'] = 'Externen Link folgen...';
$txt['RedirectPage_default_text'] = 'Du bist gerade dabei diese Homepage &uuml;ber einen externen Link zu verlassen.<br /><br />Du wirst nun auf <b>{LINK}</b> weitergeleitet ...<br /><br />Der Betreiber dieser Homepage ist nicht f&uuml;r den Inhalt der Homepage <b>{SITE}</b> verantwortlich. Zus&auml;tzlich kann die Homepage ({SITE}) Viren, Trojaner und andere Malware enthalten, um deinen PC zu besch&auml;digen. Wenn Du nicht genau weisst was dich auf der anderen Homepage ({SITE}) erwartet, raten wir dir diese nicht zu besuchen bzw. mit Vorsicht.<br />Achte darauf, dass Du nur auf unserer Homepage dein Passwort eingibst! Klicke nur auf Links von Vertrauensw&uuml;rdigen Personen!<br /><br />(Der Link wurde von einem Benutzer angelegt und verweist eventuell auf eine Seite die nicht mehr in dem Bereich dieser Homepage liegt.)<br /><br />Wenn Du diese Homepage besuchen willst, kannst Du <b><a href="{link}">HIER</a></b> die Homepage direkt aufrufen. Wenn Du die Homepage nicht besuchen willst, solltest Du <b><a href="javascript:window.close()">HIER</a></b> klicken um den Vorgang abzubrechen da eine automatische Weiterleitung zur Homepage in <b>{DELAY}</b> Sekunden erfolgt.';
$txt['package_installed_done_plus'] = 'Vergesse nicht deine robots.txt Datei zu aktualisieren. F&uuml;ge dort folgendes ein:<br /><i>Disalow: /path_to_your_forum/go.php</i><br />Mehr Infos gibt es unter <a href="http://www.robotstxt.org/" target="_blank">www.robotstxt.org</a>';

and german-utf8
Code: [Select]
$txt['admin_menu_RedirectPage'] = 'Externe Seiten';
$txt['RedirectPage_settings_title'] = 'Externe Seiten Einstellungen';
$txt['RedirectPage_settings_desc'] = 'Bitte die Externe Seiten Einstellungen bearbeiten';
$txt['RedirectPage_type'] = 'Auto. Weiterleitung';
$txt['RedirectPage_type_normal'] = 'normal';
$txt['RedirectPage_type_delayed'] = 'verzögert';
$txt['RedirectPage_type_instant'] = 'sofort';
$txt['RedirectPage_delay'] = 'Verzögerung in Sekunden (nur für verzögerte Weiterleitung)';
$txt['RedirectPage_use_theme'] = 'Forum Theme nutzen';
$txt['RedirectPage_encode'] = 'Link verschlüsseln';
$txt['RedirectPage_text'] = 'Externe Seiten Text<br />
<span style="color: #555; font-size: 85%;">
Du kannst folgendes nutzen:
<ul style="margin: 0;">
<li>{LINK} - Aktiver Link</li>
<li>{link} - Text Link</li>
<li>{SITE} - Forumname</li>
<li>{DELAY} - Verzögerungszeit</li>
</ul>
Leer lassen wenn der Standard Text genutzt werden soll.</span>';
$txt['RedirectPage_title'] = 'Externen Link folgen...';
$txt['RedirectPage_default_text'] = 'Du bist gerade dabei diese Homepage über einen externen Link zu verlassen.<br /><br />Du wirst nun auf <b>{LINK}</b> weitergeleitet ...<br /><br />Der Betreiber dieser Homepage ist nicht für den Inhalt der Homepage <b>{SITE}</b> verantwortlich. Zusätzlich kann die Homepage ({SITE}) Viren, Trojaner und andere Malware enthalten, um deinen PC zu beschädigen. Wenn Du nicht genau weisst was dich auf der anderen Homepage ({SITE}) erwartet, raten wir dir diese nicht zu besuchen bzw. mit Vorsicht.<br />Achte darauf, dass Du nur auf unserer Homepage dein Passwort eingibst! Klicke nur auf Links von Vertrauenswürdigen Personen!<br /><br />(Der Link wurde von einem Benutzer angelegt und verweist eventuell auf eine Seite die nicht mehr in dem Bereich dieser Homepage liegt.)<br /><br />Wenn Du diese Homepage besuchen willst, kannst Du <b><a href="{link}">HIER</a></b> die Homepage direkt aufrufen. Wenn Du die Homepage nicht besuchen willst, solltest Du <b><a href="javascript:window.close()">HIER</a></b> klicken um den Vorgang abzubrechen da eine automatische Weiterleitung zur Homepage in <b>{DELAY}</b> Sekunden erfolgt.';
$txt['package_installed_done_plus'] = 'Vergesse nicht deine robots.txt Datei zu aktualisieren. Füge dort folgendes ein:<br /><i>Disalow: /path_to_your_forum/go.php</i><br />Mehr Infos gibt es unter <a href="http://www.robotstxt.org/" target="_blank">www.robotstxt.org</a>';
I worked with:
SMF 2 in German

My Shop:
Das Lieschen

Offline D#S

  • Jr. Member
  • **
  • Posts: 105
  • Gender: Male
    • UserJS for Opera
Re: RedirectPage
« Reply #10 on: May 18, 2010, 09:31:38 AM »
Eclipse16V,
:: german $txt['package_installed_done_plus'] - send to robotstxt.org or to de.wikipedia? What`s better?

in my version
Code: [Select]
$txt['RedirectPage_robots_note'] = '
Vergesse nicht deine robots.txt Datei zu aktualisieren.
Füge dort folgendes ein:<br />
<i>Disallow: {BOARD_URL}/go.php</i><br />
Mehr Infos gibt es unter <a href="http://de.wikipedia.org/wiki/Robots_Exclusion_Standard target="_blank">wikipedia</a>';
ai dont spik inglish
@ ol

Offline Eclipse16V

  • Sophist Member
  • *****
  • Posts: 1,070
  • Gender: Male
  • Tornado Map
    • Eclipse16V on Facebook
    • @Eclipse16V on Twitter
    • Tornado Map
Re: RedirectPage
« Reply #11 on: May 18, 2010, 02:31:30 PM »
de.wikipedia.org is better.

You forgot a "

Code: [Select]
$txt['RedirectPage_robots_note'] = '
   Vergesse nicht deine robots.txt Datei zu aktualisieren.
   Füge dort folgendes ein:<br />
   <i>Disallow: {BOARD_URL}/go.php</i><br />
   Mehr Infos gibt es unter <a href="http://de.wikipedia.org/wiki/Robots_Exclusion_Standard" target="_blank">wikipedia</a>';
I worked with:
SMF 2 in German

My Shop:
Das Lieschen

Offline InfoStrides

  • Full Member
  • ***
  • Posts: 497
  • www.TheInfoStrides.com
    • InfoStrides on Facebook
    • @TheInfoStrides on Twitter
    • TheInfoStrides.com
Re: RedirectPage
« Reply #12 on: May 19, 2010, 03:38:52 AM »
Good mods but it is affecting Aeva Media Mods. The player did not show when I installed RedirrectPage Mod. Please any solution?

Offline Eclipse16V

  • Sophist Member
  • *****
  • Posts: 1,070
  • Gender: Male
  • Tornado Map
    • Eclipse16V on Facebook
    • @Eclipse16V on Twitter
    • Tornado Map
Re: RedirectPage
« Reply #13 on: May 19, 2010, 07:06:22 AM »
Yes, it doesn´t work with Aeva Media Mod.
I worked with:
SMF 2 in German

My Shop:
Das Lieschen

Offline D#S

  • Jr. Member
  • **
  • Posts: 105
  • Gender: Male
    • UserJS for Opera
Re: RedirectPage
« Reply #14 on: May 22, 2010, 08:36:37 AM »
Good mods but it is affecting Aeva Media Mods. The player did not show when I installed RedirrectPage Mod. Please any solution?
Yes, it doesn´t work with Aeva Media Mod.
Yes, i know that and i plane to fix this, but not so fast - need few days
ai dont spik inglish
@ ol

Offline InfoStrides

  • Full Member
  • ***
  • Posts: 497
  • www.TheInfoStrides.com
    • InfoStrides on Facebook
    • @TheInfoStrides on Twitter
    • TheInfoStrides.com
Re: RedirectPage
« Reply #15 on: May 23, 2010, 07:29:34 AM »
Good mods but it is affecting Aeva Media Mods. The player did not show when I installed RedirrectPage Mod. Please any solution?
Yes, it doesn´t work with Aeva Media Mod.
Yes, i know that and i plane to fix this, but not so fast - need few days

Thank you for your replies. Please, I will be glad to have it fixed quickly because your mods is good!

Offline Antes

  • Evil Black Cat
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,648
  • Gender: Male
  • Black cat rulz!
    • Antes on GitHub
    • merta on LinkedIn
    • @antesistan on Twitter
    • Lunarfall
Re: RedirectPage
« Reply #16 on: June 06, 2010, 05:17:15 PM »

Really nice mod :) , ( also topic opened in SM.org ( turkish section )

Code: (turkish) [Select]
// BIOHAZARD:RedirectPage strings - Antes - CodeName : WeWantItTurkish -
$txt['admin_menu_RedirectPage'] = 'Yönlendirilen Sayfa';
$txt['RedirectPage_settings_title'] = 'Yönlendirilen Sayfa ayarları';
$txt['RedirectPage_settings_desc'] = 'Lütfen Yönlendirilen Sayfa ayarlarını düzenleyiniz';
//Strings for the settings area
$txt['RedirectPage_type'] = 'Yönlendirme tipi';
$txt['RedirectPage_type_normal'] = 'normal';
$txt['RedirectPage_type_delayed'] = 'beklemeli';
$txt['RedirectPage_type_instant'] = 'anında';
$txt['RedirectPage_delay'] = 'Bekle, saniye (sadece beklemeli yönlendirmeler için)';
$txt['RedirectPage_use_theme'] = 'Forum temasını kullan';
$txt['RedirectPage_encode'] = 'Linkleri şifrele';
$txt['RedirectPage_text'] = 'Yönlendirilen sayfa metni<br />
<span style="color: #555; font-size: 85%;">
Şunları kullanabilirsiniz:
<ul style="margin: 0;">
   <li>{LINK} - aktif link</li>
   <li>{link} - metin link</li>
   <li>{SITE} - site adı</li>
   <li>{DELAY} - bekleme saniyesi</li>
</ul>
Varsayılan mesaj için boş bırakın.</span>';
//   Strings for redirection page
$txt['RedirectPage_title'] = 'Dış bir siteye gidiyor...';
$txt['RedirectPage_default_text'] = 'Bir üye tarafından sağlanmış bir dışsal linke <b>{LINK}</b> doğru ayrılıyorsunuz. <br /><br />Yöneticiler sitenin <b>{SITE}</b> içeriğinden sorumlu tutulamaz. Ayrıca, site PCnize zarar verebilecek virüs, trojan ve diğer malwarelar barındırabilir. Eğer bu siteye güvenicek ciddi bir sebebiniz yoksa, bu linki geçmemek daha iyi bir seçenektir. <br /><br />Eğer fikrinizi değiştirmediyseniz, <b><a href="{link}">link</a></b>'e tıklayarak gidebilirsiniz. Eğer hesap ve bilgisayar güvenliğinizi riske Ik istemiyorsanız, tıklayın ve <b><a href="javascript:window.close()">İptal</a></b> edin.';
global $boardurl;
$txt['RedirectPage_robots_note'] = '
   robots.txt dosyanızı güncellemeyi unutmayın.
   robots.txt'inize eklemeniz gereken satırg<br />
   <i>Disallow: {BOARD_URL}/go.php</i><br />
   Daha fazla bilgi için <a href="http://tr.wikipedia.org/wiki/Robots.txt" target="_blank">Vikipedi</a>';

// End BIOHAZARD:RedirectPage strings
Active Project(s): [ SimpleDesk ] # [ Lunarfall ] # [ CoreStore ]

Past Project(s): [ ezPortal ]

Offline mkress

  • Jr. Member
  • **
  • Posts: 126
  • Gender: Male
    • markus.kress on Facebook
    • mkress on GitHub
    • @mkress on Twitter
    • augs-burg.de joomla templates
Re: RedirectPage
« Reply #17 on: July 06, 2010, 01:50:17 PM »
thanks for this mod.
i have installed the latest version of this mod on smf 2 rc 3,
the link open's in new window with go.php... there is the link text

but the automatic redirect does not work...

Also it would be great to have an option to automatically get the external url title an paste it as the redirect page title.

Offline D#S

  • Jr. Member
  • **
  • Posts: 105
  • Gender: Male
    • UserJS for Opera
Re: RedirectPage
« Reply #18 on: July 12, 2010, 10:43:15 PM »
Aeva Media fixed (dont forget to check "Use Aeva Media compatibility mode" in settings area)
ai dont spik inglish
@ ol

Offline qtime

  • Full Member
  • ***
  • Posts: 501
Re: RedirectPage
« Reply #19 on: July 24, 2010, 06:09:16 PM »
Did not installed this modification yet, first a question, is it configurable by membergroup? Like some membergroups need to wait, others not?