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
|
Redirection Page
|
| Author |
Message |
Nickman
Manager
Posts: 2,285
Joined: May 2008
Reputation: 45
MyBux: 31508
|
Redirection Page
Mod Description: 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.
Created By: Dared
Link to Mods DB: Get It
|
|
| 07-10-2009 02:19 AM |
|
Wolfgang2025
Premium User
Posts: 51
Joined: Apr 2009
Reputation: 0
MyBux: 170
|
RE: Redirection Page
Where exactly does yonlendir.php go ? When I tested this last night I got page not found error.
I uploaded yonlendir.php and yolen.php to my forum root public_html/forum/
When I clicked on a external link I got this
Code:
http://my-board.net/yolendir.php? url http://google.com
It should have given me
Code:
http://my-board.net/forum/yolendir.php? url http://google.com
What went wrong I followed the instructions to the letter
|
|
| 07-10-2009 10:53 PM |
|
dared
Member
Posts: 101
Joined: Jul 2008
Reputation: 2
MyBux: 1
|
RE: Redirection Page
did you made changes of inc/class_parser.php ?
check the notepad file or here is the install instructions:
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.
|
|
| 07-11-2009 07:11 PM |
|
Wolfgang2025
Premium User
Posts: 51
Joined: Apr 2009
Reputation: 0
MyBux: 170
|
RE: Redirection Page
I did all of that and nothing
|
|
| 07-11-2009 10:08 PM |
|
dared
Member
Posts: 101
Joined: Jul 2008
Reputation: 2
MyBux: 1
|
RE: Redirection Page
can you create a test user account for me :S
can you create a test user account for me :S
(This post was last modified: 07-13-2009 01:02 AM by dared.)
|
|
| 07-13-2009 01:02 AM |
|
dared
Member
Posts: 101
Joined: Jul 2008
Reputation: 2
MyBux: 1
|
RE: Redirection Page
nevermind. i just understand what did you mean with earlier post.
change the changing of class_parser.php to
PHP Code:
$link = "<a href=\"/forum/yonlendir.php?url=$fullurl\" target=\"_blank\" rel=\"nofollow\">$name</a>";
|
|
| 07-14-2009 09:39 AM |
|
JakJak
Member
Posts: 124
Joined: May 2009
Reputation: 0
MyBux: 4
|
RE: Redirection Page
Nice plugin.
|
|
| 09-07-2009 09:12 AM |
|
kevin-1372
Member
Posts: 50
Joined: Jun 2009
Reputation: 0
MyBux: 6
|
RE: Redirection Page
Well I have done all of the levels!
But the last post link doesn't work when I click on a lastpost link on index a blank page Shows wit a  !!!!!!!
What's The Problem?
Here is the link :http://www.cmspersian.net/forum/showthread.php?tid=116&action=lastpost
(This post was last modified: 11-18-2009 12:35 AM by kevin-1372.)
|
|
| 11-18-2009 12:25 AM |
|
dared
Member
Posts: 101
Joined: Jul 2008
Reputation: 2
MyBux: 1
|
RE: Redirection Page
@kevin-1372
if you are using a different language with some special chars on your board (like Turkish, Persian, Arabic e.t.c) you have to edit core files with a powerful notepad (like notepad++).
now you know what you have do... replace original core files of mybbs with edited ones. than use notepad++ or another powerful editor for editing files. it will work.
|
|
| 11-18-2009 01:00 AM |
|
kevin-1372
Member
Posts: 50
Joined: Jun 2009
Reputation: 0
MyBux: 6
|
RE: Redirection Page
You mean I edit class_parser.php with a powerful Editor?
|
|
| 11-18-2009 01:03 AM |
|