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 02-09-2011 10:46 AM

2-) another issue i have right now is when an even is on Feb 9th, as soon as clock turn to FEB 9th, the even is gone, is it possible to keep it until end of the current date?

Second that important point for me as well

bitbender 02-10-2011 11:45 AM

Hi Mark --

Getting that image like you want it is going to be some template work as they are calling a function to make that line up. To do what is wanted we'd have to track back, clone the function and makes changes, then change the widget to call your new function. I'd have to dig into that and I'm a bit crunched for time for the next 10 days or so.

Btw - Never change the base VBulletin templates - always make a new style and then modify the template to be changed in YOUR style - Save you it will, at upgrade time - bcause the default VB style will always work. I learned many years ago not to try to fool mother nature :)

Now, you may ask, how in tarnation would I do that? Simple - Export the default style to your 'puter as an xml file and then reimport it - following the guideline below;

Create a new style with no parent style and give it a NEW name - Like "MarksTest".

Leave it as non-selectable by users.
================================================
Now - You have your own little test style that you can do what you want with and no one but yor hairdresser will know for sure :) Once you get stuff like you want, you can publish your style to your community by making it selectable. Or cast it into the unknown depths of the bit-bucket and start over.

2nd post - Check your recurring dates/times - make sure the end time is beyond what you are looking at. On the site I am building, there is an event that takes place this evening, but my calendar shows it and so does this mod as a widget in the CMS.

--> I also added location selection logic to seperate by location (based upon a rexexp i am looking for in the title field) so that I can list music events by location on location specific CMS pages, or lump them all together in a sidebar by using the basic widget above.

Mark4865 02-10-2011 02:08 PM

thanks for all the effort and info will have to think seriously about this as I dont want to mess with templates

Mark4865 02-11-2011 05:12 AM

Am I to understand this will work fine if I dont want the images on the side but leave them as is in their current position??

I just want the event title, date of event and a thumbnail picture, is that possible?? If so please advise exact code I need. Thanks in advance sorry for all the questions.

Mark

way2xtreme 02-11-2011 07:22 PM

hi, is there a way to show just the starting date for an event the carries over 2 days. I'd like to make this look tidy and neat.. thanks

otterag 03-11-2011 06:43 PM

a problem i am having with this is that i have not found a mod that will show a recurring event in an upcoming event widget on a daily basis instead of the range of its repeats.
I have the same type of event occuring every Friday at 3:00pm and instead of making 1 event for each Friday for the entire year i have made 1 that recurs every Friday for the rest of the year and my upcoming events widget shows instead Friday March 1st - 700pm it shows From March 1st to March 31st

is there any way to change the display output on this

from current
Event Name
From 1st March 2011 to 31st March 2011

to
Event Name
March 1st - 7:00pm

this is something that is really bothering me and i cant figure out how to make the changes after reading these boards for a few days and looking at the code. help would be greatly appreciated.

southeastminis 03-20-2011 10:47 PM

I've installed this and it works great, however I am trying to change the color of the background (where the events are actually posted.)

Anyone know what Stylevar this would be under?

Mark4865 04-27-2011 11:00 AM

Hello everyone need help please.

I have used this in the CMS with a few changes (images on right text on left) works great BUT cant get images to show. They show up fine in the actual event but not in the widget here is an example of my image address for one image http://www.mywebsite.co.za/temp%20lo...Beach_2010.jpg

this is the code I have used, how do I get the image to show

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.YourForum.com/forum/images/event.jpg" 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;

Voeltz 04-28-2011 03:01 AM

This.. is.. AMAZING!! :D thanks, works wonderfully:
http://goo.gl/p2SqP

tomsch 05-06-2011 09:58 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=231365" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=231365</a>

this post has a corrected query that take into account time zone and dst.


All times are GMT. The time now is 04:14 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.01074 seconds
  • Memory Usage 1,746KB
  • 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)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