vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Home Enhancements - Upcoming Events on Top of Pages (https://vborg.vbsupport.ru/showthread.php?t=234407)

Front Range 01-27-2010 10:00 PM

Upcoming Events on Top of Pages
 
1 Attachment(s)
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.

Skyrider 01-28-2010 10:42 PM

Screenies would be great :)

utahraves 01-28-2010 11:28 PM

Does not work on mine. I placed in ForumHome underneath the options you selected and still do not see the actual events. I have a LOT of events being an event board and all...

Uninstalled/Removed code.
Provide screen shots and try again :)

Front Range 4x4 01-29-2010 12:28 AM

1 Attachment(s)
Okay, I'm adding a bit more code copied directly from my edited Forumhome to make sure I provided it correctly.

</head>
<body>
{vb:raw header}{vb:raw navbar}
<!-- upcomingevents -->
<div id="wgo" class="collapse wgo_block">
<h2>
<span>
Front Range 4x4 - Upcoming Runs
</span>
</h2>
<div class="floatcontainer">
<div id="wgo_events" class="wgo_subblock">
<ol class="commalist">
{vb:raw upcomingevents}
</ol>
</div>
</dl>
</div>
</div>
<!-- upcomingevents -->
<vb:if condition="$show['sidebar']">

And a screen shot:

Videx 01-29-2010 01:01 AM

Ya, I tried to get it into a forum block and had no luck either.

durdan1 01-29-2010 01:04 AM

Quote:

Originally Posted by Front Range 4x4 (Post 1969433)
Okay, I'm adding a bit more code copied directly from my edited Forumhome to make sure I provided it correctly.

</head>
<body>
{vb:raw header}{vb:raw navbar}
<!-- upcomingevents -->
<div id="wgo" class="collapse wgo_block">
<h2>
<span>
Front Range 4x4 - Upcoming Runs
</span>
</h2>
<div class="floatcontainer">
<div id="wgo_events" class="wgo_subblock">
<ol class="commalist">
{vb:raw upcomingevents}
</ol>
</div>
</dl>
</div>
</div>
<!-- upcomingevents -->
<vb:if condition="$show['sidebar']">

And a screen shot:

Hey there, sorry to change subject but what donation mod are you using for your forum. I like that meter.

TimberFloorAu 01-29-2010 01:04 AM

You are using the block WGO ( whats going on ) isnt that conflicting with the actual WGO block for whats going on

Ahh strike that you havent got it collpase/expand so looks fine :)

Front Range 01-29-2010 02:04 AM

Sorry but I have no idea why anyone would have different results than I'm having. I did the same basic concept on 3.8 too. I just updated to the latest (4.01?) and had to revert the forumhome template which eliminated the Upcoming Events so just pasted what I posted here and it worked fine.

See it in person: http://frontrange4x4.com

I'd like to get a forum block with this too but don't "get" them yet. I do use the widget available.

The donation mod is here: http://www.phpjabbers.com/paypal-donate-script/ but you should know you have to enter the donations received manually by the admin script.

Front Range 01-29-2010 09:39 PM

Quote:

Originally Posted by utahraves (Post 1969401)
Does not work on mine. I placed in ForumHome underneath the options you selected and still do not see the actual events. I have a LOT of events being an event board and all...

Uninstalled/Removed code.
Provide screen shots and try again :)

Have you tried this again utahraves? My site is very dependent on events and my users rely on this showing. I'll eventually get it on all pages but my limited knowledge is limiting me. If you use the code I provided on forumhome and the events are showing in WGO they have to show up on top too.

I just changed the notices to the same format and that works just as well.

asuccar 01-30-2010 02:47 AM

Heya,

I luv what you've done with the site...looks really cool!

Please be patient with my question, i'm a real novice:-)

Where do I actually place that code you displayed? Is it through admincp? Also, which widget are you using on the front page for 'upcoming runs'?

Cheers.

Front Range 01-30-2010 03:07 AM

admincp->styles & templates ->search in templates ->search for forumhome

Open forumhome and paste it under the {vb:raw header}{vb:raw navbar} tags

Widget: https://vborg.vbsupport.ru/showthread.php?t=231365
Read through the thread to find the change of time fix. It does work.

TalkVirginia 01-30-2010 07:18 AM

This is so VB3.. Need to start thinking VB4.x. We need to get away from putting everything on the ForumHome and put it on the CMS. That's where stuff belongs. Including recent threads, etc. A Forum is a forum.. all this other stuff just makes it look trashy and cluttered.

Front Range 01-30-2010 12:40 PM

So now there's a right way and it's your way? :rolleyes:

Videx 01-30-2010 12:42 PM

Quote:

Originally Posted by TalkVirginia (Post 1970308)
all this other stuff just makes it look trashy and cluttered.

I won't really disagree, as I wouldn't put "recent threads" on forumhome myself, but I do put it out on the CMS. But I think it's all about options. Being a community forum, our calendar is pretty important, and I'd like the option of having it in both places. Right now someone has to click through to the calendar to see what's on for today and that sucks.

Front Range 01-30-2010 10:23 PM

The calendar is critical and having the events on top of the forum is the only way to go for my site, my users love it. Anyone who doesn't like it shouldn't use, life's like that.

Trek 01-31-2010 02:55 AM

Looks good, I've tagged it until I do this, but wanted to say thanks for sharing!

asuccar 01-31-2010 07:19 AM

Do I customise any of the code?

Front Range 01-31-2010 12:30 PM

You can any way you'd like but I suggest starting with what I have to see it first. I have it reduced to consume as little space as possible.

edytwinky 01-31-2010 04:05 PM

It'd be cool if we could get upcoming events to appear on the sideblock as well

Front Range 02-02-2010 02:09 PM

I agree, it's my hope someone can show us how to do that.

TimberFloorAu 02-03-2010 06:49 PM

Good work FrontRange

How annoying is it when you release code, and then get hijacked by idiots. Dont these people realise this is your code you are sharing, and not forcing people to use.

Keep it up :up:

Front Range 02-03-2010 07:45 PM

This is just a little template mod I like and use. My sympathies go to coders who come up with a great mod only to have people being critical because it doesn't suit their specific need. :erm:

InsomniacP 02-03-2010 08:28 PM

Great addition... Nice work fella! Keep it up

Front Range 02-04-2010 01:03 AM

Thank you InsomniacP.

Videx 02-04-2010 02:22 AM

Well, I couldn't hold out much longer, so marked as installed. Only problem - the background behind the words "upcoming events" is dark gray instead of that light blue color the vb4 default style uses.?

Front Range 02-05-2010 01:21 PM

Quote:

Originally Posted by Videx (Post 1974371)
Well, I couldn't hold out much longer, so marked as installed. Only problem - the background behind the words "upcoming events" is dark gray instead of that light blue color the vb4 default style uses.?

I used the WGO div style because I like WGO to match the forums colors. You can change the color used in WGO to match your forums which IMHO looks better than the gray. I'm not sure how to change it another way, sorry.

betts02 03-08-2010 09:11 PM

Had this installed yesterday and worked fine, removed the code today due to an error, never worked so i placed the code back as i did before

now all i get is the events box, thst it. nothing ele just the upcoing events box with n o events under it

any ideas ?

Front Range 4x4 03-08-2010 09:24 PM

Only thing would be leaving out {vb:raw upcomingevents}

Do you have it turned on? Are they showing at the bottom of forumhome?

I just looked and you did leave it out.

betts02 03-08-2010 09:36 PM

In FORUMHOME i have :

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

Is this correct ?

Front Range 4x4 03-08-2010 09:50 PM

Yes, that's correct but I do not see anything on the bottom of the page which, unless you removed it, means you don't have it turned on in your admincp

betts02 03-08-2010 10:10 PM

I have not turned anything off, so where would the option to turn it on be ?

sorry i am new to vb

Front Range 4x4 03-08-2010 10:26 PM

admincp->settings->options->forum homepage options->Display Calendar Events

Choose the number of upcoming days that you wish to display upcoming events from.

Entering 0 disables upcoming events

betts02 03-08-2010 10:41 PM

It was set to 1, i changed it to 5 and now all is working fine, many thanks

Front Range 4x4 03-08-2010 10:57 PM

Glad to hear that!

cindy helmond 03-12-2010 09:13 PM

nice installed but can you add an button before the tekst ?thx

Front Range 4x4 03-12-2010 09:35 PM

What kind of button Cindy?

cindy helmond 03-12-2010 09:42 PM

Quote:

Originally Posted by Front Range 4x4 (Post 2002435)
What kind of button Cindy?

hi i mean that you can see like if someone has an birthsday on forumhome there is an cake icon

Front Range 4x4 03-12-2010 10:07 PM

Sure, I don't use birthdays there myself but you can put something like this which I use elsewhere on the top of the page:

<vb:if condition="$show['birthdays']">
<ol class="commalist" id="wgo_onlineusers_list">
<img src="images/smilies/birthday.gif"> Happy Birthday to{vb:raw birthdays}!
</vb:if>

You might have to check the image path but that's close.

Basically you can take anything from WGO and paste it in there and by using <ol class="commalist" id="wgo_onlineusers_list"> you make it into a comma list instead vertical like in WGO to save space.

SGT.Viper 03-26-2010 08:23 PM

awcoding has a really good Donation bar. Check it out www.clanteamxtreme.com/forums

Its not alot of money too!!

Front Range 03-27-2010 12:34 AM

VSa - PayPal Donate is better and free.


All times are GMT. The time now is 07:51 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.01520 seconds
  • Memory Usage 1,818KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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