Just A Lil Bit Help!!

Started on the old forum in July 2010 · view the original in the archive · old links redirect here

18 replies · 745 views · started 16 years ago · 1 min read

8 participants
khan Lead · 681 posts #1

Hei Guyz, I have a problem while code a page. We can see that in facebook, there is comments in Users status or wall posts.I tried to create a thing for me.But while doing this i got a problem in me. That is, when a B commented a status of a user A, I can send that user A a notification.But when that user A commented on his status, i cant send any notification to B. I only can send notification to both user A and B. But i need to do this only for B. How can I do this?? Any Idea?? My sql is like ID, Name, Comment, Statref, Time. My head is full of rubz.😌

thanatos Senior · 261 posts #6

is these for lavalair? if it is.. examine the coding for guestbook or gallery..

$ownerid = select uid from table where comment_id='id'; if($uid!==$ownerid[0]){ insert comment blah blah.. insert notification}else{ you cnt comment ur own }

this should gve u an idea. its all done!

kiLLeR-eyEd_14 Senior · 382 posts #7

Yeh..Thanatos has gave u an idea..Just to add more idea..use autopm function to notify the user when someone commented or liked his/her status..

autopm(getnick_uid(id of the user who commented here)." commented on your <a href=\"link to ur status\">status</a>",ur id here);
Nahar Developer · 196 posts #8

Nice.. khan Can u Post Full Of Script Function Here 😀

khan Lead · 681 posts #9

thanatos and killer,unfortunately if i follow ur idea, then user A cant comment on his own wall post. But my problem is there. I need user A can comment on his status or whatever but he ll not get ny ntification.and if user C commented on user A s status and when A commented on the same status, then It will send a notification to the user C not A. Loony, i got ur idea but seems it will not workin. This thing is like as facebook.I tried it last two days.but failed.

thanatos Senior · 261 posts #11

Follow the code i gave u.. just change "u cnt comment ur own" with the insert query for da comment but without the query for noti.. simple isnt it?

Loony Senior · 258 posts #12

thanatos and killer,unfortunately if i follow ur idea, then user A cant comment on his own wall post. But my problem is there. I need user A can comment on his status or whatever but he ll not get ny ntification.and if user C commented on user A s status and when A commented on the same status, then It will send a notification to the user C not A. \

thats all something that a few if's and else's would fix look at the code when the user post on own status no notification if the comment id is higher then 1 meaning that his commenting after the original comment then it sends notification. if thats not understandable add me on msn ill explain it a bit better msn ( looony_guy79@hotmail.com )

Creator of Epix.Mobi

Keep an Eye on us Big things coming soon!!!! Need something for your site hit me up here http://coding-talk.com/forum/main-forums/marketplace/153110-free-features-for-your-wapsite

something else Fellow · 2,296 posts #15

example:

$list = mysql_query("SELECT name FROM comments WHERE postid='".$postid."' AND name!='".$yourname."'");
while($list=mysql_fetch_array($list)){

mysql_query("INSERT INTO notifactions SET name='".$list[0]."', postid='".$postid."', date='".time()."', whoposted='".$yourname."'");

}
khan Lead · 681 posts #17

@se, when i did that that, it send notification to all the commenter of that status. I think ive to add another row for calling individually.

something else Fellow · 2,296 posts #18

yeah facebook notifies all of the commenters when something is posted ..so thought you wanted it like that

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close