Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 09-27-2002, 03:55 PM
spaceb spaceb is offline
 
Join Date: Sep 2002
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default request: Autumatic Thread Mover

i need automatic messages mover, it for my new game on my forum. :nervous:
i want this hack to move the message when some one reply to it and the reply contain special word, like yes. if the reply contain the word yes the message will be moved
to forum 'x'
if the reply cantaint the word no, the message will be moved to forum 'Y'.
and i want to be abble to choose in what forums it gonna be and to what forums it will move the messages thanx for the help.
Reply With Quote
  #2  
Old 09-28-2002, 11:29 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess you should be asking this feature for "new threads" ONLY, if so edit newthread.php, find:

PHP Code:
  $message=trim($message); 
after that add:

PHP Code:
if (strpos(strtolower($message),"word"))
{
$forumid=X;} 
Replace X with your new forumid and "word" with your key word (write it in all lowercase)
Reply With Quote
  #3  
Old 09-28-2002, 08:23 PM
spaceb spaceb is offline
 
Join Date: Sep 2002
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm thank you very much for the help but i need it work only when some one reply to the message and his reply contain the word 'yes' or 'no'.
Reply With Quote
  #4  
Old 09-28-2002, 08:37 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

but why dont you put this someone to a special usergroup (like Mods) and give the usergroup right to move threads? It would be easier to choose "Move Thread" instead of clicking reply, writing a special word and hacking the board to act so.
Reply With Quote
  #5  
Old 09-29-2002, 12:09 AM
spaceb spaceb is offline
 
Join Date: Sep 2002
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

because the game is for all the members of my forum. and i have a lot of different groups i can't give them all the ability to move threads to another forum. so i want it to be automatic and the reply it's their answer there is only 2 possibilities, i hope you can help me with this thanx for your help
Reply With Quote
  #6  
Old 09-29-2002, 11:13 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well I dont know how well this would work. There can be some issues that would clash with the hack but here is the code anyway:

Edit newreply.php find:

PHP Code:
 // redirect
      
if ($visible) { 
Before that add:

PHP Code:
if (strpos(strtolower($message),"word"))
{
 
$DB_site->query("UPDATE thread SET forumid=X WHERE threadid=$threadid");

(Replace X with your new forumid)

I strongly suggest this to be used in a test board first! I havent tested it and it could have unwanted effects..
Reply With Quote
  #7  
Old 09-29-2002, 11:32 AM
spaceb spaceb is offline
 
Join Date: Sep 2002
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is it possible to do it only in certain forums?
and thank you very much for the help i will try it on a test board first
Reply With Quote
  #8  
Old 09-29-2002, 03:40 PM
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 spaceb
is it possible to do it only in certain forums?
yes.. Replace

PHP Code:
if (strpos(strtolower($message),"word")) 
as
PHP Code:
if (strpos(strtolower($message),"word") AND $forumid==X
Reply With Quote
  #9  
Old 09-29-2002, 06:22 PM
spaceb spaceb is offline
 
Join Date: Sep 2002
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

o.k thank you very very much for the help
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:12 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.04653 seconds
  • Memory Usage 2,240KB
  • 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
  • (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
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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