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 Forum Sideblocks - UpComing Events SideBlock/Bar With/Without Image (https://vborg.vbsupport.ru/showthread.php?t=253239)

Mark4865 05-24-2011 01:45 PM

Okay Update:

I discovered the code I was using for the image is for a single image event and it will only show the same image for every event in the widget, although I still havent got it to show in the widget.

My question is does anyone know how to write the code so a different image for every event will show in the widget. I have the image showing up perfectly in the actual event does someone know what code to use to get the same image to show in the widget.

Desperate please

TransAmDan 05-27-2011 01:28 PM

Is there any way to display repeated events correctly?
We have an event every 2 weeks on a Tuesday, it displays fine in the calendar. However on the events list it displays

Club Night
From 7th Jun 2011 to 30th Dec 2012

It displays the start and end of the reoccurring event, but not the date it is on.

RedTrinity 06-05-2011 12:29 PM

Quote:

Originally Posted by TransAmDan (Post 2200570)
Is there any way to display repeated events correctly?
We have an event every 2 weeks on a Tuesday, it displays fine in the calendar. However on the events list it displays

Club Night
From 7th Jun 2011 to 30th Dec 2012

It displays the start and end of the reoccurring event, but not the date it is on.

Having the same issue. Today is June 5th, and all I have displaying in our events box is the following recurring events from as early as March 1st....

Quote:

N & D's wedding anniversary
From 1st Mar 2010 to 1st Mar 2013

E's birthday
From 3rd Mar 2010 to 3rd Mar 2020

J's Birthday
From 16th Mar 2010 to 16th Mar 2020

T & L's Wedding Anniversary
From 19th Apr 2010 to 19th Apr 2013

C's birthday
From 9th Jun 2010 to 9th Jun 2020
Kind of defeats the purpose of the mod when the events don't update :confused: Which is a shame, because its a great mod concept....

Mark4865 06-12-2011 01:45 PM

Hello,

Just noticed my dates are showing incorrectly as it shows 1 day late so I put in say 12/06 in the event but in the widget is shows 13/06. Code shown below how do I fix this please

ob_start();

// %d
$show_count = 10;

$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)) {

if($event['dateline_to'] == 0 )
{
$format = sprintf("On %s%s %s %s",date("j",$event['dateline_from'])+1, date("S",$event['dateline_from']), date("M",$event['dateline_from']), date("Y",$event['dateline_from']));

} else {
$format = sprintf("From %s to %s",date('jS M Y',$event['dateline_from']),date('jS M Y',$event['dateline_to']));
}

$output_bits .= sprintf('
<div class = "cms_widget_post_bit"><a href="calendar.php?do=getinfo&e=%d"><img src="http://www.porscheplanet.co.za/images/misc/motorsport.gif" width="75" height="60" alt="Upcoming Event" HSPACE="7" VSPACE="3" align="left"/><h4 class="cms_widget_post_header"><b>%s</b></a></h4>
<p class="cms_widget_post_content"><b>%s</b></p>

</div> <BR/><BR/>
',$event['eventid'],$event['title'],$format);

}
$output = $output_bits;

ob_end_clean();
return $output;

tomsch 06-12-2011 02:24 PM

Quote:

Originally Posted by Mark4865 (Post 2206647)
Hello,

Just noticed my dates are showing incorrectly as it shows 1 day late so I put in say 12/06 in the event but in the widget is shows 13/06. Code shown below how do I fix this please

as have said before the query used does not work properly in some cases.

there is a small "bug" in the way events sre stored for single day events as well as the query used to get the events does not adjust for time zone. the "bug" has been reported and is now confirmed. if you use the query for the other upcoming events widget i have posted you should have better luck with the dates.

Mark4865 06-12-2011 04:26 PM

Quote:

Originally Posted by tomsch (Post 2206660)
as have said before the query used does not work properly in some cases.

there is a small "bug" in the way events sre stored for single day events as well as the query used to get the events does not adjust for time zone. the "bug" has been reported and is now confirmed. if you use the query for the other upcoming events widget i have posted you should have better luck with the dates.

Thanks for info tomsch appreciate it, any chance you can tell me what sections to change on my code as I have everything set up the way I need it just the date issue. Sorry hope I am not taking advantage here

oldfan 06-16-2011 02:08 AM

Ive tried and tried and I cannot get the block to show up :(

ProFifaLeagues 06-20-2011 07:20 AM

Quote:

Originally Posted by oldfan (Post 2208326)
Ive tried and tried and I cannot get the block to show up :(


Oldfan I see your having the same issues with other mods for the forum block too,if you wish to send me some login info for your admin cp i will come across and add this for you later today.

oldfan 06-22-2011 12:17 PM

Thanks for getting mine to work and adding the custom welcome block rammieone !!

netzwart 07-28-2011 07:13 PM

This MOD is working fine in vB 4.0.8 ! Thank you !!!:)

However, there are two questions left:

1. The dates are shown in english, not in the selected language german, e. g. January instead of Januar. How can I change this ?

2. Is it possible to place the date in front of the event title ? I tried to change the order of the following lines, but it did not work:

Code:

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

Thank you in advance!

Netzwart


All times are GMT. The time now is 04:55 AM.

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.01188 seconds
  • Memory Usage 1,750KB
  • 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
  • (5)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
  • (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