Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Redirection Page
Author Message
Nickman
Manager



Posts: 1,880
Joined: May 2008
Reputation: 37
Thanked 15 Times in 10 Posts
MyBux: 892
Post: #1
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: 31
Joined: Apr 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 136
Post: #2
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: 71
Joined: Jul 2008
Reputation: 2
Thanked 0 Times in 0 Posts
MyBux: 24
Post: #3
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: 31
Joined: Apr 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 136
Post: #4
RE: Redirection Page
I did all of that and nothing
07-11-2009 10:08 PM


dared
Member


Posts: 71
Joined: Jul 2008
Reputation: 2
Thanked 0 Times in 0 Posts
MyBux: 24
Post: #5
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: 71
Joined: Jul 2008
Reputation: 2
Thanked 0 Times in 0 Posts
MyBux: 24
Post: #6
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>"
Yesterday 09:39 AM


 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [release] Redirection page v5 dared 2 56 07-08-2009 10:32 PM
Last Post: dared
  Splash Page Nickman 6 350 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