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)
-   -   Mini Mods - Upcoming Events on Top of Pages (https://vborg.vbsupport.ru/showthread.php?t=246092)

Front Range 07-06-2010 10:00 PM

Upcoming Events on Top of Pages
 
1 Attachment(s)
Displays Upcoming Events on the top of the pages FORUMHOME, FORUMDISPLAY and SHOWTHREAD.

After numerous failures in creating this plug-in Dark_Wizard created it for me and deserves all credit for this product.

It does not work with Farcaster's Event Attendance (RSVP)

7/8/10 - Replaced download with Dark_Wizard's as mentioned in Post #20 :up:

Xencored 07-07-2010 07:40 PM

Screen shots mate? :3

Front Range 07-07-2010 08:27 PM

1 Attachment(s)
Screenshot from FORUMDISPAY

COL NIL SATIS 07-07-2010 10:04 PM

will this work for 4.0.3 ????

Front Range 07-07-2010 10:31 PM

I don't know, I'm at 4.0.2 so can't test it but I'm pretty sure it will.

Give it a try, if it works we'll all know. If it doesn't simply delete it.

Dark_Wizard 07-07-2010 10:53 PM

Quote:

Originally Posted by COL NIL SATIS (Post 2066092)
will this work for 4.0.3 ????

Yes it will and it will also work for 4.0.4

Videx 07-07-2010 11:56 PM

I just removed my old manual edit in forumhome (which was working) and installed this but it's not showing. vb404pl1 I do not have Event Attendance installed. I do have New Latest Album Pictures - Forum Home installed.

And, just to make things easier, couldn't we add a single variable right at the beginning - BackgroundColor = #FFFFFF (or whatever the default color is in vb4)?

gwerzal 07-07-2010 11:58 PM

Any chance of some screenshots please.

GeorgeB85 07-08-2010 12:10 AM

Where in admincp do you find the options for this, cause I see it no where?

Dark_Wizard 07-08-2010 12:19 AM

Quote:

Originally Posted by Videx (Post 2066126)
I just removed my old manual edit in forumhome (which was working) and installed this but it's not showing. vb404pl1 I do not have Event Attendance installed. I do have New Latest Album Pictures - Forum Home installed.

And, just to make things easier, couldn't we add a single variable right at the beginning - BackgroundColor = #FFFFFF (or whatever the default color is in vb4)?

Can you post or pm me a link to your site? If you have a modified template you may have to manually edit the templates and add the code under navbar.

Uhmm, Front Range, you hard coded colors?

Trek 07-08-2010 12:25 AM

Does this take into account calendar permissions and such? So that users only see events they have access to?

Front Range 07-08-2010 12:30 AM

Quote:

Originally Posted by Dark_Wizard (Post 2066134)
Uhmm, Front Range, you hard coded colors?

Changed to yours, no longer has hard coded colors.

Front Range 07-08-2010 12:31 AM

Quote:

Originally Posted by GeorgeB85 (Post 2066132)
Where in admincp do you find the options for this, cause I see it no where?

There are no admin options. Install or Unistall.

Videx 07-08-2010 12:48 AM

Quote:

Originally Posted by Dark_Wizard (Post 2066134)
Can you post or pm me a link to your site? If you have a modified template you may have to manually edit the templates and add the code under navbar.

http://www.shannondale.org/forum/forum.php

Yes, I can always go back and add the code from the other thread manually. But if this mod is to supercede that one, just what code am I supposed to add and where? And should that really be necessary?

Front Range 07-08-2010 12:50 AM

Do you have any upcoming events Videx? None are showing in WGO?

Videx 07-08-2010 01:26 AM

We have 2 listed for the 10th. Are you saying this window doesn't show up at all if there are no upcoming events? That would be a nice option I guess. But really, I'd choose to have it there with a message "No events scheduled for the next x days".

That reminds me though - I also have BBR - vB Event Forums installed.

GeorgeB85 07-08-2010 03:28 AM

Would like to know ASAP what to do to get this to work and show up. How to add events, etc.

Front Range 07-08-2010 04:15 AM

Quote:

Originally Posted by Videx (Post 2066152)
We have 2 listed for the 10th. Are you saying this window doesn't show up at all if there are no upcoming events? That would be a nice option I guess. But really, I'd choose to have it there with a message "No events scheduled for the next x days".

That reminds me though - I also have BBR - vB Event Forums installed.

I believe the only conflict is with Farcaster's Event Attendance Videx. Try truning off the Upcoming Events on Top of Pages [Auto Templates] Plugin and pasting the code in all 3 templates as you did previously with the template edit.

Keep in mind that <div id="wgo" class="collapse wgo_block"> only works on FORUMHOME so you'll have to change it for FORUMDISPLAY & SHOWTHREAD.

Quote:

Originally Posted by GeorgeB85 (Post 2066203)
Would like to know ASAP what to do to get this to work and show up. How to add events, etc.

This doesn't add and functionality GeorgeB85, it just takes the Upcoming Events as shown in What's Going On and places it in a more visible place on top of the pages. If you don't have any Upcoming Events in WGO, nothing will show on the top of the pages.

Front Range 07-08-2010 04:16 AM

Quote:

Originally Posted by gwerzal (Post 2066128)
Any chance of some screenshots please.

See post #2

Dark_Wizard 07-08-2010 10:13 AM

Please download this version here and please test it. This is just as I designed it with no colors hard-coded. Calendar permissions are integrated, this has been tested on a default style and is 100% correct in layout across forumhome, forumdisplay and showthread.

This takes into effect the setting in vBulletin Options->Forum Home Page Options->Display Calendar Events? regarding how many days it displays events for.

When you import this product please select "Allow Overwrite".

Updated: Go to post #32 for a new updated version.

Bob

Dark_Wizard 07-08-2010 10:34 AM

Quote:

Originally Posted by Front Range (Post 2066217)
Keep in mind that <div id="wgo" class="collapse wgo_block"> only works on FORUMHOME so you'll have to change it for FORUMDISPLAY & SHOWTHREAD.

It will work across the other pages as forumhome.css is called in a plugin so it should be fine without any changes, I have tested this on a default vb style and is working 100%.

Use the attachment I added in my other post above.

Videx 07-08-2010 11:42 AM

Quote:

Originally Posted by Dark_Wizard (Post 2066282)
Please download this version here and please test it. This is just as I designed it with no colors hard-coded.

Yes, this is working.

Only thing, in the default vb4 style it shows with the same odd gray color that WGO inexplicably uses. Hardly a big deal, but I think the style calls for items at the top to be blue. Valter's shoutbox and Random Album Pictures are both blue.

Dark_Wizard 07-08-2010 11:46 AM

Quote:

Originally Posted by Videx (Post 2066309)
Yes, this is working.

Only thing, in the default vb4 style it shows with the same odd gray color that WGO inexplicably uses. Hardly a big deal, but I think the style calls for items at the top to be blue. Valter's shoutbox and Random Album Pictures are both blue.

Let me fix this using css from each page that the script is called from.

Dark_Wizard 07-08-2010 02:18 PM

The file above has been updated. Videx, please test it and let me know what you think....

FYI, this wasn't oringinally intended for release only as a mod for Front Range.

thecelticway 07-08-2010 02:58 PM

Installed & working~~~~~~:up:

How to change the fonts / colours now

Videx 07-08-2010 03:07 PM

Yes, now it's blue. It's certainly ready for release as a mod right now, so I think you should do it. In a separate thread, of course. FR can close and/or redirect.

Now let me be the first to make a few feature requests:
1) Optional marquee.
2) Some kind of separator (needed in a horizontal layout). Maybe as simple as a couple pipe characters - or make it an option too, so we can set our own separator strings.
3) Optional placement. Right now it's stuck between Valter's shoutbox and Random Album Pictures. It would be nice to optionally place it above or below these.
4) People with lots of styles might still want to be able to manually set the colors.

Front Range 07-08-2010 05:10 PM

Quote:

Originally Posted by Dark_Wizard (Post 2066287)
It will work across the other pages as forumhome.css is called in a plugin so it should be fine without any changes, I have tested this on a default vb style and is working 100%.

Use the attachment I added in my other post above.

Thanks Bob, I replaced my file with yours and it looks great.

Cyricx 07-08-2010 07:23 PM

Does this handle events that have been setup as recurring?

Dark_Wizard 07-08-2010 07:25 PM

Quote:

Originally Posted by Cyricx (Post 2066484)
Does this handle events that have been setup as recurring?

It should work fine.

Cyricx 07-08-2010 07:45 PM

I'll have to give it a try, from peeking at the code it appeared like it would show the first occurance, but that's it.

Dark_Wizard 07-08-2010 08:12 PM

Quote:

Originally Posted by Cyricx (Post 2066494)
I'll have to give it a try, from peeking at the code it appeared like it would show the first occurance, but that's it.

How so? If you look at the code it pulls x events from the events table where x is the amount of days selected in the options showevents so there is nothing limiting the events and reoccurring has nothing to do with that as long as it is inside the time frame.

Dark_Wizard 07-09-2010 12:29 AM

1 Attachment(s)
Here is an updated version that places a comma after the event with the exception of the last event or a single event.

Enjoy!
Bob

GeorgeB85 07-09-2010 12:53 AM

Quote:

Originally Posted by Front Range (Post 2066217)


This doesn't add and functionality GeorgeB85, it just takes the Upcoming Events as shown in What's Going On and places it in a more visible place on top of the pages. If you don't have any Upcoming Events in WGO, nothing will show on the top of the pages.

That is just a bit stupid. What if people don't want to do it that way, and just want to use your mod to easily create information about upcoming events.

I am sure most will like it, but I will pass for now...thanks for answering my questions.

Videx 07-09-2010 01:09 AM

Quote:

Originally Posted by Dark_Wizard (Post 2066594)
Here is an updated version that places a comma after the event with the exception of the last event or a single event.

A step in the right direction. But a little comma doesn't really help.
Quote:

Originally Posted by GeorgeB85 (Post 2066602)
That is just a bit stupid. What if people don't want to do it that way, and just want to use your mod to easily create information about upcoming events.

You have simply misinterpreted the intent of this mod. I'm not sure what you're trying to do that you can't. Your beef may be with the calendar.

GeorgeB85 07-09-2010 03:24 AM

Quote:

Originally Posted by Videx (Post 2066609)
You have simply misinterpreted the intent of this mod. I'm not sure what you're trying to do that you can't. Your beef may be with the calendar.

So, you have to create events via the calendar, and then those are what is displayed correct? Does it begin to display it the moment you add the event, till the day of the event, or how long from posting the event, does it show?

WhiskeyOSS 07-09-2010 11:06 AM

Where is this located in my admin cp I do not see it so I can edit it ? Got a screen shot ?

rootrider 07-09-2010 11:20 AM

thank you so much. Now, in what way (exactly) does this conflict with Farcaster's Event Attendance mod? Does this mod literally break some functionality of the event attendance mod?

Thanks..

Dark_Wizard 07-09-2010 12:19 PM

Quote:

Originally Posted by WhiskeyOSS (Post 2066779)
Where is this located in my admin cp I do not see it so I can edit it ? Got a screen shot ?

The only thing that can be done in the admincp is to set how many days you see the upcoming events and this is done by vb's option -> showevents.

Quote:

Originally Posted by rootrider (Post 2066787)
thank you so much. Now, in what way (exactly) does this conflict with Farcaster's Event Attendance mod? Does this mod literally break some functionality of the event attendance mod?

Thanks..

This doesn't break his mod but his mod has an array issue that will surface when this mod is used along side his and when someone tries to rsvp to an event it shows.

Dark_Wizard 07-09-2010 12:23 PM

Quote:

Originally Posted by Videx (Post 2066609)
A step in the right direction. But a little comma doesn't really help.You have simply misinterpreted the intent of this mod. I'm not sure what you're trying to do that you can't. Your beef may be with the calendar.

This wasn't to be a released mod only something done for FR. My time is limited to add anything as I am unemployed and doing paid mods for others so I can pay my bills so this means I don't have the time right now to add the functionality you are asking unless you want to bring this to a paid mod....

Lastly, I threw the comma piece in there so it at least looks presentable so I'm sorry it doesn't help you.

Videx 07-09-2010 12:33 PM

Quote:

Originally Posted by GeorgeB85 (Post 2066654)
So, you have to create events via the calendar, and then those are what is displayed correct? Does it begin to display it the moment you add the event, till the day of the event, or how long from posting the event, does it show?

Correct. Yes, it may begin displaying it the moment you add the event (obviously you'll need to refresh the page). This setting is set by you - see post #20. I have mine set to 3 days, so Saturday's events will show from Wednesday to Saturday.

You may also find BBR - vB Event Forums useful. It's got a few bugs, but allows you to add all kinds of info about events in a thread rather than trying to squeeze it all into the calendar.


All times are GMT. The time now is 11:36 PM.

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.01275 seconds
  • Memory Usage 1,837KB
  • 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
  • (22)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