Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 05-09-2002, 05:25 PM
scatpack scatpack is offline
 
Join Date: Jan 2002
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Lookin for a hack - email into thread

Hello,

Ok heres the skinny:

I have an "experts" forum. Only my 9 "experts" are cleared to post in this forum. Up until now, questions for the experts have been emailed to me by users, and then I post the 'good questions' in this forum. Needless to say..this is a pain in the ass.

So what im thinking is this... I don't want to open the entire forum to the "general public" cause then they would be like a pack of wild monkeys postin away and general mayhem. And I don't like the way I have to post for them right now. Is there a better way?

How about a form that Emails the questions into the forum? Or is that to complicated? Any better ideas?
Reply With Quote
  #2  
Old 05-09-2002, 10:57 PM
damicatz damicatz is offline
 
Join Date: Oct 2001
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You wouldn't e-mail the questions into the forum. All you need to do is write a script that adds the questions into the database.

Or make your forum moderated so that before new posts posted by regular users appear, they have to be approved by a mod or admin.
Reply With Quote
  #3  
Old 05-10-2002, 10:33 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe you should consider setting access permissions to:
1- Only your experts can reply other's threads while ordinary users can only reply their own.
2- Ordinary users' new threads are moderated.

This should do exactly what you want..
Reply With Quote
  #4  
Old 05-17-2002, 01:18 PM
scatpack scatpack is offline
 
Join Date: Jan 2002
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Logician,

That sounds like a good idea. But Im not sure how to do it. I set that forum to moderated, but now even the "experts" replies are being moderated. Is there a way to set the general posts to moderated, but the expert posts aren't moderated and automatically get posted?
Reply With Quote
  #5  
Old 05-17-2002, 01:55 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is the hack

Edit newreply.php, find:
PHP Code:
if ($foruminfo['allowposting']==0) {
    eval(
"standarderror(\"".gettemplate("error_forumclosed")."\");");
  }

  
$visible=!$foruminfo[moderatenew]; 
AFTER that add:
PHP Code:
if ($bbuserinfo[usergroupid]==AND $foruminfo['forumid']==Y
{
  
$visible=1;

Replace X with expert's usergroupid and Y with forumid.. That's it..
Now experts can reply without moderation in that specific forum.

Enjoy!

Logician
Reply With Quote
  #6  
Old 05-21-2002, 01:20 PM
scatpack scatpack is offline
 
Join Date: Jan 2002
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Um.... it didn't work. I get a "Parse error: parse error in /home2/www/mysite/forums/newreply.php on line 104"

I copied and pasted the code here. Line 104 is the "if ($bbuser" line. I get that parse error whenever someone tries to post, in any forum, including me. Not just forum 19.

PHP Code:
  $visible=!$foruminfo[moderatenew];
  
  if?(
$bbuserinfo[usergroupid]==11?AND?$foruminfo['forumid']==19)?

{

??
$visible=1;


I know your not "tech support" so I really appreciate the help!
Reply With Quote
  #7  
Old 05-21-2002, 01:31 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a chance you are using OPERA as your browser?

The code you have written is correct and free of errors (especially parse errors), however there might be a problem with copy/paste process (Opera does this!). Please try to write it down verbatim, instead of copy/paste..

Also delete the spaces in the begining of the code, so it should be like this:

$visible=!$foruminfo[moderatenew];
if ($bbuserinfo[usergroupid]==11 AND $foruminfo['forumid']==19)
{
$visible=1;
}

after you finished..
Reply With Quote
Reply

Thread Tools
Display Modes

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 08:05 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.03864 seconds
  • Memory Usage 2,218KB
  • Queries Executed 11 (?)
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
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete