PDA

View Full Version : Calendar Search and Comments for Events


deathemperor
06-24-2005, 10:00 PM
Calendar Search and Comment For Events is now available as a product. And of course, it is now fully phrased, templates cached

++++++++++++++++++++++++++++++++++++++++++++++++++
UPGRADING
++++++++++++++++++++++++++++++++++++++++++++++++++
If you were using the old Comments For Events (Downloaded before today 10/20/2005),
delete 2 plugin: "Comments for Events" and "Comments for Events - Show Comments".

Then import the XML file.
-----------------------------------------------------------

If you downloaded this hack before 10/22/2005, please download it again to fix the vbulletin options. For installed boards, just reimport the xml file.

This is an old hack I port to vb3.5. Please refer this thread (https://vborg.vbsupport.ru/showthread.php?s=&threadid=78210) for more information

No file editing, only one template edit, import the product and you're done !.

This is a beta release so there are known issues.

+ Cannot get value from WYSIWYG editor, hence I disabled the WYSIWYG when posting comment either by quick reply or new reply.

if someone can fix I'll be very glad.

Any suggestions are welcome.

*done for my first 3.5 hack*

Thanks

FleaBag
06-25-2005, 04:06 PM
Awesome! Very nice hack, can't wait for vB 3.5 to go gold. :)

deta
06-26-2005, 06:01 AM
Yey.. Thanks.. I have the Plugin in my testing vb3.5 install...

No Problems..

cu Deta

deathemperor
06-26-2005, 07:09 AM
Yey.. Thanks.. I have the Plugin in my testing vb3.5 install...

No Problems..

cu Deta

of course there must be, that's why they released vb3.5 ^^

kall
07-05-2005, 10:14 AM
Where are the bitfield phrases?

snyx
07-05-2005, 02:13 PM
Where are the bitfield phrases?
a new posts link would be the option this hack is lacking from its predecessor vB 3.x

deathemperor
07-06-2005, 01:29 PM
Where are the bitfield phrases?
it is installed via the installer, are you missing it in your ACP after you install this ?

peterska2
07-23-2005, 04:28 PM
I'm missing phrases in the permissions manager and get the following error

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 598

There seems to have been a problem with the Forums database.
Please try again by clicking the Refresh button in your web browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin 3.5.0 Beta 4:

Invalid SQL:
UPDATE vb350b_usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'Administrators',
`description` = '',
`usertitle` = 'Administrator',
`opentag` = '',
`closetag` = '',
`passwordexpires` = '180',
`passwordhistory` = '360',
`forumpermissions` = '1048575',
`attachlimit` = '0',
`pmquota` = '50',
`pmpermissions` = '3',
`pmsendmax` = '5',
`calendarpermissions` = '63',
`wolpermissions` = '31',
`adminpermissions` = '3',
`genericpermissions` = '205520831',
`genericoptions` = '31',
`profilepicmaxwidth` = '100',
`profilepicmaxheight` = '100',
`profilepicmaxsize` = '65535',
`avatarmaxwidth` = '80',
`avatarmaxheight` = '80',
`avatarmaxsize` = '20000',
`eventcommentpermission` = ''
WHERE usergroupid=6;

MySQL Error : Unknown column 'eventcommentpermission' in 'field list'
Error Number : 1054
Date : Saturday, July 23rd 2005 @ 06:22:11 PM
Script : http://www.**********.co.uk/new/admincp/usergroup.php
Referrer : http://www.***********.co.uk/new/admincp/usergroup.php?do=edit&usergroupid=6
IP Address : ************
Username : peterska2
Classname : vb_database

deathemperor
07-24-2005, 04:09 PM
peterska2, did you run the installer ?

FleaBag
07-31-2005, 10:08 PM
I'm missing the phrases too - and I did run the installer, sucessfully. Using RC1. Might I suggest an export as a product?

EasyTarget
08-01-2005, 02:31 AM
great idea, keep it going.

nexialys
09-06-2005, 06:14 PM
... the installer have no phrases to add, there are missing parts though...

can this release be updated ?!

deathemperor
09-07-2005, 12:59 AM
it was coded for beta 2, I didn't upgrade it to be fully phrased. Sorry everyone I am busy at school and some projects I'm taking, I wil absolutely upgrade this hack, perhaps we should just wait for the Gold 3.5.

Thanks for your understanding.

nexialys
09-07-2005, 05:10 PM
Thanks for your understanding.
yeah, i understand it completely, i knew it was not a final version...

i will report to you what is not done actually:

1- you did not use the proper $vbulletin->GPC[] structure for the globalised inputs... so it's impossible this script was tested for 3.5... look: // get values in this way it's faster and more secure using vb fuction globalsize()
$vbulletin->input->clean_array_gpc('p',array(
'keyword' => TYPE_NOHTML,
'searchfor' => TYPE_NOHTML,
'searchdate' => TYPE_NOHTML,
'_order' => TYPE_NOHTML,
'orderby' => TYPE_NOHTML,
'beforeafter' => TYPE_NOHTML
));
// if string search is too short (less than 3 char)
if (strlen($keyword) < 3)
{
eval(print_standard_error('searchnametooshort'));
}the "if (strlen($keyword) < 3)" will never find its content, as we need to use "$vbulletin->GPC['keyword']" instead... and this is it abroad your script actually... some changes are to be planned.. ;)

EDIT: for the calendar_quickreply, it's not compatible with the new editor, so half the features are not working... will have to be fixed!

for the others, just phrases, but actually it's not a problem i think... just the permissions sentences are needed.

and if you have time, i don't think it would be useful to wait 'til 3.5 Gold, your code use the minimum of vB codes actually, it will be easy to integrate in the final...

Bojangles
09-13-2005, 07:42 AM
Installed and but found out the phrases were not installed, so it won't work (like other people have posted). If anyone can get this working, it'd be really awesome.

Vizionz
09-15-2005, 10:45 PM
noww i get a error when editing usergroups how can i drop
'eventcommentpermission' in 'field list'

deathemperor
09-16-2005, 09:01 AM
to drop it you should know SQL language then open MySQL server -> table usergroup -> drop field eventcomment permission

Reeve of shinra
10-03-2005, 03:08 AM
Oh man, I didn't know you ported this over or I would've went with 3.5 RC for a new site. crap. LOL

Anyone using this on gold yet?

deathemperor
10-03-2005, 03:12 AM
I think it won't work for gold, I'll spend sometimes modify this as a product so that everything will be better.

you can wait for the update soon ^^

Reeve of shinra
10-03-2005, 03:18 AM
cool beans, thank you.

DivisionByZero
10-03-2005, 03:53 AM
Yes, I need this too.... for 3.5 gold :) Thanks!

deathemperor
10-03-2005, 03:55 AM
anyway this will be changed to be a plugin, because it won't require to upload any files, just an xml file and everything is done.

banjolawyer
10-04-2005, 03:44 PM
anyway this will be changed to be a plugin, because it won't require to upload any files, just an xml file and everything is done.
I will install when it is ready for 3.5 gold. Thx.

FleaBag
10-11-2005, 01:35 PM
I am not able to edit any usergroups because I am getting the error a few posts above. The fix you have here does not work, because there is nothing in the usergroup table that has anything to do with eventcomment, or named eventcomment.

EDIT: I realised I had to delete the bitfield XML and rebuild the bitfields. ;)

Reeve of shinra
10-19-2005, 11:22 PM
fleabag, are you using this on 3.5 gold?

deathemperor
10-20-2005, 01:16 AM
Calendar Search and Comment For Events is now available as a product.

++++++++++++++++++++++++++++++++++++++++++++++++++
UPGRADING
++++++++++++++++++++++++++++++++++++++++++++++++++
If you were using the old Comments For Events (Downloaded before today 10/20/2005),
delete 2 plugin: "Comments for Events" and "Comments for Events - Show Comments".

Then import the XML file.
-----------------------------------------------------------

and of course, fully phrased.

LoOnEyToOnZ
10-20-2005, 05:24 AM
So does this work for 3.50 gold ?

deathemperor
10-20-2005, 05:36 AM
yes it does.

Reeve of shinra
10-20-2005, 11:48 PM
You rock!

hugh_
10-21-2005, 05:37 PM
Please help!

I followed your instructions for installing this extension but it's broken my calendar so that I get an sql error message (below) when any users tries to access any event...

hugh

deathemperor
10-21-2005, 05:51 PM
d-oh !

the vboptions were not downloaded it the product xml file, zip updated. Please import the xml file again.

hugh_
10-21-2005, 05:55 PM
d-oh !

the vboptions were not downloaded it the product xml file, zip updated. Please import the xml file again.

trying now...

hugh

hugh_
10-21-2005, 06:01 PM
trying now...

hugh

Having just overwritten the old import i get a new error message when I click to view an event. What should I do?

Thanks...

hugh

Database error in vBulletin 3.5.0:

Invalid SQL:

SELECT * FROM eventcomments
WHERE eventid=1738;

MySQL Error : Table 'vbulletin.eventcomments' doesn't exist
Error Number : 1146
Date : Friday, October 21st 2005 @ 02:04:06 PM
Script : http://www.partyvibe.com/vbulletin/calendar.php?do=getinfo&e=1738&day=2005-10-27&c=1
Referrer : http://www.partyvibe.com/vbulletin/calendar.php
IP Address : 62.254.128.6
Username : Site
Classname : vb_database

deathemperor
10-21-2005, 06:08 PM
uninstall -> import again.

if you can't uninstall, Edit Event Comments Product -> Remove the uninstall code -> Choose Uninstall.

one question, are you using table prefix ?

hugh_
10-21-2005, 06:15 PM
uninstall -> import again.

if you can't uninstall, Edit Event Comments Product -> Remove the uninstall code -> Choose Uninstall.

one question, are you using table prefix ?

uninstall didn't work until i removed the uninstall code. having done that i can view events again, but i get an error message when i try to reply...

hugh
----

Warning: Unknown(/home/httpd/html/vbulletin./includes/functions_wysiwyg.php): failed to open stream: No such file or directory in /calendar.php(131) : eval()'d code on line 406

Fatal error: (null)(): Failed opening required '/home/httpd/html/vbulletin./includes/functions_wysiwyg.php' (include_path='.:/usr/lib/php') in /home/httpd/html/vbulletin/calendar.php(131) : eval()'d code on line 406

FleaBag
10-22-2005, 12:06 AM
Hey thanks for the update! I also had the issues with uninstall mentioned above... When I try to reply though I get this error.


Warning: Unknown(/www/dragonninja./includes/functions_newpost.php): failed to open stream: No such file or directory in /calendar.php(131) : eval()'d code on line 413

Fatal error: (null)(): Failed opening required '/www/dragonninja./includes/functions_newpost.php' (include_path='.') in /www/dragonninja/calendar.php(131) : eval()'d code on line 413

ALTHOUGH... The comments ARE being posted [at least they show up in the preview when I hit back and refresh the page]. When trying to view an event I have posted a comment to, I get the following error.


Warning: Unknown(/www/dragonninja./includes/class_bbcode_alt.php): failed to open stream: No such file or directory in /calendar.php(1001) : eval()'d code on line 87

Fatal error: (null)(): Failed opening required '/www/dragonninja./includes/class_bbcode_alt.php' (include_path='.') in /www/dragonninja/calendar.php(1001) : eval()'d code on line 87

Darkmeteor
10-25-2005, 01:08 PM
hello,

I am too getting this error :

Warning: Unknown: failed to open stream: No such file or directory in /calendar.php(131) : eval()'d code on line 413

Fatal error: Unknown: Failed opening required '/var/www/forum./includes/functions_newpost.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/forum/calendar.php(131) : eval()'d code on line 413

After a fresh install, I have setup the perms and tried creating an event and replying to it.

Darkmeteor
10-25-2005, 01:55 PM
and I fixed the error :)

in the 2 modules there are some requires which looks like this :

require_once(DIR . './includes/whatever.php');

couldn't work since it was looking in /var/www/forum./includes/whatever.php (as written in the fatal error)

so I made it look like this

require_once(DIR . '/includes/whatever.php');

and it works fine now.

for your information there are 5 occurence of this bug in the comments module and 1 in the show comments module

deathemperor
10-25-2005, 02:49 PM
Thanks Darkmeteor for the point out, zip file updated, please download it and import choose replacing.

FleaBag
10-27-2005, 09:56 PM
No longer getting that error - but BB Codes are not being parsed in the event comment sigs. Also, the editor does not appear as elsewhere in the site.

Screenshots attached.

Thanks for the continued support of this hack, great to have it running. :)

moonclamp
10-28-2005, 04:53 PM
No longer getting that error - but BB Codes are not being parsed in the event comment sigs. Also, the editor does not appear as elsewhere in the site.

Screenshots attached.

Thanks for the continued support of this hack, great to have it running. :)

Yeah I'm having the same problem with signatures not parsing bbcode.

KrisJacobs
11-17-2005, 10:21 PM
I used the other version of this when I was running v3.0.8 and it was fine.

However, I have upgraded to v3.5.1 now.

I do not have any Evecom permissions settings anywhere, and everyone gets permission denied when trying to post to calendar events.

When I edit usergroups, I have nothing for setting Evecom permissions.

I have already done the admincp/index.php?do=buildbitfields -- that did not help.

What should I do?

Thanks!

KrisJacobs
11-17-2005, 10:54 PM
I have messed around with the install, uninstall stuff, manually done the sql adds/drops, etc. myself via my MySQL utility, all no go.

Permissions settings never show up in my Admin CP when I goto Usergroup Manager and choose to edit a Usergroup.

KrisJacobs
11-17-2005, 11:00 PM
LOL!

On line 51 of your XML file, the "R" is missing off the word "require"

it says


$db->query_write("
DROP TABLE `" . TABLE_PREFIX . "eventcomments`
");

equire_once(DIR . '/includes/class_bitfield_builder.php');
vB_Bitfield_Builder::save($db);]]></uninstallcode>
</code>
</codes>


I wonder if that is causing the problem?

I am also setting absolute paths to class_bitfield_builder.php


require_once('http://www.hordelandsecurity.org/forums/includes/class_bitfield_builder.php');


My fingers are crossed... :)

KrisJacobs
11-17-2005, 11:23 PM
I've given up trying to make this work. :(

FleaBag
11-18-2005, 01:22 PM
Just give deathemperor some time. :)

KrisJacobs
11-18-2005, 01:26 PM
Oh yah, no worries!

I just gave up - I'm not PHP-savvy enough to get it working on my own merits. :)

FleaBag
11-18-2005, 01:27 PM
Ditto heh.

banjolawyer
11-19-2005, 10:59 PM
I do not have any Evecom permissions settings anywhere, and everyone gets permission denied when trying to post to calendar events.

When I edit usergroups, I have nothing for setting Evecom permissions.

I have already done the admincp/index.php?do=buildbitfields -- that did not help.

Same problem here.

Benj
11-27-2005, 05:00 PM
does this allow you to search calendar events by there poster?

PennylessZ28
11-27-2005, 05:33 PM
Is this still being developed?

Benj
11-27-2005, 08:53 PM
this is a really cool hack i would love to see the bugs fixed :P also as i said before would like to search for events by there posters

cheers

ben

kall
12-01-2005, 03:42 AM
Multiple SQL errors on import, even choosing Overwrite.

SoLo OnE
12-07-2005, 03:33 PM
Any support for this??

I have it basically working except that the next and previous page navigation for the search results is totally broke.

lazyseller
12-09-2005, 10:02 PM
for some reason... my usergroup permissions are not saving... with this mod

SoLo OnE
12-14-2005, 02:41 AM
hello???

lazyseller
12-14-2005, 05:02 PM
did you get the bbcode to parse correctly solo ?

SoLo OnE
12-18-2005, 08:04 AM
OK what the hell...why does this modification say supported if

1) It doesn't work

2) Its NOT supported!

deathemperor
12-19-2005, 09:37 AM
OK what the hell...why does this modification say supported if

1) It doesn't work

2) Its NOT supported!

the hell is you can't bear for my personal life, and I can not be here 24x7 to support for everything and anything you want. I will be supporting when I have spare time

djnth
12-24-2005, 07:53 AM
So basically this adds the capability for users to post comments on each event on the calendar sort of like a shoutbox? This is what I'm looking for!!

lazyseller
12-31-2005, 12:41 AM
There are alot of problems and the creator hasnt had time to fix the bugs. I recommend finding another solution and not wasting your time with this unless you have some programming knowledge.

Good luck i just wanted to save you guys some time since i installed it and found out its been 6 months and no updates. Once the creator has time to fix the known issues this should be a great addition to any site.

tnguy3n
01-10-2006, 03:39 AM
It seems to work fine for me on my test board.
For those who can't get the calendar comment options to show in usergroup manager,
Open includes/xml/bitfield_vbulletin.xml,

FIND:
<bitfield name="isnotmoderated" group="calendar_permissions" phrase="events_are_unmoderated" install="2,5,6,7">32</bitfield>

BELOW, ADD:
<bitfield name="canviewevecom" group="calendar_permissions" phrase="canviewevecom" install="1,2,3,4,5,6,7">64</bitfield>
<bitfield name="canpostevecom" group="calendar_permissions" phrase="canpostevecom" install="2,5,6,7">128</bitfield>
<bitfield name="caneditownevecom" group="calendar_permissions" phrase="caneditownevecom" install="2,5,6,7">256</bitfield>
<bitfield name="caneditotherevecom" group="calendar_permissions" phrase="caneditotherevecom" install="5,6,7">512</bitfield>
<bitfield name="candelownevecom" group="calendar_permissions" phrase="candelownevecom" install="2,5,6,7">1024</bitfield>
<bitfield name="candelotherevecom" group="calendar_permissions" phrase="candelotherevecom" install="5,6,7">2048</bitfield>
<bitfield name="cansearchevent" group="calendar_permissions" phrase="cansearchevent" install="2,5,6,7">4096</bitfield>

YLP1
01-13-2006, 08:15 PM
Hi everyone..... I have the old version for 3.08 so I have to do this per the instructions:

If you were using the old Comments For Events (Downloaded before today 10/20/2005),
delete 2 plugin: "Comments for Events" and "Comments for Events - Show Comments".

But I don't understand the instructions: delete 2 plugin "Comments for Events" and "Comments for Events - Show Comments".

Can someone guide me on how to do this?

Thanks in advance.

kall
02-03-2006, 03:57 AM
Any chance of getting this updated for 3.5.3?

vb_text_editor is undefined, and editing a comment doesnt change it at all.

D|ver
02-23-2006, 09:18 AM
yeah a proper version for 3.5.4 would be so nice :)
this is really a great addon

deathemperor
02-23-2006, 01:49 PM
will update it. I was thinking a way to fix the WYSIWYG editor, may try a fix very soon.

tide
02-23-2006, 08:49 PM
/agree I'd love to install it.

yeah a proper version for 3.5.4 would be so nice :)
this is really a great addon

Kanustep
03-08-2006, 10:40 PM
Oops...I have already install it in 3.5.4!
Seems everything OK

xfaethorx
03-22-2006, 03:44 AM
i had this on my 3.0.x board and would love to re-install it for my users on my 3.5.4 board. Will there be an update to this or is this hack a dead stick?

Gizmo999
03-22-2006, 11:03 AM
How can I uninstall this please??

I get this error if I try to do so

Database error in vBulletin 3.5.4:

Invalid SQL:

ALTER TABLE `event`
DROP `totalcom`;

MySQL Error : Can't DROP 'totalcom'. Check that column/key exists
Error Number : 1091
Date : Wednesday, March 22nd 2006 @ 01:01:55 PM
Script : http://www.xxxxx/forum/admincp/plugin.php
Referrer : http://www.xxxxx/forum/admincp/plugin.php?do=productdelete&productid=eventcomment&s=
IP Address : xxx.xx.xx.xxx
Username : Gizmo
Classname : vb_database

robert_2004
03-30-2006, 06:29 AM
PEOPLE - please note: in the product.xml file, line 51 reads:
equire_once(DIR . '/includes/class_bitfield_builder.php');
vB_Bitfield_Builder::save($db);]]></uninstallcode>

When it should read:
require_once(DIR . '/includes/class_bitfield_builder.php');
vB_Bitfield_Builder::save($db);]]></uninstallcode>

ALSO, can you only post a comment ONCE for an event? seems a bit silly.

banjolawyer
03-31-2006, 03:09 PM
When entering an event through the calendar.. "add single day event," you only have to plug in a starting date.

However, when entering an event in the forum that the calendar is tied to, you are required to put in a start and end date and start and end time.

I'd really like it if users only had to put info in the first way (ie, only have to put in a start date, and no times).

Has anyone has modified their installation to accomplish this?

albertsch9
04-16-2006, 09:33 AM
will update it. I was thinking a way to fix the WYSIWYG editor, may try a fix very soon.

Do you work on a new Version?

FleaBag
05-16-2006, 11:40 PM
Hey guys just thought I'd post that this is working fine for me on 3.5.4. I previously pointed out the editor looked different in another post, but since realised this was stated as a bug in the first post. ;) So the only remaining issues I am aware of on 3.5.4 is that is does not parse BB code or smilies and the search seems to give errors generated from out date function calls.

Works great besides. :)

But on another note, I have recently installed this hack (https://vborg.vbsupport.ru/showthread.php?t=102213) which is a fully working and more feature rich version. Check it out. No search included, but that doesn't work on this hack at present anyway.

I had trouble uninstalling this, each query failed and had to edit them all out of the product, although this may well be due to an error with my setup! :)

ludachris
05-18-2006, 05:11 PM
Tried updating permissions for a few usergroups. Strange thing is, any permissions related to this hack will not change. I've tried it for a few usergroups. None will change from No to Yes. I'll hit Update and go back in and they're all still set to No.

Bummer, I really wanted to use this hack.

noonespecial
12-12-2006, 09:04 AM
Would be nice to see for 3.6

maryx
07-06-2008, 03:50 PM
please please please someone upgrade this for 3.7

TheInsaneManiac
07-06-2008, 04:40 PM
I have ported it to VBulletin 3.7 and with permission from the author I will post it.

DavidBlaze
09-04-2008, 10:27 PM
Has the VBulletin 3.7 version been posted?

djxcee
10-20-2008, 09:14 AM
Unfortunately no.

I hope someone can release 3.7/3.8 version.