MyBB Source


Enter the Guess MyBB 1.6 Release Date Contest

AdvancedProfile 2 | [Public Beta] MyTrader

Latest Releases: Password Change - Mark Unread - Ban Appeal

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


Posts: 99
Joined: Jul 2008
Reputation: 2
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: 18)
(This post was last modified: 07-08-2009 09:52 PM by dared.)
07-08-2009 09:45 PM

Advertisement

euantor
MyCode Coder


Posts: 287
Joined: Jun 2009
Reputation: 0
Post: #2
RE: [release] Redirection page v5
Any screenshots? Sounds interesting to me...

Visit http://www.mypurebb.com/ to see some examples of my work with MyBB themes and web designs. I even sometimes take on custom jobs, so why not sign up to the forums so you know when I'm open and designing?
07-08-2009 10:13 PM
dared
Member


Posts: 99
Joined: Jul 2008
Reputation: 2
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
Member


Posts: 50
Joined: Jun 2009
Reputation: 0
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: 99
Joined: Jul 2008
Reputation: 2
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
Member


Posts: 50
Joined: Jun 2009
Reputation: 0
Post: #6
RE: [release] Redirection page v5
Ok
Thanks a lot
08-06-2009 03:59 AM
1o2yellow1o2
Junior Member


Posts: 49
Joined: Aug 2009
Reputation: 0
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
Post: #8
RE: [release] Redirection page v5
THANK YOU VERY VERY MUCH
08-26-2009 04:04 PM
faviouz
Member


Posts: 231
Joined: Oct 2008
Reputation: 0
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: 99
Joined: Jul 2008
Reputation: 2
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 MyBB Lover 3 42 Today 03:31 PM
Last Post: MyBB Lover
  Redirection Page Nickman 11 400 11-18-2009 01:47 AM
Last Post: dared
  Splash Page Nickman 9 375 11-02-2009 03:19 AM
Last Post: neowarf
  Splash Page Nickman 6 491 04-29-2009 03:36 AM
Last Post: Leepish




Web Design | Web Design Jobs