Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #61  
Old 11-16-2004, 05:35 PM
Gryphon's Avatar
Gryphon Gryphon is offline
 
Join Date: Oct 2001
Location: Seattle, WA
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uhhh...no...
Reply With Quote
  #62  
Old 11-16-2004, 07:26 PM
zeropaid's Avatar
zeropaid zeropaid is offline
 
Join Date: Nov 2004
Location: San Diego, CA
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no, I just copied code from earlier in this thread.. still getting that wierd error even with test data.. still workin on it though.
Reply With Quote
  #63  
Old 11-25-2004, 09:28 AM
StefanS StefanS is offline
 
Join Date: Nov 2004
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

just tested the following code:

PHP Code:
<?
require('./global.php'); 
require('./includes/functions_newpost.php'); 
$userid = 10;
$forumid = 100;
$foruminfo = fetch_foruminfo($forumid); 
$bbuserinfo = fetch_userinfo($userid); 
$post[title] = 'subject'; 
$post[message] = 'message'; 
$post[poststarttime] = TIMENOW; 
$post[posthash] = md5($post[poststarttime] . $bbuserinfo['userid'] . $bbuserinfo['salt']); 
build_new_post('thread', $foruminfo, array(), 0, $post, $errors); 
?>
works for me with 3.03 without problems ...
Reply With Quote
  #64  
Old 11-25-2004, 09:43 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by StefanS
Hi,

just tested the following code:

PHP Code:
<?
require('./global.php'); 
require('./includes/functions_newpost.php'); 
$userid = 10;
$forumid = 100;
$foruminfo = fetch_foruminfo($forumid); 
$bbuserinfo = fetch_userinfo($userid); 
$post[title] = 'subject'; 
$post[message] = 'message'; 
$post[poststarttime] = TIMENOW; 
$post[posthash] = md5($post[poststarttime] . $bbuserinfo['userid'] . $bbuserinfo['salt']); 
build_new_post('thread', $foruminfo, array(), 0, $post, $errors); 
?>
works for me with 3.03 without problems ...
is there a form to add the threads you want and create the conditions under which their added?
Reply With Quote
  #65  
Old 11-30-2004, 12:14 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for the delay guys, never did release this as an official hack due to the lack of interest, seemed everyone except for me knew how to do this at the time. Man trying this stuff in the early RCs was a pain! Just switched to a newer license that won't expire, so I'll get all of the updates on the thread from now on

I'll have to re-read through the thread later (in class atm), but it sounds like at least sabret00the would like a variable system to set up to do this?

I'll have to dig up the custom forms/code I made that used this function. Worked well, but the project went to ASP so I haven't looked at it in a while. Would've stayed in PHP if I knew how to radically customize the board templates.

Would you guys want me to work this up and release it as an "official" hack?
Reply With Quote
  #66  
Old 12-01-2004, 05:22 PM
Undertoad Undertoad is offline
 
Join Date: Jan 2002
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That would be great.
Reply With Quote
  #67  
Old 12-02-2004, 05:41 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, just re-read everything and looked at my code. Looks like I made the code at the end of page 2 into a function, as well as a function that auto-creates forums.

To release this as a hack, I'd like to put some safety features in it, e.g. some way of making a simple admin CP module for it (NO CLUE), and a way to enter it into group policies so that to have access to it you have to be in a special group. Perhaps it would show up in the User CP if said user is in this secondary group?

So far, these are the requests for it that I have seen:
Quote:
if posts on the forums in XX hours < XX then create thread
Don't quite understand that. Do you mean "If user X posts every y amount of hours then create a thread?

Quote:
A form to add the threads you want and create the conditions under which they are added
What types of conditions would you like, or would you like them to be user editable conditions?

Comments please! I'm about to fall asleep, so tomorrow afternoon (EST) I'll post the code as a beta hack.
Reply With Quote
  #68  
Old 12-02-2004, 09:49 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

regarding the last bit, basically you'd have a form with

Code:
THREAD TITLE
  
  FORUM ID THREAD TO BE CREATED FOR
  
  THREAD BODY TEXT
  
  CONDITIONS TO CREATE THREAD; __ POST < __ hours
  
  USERID OF THREAD CREATOR
wouldn't that form in the admincp by the safety measure btw?

Quote:
Don't quite understand that. Do you mean "If user X posts every y amount of hours then create a thread?
what that means is that if theirs less than 100 posts on the forums in the past 5 hours then create a new thread in order to stimulate activity.
Reply With Quote
  #69  
Old 12-02-2004, 02:25 PM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sabret00the
wouldn't that form in the admincp by the safety measure btw?

what that means is that if theirs less than 100 posts on the forums in the past 5 hours then create a new thread in order to stimulate activity.
Gotcha. Think I can release just the functions as a beta hack, then later work on the form code? I'd really only want to release it formally if I could make an admin module though.
Reply With Quote
  #70  
Old 12-02-2004, 03:26 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what do you mean by admin module?
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 09:36 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.05266 seconds
  • Memory Usage 2,258KB
  • 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
  • (1)bbcode_code
  • (2)bbcode_php
  • (5)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
  • (4)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_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