Recent questions tagged question2answer

Description : how to determine on which page the user is in q2a ? -question2answer

Last Answer : The best way for this is to use request() Example : if (qa_request() === 'login') { echo 'This is the login page'; } else { echo 'This is not the login page'; } or if (qa_request() = ... 'This is the accountpage'; } else { echo 'This is not the account page'; } This will work ...

Description : how to get base url in q2a ? -question2answer

Last Answer : qa_path_to_root(); This function can be used to get the root url of the q2a site

Description : qa_post_delete how to use this function - q2a -question2answer

Last Answer : Structure of this function : qa_post_delete ($postid) will delete $postid from the database, hiding it first if appropriate. Just provide the post id and you are done ... good to go now. More information :- Parameters : 1 Function : qa_post_delete

To see more, click for the full list of questions or popular tags.