MyBB Community Forums

Full Version: [Page Manager] Share your custom pages
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i get this error.

if(Array['uid']==0) { error_no_permission(); }

this is the page i want to block from guests
http://www.footballfuror.com/misc.php?page=Live

thanks
@saintsinner: did you read this message when you were creating the new page?:

Quote:Use MyBB Template?
Set this option to yes, if you want to include MyBB header and footer automatically. This will disable the possibility to use PHP in page content!

Make sure you have that option to "No" if you want to use PHP.
yes i read. i tried that both. but i get the same error whether or not i include mybb header and footer template.
Try checking the pages provided on this thread so you can learn how to properly make a php page for this plugin.

In particular, "ban list" have the feature you're trying to set (disable page to guests).

Greets.
It seems you forgot the PHP tags. Wink

<?php ... ?>
oh ok i will put the php tag in and check.
(2010-01-29, 10:18 AM)querschlaeger Wrote: [ -> ]Here is another one: A contact form!

It includes everything you need: Captcha (if enabled in Admin CP) for guest, email verification etc. This page is also language-independent.
Hi!
Lovely page and plugin Heart

Is there some way to add feedback for a successful email sent?
I am Polish, so I do not write well in English. I have this problem when importing a file php.xml is all good but I mean that only I see this site and the other has the same look they do not see why http://plgf-ls.pl/misc.php?page=regulamin ?


This is the Code.
<?php

global $headerinclude, $header, $theme, $footer;

$template='<html>
<head>
<title>'.$pages['name'].'</title>
{$headerinclude}
</head>
<body>
{$header}
<table border="0" cellspacing="'.$theme['borderwidth'].'" cellpadding="'.$theme['tablespace'].'" class="tborder">
<thead>
<tr>
<td class="thead">
<strong>'.$pages['name'].'</strong>
</td>
</tr>
</thead>
<tbody>
<tr>
<td class="trow1"><iframe src="/rejestracja.php"&nbsp;width="1400" height="1400" frameborder="0" scrolling="no"></iframe></td>
</tr>
</tbody>
</table>
<br />
{$footer}
</body>
</html>';

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

add_breadcrumb($pages['name']);

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

output_page($page);

?>

When you enter a different writing so
The requested page is not available.

Why do I have this problem?
(2010-03-19, 10:33 AM)Inaro Wrote: [ -> ]Why do I have this problem?

Because the page is disabled. You have to enable the page.
(2010-03-19, 04:01 PM)querschlaeger Wrote: [ -> ]
(2010-03-19, 10:33 AM)Inaro Wrote: [ -> ]Why do I have this problem?

Because the page is disabled. You have to enable the page.

And you can tell how to activate it because I'm still green MyBB.