Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

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
  #52  
Old 04-04-2010, 09:45 PM
tiga2 tiga2 is offline
 
Join Date: Feb 2010
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was trying to Put the Text "Upcoming Events:" beside the events
But it still makes a Line break before it lists the Events.. Any Ideas?

HTML Code:
<!-- upcomingevents -->
<div id="wgo" class="collapse wgo_block">
<div class="floatcontainer">
<div id="wgo_events" class="wgo_subblock">
Upcoming Events:
<ol class="commalist">
{vb:raw upcomingevents}
</ol>
</div>
</dl>
</div>
</div>
<!-- upcomingevents -->
Reply With Quote
  #53  
Old 04-04-2010, 10:27 PM
Front Range 4x4 Front Range 4x4 is offline
 
Join Date: Jan 2009
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can use any code you would like, most of what I provided was formatting the way I use it. Play around with it using {vb:raw upcomingevents} to get the formatting the way you like it.
Reply With Quote
  #54  
Old 04-05-2010, 02:22 PM
customcolor customcolor is offline
 
Join Date: Mar 2010
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i added the code and it works great for us...we dont have many events so some may even forget to check the calender...so adding this will remind people i also added this to under the navbar so it wouldnt split the header and navbar in our style sheet...code::::

{vb:raw header}

{vb:raw navbar}

<!-- upcomingevents -->
<div id="wgo" class="collapse wgo_block">
<h2>
<span>
Up and Coming Calendered 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 -->




Link to our forums home..like i say there isnt many things going on so there may not be something showing all the time.
Reply With Quote
  #55  
Old 04-07-2010, 06:21 AM
deadbolt80 deadbolt80 is offline
 
Join Date: Jan 2010
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Front Range 4x4 View Post
Can you post a link?

My site is 6thGenMaxima.org.. not sure if you see the upcoming events if you're not logged in, but try anyway.
Reply With Quote
  #56  
Old 04-07-2010, 01:37 PM
Front Range 4x4 Front Range 4x4 is offline
 
Join Date: Jan 2009
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't see anything in the WGO deadbolt, maybe it's permissions. Is anything showing there for you? If it's not showing in the standard location it surely won't show at the top of the page either.
Reply With Quote
  #57  
Old 04-07-2010, 11:08 PM
deadbolt80 deadbolt80 is offline
 
Join Date: Jan 2010
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see it in the wgo section... I just want the list of events on the top of my forums page to be centered and instead of "," in between, for it to be stacked.... did I explain myself correctly? lol.

What permissions would I need to adjust for you to see it?
Reply With Quote
  #58  
Old 04-08-2010, 10:54 PM
Front Range 4x4 Front Range 4x4 is offline
 
Join Date: Jan 2009
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't need to see it now that I understand what you're trying to do. You want it to look as it does in WGO, right?

Just look at the WGO section of the FORUMHOME template and copy & paste in place of this:

<div id="wgo_events" class="wgo_subblock">
<ol class="commalist">
{vb:raw upcomingevents}
</ol>

You might have to diddle (technical term) with it a bit but that should do it.
Reply With Quote
  #59  
Old 04-18-2010, 07:10 AM
betts02's Avatar
betts02 betts02 is offline
 
Join Date: Jun 2009
Posts: 910
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great under each other with tht code, cheers
Reply With Quote
  #60  
Old 04-18-2010, 11:51 AM
Front Range 4x4 Front Range 4x4 is offline
 
Join Date: Jan 2009
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by deadbolt80 View Post
I see it in the wgo section... I just want the list of events on the top of my forums page to be centered and instead of "," in between, for it to be stacked.... did I explain myself correctly? lol.
Here's how you do it to have the events stacked/listed one on top of the other.


<!-- upcomingevents -->
<div id="wgo" class="collapse wgo_block">
<h2>
<span>
<big>Upcoming Events</big>
</span>
</h2>
<div class="floatcontainer">
<div style="background: #F7FE2E">
<div id="wgo_events" class="wgo_subblock">
{vb:raw upcomingevents}
</div>
</div>
</div>
</div>
<!-- upcomingevents -->
Reply With Quote
  #61  
Old 04-24-2010, 12:46 PM
kfrosty kfrosty is offline
 
Join Date: Mar 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

Thanks.
Reply With Quote
Reply

Thread Tools

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 11:04 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.10285 seconds
  • Memory Usage 2,320KB
  • 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
  • (1)bbcode_html
  • (2)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