vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Moderation Queue for Calendar Events! (https://vborg.vbsupport.ru/showthread.php?t=32380)

SirSteve 11-19-2001 01:09 PM

Thanks! Hopefully the next version of vb will include this!

clearchannel 11-21-2001 10:38 PM

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

clearchannel 11-21-2001 10:54 PM

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"))

Admin 11-24-2001 06:09 AM

E-Mail me your hacked files Clearchannel.

clearchannel 11-25-2001 12:48 PM

I have this hack installed, and it works great.

A much needed feature, or at least for my forums.

Thanks Firefly

gabs 01-17-2002 08:55 PM

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:

<a href="moderate.php?s=<?php echo $session[sessionhash]; ?>&action=posts"> Moderate New Posts </a><br>

bellow it add:
PHP Code:

<!-- // Moderation Queue for Calendar Events (v1.0) -->
<a href="moderate.php?s=<?php echo $session[sessionhash]; ?>&action=calendar"> Moderate New Calendar Events </a><br>
<!-- // Moderation Queue for Calendar Events (v1.0) -->


And finaly to prevent unmoderated events from showing up on the calendar, in admin/calendar.php :

find:
PHP Code:

LIKE '$year-$doublemonth-%' AND ((userid '$bbuserinfo[userid]' AND public = 0) OR (public = 1))"); 


replace it with:
PHP Code:

LIKE '$year-$doublemonth-%' AND ((userid '$bbuserinfo[userid]' AND public = 0) OR (public = 1)) AND visible=1"); 


That is, works like a charm - thanx firefly

Shenlong 01-17-2002 10:44 PM

GREAT HACK FIREFLY! u rock!

Ghostsuit 01-24-2002 04:19 PM

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.

jamesdasher 03-05-2002 02:45 AM

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:

if($info $DB_site->query_first("SELECT eventdate,allowsmilies,username,event,subject,calendar_events.userid,public 

doesn't appear in the order given in the install file...it is way at the top of the document (I could only find one instance of this)

2. the code:

PHP Code:

$subject htmlspecialchars($info[subject]); 

appears in the file 2 times...

that is as far as I have currently gotten, hope you can help

James

Ghostsuit 03-19-2002 11:26 AM

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 07:42 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.01184 seconds
  • Memory Usage 1,741KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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