![]() |
This was requested by clearchanel yesterday:
http://www.vbulletin.com/forum/showt...threadid=33118 The idea is, letting normal members post public events for all to see, but still avoiding the abusive members abuse this feature. Basically, if the option is turned on, all new public events will be added to a moderation queue, similar to the way new attachments and posts are moderated. Each moderator will then be able to approve public events in a special place in his Mod CP. A link is added there, see the screen shot in the zip file for more info. That's all I think there is to this. To install this hack, download the attached zip, extract it, and upload install_modqueuecal.php to your admin folder. Then go to it in your browser, and follow all the instructions that will be presented to you. The install script will run two queries. One will add a field to your calendar_events table, and the other will add the new admin option. Uninstall procedure is also avaiable. A demo of the validating screen can be found in the zip file. By the way, moderation is bypassed for mods and admins, so they can post without having to validate the events. Not sure if this will work on versions prior to 2.2.0, but I don't expect any problems with it. That's it I think. Feedback is welcomed as always! :) |
not on my computer right now, but I will if this works as it is supposed to be installing this, sounds good Firefly!
James |
Doesn't sound bad at all, demo or ss..?
|
Only demo I can provide is the validation screen in the Mod CP. (in the zip)
Unless you'd like to see a blank calendar...? :) |
sounds great, will install this on my new vb-site - as soon as I get this other project ready ;)
btw, firefly, I like your avatar over at vbulletin.com much better than the one here ... though I guess its better matching the vb.org scheme :P |
Bender, off topic, but I was wondering what is behind your signature? :D
James |
Can I guess? :)
BASIC. |
|
Hmm, yeah, looks like it. :(
|
I'll give yours a try as you seem to be more into making your hacks better. The other guy kinda disappeared on me. :)
|
Do know a hack for Moderation Queue for polls?
|
I cannot view the instructions once the hack is installed... ?
|
What do you mean?
|
I guess I missed something as I am not getting any events to approve so I need to go back to the instructions. How do I do this?
|
...why can't you?
|
One quick question. Will the members b-days still show up with out moderator approval?
|
Quote:
Since Your Last Visit! |
[QUOTE]Originally posted by clearchannel
One quick question. Will the members b-days still show up with out moderator approval? |
Quote:
|
Oh right, sorry.
Go to install_modqueuecal.php?s=&step=5 and you'll see the file changes. |
Thanks!
|
He may mean something along these lines. Where is the control panel located to approve events on the calander.
I posted a message as a normal member and the only option available was the private event. I posted the event as a member and it showed up. I logged out as that member, logged in as a new regular member and could not see the event. I no longer see the public event icon? I used notetab copy and paste to make the changes. Is it possible I one, have a problem with the datatbase, or 2 addedd and unknown cr by accident? I added this hack to version 2.2.1 |
I get the following error if I try and moderate posts using the admin control panel in any forum:
Parse error: parse error in /home/virtual/*******/home/httpd/html/forums/mod/moderate.php on line 179 Again, this is in vb 2.2.1 |
You need to enable Public Events to be able to post them.
Private Events don't go into the queue, because only the user that posted those events can see them. |
I'm now receiving this error:
Parse error: parse error in /home/virtual/***********/home/httpd/html/forums/calendar.php on line 461 along with this error when I check the post queue Parse error: parse error in /home/virtual/************/home/httpd/html/forums/mod/moderate.php on line 180 |
Thanks again for the help Firefly. I like yours much better. Just a few things... how about the option to be e-mailed when an event has been submitted and since I have Today's Events on main page Hack (https://vborg.vbsupport.ru/showthrea...threadid=21232), the non-approved events are showing up there. Is there a simple way to get your hack to work with that hack?
:) |
For that hack, replace this line:
Code:
WHERE eventdate='$today' AND ((userid = '$bbuserinfo[userid]') OR (public = 1))"); Code:
WHERE eventdate='$today' AND visible=1 AND ((userid = '$bbuserinfo[userid]') OR (public = 1))"); I'll post some code for the mail thing later. |
Quote:
Thanks |
[QUOTE]Originally posted by clearchannel
Is that to fix my problem? I'm not fimiliar with the file mister posted. Thanks |
Yes, I sure I didn't omit anything. I did however find find the line to replace in step 6 comes before the line in step 5, while doing a find, I had to start from the beginning of the file?
Also, while editing the calander.php there were I think two lines that once I deleted the line the cursor did not align at the same point where the first character of the line I deleted was, I'm not sure if <cr> have an effect. Would I be better off, saving the step five page in text and editing from a text file, rather then html? Thanks |
Thanks! Hopefully the next version of vb will include this!
|
Has anyone gotten this hack to work on their vb? I've copied and pasted the hack a few dozen times, and can not for the life of me get it to work.
Would someone be willing to look at the three files I hacked and maybe tell me where I went wrong? I certently would appericate some help with this. Thanks |
Let me see if I can save sometime.
When I first hack the three files, I received the following error message: Parse error: parse error in /home/virtual/*******/home/httpd/html/forums1/calendar.php on line 461 Here is what that line (461), and the lines before (460) and after (462) the look like in my editor: 460: // Moderation Queue for Calendar Events (v1.0) 461: FROM calendar_events, user 462: WHERE eventid = $eventid AND calendar_events.userid = user.userid")) |
E-Mail me your hacked files Clearchannel.
|
I have this hack installed, and it works great.
A much needed feature, or at least for my forums. Thanks Firefly |
I got it working under v2.0.3 with just a two minor adjustments:
Instead of doing what the instructions tell u to in mod/index.php (you won't find the code to replace). Do this: find: PHP Code:
PHP Code:
And finaly to prevent unmoderated events from showing up on the calendar, in admin/calendar.php : find: PHP Code:
replace it with: PHP Code:
That is, works like a charm - thanx firefly |
GREAT HACK FIREFLY! u rock!
|
Great hack works like a charm however did notice that when copy pasting text some of the statements were appearing in the //commented out area. so had to manually correct that.
Might be the cause of others problems. |
I am having some trouble getting this to install on vb 2.2 is there an update...or is it just me...
2 things primarily... 1. the code: PHP Code:
2. the code: PHP Code:
that is as far as I have currently gotten, hope you can help James |
Just installed this on 2.2.4 however I used beyond compare to merge the code to the new files but it seems to work fine.
|
All times are GMT. The time now is 04:49 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|