Users name to post as "Guest"
How hard would it be to add support to allow the Users name to post as field to be Guest or userid 0?
I tried the following, but it just ended up posting the article under the userid I was logged in as Code:
if ($this->settings['ugs_able_to_post_as_other_users']) |
Not sure, haven't done it, but you might run into a problem as guests have userid of zero and do not have an entry in the vB user table. You'd probably need to change more than that code, i.e., look for post_as_id for other locations in the code.
|
I tried your suggestions and made a couple more edits to gars_class_core.php with no luck there either
Code:
$data = unserialize($result['data']); It appears to be saving the data to gars>data: Code:
a:5:{s:7:"post_as";s:12:"Unregistered";s:10:"post_as_id";i:0;s:6:"gal_id";N;s:12:"gal_keywords";s:0:"";s:8:"gal_text";s:0:"";} Any suggestions for what I might be missing? P.S. I changed to using "Unregistered" instead of "Guest" |
The GARS post as another user feature was coded with the assumption that the other user is a member and not a guest. The are two ways that I see ATM to post as a guest. One is to sift through the code and make the necessary changes. As I haven't done this, the only way to really approach it would be to go through all the code and see what needs to be changed and where. The other way would be to create another member account and post under that user name, and then use a template conditional to change what gets displayed in the postbit based on the userid of the "guest" user account.
|
Quote:
Thanks! |
All times are GMT. The time now is 02:58 PM. |
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.