Search found 1179 matches

by Temor
Sat Oct 13, 2012 12:06 am
Forum: General Chat
Topic: I am a horrible, horrible person.
Replies: 4
Views: 1105

Re: I am a horrible, horrible person.

Yes I have. Three pages worth of deleted posts. You've been busy :)
by Temor
Fri Oct 12, 2012 11:28 pm
Forum: General Chat
Topic: I am a horrible, horrible person.
Replies: 4
Views: 1105

Re: I am a horrible, horrible person.

If that was true I would have been royally pissed. I'd probably start cursing even!

I noticed we got ourselves another moderator. When did that happen? :)
by Temor
Fri Oct 12, 2012 8:24 pm
Forum: Tutorials
Topic: Little problem with message system
Replies: 18
Views: 2446

Re: Little problem with message system

You've probably solved this already, but you're naming the function delete but you're calling delete_conversation.
by Temor
Fri Oct 12, 2012 8:15 pm
Forum: General Chat
Topic: I am a horrible, horrible person.
Replies: 4
Views: 1105

I am a horrible, horrible person.

Not only did I forget Jacek's birthday. I totally forgot about this forum entirely! I guess I've been too busy, but that's just a lame excuse for being lazy.
Double shame on me.

I promise I will make it up to each and every one of you!


Also, what else did I miss?
by Temor
Fri Sep 14, 2012 1:15 am
Forum: Tutorials
Topic: Little problem with message system
Replies: 18
Views: 2446

Re: Little problem with message system

Jacek covered deleting conversations in the tutorial series.
by Temor
Thu Sep 13, 2012 1:27 am
Forum: Tutorials
Topic: Little problem with message system
Replies: 18
Views: 2446

Re: Little problem with message system

Line 30, view_conversation.php
[syntax=php]add_conversation_message($_GET['conversation_id'], $_GET['message']);[/syntax]

you are using $_GET['message'] where you should be using $_POST['message']
by Temor
Wed Sep 12, 2012 6:52 pm
Forum: Suggestions
Topic: Friend system
Replies: 1
Views: 1700

Re: Friend system

Here's a small tip: If you're looking for a tutorial, you can go here: m or here: m You can also go to the YouTube channel and do a search in the right corner. If you can't find it there, then that answers your question. If you want to suggest a tutorial, you can check this list here to see if Jacek...
by Temor
Wed Sep 12, 2012 6:48 pm
Forum: PHP
Topic: Creating groups like facebook
Replies: 13
Views: 2202

Re: Creating groups like facebook

Well, you need these things: User ID Group ID That's it. If you have a row with these values: User ID Group ID 1 1 That means the user with ID 1 is in the group with ID 1. If you want the ID's of all users in group 1, you do a statement like this: [syntax=text]SELECT `UserID` FROM `group_members` WH...
by Temor
Wed Sep 12, 2012 2:18 pm
Forum: Tutorials
Topic: User Profile List Catergories
Replies: 18
Views: 2554

Re: User Profile List Catergories

That would be done easiest with an if statement.
[syntax=php]
$countAmount = count($users);
if($countAmount => 1){
// Show row.
}else{
// Don't show.
}[/syntax]
by Temor
Wed Sep 12, 2012 2:15 pm
Forum: Tutorials
Topic: [Solved!]PM System [Part 13]
Replies: 6
Views: 1368

Re: PM System [Part 13]

So, what is it that you're not able to see? Is the page white-blank or is it just certain parts that are missing?
by Temor
Tue Sep 11, 2012 1:59 pm
Forum: Tutorials
Topic: User Profile List Catergories
Replies: 18
Views: 2554

Re: User Profile List Catergories

This is all wrong: [syntax=php] $count = fetch_users_by_category($user['id']); foreach( $count as $user ){ echo count($users); }[/syntax] You should not be looping count(); You have not defined the variable that you put into count(); This will do the trick: [syntax=php] $count = fetch_users_by_categ...
by Temor
Tue Sep 11, 2012 1:52 pm
Forum: Tutorials
Topic: Little problem with message system
Replies: 18
Views: 2446

Re: Little problem with message system

I thought it was pretty obvious which part you should wrap and in what, seeing as I posted the exact code. [syntax=php]if (isset($_POST['to']){ if (isset($errors)) { if (empty($errors)) { echo '<div> Your message has been sent! <a href="messages.php">Return to your Inbox</a></div>'; } else...
by Temor
Tue Sep 11, 2012 1:50 pm
Forum: PHP
Topic: Creating groups like facebook
Replies: 13
Views: 2202

Re: Creating groups like facebook

Half way through writing this I realized that I'm pretty much just explaining Jacek's " User Profiles " tutorial to you. If you watch it I bet you'll get an idea of how to do this even better. m I would create a group page next. I would do it like this: Create a function which fetches all ...
by Temor
Tue Sep 11, 2012 1:19 pm
Forum: Tutorials
Topic: [Solved!]PM System [Part 13]
Replies: 6
Views: 1368

Re: PM System [Part 13]

die() kills the script, preventing it from running any more code. Change die() to echo.
by Temor
Sun Sep 09, 2012 11:36 pm
Forum: Tutorials
Topic: Little problem with message system
Replies: 18
Views: 2446

Re: Little problem with message system

Well, try wrapping it in another if statement to see if the form has been submitted. [syntax=php] if (isset($_POST['to']){ if (isset($errors)) { if (empty($errors)) { echo '<div> Your message has been sent! <a href="messages.php">Return to your Inbox</a></div>'; } else { foreach ($errors a...
by Temor
Sun Sep 09, 2012 8:44 pm
Forum: PHP
Topic: Creating groups like facebook
Replies: 13
Views: 2202

Re: Creating groups like facebook

Alright, I see. This forum is not like others. We will not simply provide finished code, but rather guide you through the process. That's the only way you'll learn, and this is a forum for learning PHP, not for full-fledged PHP-professionals. I'm still learning myself, and helping others is a great ...
by Temor
Sun Sep 09, 2012 7:50 pm
Forum: Tutorials
Topic: User Profile- edit profile <br> tags
Replies: 8
Views: 1611

Re: User Profile- edit profile <br> tags

Are you using the nl2br function anywhere?

What you can do is run this regex:
return preg_replace('/\<br(\s*)?\/?\>/i', "\n", $string);

it will replace all <br> tags with \n ( newline ) characters.
by Temor
Sun Sep 09, 2012 2:45 pm
Forum: PHP
Topic: Creating groups like facebook
Replies: 13
Views: 2202

Re: Creating groups like facebook

Foreign keys can be a bit of a pain if you're not used to them. It's really fun playing with it though I'm not really sure what subscribed is supposed to be doing. Do you care to elaborate on what it's function is? I'm in a bit of a hurry, so I will rush through this. If you need help coding this ou...
by Temor
Sun Sep 09, 2012 1:13 pm
Forum: Tutorials
Topic: User Profile- edit profile <br> tags
Replies: 8
Views: 1611

Re: User Profile- edit profile <br> tags

Why is there <br> tags being generated?
Do you mind showing in more detail what's happening?
by Temor
Sun Sep 09, 2012 12:16 pm
Forum: PHP
Topic: Creating groups like facebook
Replies: 13
Views: 2202

Re: Creating groups like facebook

Have you tried anything yourself?
Take the first step and try this yourself and I'll help from there.
by Temor
Sun Sep 09, 2012 3:35 am
Forum: Tutorials
Topic: Little problem with message system
Replies: 18
Views: 2446

Re: Little problem with message system

Try: [syntax=php]if (empty($errors)) { if (empty($errors)) { echo '<div>', $error, '</div>'; }else{ foreach ($errors as $error) { echo '<div> Your message has been sent! <a href="messages.php">Return to your Inbox</a></div>'; } } }[/syntax] No, don't do that. That will print the success m...