Search the Community
Showing results for tags 'social'.
-
Hi guys, Recently i developed a new social network called www.myexpresspad.com. Please join and give me feedback on how your experience was with it. please also take a few moments to answer the poll which would do a lot of help for me and if you feel it needs improvement please leave a reply of your remarks on the social network. Plus i would also appreciate anyone who gives me tips on marketing it. Regards, Gowri Shanker.D
- 2 replies
-
- socialnetwork
- social
-
(and 1 more)
Tagged with:
-
I have made a mutual friend system like facebook and it shows all the mutual friends but sometimes it shows it twice because your 2 friends might be friends with one person so it echos the same person twice so i wanna only show the person once and the most repeated should show on the top and the less repeated person should show at bottom!
-
Hi There, I have got this code: function displayPosts() { $query = mysql_query("SELECT * FROM social ORDER BY id DESC") or die(mysql_error()); while( $result = mysql_fetch_assoc($query) ) { echo ' <div id="socialnewsfeeditem"> <p id="newsfeeditemperson"> '.$result["fullname"].' </p> <p id="newsfeeditemcontent"> '.$result["content"].' </p> <p> <center> <a href="social.php?id='.$result["id"].'&do=like">Like!</a> </center> </p> <div id="likes"> <p>'.self::displayLikes($result["id"]).'</p> </div> </div> '; } } function displayLikes($id) { $query = mysql_query("SELECT full_name FROM sociallike WHERE postid = '$id'") or die(mysql_error()); while( $result = mysql_fetch_assoc($query) ) { echo $result['full_name']."likes"; } } function like($id, $username) { $query2 = "INSERT INTO sociallike VALUES('$id', '$username')"; mysql_query($query2); } But when I try to displayLikes the all come up all over the place on the page and I have no clue why it is doing this. I will upload the whole (functions.php) functions and the (social.php) php file on here. Many Thanks for Your Help functions.php social.php
-
Hi There, I have got this code: function displayPosts() { $query = mysql_query("SELECT * FROM social ORDER BY id DESC") or die(mysql_error()); while( $result = mysql_fetch_assoc($query) ) { echo ' <div id="socialnewsfeeditem"> <p id="newsfeeditemperson"> '.$result["fullname"].' </p> <p id="newsfeeditemcontent"> '.$result["content"].' </p> <p> <center> <a href="social.php?id='.$result["id"].'&do=like">Like!</a> </center> </p> <div id="likes"> <p>'.self::displayLikes($result["id"]).'</p> </div> </div> '; } } function displayLikes($id) { $query = mysql_query("SELECT * FROM sociallike WHERE postid = '$id'") or die(mysql_error()); } function like($id, $username) { $query2 = "INSERT INTO sociallike VALUES('$id', '$username')"; mysql_query($query2); } But when I try to displayLikes the all come up all over the place on the page and I have no clue why it is doing this. I will upload the whole (functions.php) functions and the (social.php) php file on here. Many Thanks for Your Help social.php functions.php
-
~Sorry for topic title, didn't know what to call it.~ Basically, What I want to do is have an image uploader that renames the file to the user's username. For example: If Jeff went to upload his image and on his computer it was called '38483_fbkn.PNG' I want it to rename the file too 'Jeff.jpg' I've done this before but I honestly for the life of me can't remember how I did it. Any help? Also sorry if wrong section, I'm new here
-
I've create a table of "followers" where users can follow other users. It's set up as such: ID username followname username is the name of the person that is doing the action/following and followname is the person who is being followed. I want to set up a news feed for each user on the profile.php page. The news feed should look at who the user is following (followname) and then fill the news feed with all the posts from those people in order of what time they were posted. The posts are in a different table called "needs" and each post is timestamped. Can anyone help me in started to code this?
-
Alright so at my site (http://independentrepublicofursum.tk/) The facebook social plugin is in the "sidebar" on every page, I don't like how my twitter link loads, then the plugin spawns and pushes it down. I tried to put a div around the plugin with a set height and width so that it would no something is there before the plugin loaded, but no cigar. Help please!