Enter the Guess MyBB 1.6 Release Date Contest
The Plugin License has changed, view it here
Latest Releases: Mark Thread Read - Password Change - Mark Unread
Thread Rating:
0 Votes - 0 Average
1
2
3
4
5
[release] Redirection page v5
Author
Message
dared
Member
Posts: 101
Joined: Jul 2008
Reputation: 2
MyBux: 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: 20)
(This post was last modified: 07-08-2009 09:52 PM by dared .)
07-08-2009 09:45 PM
euantor
Designer/Themer
Posts: 389
Joined: Jun 2009
Reputation: 0
MyBux: 352
RE: [release] Redirection page v5
Any screenshots? Sounds interesting to me...
Love to play XBox 360? Visit
http://www.360elites.net for News, Reviews & Previews of the biggest up-coming and current games like Halo:Reach, Battlefield: Bad Company 2 and more. We have forums too!
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: 101
Joined: Jul 2008
Reputation: 2
MyBux: 1
RE: [release] Redirection page v5
(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
MyBux: 6
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: 101
Joined: Jul 2008
Reputation: 2
MyBux: 1
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
MyBux: 6
RE: [release] Redirection page v5
Ok
Thanks a lot
08-06-2009 03:59 AM
1o2yellow1o2
Member
Posts: 55
Joined: Aug 2009
Reputation: 0
MyBux: 26
RE: [release] Redirection page v5
Cool
Thanks!!!
08-06-2009 06:53 AM
alihos93
Junior Member
Posts: 1
Joined: Aug 2009
Reputation: 0
MyBux: 0
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
MyBux: 132
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: 101
Joined: Jul 2008
Reputation: 2
MyBux: 1
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
from yonlendir template and it will redirect just the original page not framed.
08-26-2009 08:44 PM