vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Event Forums (https://vborg.vbsupport.ru/showthread.php?t=93308)

endquote 07-30-2005 10:00 PM

Event Forums
 
Note: This plugin has been discontinued and taken over here. Installing this plugin is *not* recommended.

The plugin creates a tight integration between a calendar and a forum.
  • When an event is created in a calendar, a corresponding thread is created in its forum.
  • When an event is deleted, its thread is deleted.
  • When a thread is deleted, its event is deleted.
  • When an event is edited, its thread is edited.
  • When a thread is edited via quick edit, its event is edited.
  • Links to event details are redirected to the thread.
  • New post links in event forums are redirected to new event forms, except for moderators.
  • Advanced editing on a thread is redirected to event edit.

To set up your calendar/forum pairs, look under "Event Forums" in "vBulletin Options" in admincp.

There is also one template change. In calendar_showeventsbit, change:

PHP Code:

<td class="tcat">$eventinfo[title]</td

to:

PHP Code:

<td class="tcat"><if condition="$eventinfo[nwt_threadid]"><a href="showthread.php?t=$eventinfo[nwt_threadid]"></if>$eventinfo[title]<if condition="$eventinfo[nwt_threadid]"></a></if></td

I run a forum at http://nwtekno.org/ that is heavily oriented to calendar data, so this is useful to me, though I'm not sure how useful it will be to others. Mostly I'm putting this up for critique by people who know more than me.

One thing I'm wondering is how to get the included template (nwteventforums_calendar_showeventsbit) to replace calendar_showeventsbit when installed. Or should I just tell people to copy/paste from one to another?

EasyTarget 07-31-2005 08:12 PM

wow, I think this is a very useful/cool idea.

are the thread/event deletion features optional?

I'd like the ability for something like this to read data from a specified forum and then create a calender event from the data it gathers. Or maybe in post options or something under a post there can be a box to include/scan/add this post to the calender. (if the scan is too much, maybe just a popup box like w/ attachments and the user can put the needed calender info into that box.)

FD929 07-31-2005 09:10 PM

I have been waiting for this since February! Thank you so much!!

1 problem. I'm getting database errors on install. Then the product installs, but not properly. It is attempting to install to a database I do not have.

Classname : vb_database

kaihawaii 07-31-2005 09:28 PM

FD929: try using the Manage Produsts > Import Button, not the Plugin-Import Option.

kaihawaii 07-31-2005 09:29 PM

where can i access this cool extension after installation? how can i configure the calender and boardname?

FD929 07-31-2005 09:50 PM

Quote:

Originally Posted by kaihawaii
FD929: try using the Manage Produsts > Import Button, not the Plugin-Import Option.

That is what I did. This is a product. You didn't get any sql errors?

AN-net 07-31-2005 10:10 PM

this isnt a relase so it doesnt belong here.

FD929 07-31-2005 10:11 PM

Table prefixes aren't being considered.

FD929 07-31-2005 10:31 PM

Quote:

Originally Posted by AN-net
this isnt a relase so it doesnt belong here.

Don't tease me. I need this one. :(

Neal-UK 07-31-2005 11:11 PM

Quote:

Originally Posted by FD929
Don't tease me. I need this one. :(

Can you edit the file for those whose database have a prefix, thanks

endquote 07-31-2005 11:27 PM

Updated to support table prefixes on installation.

The product can be configured under "Event Forums" in "vBulletin Options" in the admincp.

Note that I've only tested this on my dev box. It shouldn't cause any damage, but let me know if you notice problems.

FD929 07-31-2005 11:46 PM

1. You missed one of the " . PREFIX . " comments.
Code:

<uninstallcode><![CDATA[$db->query("ALTER TABLE `event` DROP `nwt_threadid`");
2. The script is not adding Event Forums in the vBulletin Options. :)

endquote 07-31-2005 11:50 PM

Quote:

Originally Posted by FD929
1. You missed one of the " . PREFIX . " comments.
Code:

<uninstallcode><![CDATA[$db->query("ALTER TABLE `event` DROP `nwt_threadid`");

Oops. Fixed.

Quote:

Originally Posted by FD929
2. The script is not adding Event Forums in the vBulletin Options. :)

Hm, it should be... isn't that what the <phrases> bit at the bottom should be doing?

FD929 08-01-2005 12:14 AM

The options field that should be under:
Code:

                        <phrase name="setting_nwteventforums_map_title"><![CDATA[Calendar/Forum Map]]></phrase>
                        <phrase name="settinggroup_nwteventforums"><![CDATA[Event Forums]]></phrase>
                </phrasetype>
        </phrases>

is blank.
Code:

        <options>
        </options>


theArchitect 08-01-2005 12:24 AM

Just a couple of questions. Can it only post to one forum?

I have a lot of events on my board too, but these events have their own forums. So it would be nice to put calendar events in their own forums.

Also, what happens if I move a thread? Sometimes I will move threads to a hidden forum called trash, will this delete the event from the calendar?

endquote 08-01-2005 12:25 AM

Quote:

Originally Posted by FD929
The options field that should be under:
Code:

                        <phrase name="setting_nwteventforums_map_title"><![CDATA[Calendar/Forum Map]]></phrase>
                        <phrase name="settinggroup_nwteventforums"><![CDATA[Event Forums]]></phrase>
                </phrasetype>
        </phrases>

is blank.
Code:

        <options>
        </options>


Yeah, I'm not sure what to put there, though. I've asked Kirby in another thread.

endquote 08-01-2005 12:27 AM

Quote:

Originally Posted by theArchitect
Just a couple of questions. Can it only post to one forum?

It creates a mapping between calendars and forums. So on my setup I have an "all ages events" calendar, a "club nights" calendar, and corresponding forums. You could have as many of these pairs as you want.

Quote:

Originally Posted by theArchitect
Also, what happens if I move a thread? Sometimes I will move threads to a hidden forum called trash, will this delete the event from the calendar?

The event would still be on the calendar. It would link to its position in the new forum, but since it's hidden the user would likely get a permissions error.

cmiller1014 08-01-2005 03:26 AM

This sounds like a neat idea. Our site relies heavily on the calendar, and this will be great!

Thanks

Neal-UK 08-01-2005 07:40 AM

Quote:

Originally Posted by cmiller1014
This sounds like a neat idea. Our site relies heavily on the calendar, and this will be great!

Thanks

installed okay but i can't seem to find the settings for it

Cyricx 08-01-2005 12:42 PM

This is awesome, I can't wait to give this a whirl on my test forums :)

Great Job!!!!

FleaBag 08-01-2005 12:51 PM

I really like this, and I'm not trying to play down your release with these points...

It could do with having some content from the threads in the actual event, and perhaps a few comments underneath, with a link then leading on to the thread.
The thread also, does not contain the actual date of the event unless the user posts it - something few of my users rarely do as they rely on the calendar's date selection.

Excellent work, thanks a lot!

I also started putting some thought into how we could integrate a little of Kirby's hack here [www.vbulletin.org/forum/showthread.php?t=93074] to allow the date range of the event to be added in a field of the thread, and allow the forum to be sorted then in order of upcoming event.

A calendar search would also come in handy, such as in this hack [www.vbulletin.org/forum/showthread.php?t=91066] - that one also allows comments, not the same as what you're doing here - but it could open up some idea of how to include the thread comments on the calendar page.

I'm really loving how this is looking! :)

Neal-UK 08-01-2005 06:17 PM

anyone know how to adjust the settings, i cant see anyting in admin cp for this hack

C.Birch 08-01-2005 08:14 PM

that parts not been added to the hack by the looks of it.

Neal-UK 08-01-2005 08:17 PM

Quote:

Originally Posted by C.Birch
that parts not been added to the hack by the looks of it.

lol, at least it's not my fault then, cheers. I've e-mail the thread starter.

C.Birch 08-03-2005 07:18 PM

any reply?

endquote 08-03-2005 07:28 PM

Nope. I'll probably have to wait til the docs come out with Gold and then repost.

endquote 08-03-2005 07:35 PM

Quote:

Originally Posted by FleaBag
I really like this, and I'm not trying to play down your release with these points...

It could do with having some content from the threads in the actual event, and perhaps a few comments underneath, with a link then leading on to the thread.

The first post of the thread is included in the event.
Quote:

Originally Posted by FleaBag
The thread also, does not contain the actual date of the event unless the user posts it - something few of my users rarely do as they rely on the calendar's date selection.

The plugin forces the date and any custom calendar fields to appear in the subject of the thread.

Andreas 08-03-2005 08:19 PM

The settings must be set volatile=yes, otherwise the Product Manager won't catch them.

endquote 08-03-2005 08:29 PM

Ah okay, that's probably my problem. I didn't understand what that setting meant. I'll post a new version soon.

endquote 08-04-2005 03:54 PM

After some help from Kirby, I have edited the script to properly install the admin cp settings. I also added a note about a template change. Feel free to give it a shot.

Neal-UK 08-04-2005 03:55 PM

Quote:

Originally Posted by endquote
After some help from Kirby, I have edited the script to properly install the admin cp settings. I also added a note about a template change. Feel free to give it a shot.

ace, was just reading this thread. Will i have to delete the plug in bits for the first version as when i have imported a new plug in before, it hasnt overwritten but created 2 instances of it?

Neal-UK 08-04-2005 04:02 PM

Quote:

Originally Posted by nealparry
ace, was just reading this thread. Will i have to delete the plug in bits for the first version as when i have imported a new plug in before, it hasnt overwritten but created 2 instances of it?

ignore that, forgot it was a product

Neal-UK 08-04-2005 04:10 PM

Quote:

Originally Posted by nealparry
ignore that, forgot it was a product

Oh eck!

Getting this error when I try to delete a thread in the calendar forum:

Database error in vBulletin 3.5.0 Release Candidate 1:

Invalid SQL:

SELECT nwt_eventid
FROM FORUMthread
WHERE threadid = 1635;

MySQL Error : Unknown column 'nwt_eventid' in 'field list'
Error Number : 1054
Date : Thursday, August 4th 2005 @ 05:09:46 PM
Script : http://www.burnleyweb.com/forum/inlinemod.php
Referrer : http://www.burnleyweb.com/forum/inlinemod.php

Neal-UK 08-04-2005 04:11 PM

Quote:

Originally Posted by nealparry
Oh eck!

Getting this error when I try to delete a thread in the calendar forum:

Database error in vBulletin 3.5.0 Release Candidate 1:

Invalid SQL:

SELECT nwt_eventid
FROM FORUMthread
WHERE threadid = 1635;

MySQL Error : Unknown column 'nwt_eventid' in 'field list'
Error Number : 1054
Date : Thursday, August 4th 2005 @ 05:09:46 PM
Script : http://www.burnleyweb.com/forum/inlinemod.php
Referrer : http://www.burnleyweb.com/forum/inlinemod.php

and if I try and delete it via the Thread Tools menu

Neal-UK 08-04-2005 04:12 PM

Quote:

Originally Posted by nealparry
and if I try and delete it via the Thread Tools menu

Sorry, and when I try to add a new event in the calendar I got this, although the event did get posted:

Database error in vBulletin 3.5.0 Release Candidate 1:

Invalid SQL:

UPDATE FORUMthread
SET nwt_eventid = 2
WHERE threadid = 1636;

MySQL Error : Unknown column 'nwt_eventid' in 'field list'
Error Number : 1054
Date : Thursday, August 4th 2005 @ 05:12:12 PM
Script : http://www.burnleyweb.com/forum/calendar.php
Referrer : http://www.burnleyweb.com/forum/cale...ype=single&c=1

Neal-UK 08-04-2005 04:20 PM

Quote:

Originally Posted by nealparry
Sorry, and when I try to add a new event in the calendar I got this, although the event did get posted:

Database error in vBulletin 3.5.0 Release Candidate 1:

Invalid SQL:

UPDATE FORUMthread
SET nwt_eventid = 2
WHERE threadid = 1636;

MySQL Error : Unknown column 'nwt_eventid' in 'field list'
Error Number : 1054
Date : Thursday, August 4th 2005 @ 05:12:12 PM
Script : http://www.burnleyweb.com/forum/calendar.php
Referrer : http://www.burnleyweb.com/forum/cale...ype=single&c=1

Can't unistall it either:

Database error in vBulletin 3.5.0 Release Candidate 1:

Invalid SQL:
ALTER TABLE `FORUMevent` DROP `nwt_threadid`;

MySQL Error : Can't DROP 'nwt_threadid'. Check that column/key exists
Error Number : 1091
Date : Thursday, August 4th 2005 @ 05:19:00 PM
Script : http://www.burnleyweb.com/forum/admincp/plugin.php
Referrer : http://www.burnleyweb.com/forum/admi...eventforums&s=

endquote 08-04-2005 04:43 PM

Not sure what that would be about. It looks like the install queries didn't run successfully. Note the <installcode> node in the XML file if you want to run them manually.

Neal-UK 08-04-2005 05:14 PM

Quote:

Originally Posted by endquote
Not sure what that would be about. It looks like the install queries didn't run successfully. Note the <installcode> node in the XML file if you want to run them manually.

tried it but it just keeps telling me that the tables, etc are not there. So how can i remove the options in the admincp now please?

FD929 08-08-2005 02:36 PM

How would I go about changing the date format displayed in the thread title?

I'd also like to change the forum "new thread" button to create a new event if anybody can provide any insight into how I would do that. :)

endquote 08-08-2005 04:30 PM

Quote:

Originally Posted by FD929
How would I go about changing the date format displayed in the thread title?

You could change the call to date() in eventdata_postsave. I suppose I should make that a config option.

Quote:

Originally Posted by FD929
I'd also like to change the forum "new thread" button to create a new event if anybody can provide any insight into how I would do that. :)

It should do that automatically, but not if you're a moderator of that forum, or an administrator.


All times are GMT. The time now is 04:49 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.01731 seconds
  • Memory Usage 1,848KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_php_printable
  • (21)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