PDA

View Full Version : Posting showing as GUEST



PolicyWala
Sun 17th May '09, 1:15am
After import some posting showing as GUEST and posts count as 0
Now in the forum I have read that u need to run SQL query -

UPDATE post SET userid='41' WHERE userid=0

From where we need to run this query. Pls help

Steve Machol
Sun 17th May '09, 2:13am
You can run queries in the SQL tab in phpMyAdmin, or to run queries from the Admin CP:

Admin CP -> Maintenance -> Execute SQL Query -> Manual Query

Then enter your query in the Manual Query box and click on 'Continue'.

To run queries you first need to give yourself permission to run queries in the Admin CP. To do this, edit this section of config.php:

$config['SpecialUsers']['canrunqueries'] = 'x';

...with x being your userid number.

Note: That query will assign ALL guests post to that user. And after running that you will need to rebuild the thread and forum counters in that order:

Admin CP -> Maintenance -> Update Counters

PolicyWala
Sun 17th May '09, 3:59am
Hi, I have logged in as Amin and user id as '1'. But it is not allowing me and giving message,"You are not authorized to execute SQL queries"

Steve Machol
Sun 17th May '09, 1:19pm
That means you have not edited the config.php file correctly.