Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-31-2002, 07:37 PM
joeschmoe's Avatar
joeschmoe joeschmoe is offline
 
Join Date: May 2002
Location: California
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 11-01-2002, 11:38 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #3  
Old 11-02-2002, 12:45 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Logician is a legend. If he released all his request answers as hacks, he'll have hundreds of hacks to his name.
Reply With Quote
  #4  
Old 11-02-2002, 07:09 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #5  
Old 11-05-2002, 02:10 PM
joeschmoe's Avatar
joeschmoe joeschmoe is offline
 
Join Date: May 2002
Location: California
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a bunch! Those will work great.
Reply With Quote
  #6  
Old 11-18-2002, 03:27 PM
joeschmoe's Avatar
joeschmoe joeschmoe is offline
 
Join Date: May 2002
Location: California
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #7  
Old 11-18-2002, 10:27 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 11-19-2002, 04:29 PM
joeschmoe's Avatar
joeschmoe joeschmoe is offline
 
Join Date: May 2002
Location: California
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thankyouthankyouthankyou!

Reply With Quote
  #9  
Old 11-20-2002, 07:53 PM
joeschmoe's Avatar
joeschmoe joeschmoe is offline
 
Join Date: May 2002
Location: California
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #10  
Old 11-20-2002, 08:00 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it's our previous hack code. So you are supposed to look into this thread.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:54 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.04826 seconds
  • Memory Usage 2,289KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (6)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete