View Full Version : Events Manager Bug?
CocteauBoy
06-08-2004, 03:42 AM
When you click on an event, it opens the event for details, which is wonderful, but there is no way to choose to close it and/or to go back to the events list.
Is there a way around this?
troy
CocteauBoy
06-08-2004, 04:04 AM
Another bug?
As I am working on my site, I am realizing that the date and times for events keeps changing, and my efforts to correct the date and/or time does not take.
Has this been resolved somehow or am I doing something retarded?
troy
When you click on an event, it opens the event for details, which is wonderful, but there is no way to choose to close it and/or to go back to the events list.
Is there a way around this?
troy
I'll update this plugin adding a link to go back in the near future.
Another bug?
As I am working on my site, I am realizing that the date and times for events keeps changing, and my efforts to correct the date and/or time does not take.
Has this been resolved somehow or am I doing something retarded?
troy
You need to select your timezone in the settings page of the Event Manager.
CocteauBoy
06-08-2004, 03:05 PM
I'll update this plugin adding a link to go back in the near future.
Thanks! That would be awesome! Can you suggest a creative way around this until then?
You need to select your timezone in the settings page of the Event Manager.
I have the correct time zone chosen. Here's more details as to what it is doing:
I set a date for July 11 @ 12:00 PM and when I save it, the date changes to July 12 @ 3:00AM; All times are pushed 3 hours ahead upon saving. In addition to that, "noon" would normally be 12:00pm, but it appears that 12:00pm is translated as "midnight", which is why the push to 3am also changes the date from the 11th to the 12th. I have my time zone set for -5 for Eastern.
My way of working around this for now is to set the time of the event as 3 hours earlier and to reverse the use of 12pm and 12am.
Thanks for looking into this!
Troy
lol, well that's not good! I'll have to take a look at the code and release a new version soon :)
CocteauBoy
06-09-2004, 09:50 AM
lol, well that's not good! I'll have to take a look at the code and release a new version soon :)
Along with the option to return to the full Events Manager listing, would it also be possible to have the linking refresh directly to wherever the Event Manager is? For instance, my Event Manager is toward the bottom of my start page, but when you click on an event, you end up way at the top of the newly-refreshed page with the Event Manager nowhere in sight unless you scroll back down. Can this be changed, or is there a quick fix I can apply?
Thank you SubDuck! <<
Send me your email address and I'll send you the modified event manager :)
Or if you like to code, just make these changes and it should work perfectly:
Open up this file: subdreamer\plugins\p18_event_manager\eventmanager. php
Add this code on line 10:
echo '<a name="eventmanager"></a>';
Now scroll down and find this line (near line 110) and replace this line:
<td style="padding: 4px;" bgcolor="'.iif($rotate, $rowcolor3, $rowcolor2).'"><a href="index.php?categoryid='.$categoryid.'&p18_eventid='.$event['eventid'].'">'.$event['title'].'</a></td>
With this one:
<td style="padding: 4px;" bgcolor="'.iif($rotate, $rowcolor3, $rowcolor2).'"><a href="index.php?categoryid='.$categoryid.'&p18_eventid='.$event['eventid'].'#eventmanager">'.$event['title'].'</a></td>
Now scroll down and find this code: (near line 134)
if($start > 0)
{
echo '<td><a href="index.php?categoryid='.$categoryid.'&p18_start=' . ($start - $limit) . '#eventmanager"><< Previous</a></td>';
}
if($rows > $limit)
{
$start += $limit;
echo '<td align="right"><a href="index.php?categoryid='.$categoryid.'&p18_start='.$start.'#eventmanager">Next >></a></td>';
}
And replace that with this:
if($start > 0)
{
echo '<td><a href="index.php?categoryid='.$categoryid.'&p18_start=' . ($start - $limit) . '#eventmanager"><< Previous</a></td>';
}
if($rows > $limit)
{
$start += $limit;
echo '<td align="right"><a href="index.php?categoryid='.$categoryid.'&p18_start='.$start.'#eventmanager">Next >></a></td>';
}
CocteauBoy
06-09-2004, 06:01 PM
Ooooh!! I am wanting to learn this code, so I will try to implement the changes, myself! Thanks SO MUCH! -troy
CocteauBoy
06-09-2004, 06:10 PM
YAY! It works! Thank you so much!!!
Now if we can just get a "return to Events Listings" type linking, this will be perfect!
-troy
Find and open this file:
subdreamer/plugins/p18_event_manager/eventmanager.php
Then find this line: (line 169)
echo '<table width="100%" border="0" cellpadding="0" cellspacing="0">
and replace it with this one:
echo '<a href="index.php?categoryid='.$categoryid.'#eventmanager">« Go back to Events</a><br /><br /><table width="100%" border="0" cellpadding="0" cellspacing="0">
CocteauBoy
06-09-2004, 06:47 PM
It worked wonderfully! I aspire to know this code as you do! Until then, you are seriously appreciated. You have made me so happy with this whole system! It is just amazing. Any word on the fix for the time/date 3 hour shift thing?
-troy
Here is a quick fix for the time issue:
First find and open this file:
subdreamer\plugins\p18_event_manager\settings.php
Next add this to line 128:
$hour -= 3;
CocteauBoy
06-09-2004, 07:55 PM
Thanks! I added it! I will report back... -Troy
rontan
08-22-2004, 11:30 AM
Subduck.. can you send the modified files to me ? I'm having all the above issues and have difficulties getting the config right. Except that my time is 13 hours ahead.... thks..
Hi rontan,
Please PM me your email.
Hi rontan,
After looking into this I noticed that I already released an update(1.1) a while back to fix the timezone problem. You can change your timezone in the plugins settings.
rontan
08-24-2004, 03:03 AM
Hi Subduck.. strange becoz upon setting my timezone to +8, all subsequent time settings on the event page will be automatically push forward by 13 hours which is where my web server is located in. I'm in Singapore and the server is in the US which is 13 hours in time differences. Now if you go to my site at www.certforum.com and clicked on Events. There is one recent event that I had to set it to Thursday, 26th Aug 2004, 6:00am inorder for it to appear as Thursday, 26th Aug 2004, 7:00pm.
I had just bought the 1 year plan from you 2 days back, so had downloaded the plugins as well. Seems to have not worked for me. Any ideas ?
That's strange, I'm going to look into and try to find the error.
Hey Rontan, just a quick update:
I haven't found the error yet, but I will continue to try and solve this issue once I release the next version of Subdreamer Pro (SD115 August 31st).
Thanks for your patience Rontan, I'm about to release a new version of the Event Manager that will fix this problem.
CocteauBoy
10-20-2004, 05:33 PM
Now that I have upgraded to the new Events Manager, I have lost the ability for the clicked event to land exactly where the actual event listing is. I was trying to recreate the fix you gave for the previous version, but the codes are all shifted now.
I want the page to refresh EXACTLY to the event listing when they click on it for details. I do not like that the refresh takes you to the top of the page.
I've also noticed the same thing happens on the SUBMIT EVENT link. I would like to refresh it to the actual form, if that's possible. Once a submission is made, and it asks you to click here for a return to the Events Page, I'd like it to refresh to the actual Events, too.
Am I being a pain? Or doesn't this make sense? I think it's very confusing for some users to click a link, have the page refresh, and then you are somewhere else unexpected.
Thanks!!
Troy
Now that I have upgraded to the new Events Manager, I have lost the ability for the clicked event to land exactly where the actual event listing is. I was trying to recreate the fix you gave for the previous version, but the codes are all shifted now.
Hi Troy! You have the most colorful site, I really like it. Anyways, here are the changes:
Open up this file: subdreamer\plugins\p18_event_manager\eventmanager. php
Add this code on line 14:
echo '<a name="eventmanager"></a>';
Now scroll down and find this code near line 136:
<td style="padding: 4px;" bgcolor="'.iif($rotate, $rowcolor3, $rowcolor2).'"><a href="index.php?categoryid='.$categoryid.'&p18_action=displayeventdetails&p18_eventid='.$event['eventid'].'">'.$event['title'].'</a></td>
Replace that with this:
<td style="padding: 4px;" bgcolor="'.iif($rotate, $rowcolor3, $rowcolor2).'"><a href="index.php?categoryid='.$categoryid.'&p18_action=displayeventdetails&p18_eventid='.$event['eventid'].'#eventmanager">'.$event['title'].'</a></td>
Now scroll down and find this code near line 158:
// previous and next pages:
echo '<br />
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="100">';
if($start > 0)
{
echo '<a href="index.php?categoryid='.$categoryid.'&p18_start=' . ($start - $limit) . '">' . $language['previous'] . '</a>';
}
echo ' </td>';
if($allowsubmit)
{
if($allowguestsubmit || $_SESSION['sdloggedin'])
{
echo '<td align="center"><a href="index.php?categoryid='.$categoryid.'&p18_action=submitevent">' . $language['submit_event'] . '</a></td>';
}
}
echo ' <td width="100" align="right">';
if($rows > $limit)
{
$start += $limit;
echo '<a href="index.php?categoryid='.$categoryid.'&p18_start='.$start.'">' . $language['next'] . '</a>';
}
echo ' </td>
</tr>
</table>';
Replace ALL of that with this:
// previous and next pages:
echo '<br />
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="100">';
if($start > 0)
{
echo '<a href="index.php?categoryid='.$categoryid.'&p18_start=' . ($start - $limit) . '#eventmanager">' . $language['previous'] . '</a>';
}
echo ' </td>';
if($allowsubmit)
{
if($allowguestsubmit || $_SESSION['sdloggedin'])
{
echo '<td align="center"><a href="index.php?categoryid='.$categoryid.'&p18_action=submitevent#eventmanager">' . $language['submit_event'] . '</a></td>';
}
}
echo ' <td width="100" align="right">';
if($rows > $limit)
{
$start += $limit;
echo '<a href="index.php?categoryid='.$categoryid.'&p18_start='.$start.'#eventmanager">' . $language['next'] . '</a>';
}
echo ' </td>
</tr>
</table>';
CocteauBoy
11-09-2004, 12:05 PM
Find and open this file:
subdreamer/plugins/p18_event_manager/eventmanager.php
Then find this line: (line 169)
echo '<table width="100%" border="0" cellpadding="0" cellspacing="0">
and replace it with this one:
echo '<a href="index.php?categoryid='.$categoryid.'#eventmanager">« Go back to Events</a><br /><br /><table width="100%" border="0" cellpadding="0" cellspacing="0">
FIRST OF ALL: THANK YOU, Subduck for the updated on the targeting!
Now I am trying to implement this next part into my current upgrade, but because the lines are off, and I found two lines with the code specified to replace, I don't know where to do this. Thanks for any help!
troy
I found two lines with the code specified to replace, I don't know where to do this.
Replace the second one, if that doesn't work then replace the first one ;)
CocteauBoy
11-09-2004, 12:12 PM
Replace the second one, if that doesn't work then replace the first one ;)
How did I know it was going to be as easy as that...
Troy
vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.