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)

mgurain 04-30-2012 06:17 PM

It did not show anything to me !

edytwinky 06-13-2012 03:51 AM

has this been updated to show birthdays?

ProFifaLeagues 06-13-2012 03:56 AM

Quote:

Originally Posted by edytwinky (Post 2339178)
has this been updated to show birthdays?


No mate but its something you can quickly add in the code if needed.

dlewisr 06-13-2012 07:50 AM

Nice mod. Installed (4.2.0 (Patch 1) and rated

Thank you.

Alibass 07-07-2012 09:11 PM

Works great on 4.2.0 PL2 :):up:

Thanks...

yoximusprime 08-01-2012 12:16 AM

Does this update automatically? I've gotten it looking fine but if I add or remove events it doesn't seem to correct itself.

ProFifaLeagues 08-01-2012 04:44 AM

yes mate auto updates with any events you have

Alibass 08-02-2012 08:03 PM

I have an event scheduled for 2nd Nov 2012 but the display shows 2st Nov 2012 because of the time stamp being on the first.

Is there away to fix this so it displays correctly?

Thanks in advance.

WD

Alibass 08-04-2012 02:56 AM

Quote:

Originally Posted by Alibass (Post 2353799)
I have an event scheduled for 2nd Nov 2012 but the display shows 2st Nov 2012 because of the time stamp being on the first.

Is there away to fix this so it displays correctly?

Thanks in advance.

WD

@ProFifaLeagues

I know you do not support this mod but you must have run across this issue somewhere along the line.

ProFifaLeagues 08-04-2012 04:35 AM

Try using this Code

ob_start();

// %d
$show_count = 4;

$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(" ");
// $format = sprintf("On %s",date('jS M Y',$event['dateline_from'])); <-- broken/disabled
} 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"><center><a href="calendar.php?do=getinfo&e=%d"><h4 class="cms_widget_post_header"><font size="2">%s</font></a></h4>
<p class="cms_widget_post_content"><font size="1">%s </font></p><p><font size="1">&nbsp;</font></p></center>
</div>
'
,$event['eventid'],$event['title'],$format);

}
$output = $output_bits;

ob_end_clean();
return
$output;


All times are GMT. The time now is 06:31 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.01316 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_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