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 - [WIDGET] Upcoming Events (https://vborg.vbsupport.ru/showthread.php?t=236402)

Lexor 10-16-2010 05:39 PM

I installed the widget on 4.0.7
But when i adde an area in my cms and want to choose it i became an error message like this:

Call to undefined function vbgmdate() in /www/htdocs/XXX/XXXX/packages/vbcms/widget/execphp.php(194) : eval()'d code on line 43

Can you help ?

TCB 02-16-2011 12:55 PM

Looks and works great. Thanks :D

Eq4bits 03-26-2011 06:03 AM

Quote:

Originally Posted by NashChristian (Post 2029922)
Alright, at least I'm not going crazy. I did some research at our neighboring events widget mod, and found that they have encounterd the exact same problem, with a solution outlined here.

My GMT is -6, so whenever an event is scheduled to begin at 6pm or later, it displays the date for the following day.

Now, I just need to figure out how to apply this same solution to this mod.

At least there is hope.
:D Jeff

I went with the other code as well, set the GMT offset to match my site's 'time'.
Had to laugh tho when I went to check to see if it was displaying right.
Display for 'today' was perfect... but April 1st events showed as being
Quote:

On 32th Mar 2011
Not sure if that's an intentional 'funny' or something weird because March has 31 days... and I don't have have any events for the 29th, 30th or 31st. the wording is a bit 'fonky' for 2nd displaying as '2th' and 3rd displaying as '3th'. Also only 1 event per date is showing when I know at least one has 2 events scheduled

Eq4bits 06-24-2011 03:58 PM

Quote:

Originally Posted by SuperGLS (Post 2031683)
Also, I wish the colon had a space on the RIGHT instead of the LEFT. Any ideas?

I was able to add a space *after* the colon (but unable to remove the space to the left by changing
THIS
Code:

$eventbits .="<tr><td nowrap class=''><strong>".$date.":</align></td><td width='100%' class=''><a href='calendar.php?do=getinfo&e=$did&c=".$calendarid."'>".$dtitle."</a></td></tr>";
TO THIS
Code:

$eventbits .="<tr><td nowrap class=''><strong>".$date.":</strong></td><td width='100%' class=''>&npsb;<a href='calendar.php?do=getinfo&e=$did&c=".$calendarid."'>".$dtitle."</a></td></tr>";

Eq4bits 06-25-2011 12:54 AM

I finally got mine to pull the 'current' date & it's events

FIND:
PHP Code:

ob_start(); 
global 
$db,$vbulletin
$calendarid="1"
$per_page "10"

CHANGE TO:
PHP Code:

ob_start();
global 
$db,$vbulletin;
$mydate =  mktime(000date("m"), date("d")-1date("Y"));
$calendarid="1";
$per_page "10"

FIND:
PHP Code:

$getevents=$db->query_read("SELECT eventid, title, dateline_from from " TABLE_PREFIX "event WHERE calendarid='".$calendarid."' $and order by dateline_from ASC LIMIT $per_page"); 

CHANGE TO:
PHP Code:

$getevents=$db->query_read("SELECT * FROM ".TABLE_PREFIX."event WHERE calendarid='".$calendarid."' AND visible= '1' AND (dateline_from >= '$mydate' || (  dateline_from >= '$mydate' AND dateline_to <= '$mydate' )) ORDER BY dateline_from ASC LIMIT $per_page"); 


Onkeltyson 06-01-2012 05:28 PM

Thanks for that ;)

ReBe 08-04-2012 11:04 AM

I have some recurring entrys, but in the widget only the first from the recurring entrys are shown. Is there a solution for it?

barnsi 08-08-2012 01:00 PM

changed to
PHP Code:

$date vbdate('j. F Y 

vor dem "j." muss das Hochkomma stehen, wird hier leider nicht richtig dargestellt.
Das ergibt dann die Anzeige: "9. August 2012" statt "08.09.12"

Arrogant-One 08-09-2012 08:01 AM

Quote:

Originally Posted by cory_booth (Post 1987509)
Create a PHP Type Widget and paste the below code.

Hi Cory.

How do I do this exactly? I am a bit of a novice at vB but have learned some stuff. Editting templates is a breeze. Is this like that?

What do you mean by 'Create a PHP Type Widget'

otterag 08-17-2012 08:11 PM

The calendar im trying to show events for is almost all recurring events and this mod does not show any of them.

Is there a way to pull those for the dates that they actually occur on with out having to redo the entire calendar day by day?

here is a screen shot of the mod on the left and the calendar on the right.

http://armadagames.com/forums/images...s_calendar.jpg


All times are GMT. The time now is 03:56 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.01387 seconds
  • Memory Usage 1,753KB
  • 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
  • (2)bbcode_code_printable
  • (5)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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