Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[release] Redirection page v5
Author Message
dared
Member


Posts: 81
Joined: Jul 2008
Reputation: 2
Thanked 0 Times in 0 Posts
MyBux: 22
Post: #1
[release] Redirection page v5

With this plugin you can get a redirection page.
When a user click a extarnal link from your board user will not redirect directly to url. page will be shown a redirection warning, than open requested page in your page with iframe.

hint1: this plugin also contains nofollow for links
hint2: with this plugin you can bring extarnal links together so you can disallow them with robot.txt file.

Code:
Disallow: /yonlendir.php?url=*
Disallow: /yonlen.php?url=*


installation:

upload yonlen.php and yonlendir.php to main directory of your forum.

open:

inc/class_parser.php

find:

PHP Code:
        $link "<a href=\"$fullurl\" target=\"_blank\">$name</a>"

replace:



PHP Code:
        $link "<a href=\"/yonlendir.php?url=$fullurl\" target=\"_blank\" rel=\"nofollow\">$name</a>"




save and exit.


open your admin panel and go to themes & templates than select your curret templates of theme and click add template button.

fill the sections like this:

template name: yonlen


content:

PHP Code:
<html>
<
head>
<
title>{$mybb->settings['bbname']} - Redirection</title>
{
$headerinclude}
<
script type="text/javascript">
<!--
    
lang.no_new_posts "{$lang->no_new_posts}";
    
lang.click_mark_read "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}

<table border="0" cellspacing="0" cellpadding="4" class="tborder">
<tr>
<td class="thead"><span class="smalltext"><strong>Please Wait...</strong></span></td>
</tr>
<tr>
<td class="trow1">
<font face="Tahoma" color="#a70404" size="3">You are redirection know.</font><br>
Redirection url:$u2<br>
<a href="$u2" target="_blank">Open in a new tab!</a>
</td>
</tr>
</table>
<iframe name=forumsuzca src=$u2 height=800px width=100% scrolling=yes border=3 frameborder=4></iframe>

{$footer}
</body>
</html> 



save and return to list.



add final template too

template name: yonlendir


content:



PHP Code:
<html>
<
head>
<
title>{$mybb->settings['bbname']} - Redirection</title>
{
$headerinclude}
<
meta http-equiv="refresh" content="3;URL=yonlen.php?url=$u2">
<
script type="text/javascript">
<!--
    
lang.no_new_posts "{$lang->no_new_posts}";
    
lang.click_mark_read "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}

<table border="0" cellspacing="0" cellpadding="4" class="tborder">

<tr>
<td class="thead"><span class="smalltext"><strong>Please Wait...</strong></span></td>
</tr>
<tr>
<td class="trow1">
<font face="Tahoma" color="#a70404" size="5">You will redirect your requested page in 5 seconds...</font><br><br>
Redirection url:<br><br>
$u2<br><br>
<a href="yonlen.php?url=$u2">If you are in a hurry click here!</a>
</td>
</tr>
</table>
<P ALIGN="RIGHT"><span class="smalltext">Redirection page design: <a href="http://www.forumsuzca.com">dared</a></span></P>
<br/><br/>


{$footer}
</body>
</html> 

save & exit.



Attached File(s)
  yonlendir.zip (Size: 1.88 KB / Downloads: 10)
(This post was last modified: 07-08-2009 09:52 PM by dared.)
07-08-2009 09:45 PM


euantor
Premium User


Posts: 87
Joined: Jun 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 4
Post: #2
RE: [release] Redirection page v5

Any screenshots? Sounds interesting to me...


[Image: logo.png]
07-08-2009 10:13 PM
dared
Member


Posts: 81
Joined: Jul 2008
Reputation: 2
Thanked 0 Times in 0 Posts
MyBux: 22
Post: #3
RE: [release] Redirection page v5

i can give a demo only issue i m using hide hack and hide link plugins so you cant use demo directly from threads but. all extarnal links in my board like this:

http://www.forumsuzca.com/izle-indir/yon...google.com

you can check it with that link how it works.

(This post was last modified: 07-08-2009 10:35 PM by dared.)
07-08-2009 10:32 PM
kevin-1372
Junior Member


Posts: 39
Joined: Jun 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 22
Post: #4
RE: [release] Redirection page v5

it's for a forum that is on the root and it doesn't work for subs
for example my forum is on www,.localhost/mybb it doesn't work for me but when i install it on the root (http://www.localhost)
it works!
where should I change?

08-06-2009 01:53 AM
dared
Member


Posts: 81
Joined: Jul 2008
Reputation: 2
Thanked 0 Times in 0 Posts
MyBux: 22
Post: #5
RE: [release] Redirection page v5

change first replacement as your subs:

$link = "<a href=\"/subdirectory/yonlendir.php?url=$fullurl\" target=\"_blank\" rel=\"nofollow\">$name</a>";

after that it will work

08-06-2009 02:14 AM
kevin-1372
Junior Member


Posts: 39
Joined: Jun 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 22
Post: #6
RE: [release] Redirection page v5

Ok
Thanks a lot

08-06-2009 03:59 AM
1o2yellow1o2
Junior Member


Posts: 45
Joined: Aug 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 22
Post: #7
RE: [release] Redirection page v5

Cool
Thanks!!!

08-06-2009 06:53 AM
alihos93
Junior Member


Posts: 1
Joined: Aug 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 0
Post: #8
RE: [release] Redirection page v5

THANK YOU VERY VERY MUCH

08-26-2009 04:04 PM
faviouz
Member


Posts: 220
Joined: Oct 2008
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 110
Post: #9
RE: [release] Redirection page v5

Looks nice, but can you make it without the iframe please?

08-26-2009 06:43 PM
dared
Member


Posts: 81
Joined: Jul 2008
Reputation: 2
Thanked 0 Times in 0 Posts
MyBux: 22
Post: #10
RE: [release] Redirection page v5

(08-26-2009 06:43 PM)faviouz Wrote:  Looks nice, but can you make it without the iframe please?

just delete
PHP Code:
yonlen.php?url
from yonlendir template and it will redirect just the original page not framed.

08-26-2009 08:44 PM
 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Splash Page Nickman 8 168 07-31-2009 01:56 AM
Last Post: chonghua
  Redirection Page Nickman 6 134 07-14-2009 09:39 AM
Last Post: dared
  Splash Page Nickman 6 396 04-29-2009 03:36 AM
Last Post: Leepish



New to MyBBSource?Need Assistance?
  • Mark Forums Read
  • View Forum Staff
  • Looking for a MyBB Host?




Theme created by AK-47. Find more great themes and skins at K! Dezign Web Design
Wordpress Web Design
Youtube Video Free Bet Football Betting R1s