MyBB Community Forums

Full Version: Is there a code to disable to click links on a custom created page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<tr>
<td class="thead" colspan="6">
<div><strong>Firmware - Galaxy GT-I9000 [ laatste bovenaan ]</strong></div>
</td></tr>
<br>
<TABLE BORDER="1" WIDTH="100%">
<TR> <TH>PDA</TH> <TH>Android</TH> <TH>Datum</TH> <TH>CSC</TH> <TH>Info</TH> <TH>Kies</TH> <TH>Download link</TH> </TR>
<TD>I9000XWJW5</TD> <TD>2.3.6</TD> <TD>2012 Maart</TD> <TD>I9000XENJV6</TD> <TD>KPN</TD> <TD><img src="http://www.galaxyfreaks.nl/images/toplinks/kieslogo.png"></TD> <TD><a href="http://www.hotfile.com/dl/153787593/2fe5854/I9000XWJW5_I9000KPNJV6_KPN.zip.html" target="_blank"><font color=blue>Download</a></font></TD> </TR>
<TR> <TD>I9000XWJW5</TD> <TD>2.3.6</TD> <TD>2012 Maart</TD> <TD>I9000XENJV6</TD> <TD></TD> <TD><img src="http://www.galaxyfreaks.nl/images/toplinks/kieslogo.png"></TD> <TD><a href="http://www.hotfile.com/dl/153787914/fc690f7/I9000XWJW5_I9000XENJV6_XEN.zip.html" target="_blank"><font color=blue>Download</a></font></TD> </TR>
<TR> <TD>I9000XWJW1 ##</TD> <TD>2.3.6</TD> <TD>2012 Januari</TD> <TD>I9000XENJV5</TD> <TD></TD> <TD><img src="http://www.galaxyfreaks.nl/images/toplinks/kieslogo.png"></TD> <TD><a href="http://hotfile.com/dl/146656733/6596139/I9000XWJW1_I9000XENJV5_XEN.zip.html" target="_blank"><font color=blue>Download</a></font></TD> </TR>
<TR> <TD>I9000XWJW1 ##</TD> <TD>2.3.6</TD> <TD>2012 Januari</TD> <TD>I9000KPNJV5</TD> <TD>KPN</TD> <TD><img src="http://www.galaxyfreaks.nl/images/toplinks/kieslogo.png"></TD> <TD><a href="http://hotfile.com/dl/146672031/b6f8018/I9000XWJW1_I9000KPNJV5_KPN.zip.html" target="_blank"><font color=blue>Download</a></font></TD> </TR>
<TR> <TD>I9000XWJVH ##</TD> <TD>2.3.3</TD> <TD>2011 Juni</TD> <TD>I9000KPNJV4</TD> <TD>KPN</TD> <TD><img src="http://www.galaxyfreaks.nl/images/toplinks/kieslogo_g.png"></TD> <TD><a href="http://hotfile.com/dl/146670119/55a1aad/I9000XWJVH_I9000KPNJV4_KPN.zip.html" target="_blank"><font color=blue>Download</a></TD> </TR>
<TR> <TD>I9000XWJVH ##</TD> <TD>2.3.3</TD> <TD>2011 Mei</TD> <TD>I9000XENJV4</TD> <TD></TD> <TD><img src="http://www.galaxyfreaks.nl/images/toplinks/kieslogo_g.png"></TD> <TD><a href="http://hotfile.com/dl/145761318/468739b/I9000XWJVH_-_I9000XENJV4.zip.html" target="_blank"><font color=blue>Download</a></font></TD> </TR>
<TR> <TD>I9000XWJS7 ##</TD> <TD>2.2.1</TD> <TD>2011 Februari</TD> <TD>I9000XENJS3</TD> <TD></TD> <TD><img src="http://www.galaxyfreaks.nl/images/toplinks/kieslogo_g.png"></TD> <TD><a href="http://hotfile.com/dl/145675561/fc92a74/GT_I9000_XWJS7_XXJPY_XEEJS1.zip.html" target="_blank"><font color=blue>Download</a></font></TD> </TR>
<TR> <TD>I9000XWJS5 ##</TD> <TD>2.2.1</TD> <TD>2011 Februari</TD> <TD>I9000XENJS3</TD> <TD></TD> <TD><img src="http://www.galaxyfreaks.nl/images/toplinks/kieslogo_g.png"></TD> <TD><a href="http://hotfile.com/dl/145652756/eac2ad2/I9000XWJS5.zip.html" target="_blank"><font color=blue>Download</a></font></TD> </TR>
</TABLE>
De downloads zijn mede mogelijk gemaakt door: <a href="http://www.sammobile.com/" target="_blank"><font color=blue>Sammobile.com</font></a><br>
<br>
<br>
<b><u>Extra info:</b></u><br>
<img src="http://www.galaxyfreaks.nl/images/toplinks/kieslogo.png"> = Kies update<br>
<img src="http://www.galaxyfreaks.nl/images/toplinks/kieslogo_g.png"> = Geen Kies update<br>
KPN = Firmware van KPN<br>
Vodafone = Firmware van Vodafone<br>
<b>Wachtwoorden:</b><br>
## = samfirmware.com<br>
# = samsung-firmwares.com<br>
<br>
<br>
<strong>Flash Programma</strong>
<TABLE BORDER="1" WIDTH="50%">
<TR> <TH>Os</TH> <TH>Download link</TH>
<TR> <TD>Android</TD> <TD><a href="http://www.mediafire.com/?er4i3zpv3opauiv" target="_blank"><font color=blue>Download</a></TD>
</TABLE>
<br>
<strong>USB Drivers</strong>
<TABLE BORDER="1" WIDTH="50%">
<TR> <TH>Os</TH> <TH>Download link</TH>
<TR> <TD>Android</TD> <TD><a href="http://hotfile.com/dl/133929348/9107244/SAMSUNG_USB_Driver_for_Mobile_Phones_v1_3_2300_0.zip.html" target="_blank"><font color=blue>Download</a></TD>
</TABLE>
<br>
<br>
<br>
<br>

This is the page I made, the option "Use MyBB Template?" is on "YES" so the header and footer etc is visible.

Thanks helping
try this:

<?php
global $headerinclude, $header, $theme, $footer, $lang;

if($mybb->user['uid']==0) error_no_permission();
if($mybb->user['uid']!=0)

{
$template='<html>
<head>
<title>'.$pages['name'].'</title>
{$headerinclude}
</script>
</head>
<body>
{$header}
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<tr>
<td class="thead" colspan="6">
<div><strong>Firmware - Galaxy GT-I9000 [ laatste bovenaan ]</strong></div>
</td></tr>
<tr><td>
<br>
<TABLE BORDER="1" WIDTH="100%">
<TR> <TH>PDA</TH> <TH>Android</TH> <TH>Datum</TH> <TH>CSC</TH> <TH>Info</TH> <TH>Kies</TH> <TH>Download link</TH> </TR>
<TD>I9000XWJW5</TD> <TD>2.3.6</TD> <TD>2012 Maart</TD> <TD>I9000XENJV6</TD> <TD>KPN</TD> <TD><img src="http://www.galaxyfreaks.nl/images/toplinks/kieslogo.png"></TD> <TD><a href="http://www.hotfile.com/dl/153787593/2fe5854/I9000XWJW5_I9000KPNJV6_KPN.zip.html" target="_blank"><font color=blue>Download</a></font></TD> </TR>
<TR> <TD>I9000XWJW5</TD> <TD>2.3.6</TD> <TD>2012 Maart</TD> <TD>I9000XENJV6</TD> <TD></TD> <TD><img src="http://www.galaxyfreaks.nl/images/toplinks/kieslogo.png"></TD> <TD><a href="http://www.hotfile.com/dl/153787914/fc690f7/I9000XWJW5_I9000XENJV6_XEN.zip.html" target="_blank"><font color=blue>Download</a></font></TD> </TR>
<TR> <TD>I9000XWJW1 ##</TD> <TD>2.3.6</TD> <TD>2012 Januari</TD> <TD>I9000XENJV5</TD> <TD></TD> <TD><img src="http://www.galaxyfreaks.nl/images/toplinks/kieslogo.png"></TD> <TD><a href="http://hotfile.com/dl/146656733/6596139/I9000XWJW1_I9000XENJV5_XEN.zip.html" target="_blank"><font color=blue>Download</a></font></TD> </TR>
<TR> <TD>I9000XWJW1 ##</TD> <TD>2.3.6</TD> <TD>2012 Januari</TD> <TD>I9000KPNJV5</TD> <TD>KPN</TD> <TD><img src="http://www.galaxyfreaks.nl/images/toplinks/kieslogo.png"></TD> <TD><a href="http://hotfile.com/dl/146672031/b6f8018/I9000XWJW1_I9000KPNJV5_KPN.zip.html" target="_blank"><font color=blue>Download</a></font></TD> </TR>
<TR> <TD>I9000XWJVH ##</TD> <TD>2.3.3</TD> <TD>2011 Juni</TD> <TD>I9000KPNJV4</TD> <TD>KPN</TD> <TD><img src="http://www.galaxyfreaks.nl/images/toplinks/kieslogo_g.png"></TD> <TD><a href="http://hotfile.com/dl/146670119/55a1aad/I9000XWJVH_I9000KPNJV4_KPN.zip.html" target="_blank"><font color=blue>Download</a></TD> </TR>
<TR> <TD>I9000XWJVH ##</TD> <TD>2.3.3</TD> <TD>2011 Mei</TD> <TD>I9000XENJV4</TD> <TD></TD> <TD><img src="http://www.galaxyfreaks.nl/images/toplinks/kieslogo_g.png"></TD> <TD><a href="http://hotfile.com/dl/145761318/468739b/I9000XWJVH_-_I9000XENJV4.zip.html" target="_blank"><font color=blue>Download</a></font></TD> </TR>
<TR> <TD>I9000XWJS7 ##</TD> <TD>2.2.1</TD> <TD>2011 Februari</TD> <TD>I9000XENJS3</TD> <TD></TD> <TD><img src="http://www.galaxyfreaks.nl/images/toplinks/kieslogo_g.png"></TD> <TD><a href="http://hotfile.com/dl/145675561/fc92a74/GT_I9000_XWJS7_XXJPY_XEEJS1.zip.html" target="_blank"><font color=blue>Download</a></font></TD> </TR>
<TR> <TD>I9000XWJS5 ##</TD> <TD>2.2.1</TD> <TD>2011 Februari</TD> <TD>I9000XENJS3</TD> <TD></TD> <TD><img src="http://www.galaxyfreaks.nl/images/toplinks/kieslogo_g.png"></TD> <TD><a href="http://hotfile.com/dl/145652756/eac2ad2/I9000XWJS5.zip.html" target="_blank"><font color=blue>Download</a></font></TD> </TR>
</TABLE>
<div>
De downloads zijn mede mogelijk gemaakt door: <a href="http://www.sammobile.com/" target="_blank"><font color=blue>Sammobile.com</font></a><br>
<br>
<br>
<b><u>Extra info:</b></u><br>
<img src="http://www.galaxyfreaks.nl/images/toplinks/kieslogo.png"> = Kies update<br>
<img src="http://www.galaxyfreaks.nl/images/toplinks/kieslogo_g.png"> = Geen Kies update<br>
KPN = Firmware van KPN<br>
Vodafone = Firmware van Vodafone<br>
<b>Wachtwoorden:</b><br>
## = samfirmware.com<br>
# = samsung-firmwares.com<br>
<br>
<br>
</div>
<strong>Flash Programma</strong>
<TABLE BORDER="1" WIDTH="50%">
<TR> <TH>Os</TH> <TH>Download link</TH>
<TR> <TD>Android</TD> <TD><a href="http://www.mediafire.com/?er4i3zpv3opauiv" target="_blank"><font color=blue>Download</a></TD>
</TABLE>
<br>
<strong>USB Drivers</strong>
<TABLE BORDER="1" WIDTH="50%">
<TR> <TH>Os</TH> <TH>Download link</TH>
<TR> <TD>Android</TD> <TD><a href="http://hotfile.com/dl/133929348/9107244/SAMSUNG_USB_Driver_for_Mobile_Phones_v1_3_2300_0.zip.html" target="_blank"><font color=blue>Download</a></TD>
</TABLE>
<br>
<br>
<br>
<br>
</td></tr>
</table>
{$footer}
</body>
</html>';

$template=str_replace("\'", "'", addslashes($template));

add_breadcrumb($pages['name']);

eval("\$page=\"".$template."\";");

output_page($page);

} 

?>

set the Use MyBB Template? to No.
cool this works, if I now a guest and I on the page u can not see the page and u have the message to login or register...

One other question, can I also set a code that the page is fine visible but the links are not visible and a text to login or register or is this not available.

But this works great!!!!
Yes, I thought that was what you wanted - unfortunately to do that at the least it would need a custom page/template and then use php in templates/template conditionals to hide/redirect the links. That is a fair bit more work though.
(2012-11-03, 04:20 PM)Leefish Wrote: [ -> ]Yes, I thought that was what you wanted - unfortunately to do that at the least it would need a custom page/template and then use php in templates/template conditionals to hide/redirect the links. That is a fair bit more work though.

Yes I have templates/template conditionals plugin installed, is this not a code like

if($mybb->user['uid']==0) error_no_permission();
if($mybb->user['uid']!=0)


greatings
Try it Big Grin
hmmm not found a working code yet, if I try I only get errors.
So someone a idee
Pages: 1 2