PortalParts.com Site

 Forum Index > Geeklog > Misc Projects New Topic Post Reply
 glEventMgr - Edit Event Link in Mgr wrong for 1.4.x
 |  Printable Version
mst3kroqs
 July 20 2007 10:55 AM (Read 1658 times)  
Forum Full Poster
Full Poster

Status: offline

Registered: 04/29/07
Posts: 16

Hi Blaine -

Thanks for the great plugin! Well worth the purchase, and extremely educational from a coding perspective.

I found a slight problem wrt the changes that occured when they made the Calendar a plug-in.

In the Event Registration Management screen (the title of which is misspelled, btw - grin - no, that's not the bug), there is an 'Edit Event' link provided which should take you to the event itself. This link doesn't work on 1.4.x or above.

The fix is (of course) in /admin/plugins/registration/index.php, circa line 149:

Was:

PHP Formatted Code

$editeventlink = "<a href=\"{$_CONF['site_admin_url']}/event.php?mode=edit&eid=$eid\"><img src=\"{$_CONF['site_url']}/registration/update.gif\" border=\"0\" TITLE='Edit Event'></a>";
 

And to fix, could now be (making it GL-generation-aware):

PHP Formatted Code

if( DB_count( $_TABLES['plugins'], 'pi_name', 'calendar' )  ) {
$editeventlink = "<a href=\"{$_CONF['site_url']}/admin/plugins/calendar/index.php?mode=edit&eid=$eid\"><img src=\"{$_CONF['site_url']}/registration/update.gif\" border=\"0\" TITLE='Edit Event'></a>";
} else {
$editeventlink = "<a href=\"{$_CONF['site_admin_url']}/event.php?mode=edit&eid=$eid\"><img src=\"{$_CONF['site_url']}/registration/update.gif\" border=\"0\" TITLE='Edit Event'></a>";
}
 

I checked, it looks like you caught this everywhere else!

Thanks, and best regards.


 
Profile Email PM
Quote
Blaine
 July 21 2007 08:27 AM  
Forum Admin
Admin

Status: offline

Registered: 03/01/02
Posts: 3576

Thanks very much for the feedback 8)


Please consider contributing to support my efforts ..
 
Profile Email Website PM
Quote
Content generated in: 0.19 seconds
New Topic Post Reply



 All times are CDT. The time is now 05:07 AM.
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