Not Solved [Page Manager] Share your custom pages
#41
Not Solved
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
[Image: banner.jpg]
Reply
#42
Not Solved
@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.
Reply
#43
Not Solved
yes i read. i tried that both. but i get the same error whether or not i include mybb header and footer template.
[Image: banner.jpg]
Reply
#44
Not Solved
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.
Reply
#45
Not Solved
It seems you forgot the PHP tags. Wink

<?php ... ?>


Attached Files
.xml   access.xml (Size: 626 bytes / Downloads: 446)
Reply
#46
Not Solved
oh ok i will put the php tag in and check.
[Image: banner.jpg]
Reply
#47
Not Solved
(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?
Reply
#48
Not Solved
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?
Reply
#49
Not Solved
(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.
Reply
#50
Not Solved
(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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)