The vB Geek

The vB Geek (
-   Geek Article and Review System (
-   -   [Support] Bugs with GARS and postbit_legacy (

playeradvance 07-01-2008 12:52 PM

[Support] Bugs with GARS and postbit_legacy

I'm using GARS 1.8.m.
When I used postbit_legacy to display comment, message id are not show and, a little more serious, group permissions are not correct, my members normally can't delete their message but in GARS forums they can

Can you tell me what is the problem ?

Morgan 07-01-2008 05:37 PM

GARS should not be changing usergroup permissions like that, so double check the permissions for those usergroups under Usergroups -> Usergroup Manager -> Edit Usergroup as well as under Usergroups -> Forum Permissions for specific forums.

As for the count, it does not show on non GARS templates. The first post is the article, the second post is the first comment, the third post is the second comment, etcetera, and if there are multiple pages in the thread, the first post on a subsequent page in a thread would be out of order, so the counts don't show.

Not saying that they cannot be edited to show correctly, just why they were not showing, so try replacing the GARS - Process Postbit plugin with the following code and see if the counts show correctly.

global $vbulletin;
if (is_object($vbulletin->gars))
        $this->templatename = $vbulletin->gars->process_postbit();

        if ($show['postcount_garstemp'])
                $show['postcount'] = $show['postcount_garstemp'];
                $post['postcount'] = $post['gar_postcount'];
        if (!eregi('gars', $this->templatename))
                $show['postcount_garstemp'] = $show['postcount'];
                if ($post['postcount'] - $post['gar_postcount'] == 2)
                        $show['postcount'] = 0;

playeradvance 07-03-2008 09:20 AM

hum... I'm not able to redo the bug of permissions

For the code you give me, it's works but the two post after the first post have the id 2

Morgan 07-07-2008 06:00 PM

Not sure. The GARS - Process Postbit plugin is as in post two on this site now, but I'm not getting any duplicate IDs. There is a temporary example here using postbit_legacy to display comments.

All times are GMT. The time now is 12:29 PM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.