vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin CMS Widgets - Upcoming Events (https://vborg.vbsupport.ru/showthread.php?t=231365)

nekiw 02-20-2010 09:49 AM

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.

khuhner 02-23-2010 05:03 PM

Where is the developer?

Verionia 02-26-2010 12:32 AM

What is the code for forum block?

doopz 03-03-2010 02:14 PM

Quote:

Originally Posted by khuhner (Post 1982374)
In vB 4.0.1 I entered an event to occur on March 1st, 2010. In the UPcoming Events block it shows the event occuring on Feb 28th, 2010.

The 2 images below show the correct calendar entry and the second shows the widget showing the wrong date.

Same here. Have events happening before March 28th yet it only seems to show March 28th.

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:

Originally Posted by Bitti (Post 1949833)
Delete

PHP Code:

 ' ' VB::$vbulletin->options['timeformat'



Quote:

Originally Posted by voglermc (Post 1949972)
from where?

Good question, from where?

Chrissy_Ratbag 03-04-2010 07:44 AM

I get a parsing error, see previous post of mine.

Can anyone help me please?

cindy helmond 03-04-2010 09:15 AM

thx but needed for forumblock ?
thx

ngcoders 03-05-2010 01:22 PM

If you are facing wrong time and date of even being displayed ... then it is related to GMT setup of your host / script.

khuhner 03-05-2010 09:17 PM

Quote:

Originally Posted by doopz (Post 1996115)
Same here. Have events happening before March 28th yet it only seems to show March 28th.

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?

From a post in this very thread:

Quote:

Originally Posted by waynem (Post 1958412)
I set the offset to 86400 and it seems to work, thanks!

So you'll need to adjust the offset to what you need.

Kurt

betts02 03-06-2010 09:07 AM

Quote:

Originally Posted by Verionia (Post 1991674)
What is the code for forum block?

I would like also to use this in a forum block, Maybe have it so it fetches a thread title ony ?

I have a gaming site and this would be great to show what matches we have planned

is_it_me 03-06-2010 09:12 AM

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?

unfv 03-09-2010 02:11 PM

Quote:

Originally Posted by S1OPP (Post 1943940)
Installed and working great.

Q: Is there a simple way to get it to include upcoming birthdays?

yeah please, can someone help us with this?

Thanks

Guust 03-11-2010 05:12 AM

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!

Chrissy_Ratbag 03-11-2010 08:04 AM

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?

Blue91 03-14-2010 06:04 PM

Quote:

Originally Posted by Guust (Post 2001353)

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!

Same here. NicForce's code worked for me. Thanks to both coders.

SimplyJoe 03-26-2010 08:11 PM

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.

Guust 03-26-2010 10:45 PM

Quote:

Originally Posted by SimplyJoe (Post 2010762)
I'm using a hybrid of NicForce's code

Not that I really understand anything of this, but the major difference between the original code and NicForce's is that the code adds +1 to the date from and the date to. It seems you do not make a time adjustment like that, if I look over your code (not that I understand the coding).
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.

SimplyJoe 03-27-2010 01:13 AM

You are correct, I do not use the plus one, because that was giving me the reverse effect.

karlm 03-30-2010 05:19 PM

Seems to be working for me, thank you!

Peter Lo 04-02-2010 08:09 AM

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?

Guust 04-02-2010 12:46 PM

Quote:

Originally Posted by Peter Lo (Post 2014508)
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?

Use https://vborg.vbsupport.ru/showpost....8&postcount=33 instead

Verionia 04-05-2010 09:26 PM

No forum widget code?

Peter Lo 04-06-2010 03:01 AM

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).

BygoneLI 04-07-2010 03:02 PM

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...

zipperty 04-09-2010 12:27 PM

Working straight out of the box for me, Thanks for all your hard work.

Wild Bronco 04-12-2010 12:54 PM

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

Peter Lo 04-23-2010 05:46 AM

Quote:

Originally Posted by Peter Lo (Post 2014508)
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:

Originally Posted by Guust (Post 2014607)

I used the code you linked at #33 instead and now all my events are shown as one day late! Using back that example, if I set an event from 2 to 4 April, it now shows up as 3 to 5 April instead!

Guust 04-24-2010 11:49 AM

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.

doopz 04-25-2010 10:59 AM

can someone please enlighten me how to list recurring events?

fluidswork 04-25-2010 04:00 PM

nice , but not working .....................

NashChristian 05-01-2010 12:49 PM

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:

Saturday, May 1st, @ 9:00 AM
For some reason, it is calculating this with a GMT of -5, when I have a GMT of -6. Both my admincp, user profile, and my calendar have the right time displayed, just not the widget. I CAN go in and hard code a variable for the hour and subtract one from it, however that still screws up my AM/PM display, etc...

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']));
How can I get this to calculate the correct time? Why doesn't it display the same time as in the calendar itself? How can I fix this?

Any help would be appreciated.

Thanks!
:D Jeff

claystation 05-02-2010 06:32 PM

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

Kyle Tully 05-08-2010 02:35 AM

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?

level8 05-08-2010 06:43 PM

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 :)

NashChristian 05-10-2010 03:14 AM

Quote:

Originally Posted by doopz (Post 2026970)
can someone please enlighten me how to list recurring events?

I don't believe it works for that. It will just show the FIRST occurrence, as far as I can tell.

doopz 05-10-2010 05:48 AM

Quote:

Originally Posted by NashChristian (Post 2034362)
I don't believe it works for that. It will just show the FIRST occurrence, as far as I can tell.

Ah, that explains.
Well I'm willing to pay someone who can make it that way, just name your price :)

khuhner 05-10-2010 11:23 PM

Quote:

Originally Posted by level8 (Post 2033847)
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 :)

Yet another reason why these types of features should be included as standard VB rather than relying on hacks. Why cant VB figure this out? Other CMS systems already have a rich set of widgets (aka blocks) such as Xoops. It just seems as if there is a lot of room for improvement in the wigget space for modules.

level8 05-11-2010 10:33 AM

Quote:

Originally Posted by level8 (Post 2033847)
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 :)

The option 2 isnt super important at the moment just cosmetics really....

but I tried to insert simple html link into the code but wouldnt work .. anyone?

ngcoders 05-14-2010 07:12 AM

@level8

1. append the link to $output_bits.
2. prepend icon near
PHP Code:

<a href="calendar.php?do=getinfo&e=%d">%s</a

And some css to fix alignment issues.

mattpist 05-16-2010 05:45 AM

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!

JesusPokerChile 05-16-2010 09:21 PM

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
  • Page Generation 0.01582 seconds
  • Memory Usage 1,839KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete