Search found 25 matches

by stingone
Thu Jul 14, 2011 10:40 am
Forum: Bug reports
Topic: incompatibility with IE7 and PDF (2.7 beta)
Replies: 1
Views: 2924

incompatibility with IE7 and PDF (2.7 beta)

Hi all,

When i open the 2.7 beta in IE7 it aligns al tabels to the left of my page. So al the tables are below eachother. IE9 and mozilla is no problem.
Also the search button is centerd below the search input and the radius of the tables is not working.

Also when i want to save to PDF it ask for ...
by stingone
Wed Jul 13, 2011 5:08 pm
Forum: General discussions
Topic: Add php into phpmyfaq
Replies: 20
Views: 16964

Re: Add php into phpmyfaq

doesnt work,

when clicking link i get error file not found .... it is putting the path phpmyfaq in front of the url

The requested URL /phpmyfaq/index.php was not found on this server.
by stingone
Wed Jul 13, 2011 12:00 pm
Forum: General discussions
Topic: Search output issue after include php
Replies: 5
Views: 8399

Re: Search output issue after include php

Hi,

if you get a white page, a PHP fatal error occurs. Please check your error log.

bye
Thorsten

Hi Thorsten, thank for your repley. This it was i get when debug mode on.


phpMyFAQ warning [2]: ini_set() [function.ini-set]: A session is active. You cannot change the session module's ini ...
by stingone
Tue Jul 12, 2011 6:29 pm
Forum: General discussions
Topic: Search output issue after include php
Replies: 5
Views: 8399

Re: Search output issue after include php

It all happens when i including a php file in the index.php. when deleting the include it works just fine.

How can ik solve this problem?
by stingone
Tue Jul 12, 2011 4:50 pm
Forum: General discussions
Topic: Search output issue after include php
Replies: 5
Views: 8399

Search output issue after include php

Hi

Yesterday i succesfully implemented my security to the mainpage of the faq.

i implemented in line 384 below

//
// Load template files and set template variables
//

include '../login/dbc.php';
page_protect();

Then i implemented in line 482

else if ((checkAdmin()) && ($_SESSION['user_id ...
by stingone
Mon Jul 11, 2011 11:02 pm
Forum: General discussions
Topic: Add php into phpmyfaq
Replies: 20
Views: 16964

Re: Add php into phpmyfaq

OWkee got it working :P

last question,

what does ($faqconfig->get('main.enableRewriteRules')) refering to html page's but cant find them in the folders.

I deleted it to get my part working. i now have.

if ((checkAdmin()) && ($_SESSION['user_id'])) {
$links_template_vars = array(
"admin ...
by stingone
Mon Jul 11, 2011 8:30 pm
Forum: General discussions
Topic: Add php into phpmyfaq
Replies: 20
Views: 16964

Re: Add php into phpmyfaq

Almost there :)

I implemented the

include '../login/dbc.php';
page_protect();
session_start();

In line 382. And now have else if ($_SESSION['user_id']) {
$links_template_vars = array(


below that i have if if (checkAdmin()) {
$links_template_vars = array(
"test" => '<a href="index.php ...
by stingone
Mon Jul 11, 2011 6:47 pm
Forum: General discussions
Topic: Add php into phpmyfaq
Replies: 20
Views: 16964

Re: Add php into phpmyfaq

Hi,

please try this:

if (isset($_SESSION['user_id'])) {
$links_template_vars = array(
"test" => '<a href="index.php?'.$sids.'action=test">Test</a>');
} else {
$links_template_vars = array(
"test" => 'not true');
}

if (checkAdmin()) {
$links_template_vars = array(
"test1" => '<a href ...
by stingone
Mon Jul 11, 2011 6:31 pm
Forum: General discussions
Topic: Add php into phpmyfaq
Replies: 20
Views: 16964

Re: Add php into phpmyfaq

Hi,

okay, that's correct.

Did you checked if you both if-cases are true? It looks like both were false

bye
Thorsten

Yes both cases are true. So i login with a script that goes ok. Then the include file on the top of index.php checks if the user is login and if it is admin or not.

If it is a ...
by stingone
Mon Jul 11, 2011 6:01 pm
Forum: General discussions
Topic: Add php into phpmyfaq
Replies: 20
Views: 16964

Re: Add php into phpmyfaq

Hi,

where did you add this code? Which file and which line number?

if (isset($_SESSION['user_id'])) {
$links_template_vars = array(
"test" => '<a href="index.php?'.$sids.'action=test">Test</a>');
}

if (checkAdmin()) {
$links_template_vars = array(
"test1" => '<a href="index.php?'.$sids ...
by stingone
Mon Jul 11, 2011 5:15 pm
Forum: General discussions
Topic: Add php into phpmyfaq
Replies: 20
Views: 16964

Re: Add php into phpmyfaq

Hi,

the index.php file is full of it at the end of the file. :-)

bye
Thorsten

Sorry for asking again.

but what i do below is that not injecting the php?? i dont know what i need to change.....again sorry for asking.

if (isset($_SESSION['user_id'])) {
$links_template_vars = array(
"test ...
by stingone
Sun Jul 10, 2011 7:17 pm
Forum: General discussions
Topic: Add php into phpmyfaq
Replies: 20
Views: 16964

Re: Add php into phpmyfaq

Hi Thorsten,

Can you maybe give me a example of how to do this properly?
by stingone
Sun Jul 10, 2011 5:22 pm
Forum: General discussions
Topic: Add php into phpmyfaq
Replies: 20
Views: 16964

Re: Add php into phpmyfaq

What i did in the index.tpl

{allCategories}
{showInstantResponse}
{msgAddContent}
{msgQuestion}
{msgOpenQuestions}
{showSitemap}
{msgContact}
{test}

Than define in de constant.php add to
$allowedVariables = array(
'test' => 1

Than add to index.php

if (isset($_SESSION['user_id ...
by stingone
Sat Jul 09, 2011 2:30 pm
Forum: General discussions
Topic: Loginbox for admin intergrate in index.php
Replies: 3
Views: 3896

Re: Loginbox for admin intergrate in index.php

I use 2.7 its great. :) but what i mean is that users have to login first before they see the faq.. so that the index.php is secured. just as the admin/index.php
by stingone
Sat Jul 09, 2011 2:29 pm
Forum: General discussions
Topic: Add php into phpmyfaq
Replies: 20
Views: 16964

Re: Add php into phpmyfaq

How can i do this??