PortalParts.com Site

 Forum Index > Geeklog > Misc Projects New Topic Post Reply
 wrong event registration number
 |  Printable Version
guganbl
 June 18 2007 17:21 PM (Read 2155 times)  
Forum Junior
Junior

Status: offline

Registered: 06/18/07
Posts: 5

:?:

I have purchased and installed eventmgr plugin on gl 1.4.0sr5-1 and everything works perfect but one thing.
In administration panel under "event registration" numbers are not ok. They are going up , but they are not going down. The thing is when i had only 1 event it was ok, and when i deleted event , in event registration was still number 1 standing and when i click link of course there is no events inside since i have deleted it. I tryed to add more events and was the same.... number next to event registration was increeseng, and when i have deleted all events it stayed. Now i have "Event Registration (4)" and 0 events....
I followed instalation guide step by step ( at least i think so ) and plugin works perfect except this litle bug....
Anyone can help ?
Thanx,
Sasa


 
Profile Email PM
Quote
Blaine
 June 18 2007 21:25 PM  
Forum Admin
Admin

Status: offline

Registered: 03/01/02
Posts: 3576

Thanks for the purchase :)

I actually also installed it on site today and tested the adding and deleting of events and have not see this issue.

I may need you to let me have access to your site to see the issue.


Please consider contributing to support my efforts ..
 
Profile Email Website PM
Quote
Blaine
 June 19 2007 08:08 AM  
Forum Admin
Admin

Status: offline

Registered: 03/01/02
Posts: 3576

Oh, I see the count that is displayed in the Admin Menu is indicating (4) but there is only 1 event as seen by the event registration plugin.


Update the registration plugins functions.inc with this new function - approx line 75

PHP Formatted Code

/**
* returns the administrative option for this plugin
*
*/

function plugin_getadminoption_registration()
{
    global $_TABLES, $LANG_REG00, $_CONF;

    if (SEC_hasRights('registration.edit')) {
        $sql = "SELECT count(*) FROM {$_TABLES['events']} event, {$_TABLES['reg_events']} registered WHERE event.eid=registered.eid";
        $query = DB_query($sql);
        list ($eventCount) = DB_fetchArray($query);
        return array($LANG_REG00['useradmintitle'], $_CONF['site_admin_url'] . '/plugins/registration/index.php',$eventCount);
    }
}
 



Please consider contributing to support my efforts ..
 
Profile Email Website PM
Quote
guganbl
 June 19 2007 08:25 AM  
Forum Junior
Junior

Status: offline

Registered: 06/18/07
Posts: 5

it worked perfect, thanx , now it shows value like it is.
Regards,
Sasa


 
Profile Email PM
Quote
Content generated in: 0.23 seconds
New Topic Post Reply



 All times are CDT. The time is now 03:55 PM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content