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

Reply
 
Thread Tools Display Modes
  #11  
Old 01-27-2003, 01:26 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this ^^
PHP Code:
if($threadinfo[replycount]==and !strstr(strtoupper($message),strtoupper($getfirst['username']))) { 
Reply With Quote
  #12  
Old 01-29-2003, 01:22 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Xenon
this ^^
PHP Code:
if($threadinfo[replycount]==and !strstr(strtoupper($message),strtoupper($getfirst['username']))) { 
This is not working. IT works for like the first replies or two but the other people dont have to have the username in there posts. I don't know why it doesnn't work. Can ya help me. Is there anyother code we could use?
Reply With Quote
  #13  
Old 02-08-2003, 10:09 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need it to only have it do it for there first reply. Also how do i make it so if the person that made the new thread doesn't have t put there own name in there replies to there own threads?

Thanks.
Reply With Quote
  #14  
Old 02-17-2003, 05:17 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

use this:

PHP Code:
$repliesbybbuser=$DB_site->query_first("SELECT COUNT(*) AS total FROM post WHERE userid=$bbuserinfo[userid] AND threadid=$threadid");
if(
$repliesbybbuser['total']==and $getfirst['userid'] != $bbuserinfo['userid'] and !strstr(strtoupper($message),strtoupper($getfirst['username']))) { 
Reply With Quote
  #15  
Old 02-19-2003, 01:42 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great but one little problem

SAY JOHN makes a new thread. And STEVE wants to reply and he doesnt use the users name of JOHN in his reply. He gets the error saying use the username but there is this line at the top of the web page

Warning: Empty Delimiter in /usr/local/psa/home/host/bburl.com/httpdocs/messageboard/newreply.php on line 102
Reply With Quote
  #16  
Old 02-19-2003, 01:51 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what is line 102 and about 5 lines above and below
Reply With Quote
  #17  
Old 02-19-2003, 02:14 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry haha

PHP Code:
// ############################### start post reply ###############################
if ($HTTP_POST_VARS['action']=="postreply") {

  
// check for subject and message
  
$message=trim($message);
  if (
$message=="") {
    eval(
"standarderror(\"".gettemplate("error_nosubject")."\");");
    exit;
  }

if (
in_array($threadinfo['forumid'], array(2324252627282930323334353637385556))) {
$repliesbybbuser=$DB_site->query_first("SELECT COUNT(*) AS total FROM post WHERE userid=$bbuserinfo[userid] AND threadid=$threadid");
if(
$repliesbybbuser['total']==and $getfirst['userid'] != $bbuserinfo['userid'] and !strstr(strtoupper($message),strtoupper($getfirst['username']))) {
  eval(
"standarderror(\"".gettemplate("error_nofirstusername")."\");");
  }
}

  
// decode check boxes
  
$parseurl=iif(trim($parseurl)=="yes",1,0);
  
$email=iif(trim($email)=="yes",1,0);
  
$allowsmilie=iif(trim($disablesmilies)=="yes",0,1);
  
$signature=iif(trim($signature)=="yes",1,0);
  
$preview=iif(trim($preview)!="",1,0); 
102 is

if($repliesbybbuser['total']==0 and $getfirst['userid'] != $bbuserinfo['userid'] and !strstr(strtoupper($message),strtoupper($getfirst['username']))) {

lol
Reply With Quote
  #18  
Old 02-19-2003, 02:20 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm, this should work normally...

maybe you can try this:
PHP Code:
if(intval($repliesbybbuser['total'])==and $getfirst['userid'] != $bbuserinfo['userid'] and !strstr(strtoupper($message),strtoupper($getfirst['username']))) { 
Reply With Quote
  #19  
Old 02-19-2003, 02:24 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nope same error. Weird.
Reply With Quote
  #20  
Old 02-19-2003, 04:29 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

with the new code evn though i get that error even though u still put the name in the reply it says u need the usernames name in your reply error. Something is definately wrong.
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 01:59 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04249 seconds
  • Memory Usage 2,276KB
  • 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
  • (5)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_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