![]() |
Must Have First Posters Username In Your reply form
I was wondering if someone can help me with this. I am looking for a feature for my message board.
People post information about quads and other 4 wheel and 2 wheel vehicles on my forum. I was wondering if only in these forums this feature can work 13, 17, 19, 20, 26, 27, 33, 34, 44, 45, 51, 52, 58, 59 For ever reply in these forum ids you need to have the FIRST POSTERS username somewhere in your reply box. If not then you are taken to a template that I will make as an error screen. I hope someone can help me out. Thanks. This is just for the reason that no one notices the people that post information and just read the posts. This helps them understand that this person has posted this info to help you out. Thanks s much. |
open newreply.php find this:
PHP Code:
PHP Code:
|
thanks works like a charm.
|
:)
you're welcome as always ;) |
One more thing. How can I make this so it is not capitalization sensative. Like if someone name is UsErNaMe all i can type in the reply box is username instead of the other way. Please help thanks.
|
instead of this
PHP Code:
PHP Code:
|
Works like a charm amazing. Your god. I love ya. keep up the great work man.
|
:)
i'll do my best. you're welcome |
Xenon I just foudn a prob. When u reply more than once in those forums u have to say there username in ever reply u make. How do u make it that they only have to do it on the first reply and then the rest they don't have to at all.
|
bump
|
this ^^
PHP Code:
|
Quote:
|
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. |
use this:
PHP Code:
|
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 |
what is line 102 and about 5 lines above and below :)
|
sorry haha
PHP Code:
if($repliesbybbuser['total']==0 and $getfirst['userid'] != $bbuserinfo['userid'] and !strstr(strtoupper($message),strtoupper($getfirst['username']))) { lol |
hmm, this should work normally...
maybe you can try this: PHP Code:
|
nope same error. Weird.
|
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. :)
|
replace
AND threadid=$threadid with AND threadid=$threadinfo[threadid] ... |
I get the same error. I don't know why weird. What else can we do?
|
I foudn the error Xenon.
This line needs to be in there as well. $getfirst=$DB_site->query_first("SELECT postid,post.userid,dateline,user.username FROM post LEFT JOIN user USING(userid) WHERE threadid='$threadid' ORDER BY dateline LIMIT 1"); because when u look at ur new code at this line !strstr(strtoupper($message),strtoupper($getfirst['username']))) { $getfirst has no where to look for. So i put that code above and it worked. Is this right though or is there an easier better what of doing it? |
yes it has to be there, i thought it would be there already, that's why i didn't mention it again..
|
All times are GMT. The time now is 02:02 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|