Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
2.9k views
in Q2A Core by
I would like to remove   "Help get things started by asking a question" Where would I locate the code?

Is it possible to have other Admin accounts set-up, for example one person would look after 1 category and another for 2nd category?

Can the ReCaptcha display words be any clearer?

 

Regards

Pete

1 Answer

+1 vote
by

To resolve the first issue, change function qa_html_suggest_ask(...) in qa-app-format.php to just contain: return null;

You can have multiple admins, but cannot yet assign different permissions in different categories.

Recaptcha is an external system so I'm afraid it's outside Q2A's control.

by
I went to line 731 and modidified the code as mentioned, but then it stopped altogether. How should this line look?

    function qa_html_suggest_ask($categoryid=null)

Thanks for the admin reply.
by
The whole function can be replaced with:

function qa_html_suggest_ask($categoryid=null)
{
    return null;
}
by
Hi,

I copied and pasted your code and it stops the index.php page from loading.

Regards

Drachsi
by
Make sure: (a) you replaced all 16 lines of code starting from:

function qa_html_suggest_ask($categoryid=null)

And (b) check that no strange characters were pasted into your PHP file when copying from the web page. To be safe, you might consider retyping instead.
by
Hi,

This is what I have from line 720 to line 751

           
            array(
                '^1' => '<A HREF="'.qa_path_html('questions'.(strlen($categoryslug) ? ('/'.$categoryslug) : '')).'">',
                '^2' => '</A>',
                '^3' => '<A HREF="'.qa_path_html('tags').'">',
                '^4' => '</A>',
            )
        );
    }

   
    function qa_html_suggest_ask($categoryid=null)
{
    return null;
}

/*
    Return HTML that suggest getting things started by asking a question, in $categoryid if not null
*/
    {
        $htmlmessage=qa_lang_html('main/suggest_ask');
       
        return strtr(
            $htmlmessage,
           
            array(
                '^1' => '<A HREF="'.qa_path_html('ask', strlen($categoryid) ? array('cat' => $categoryid) : null).'">',
                '^2' => '</A>',
            )
        );
    }
by
You need to get rid of everything you pasted above which comes after the code I gave you.
by
Sorry, Im confused. I only showed what I have in part of the code. You can see that all I changed was,

function qa_html_suggest_ask($categoryid=null)
{
    return null;
}

Everything else is your standard code  4 lines ,not 16

Regards

Drachsi
by
The function continues after the comment! Please start again with the original code, and replace 16 lines of code with the 4 I provided.
by
OK, I removed all code, after the code you supplied until the next function. and then it work. Thanks for your support,

Have a great festive season

Regards

Pete
...