vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Make moderated posts go into private forum instead of queue? (https://vborg.vbsupport.ru/showthread.php?t=45264)

joeschmoe 10-31-2002 07:37 PM

Make moderated posts go into private forum instead of queue?
 
Hi guys,

I'm hoping someone can help me out.

I am in the process of changing and tweaking vB to be more like the customer support databse similar to RightNow type software. See this link for an example of what I'm talking about. Does anyone have a hack similar to this yet?

Here is what I haven't been able to figure out yet:
1) I'd like to have all the new threads by registered users moderated, and have the threads go into a private forum, instead of the moderation queue, which is pretty bulky to deal with (I am expecting over 100 threads/day).

1a) If #1 can't be done, how can I set the default "validate" value to "no" in the post moderation queue page?

2) When a registered user is submitting a post, I'd like the "new thread" button to take them to an HTML page with rules, and at the bottom of that page a link will take them to the new thread posting page. I'm told this takes a php hack, but how do I do this?

Thanks in advance for any help!

Logician 11-01-2002 11:38 AM

edit newthread.php find:

PHP Code:

  $DB_site->query("INSERT INTO thread 

Before that add:

PHP Code:

if ($foruminfo['moderatenew']!=0) {$oldforumid=$forumid;$forumid=X;} 


And before:

PHP Code:

// update forum stuff 

add:
PHP Code:

if ($foruminfo['moderatenew']!=0) {$forumid=$oldforumid;} 

Replace X with your private forum id..

As for your second request: what about editing newthread template and put your notices at the top? That requires no hacking and IMO quite effective..

If you want this notice displayed to certain people or in certain forums you can apply "advanced templates hack" first (it's in my profile), edit your newthread template and put a conditional at the top like:

[[($forumid==X and $bbuserinfo[usergroupid]==Y)]]
Your notices go here..
[[/($forumid==X and $bbuserinfo[usergroupid]==Y)]]

For instance this conditional will display your notices in only forum X and if viewer is from usergroup Y. (FYI. for registered users usergroup id =2)

Enjoy..

Erwin 11-02-2002 12:45 AM

Logician is a legend. :) If he released all his request answers as hacks, he'll have hundreds of hacks to his name.

Logician 11-02-2002 07:09 AM

Quote:

Originally posted by Erwin
If he released all his request answers as hacks, he'll have hundreds of hacks to his name.
oh what a nightmare.. Think about the time you'll commit for the support of 200 hacks you have lol..

btw. tyvm for the flattering comments.. :)

joeschmoe 11-05-2002 02:10 PM

Thanks a bunch! Those will work great. :D

joeschmoe 11-18-2002 03:27 PM

Logician, I'm hoping you can help out once again.

Your hack suggestion works great, however is there a way to make the the user threads submitted into each forum go into a subforum of the forum it was submitted in, until it's validated by an admin?

The hack you offered makes the threads go into a single forum and it is hard to sort the threads into the proper forum, because we have so many forums.

I hope I'm not being nitpicky or confusing, thanks again!

Logician 11-18-2002 10:27 PM

yes it is possible:

Replace
PHP Code:

if ($foruminfo['moderatenew']!=0) {$oldforumid=$forumid;$forumid=X;} 

AS:
PHP Code:

if ($foruminfo['moderatenew']!=0
{
$oldforumid=$forumid;
if (
$forumid==X1) {$forumid=X2;}
elseif (
$forumid==Y1) {$forumid=Y2;}
elseif (
$forumid==Z1) {$forumid=Z2;}
else {
$forumid=W2;}


So as you see you have to enter all main forumids (X1,Y1,Z1) and their sub forumids (Z2,Y2,X2) in that code one by one. Make sure you dont forget any!

Enjoy. ;)

joeschmoe 11-19-2002 04:29 PM

thankyouthankyouthankyou!

:)

joeschmoe 11-20-2002 07:53 PM

I hate to ask another question, but I did a search in newthread.php and did not find this line:
Code:

if ($foruminfo['moderatenew']!=0) {$oldforumid=$forumid;$forumid=X;}
Am I supposed to be looking in newthread.php or a different file?

Logician 11-20-2002 08:00 PM

it's our previous hack code. So you are supposed to look into this thread. :)


All times are GMT. The time now is 01:45 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.02218 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_code_printable
  • (6)bbcode_php_printable
  • (1)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
  • (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