Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Upcoming Events on Top of Pages Details »»
Upcoming Events on Top of Pages
Version: 1.00, by Front Range Front Range is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.0.1 Rating:
Released: 01-27-2010 Last Update: Never Installs: 52
Template Edits
Re-useable Code Translations  
No support by the author.

This is what I did to make Upcoming Events display nicely on the top of Forumhome:

Added below {vb:raw header}{vb:raw navbar}

<!-- upcomingevents -->
<div id="wgo" class="collapse wgo_block">
<h2>
<span>
Upcoming Events
</span>
</h2>
<div class="floatcontainer">
<div id="wgo_events" class="wgo_subblock">
<ol class="commalist">
{vb:raw upcomingevents}
</ol>
</div>
</dl>
</div>
</div>
<!-- upcomingevents -->

Note that the commalist class reduces the space this takes and displays nicely.

If anyone can help by explaining how this can be added to all pages I would be grateful.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 04-29-2010, 07:12 PM
rrogerstx rrogerstx is offline
 
Join Date: Apr 2010
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any chance this could be modified to work in a sideblock? I already have a "last posts" scoll at the top of my page but I'd like to add upcoming events to the sideblock.

Does anyone know if this could work as a "custom html/php" sideblock?
Reply With Quote
  #63  
Old 04-29-2010, 07:42 PM
Front Range 4x4 Front Range 4x4 is offline
 
Join Date: Jan 2009
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kfrosty View Post
Installed. Has anybody tried to get this working in the FORUMDISPLAY template? It shows up but no events but works fine in the FORUMHOME template.
My hope in posting this was that someone would make it usable on FORUMDISPLAY, so far there haven't been any takers.

Quote:
Originally Posted by rrogerstx View Post
Any chance this could be modified to work in a sideblock? I already have a "last posts" scoll at the top of my page but I'd like to add upcoming events to the sideblock.

Does anyone know if this could work as a "custom html/php" sideblock?
I only use the forum so I'm no help, sorry.
Reply With Quote
  #64  
Old 04-29-2010, 07:48 PM
rrogerstx rrogerstx is offline
 
Join Date: Apr 2010
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Front Range 4x4 View Post
My hope in posting this was that someone would make it usable on FORUMDISPLAY, so far there haven't been any takers.



I only use the forum so I'm no help, sorry.
Sideblocks are actually part of the forum. If you enable sideblocks (and create a block) it appears as a column, either on the left or the right side of the forums, where you can add last forum posts, last blog entries, links to cms articles and what not. I'd like to use your code as a sideblock but I'm a serious noob to vbulletin..

You can see an example of the sideblock here: http://edmondconnect.com/forum.php at my site. It's the Welcome box on the right side of the forums. The block I have there now is pulling the lastest CMS articles. But there's an option for custom php/html blocks that I though perhaps your code could be put in and get the latest events to come up...unfortunately I just don't know how to implement it.

Just a thought..
Reply With Quote
  #65  
Old 04-29-2010, 08:01 PM
Front Range 4x4 Front Range 4x4 is offline
 
Join Date: Jan 2009
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Of course you're right, thanks for the reminder. I should have said I don't use any side columns.

I would if there was any similarity between forum blocks and widgets but for some reason they're totally different.
Reply With Quote
  #66  
Old 05-02-2010, 06:46 PM
darkdevilz darkdevilz is offline
 
Join Date: Sep 2009
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Front Range 4x4 thanks for this modification. it is working very very well. and I ahve a question. can we make this automatic. if there is an event event box will be shown but there isnt any event event boz wont shown. I make that but now there isnt any event and event box is empty..
Reply With Quote
  #67  
Old 05-02-2010, 08:07 PM
Front Range 4x4 Front Range 4x4 is offline
 
Join Date: Jan 2009
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would think so but I'm no programmer so don't really understand the if/else stuff to make it work. Maybe someone could help out on that. It was my hope someone would make a plugin to show this on forumdisplay & showthread but that hasn't happened and my attempts failed.
Reply With Quote
  #68  
Old 05-08-2010, 02:07 AM
goran424's Avatar
goran424 goran424 is offline
 
Join Date: Feb 2010
Location: Thailand
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Front Range, thanks, this is something that I really need.

Just one more thing: is there a way to add marquee so list of upcoming events moves from left to right or vice versa?
Reply With Quote
  #69  
Old 05-08-2010, 02:29 AM
Front Range 4x4 Front Range 4x4 is offline
 
Join Date: Jan 2009
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure, just wrap marquee BBCode around it.

<marquee onmouseover=this.stop() onmouseout=this.start() direction="left" scrolldelay="9" scrollamount="2">{vb:raw upcomingevents}</MARQUEE>
Reply With Quote
  #70  
Old 05-08-2010, 02:36 AM
goran424's Avatar
goran424 goran424 is offline
 
Join Date: Feb 2010
Location: Thailand
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works perfect FR4x4, you rock!
Reply With Quote
  #71  
Old 05-08-2010, 02:50 AM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Front Range 4x4 View Post
Sure, just wrap marquee BBCode around it.

<marquee onmouseover=this.stop() onmouseout=this.start() direction="left" scrolldelay="9" scrollamount="2">{vb:raw upcomingevents}</MARQUEE>
Hm. I wonder why the scrolldelay has no effect (ff & ie8)?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:30 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07312 seconds
  • Memory Usage 2,323KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete