![]() |
what happends if I dont moderate posts on the forum that is assigned to the event module but I do moderate calendar?
will the forum thread be deleted if I moderate the calendar thread and delete it? curious if I can have that everyone can post on forum, but I can moderate calendars for what that will show up there? and in widget. |
Where is the developer?
|
What is the code for forum block?
|
Quote:
Any solution for this? edit some debugging: Query = SELECT * FROM event WHERE visible = 1 AND (dateline_from > '1267633147' || ( dateline_from > '1267633147' AND dateline_to < '1267633147' )) ORDER BY dateline_from ASC LIMIT 5 seems to be going wrong with the dateline? edit 2: Hmm I guess this has to do with recurring events. How do I display these too? Quote:
Quote:
|
I get a parsing error, see previous post of mine.
Can anyone help me please? |
thx but needed for forumblock ?
thx |
If you are facing wrong time and date of even being displayed ... then it is related to GMT setup of your host / script.
|
Quote:
Quote:
Kurt |
Quote:
I have a gaming site and this would be great to show what matches we have planned |
Seems to be working great for me ? http://www.doctorwatson.info
But, I have several different calendars and was wondering if there?s anyway to exclude one in particular from showing up in the widget? |
Quote:
Thanks |
Hi
Firstly, I love the widget and so far it (kind of) works. The small problem I have is that it does not seem to adjust for my Default Time Zone Offset, which is GMT + 10. So the homepage says an event is on the 10th and the calendar says it is on the 11th depending on the time of day you visit the site. Check it out here: http://www.2cv.com.au/content.php and here http://www.2cv.com.au/calendar.php?do=getinfo&e=1 Any fixes anybody ? UPDATE: The answer is in this post: https://vborg.vbsupport.ru/showpost....8&postcount=33 I just replaced the code provided by NGCoders with the code provided by NicForce and all is good! |
I get the following parsing error
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/rat10541/public_html/forum2010/includes/class_core.php(4033) : eval()'d code on line 14 Can anyone help? |
Quote:
|
I'm using a hybrid of NicForce's code (formatted to provide the date format that I want), but I noticed that if you are not logged on, the dates are 24 hours ahead (so a July 3rd event will show on July 4), but if you log on, the dates are correct.
here is my code, but I still can figure this out. I don't see anything that tells me to be logged in or not. ob_start(); // %d $show_count = 15; $query = sprintf("SELECT * FROM ".TABLE_PREFIX."event WHERE visible = 1 AND (dateline_from > '%d' || ( dateline_from > '%d' AND dateline_to < '%d' )) ORDER BY dateline_from ASC LIMIT %d",TIMENOW,TIMENOW,TIMENOW,$show_count); $event_get = vB::$db->query_read($query); $output_bits = ''; while($event = vB::$db->fetch_array($event_get)) { $tz_offset = 86400; if($event['dateline_to'] == 0 ) { $format = sprintf("On %s", vbdate(VB::$vbulletin->options['dateformat'],$event['dateline_from']+$tz_offset)); } else { $format = sprintf("From %s to %s", vbdate(VB::$vbulletin->options['dateformat'],$event['dateline_from']), vbdate(VB::$vbulletin->options['dateformat'],$event['dateline_to'])); } $output_bits .= sprintf(' <div class = "cms_widget_post_bit"><h4 class="cms_widget_post_header"><a href="calendar.php?do=getinfo&e=%d">%s</a></h4> <p class="cms_widget_post_content">%s</p> </div> ',$event['eventid'],$event['title'],$format); } $output = $output_bits; ob_end_clean(); Thanks in advance. |
Quote:
I set it at +1 although my GMT = +10. Maybe the +1 refers to a date (a day) and not an hour. I also found that when you use an event which covers more than one day, you might have to be creative with the begin and end dates. |
You are correct, I do not use the plus one, because that was giving me the reverse effect.
|
Seems to be working for me, thank you!
|
I tried this widget using the default code at Post #1. Setting an event say from 2 April 2010 to 4 April 2010; when 2 April comes (ie today) the whole event no longer appears.
Shouldn't it only disappear after 4th april? |
Quote:
|
No forum widget code?
|
I tested this Widget and one downside is that it displays threads even in hidden/private subforums.
Is there a way to disable showing of threads from such forums? For example, it displays bad posts reporting threads and user infraction threads (which shouldn't be the case). |
I cannot for the life of me get it to display the event on the day it is occurring... I live in the US in the eastern time zone, have tried various offsets and nada...
|
Working straight out of the box for me, Thanks for all your hard work.
|
It works for me, but I would like to be able to translate the words in the time format.
The widget is using english rather than my default and translated lang.. Am I overlooking somthing? From 15th Apr 2010 to 15th Apr 2010 |
Quote:
Quote:
|
Maybe you do not need the time-offset as per #33?
As for the 1st question, I cannot answer that one, I don't understand the code myself. |
can someone please enlighten me how to list recurring events?
|
nice , but not working .....................
|
Hello,
I tried just adding the date syntax in with the date for the event start time. (I'm not showing the date range, I took out the whole 'from/to' portion.) Here is how I want it to display, and how it currently does display (but the time is off by an hour at the moment): Quote:
Here is the code I'm using to display the starting date and time: Code:
$format = sprintf("%s",date('l, F jS, @ g:i A',$event['dateline_from'])); Any help would be appreciated. Thanks! :D Jeff |
I have one custom field on my calendar. Does anyone know how I could show that data from the custom field, along with the title & date in this widget?
Thanks, Andy |
When I "save" the code in the configure page... it doesn't save.
No errors, just doesn't save. The default code keeps reappearing. Anyone had that happen before? |
great widget...
can anyone help with 2 things? 1. How do I add a link at the bottom of the widget called somethign like "Add an Event" which simply will link to the http://****.com/calender.php? 2. Add a small icon image next to all events (https://vborg.vbsupport.ru/external/2011/08/21.gif ). Any help is much appreciated :) |
Quote:
|
Quote:
Well I'm willing to pay someone who can make it that way, just name your price :) |
Quote:
|
Quote:
but I tried to insert simple html link into the code but wouldnt work .. anyone? |
@level8
1. append the link to $output_bits. 2. prepend icon near PHP Code:
|
i tried copying and pasting the code into a forum block, but nothing shows up. is there a way to adapt this to forum blocks? thanks!
|
Any help on recurring events???
|
All times are GMT. The time now is 01:02 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|