[ABD] phpBB Social Network 0.7.2

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
ThunderCrew
Registered User
Posts: 1438
Joined: Sat Jun 30, 2007 6:26 pm
Location: Ill, Usa
Contact:

Re: [RC] phpBB3 Social Network 0.5.2

Post by ThunderCrew » Thu Mar 31, 2011 7:47 pm

ok I might have found the area to add a mode into ?
in socialnet/mainpage.php
I found this area

Code: Select all

				$mode = request_var('mode', 'view_main');

				switch ($mode)
				{
					case 'view_friends':
						$start = request_var('start', 0);

						$this->mp_load_friendlist($user->data['user_id'], $start);

						break;
					case 'view_main':
						$last_entry_id = request_var('lEntryID', 0);

						$a_mp_entries = $this->mp_load_entries($last_entry_id, 15);

						foreach ($a_mp_entries['entries'] as $idx => $a_mp_entry)
						{
							$template->assign_block_vars('mp_entries', $a_mp_entry);
						}

						$template_vars = array_merge($template_vars, array(
							'B_SN_MP_MORE_ENTRIES' => $a_mp_entries['more'], ));
						break;

				}
Now when you click friends or type in the address to use the friend mode like so http://tnc-all.net/forum/mainpage.php?mode=view_friends you get the whole page and hen your friends in the middle of the page .... Maybe if I simply add a new mode in there for liked status it will output the liked status

perhaps something like this ?

Code: Select all

					case 'liked':
						$entry_id = request_var('lEntryID', 0);
						$a_mp_entries = $this->mp_load_entries($entry_id, 1);
						break;
so I would change my previous iframe to do mode=status_id instead of just ?status_id ... off to try some fiddling

ugg forgot one thing right off the bat lol mode=liked wont work would need mode=liked&id= to pull an id ....

getting a bit closer
Image
I can pull the mainpage as mainpage.php?liked=ID HERE and have everything showing but it wont show just that id its showing all

started a topic in mod writters http://www.phpbb.com/community/viewtopi ... &t=2125858 maybe will get help finishing it off ? crosses fingers
Last edited by ThunderCrew on Thu Mar 31, 2011 10:09 pm, edited 2 times in total.
Ugg im a t0tal newb again ...... 2 years off cant remember jack ... time to get to it

soulseeka
Registered User
Posts: 6
Joined: Thu Mar 24, 2011 5:00 pm

Re: [RC] phpBB3 Social Network 0.5.2

Post by soulseeka » Thu Mar 31, 2011 9:36 pm

First off AWESOME AWESOME MOD.

Ive been seaching in here for fixes to 2 probs im having
1) the phrase "user avatar" shows up after post, not the pic chosen
2) sometimes the share button is gone

any help is appreciated, THNX!

User avatar
Trekky
Registered User
Posts: 234
Joined: Fri Jul 24, 2009 10:16 am
Location: Wiltshire
Name: Lesley Reed
Contact:

Re: [RC] phpBB3 Social Network 0.5.2

Post by Trekky » Fri Apr 01, 2011 6:56 am

Ok the image thing seems to have righted itself overnight but i still have the issue that some members can comment on others walls and some can't myself included.

I have found if i comment on a friends status from the Mainpage it works but if i try directly on their Wall nothing happens when i click 'comment' the following is what a member has described:
right i can comment on the main uk pouchies forum page but not on my own page and it keeps saying error in the bottom left hand corner when i try to comment on other walls
One other comment i have had from 2 members is:
I've still got 4 new messages.. They won't go.. I don't have any new messages but it says i do's!!!
I think this is the last issue i have but can't figure out what has gone wrong or why it doesn't seem to affect everyone.

User avatar
novanilla
Registered User
Posts: 332
Joined: Wed Jul 02, 2008 1:08 pm
Location: Colorado
Contact:

Re: [RC] phpBB3 Social Network 0.5.2

Post by novanilla » Fri Apr 01, 2011 12:15 pm

Trekky wrote:One other comment i have had from 2 members is:
I've still got 4 new messages.. They won't go.. I don't have any new messages but it says i do's!!!
I think this is the last issue i have but can't figure out what has gone wrong or why it doesn't seem to affect everyone.
This one is affecting me. It happened after I turned on the friend approval system, which generated thousands of new pms (friend requests) on the site. I should have figured it would happen.

I BELIEVE the number of "new message" notifications that persist depends on the number of people who've friended a particular person and then eventually had their account deactivated. The message can never be "visible" *(which seems to be the test for that particular feature, whether it's been opened or not), so the new message notification never goes away.

I'm planning on trying this line on my database later this weekend, then sending a site-wide message to reactivate the notification for those who may have unread new messages sitting in their boxes.

Code: Select all

UPDATE phpbb_users SET user_new_privmsg = 0;

User avatar
Trekky
Registered User
Posts: 234
Joined: Fri Jul 24, 2009 10:16 am
Location: Wiltshire
Name: Lesley Reed
Contact:

Re: [RC] phpBB3 Social Network 0.5.2

Post by Trekky » Fri Apr 01, 2011 12:37 pm

novanilla wrote:This one is affecting me. It happened after I turned on the friend approval system, which generated thousands of new pms (friend requests) on the site. I should have figured it would happen.

I BELIEVE the number of "new message" notifications that persist depends on the number of people who've friended a particular person and then eventually had their account deactivated. The message can never be "visible" *(which seems to be the test for that particular feature, whether it's been opened or not), so the new message notification never goes away.

I'm planning on trying this line on my database later this weekend, then sending a site-wide message to reactivate the notification for those who may have unread new messages sitting in their boxes.

Code: Select all

UPDATE phpbb_users SET user_new_privmsg = 0;
Keep me posted on how this turns out for you. If it works i'll be interested to know exactly what you did, Thanks :)

User avatar
ThunderCrew
Registered User
Posts: 1438
Joined: Sat Jun 30, 2007 6:26 pm
Location: Ill, Usa
Contact:

Re: [RC] phpBB3 Social Network 0.5.2

Post by ThunderCrew » Fri Apr 01, 2011 7:53 pm

OK I am a tad bit closer :D now all I will have to do is get it to template the normal stuff....

Image

will try again after work I probably just have to do some table joins to pull the other infos etc like avatar , user id , etc etc also might have to rework it back into a mode properly .... it shows the status for a few seconds then refreshes to the main wall again lol
Ugg im a t0tal newb again ...... 2 years off cant remember jack ... time to get to it

soulseeka
Registered User
Posts: 6
Joined: Thu Mar 24, 2011 5:00 pm

Re: [RC] phpBB3 Social Network 0.5.2

Post by soulseeka » Sat Apr 02, 2011 3:46 am

soulseeka wrote:First off AWESOME AWESOME MOD.

Ive been seaching in here for fixes to 2 probs im having
1) the phrase "user avatar" shows up after post, not the pic chosen
2) sometimes the share button is gone

any help is appreciated, THNX!
uh, any help?...is anyone eles having this prob? pls help..i launch next week

User avatar
novanilla
Registered User
Posts: 332
Joined: Wed Jul 02, 2008 1:08 pm
Location: Colorado
Contact:

Re: [RC] phpBB3 Social Network 0.5.2

Post by novanilla » Sat Apr 02, 2011 2:21 pm

Trekky wrote:
novanilla wrote:This one is affecting me. It happened after I turned on the friend approval system, which generated thousands of new pms (friend requests) on the site. I should have figured it would happen.

I BELIEVE the number of "new message" notifications that persist depends on the number of people who've friended a particular person and then eventually had their account deactivated. The message can never be "visible" *(which seems to be the test for that particular feature, whether it's been opened or not), so the new message notification never goes away.

I'm planning on trying this line on my database later this weekend, then sending a site-wide message to reactivate the notification for those who may have unread new messages sitting in their boxes.

Code: Select all

UPDATE phpbb_users SET user_new_privmsg = 0;
Keep me posted on how this turns out for you. If it works i'll be interested to know exactly what you did, Thanks :)
Hi Trekky,

Well I'm about to confess a very dangerous habit of mine... One I use to make minor tweeks to my db without the hassle of running any mySQL execution: I did an ACP backup of my phpBB3_users table and downloaded the text locally. I opened it in Notepad++ and verified the offending entries, in the user_new_privmsg fields of the members who had reported the issue (including myself). I changed these entries to zeros, uploaded the backup file to my phpBB3/store directory, and ran a restore on that particular backup file from the ACP. It worked. :-) I do this for minor database repairs with great success. If I find that a LOT of people have this problem, at least now I've verified that an UPDATE line like the one above would work to change them all to zero. Then I'd send out a site-wide pm to let everybody know about it, just to trigger them to open their inbox.

EDIT, about ten minutes later: Sorry, but it appears what I did above isn't permanent. After receiving and opening a brand new message this morning, the "1 new message" indicator persists. Hmmmm..... I'll update again later.

EDIT Number 2: Okay, I've got this sorted out. The reason the new message count returns is that it's a dynamic value that counts new messages in the table phpbb3_privmsgs_to - I ran this line to flip them all, then sent a site-wide pm to let people know their accounts hadn't been hacked. It worked very quickly and smoothly.

Code: Select all

UPDATE phpbb3_privmsgs_to SET pm_new = 0;
Note this is NOT the phpbb3_privmsgs table.

MindtriX
Registered User
Posts: 13
Joined: Sun Jul 19, 2009 10:54 am

Re: [RC] phpBB3 Social Network 0.5.2

Post by MindtriX » Sat Apr 02, 2011 5:14 pm

thunder, dude you have pretty much done it :shock: you are the man, :D

User avatar
ThunderCrew
Registered User
Posts: 1438
Joined: Sat Jun 30, 2007 6:26 pm
Location: Ill, Usa
Contact:

Re: [RC] phpBB3 Social Network 0.5.2

Post by ThunderCrew » Sun Apr 03, 2011 6:00 am

MindtriX wrote:thunder, dude you have pretty much done it :shock: you are the man, :D
Yeah it's almost there BUT i need to sort out how to make mode=liked&id=id here but no one is answering that topic i started over in mod writters .... when I have more time Ill check into it again I stay VERY busy with mafia wars addiction lol + life stuff an trying to restart my web after being gone for 2 years so it's slow but in time with some help on that topic IF it comes , OR just when I take the time to dig through more source or go to php sites to figure it out ;) after that just need to sort out the templating
Ugg im a t0tal newb again ...... 2 years off cant remember jack ... time to get to it

User avatar
novanilla
Registered User
Posts: 332
Joined: Wed Jul 02, 2008 1:08 pm
Location: Colorado
Contact:

Re: [RC] phpBB3 Social Network 0.5.2

Post by novanilla » Sun Apr 03, 2011 1:47 pm

Social Network friends approval system somehow sends friend requests to and from deleted users. This seems to be where the "# new messages" error is coming from. There should be a "does user exist" check before the pm friend request is sent.

Don't you think?

User avatar
novanilla
Registered User
Posts: 332
Joined: Wed Jul 02, 2008 1:08 pm
Location: Colorado
Contact:

Re: [RC] phpBB3 Social Network 0.5.2

Post by novanilla » Sun Apr 03, 2011 8:43 pm

Still having the problem where the Navbar doesn't show up when I'm in the Mainpage when using Firefox. When I delete these lines from the overall_header_hook.html file, it shows up.

Code: Select all

<!-- IF S_ON_MAINPAGE -->
<style type="text/css">
.navbar:last-child { display: none; }
</style>
<!-- ENDIF -->
What do those lines do, besides keep the navbar from showing up on the Mainpage (in Firefox)? ;-)

Oh also, when using the logout button in SN Mainpage, I get a message from phpBB3 that says: "You were not logged out, as the request did not match your session. Please contact the board administrator if you continue to experience problems." Then I'm taken to the index. All other logout buttons/links work fine, but not the one on Mainpage.

User avatar
ThunderCrew
Registered User
Posts: 1438
Joined: Sat Jun 30, 2007 6:26 pm
Location: Ill, Usa
Contact:

Re: [RC] phpBB3 Social Network 0.5.2

Post by ThunderCrew » Mon Apr 04, 2011 9:34 am

Ok here I am again a tad bit closer ....
Image

If I like a status it post to facebook and if I click on facebook I go to the status in question.

NEEDS ---
1. better avatar handling as it varies for uploaded avatars , gallery avatars etc, so if they uploaded an avatar the image code is different than if they use one from your galleries SO , i need to fix that or else no avatar shows up for them.
2. Sorting out the posting of a comment on that status , showing smilies in the status that they used notice the plain text instead of smilies ;)

3. The mod author to reappear and let us know if this is already all being worked on so I can save myself the headaches LOL (j/k) it's teaching me again like before I left working on this side project so .....


Anyways NOT RECOMMENDED FOR USE AT ALL are the follwing codes ive done so far .
1. probably a better way to do it.
2. still iffy unfinished work.
3. more or less ideas for mod author if not thought of or working on yet

in root/socialnet/mainpage.php I have this

Code: Select all

// grab ID for the case liked
$liked = request_var('liked', 0);

if( $liked )
{
   // as long as id is none zero this will be executed
    $sql = 'SELECT s.*, u.*
    FROM (phpbb_socialnet_status s)
    LEFT JOIN phpbb_users u ON (s.poster_id = u.user_id)
    WHERE status_id = ' . $liked;
        $result = $db->sql_query($sql);
      // the stuff to do once grabbing the id variable from the requested var?      
      while ($row = $db->sql_fetchrow($result))
      {
         $liked = $row['status_id'];
    $template->assign_block_vars('liked', array(
                'AVATAR'            => ($row['user_avatar']),
                'TEXT'            => ($row['status_text']),
                'USERNAME'            => ($row['username']),
         ));


      } // end while loop
      $db->sql_freeresult($result);


} // end the if 
just before

Code: Select all

if (!class_exists('socialnet_mainpage'))
In the template area socialnet/mainpage_body_entries.html file I have this

Code: Select all

<!-- IF .liked > 0 -->
<!-- BEGIN liked -->

<img src="download/file.php?avatar={liked.AVATAR}"> {liked.USERNAME} {liked.TEXT}
<!-- END liked -->
<!-- ELSE -->

<!-- BEGIN mp_entries -->

    <!-- IF mp_entries.TYPE eq 1 -->
    <div id="snMpEntry{mp_entries.ID}"<!-- IF B_SN_MP_MORE_LOAD --> style="display:none"<!-- ENDIF -->>
        {mp_entries.DATA}
    </div>
    <!-- ELSEIF mp_entries.TYPE eq 3 -->
    <div class="snMpTextBlock add_user" id="snMpEntry{mp_entries.ID}"<!-- IF B_SN_MP_MORE_LOAD --> style="display:none"<!-- ENDIF -->>
        <a href="{mp_entries.U_USER1_PROFILE}"><span class="snUsername">{mp_entries.USER1_USERNAME}</span></a> {L_SN_MP_AND} <a href="{mp_entries.U_USER2_PROFILE}"><span class="snUsername">{mp_entries.USER2_USERNAME}</span></a> {L_SN_MP_ARE_FRIENDS}
    </div>
    <!-- ENDIF -->
<!-- END mp_entries -->

<!-- ENDIF -->
As I said very sloppy still, needs much work, etc etc just showing where ive got so far messing around
Ugg im a t0tal newb again ...... 2 years off cant remember jack ... time to get to it

wadie
Registered User
Posts: 558
Joined: Sun May 02, 2010 5:05 am
Location: Your ACP
Name: Wadie

Re: [RC] phpBB3 Social Network 0.5.2

Post by wadie » Mon Apr 04, 2011 3:45 pm

I'd like to know if I can enable the Instant chat only and not the whole MOD.
Need a custom style made ? want me to install a MOD for you ? Contact me here.

User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [RC] phpBB3 Social Network 0.5.2

Post by keith10456 » Mon Apr 04, 2011 4:02 pm

wadie wrote:I'd like to know if I can enable the Instant chat only and not the whole MOD.
Yes... You can enable/disable the modules you want to use via the ACP.

Locked

Return to “[3.0.x] Abandoned MODs”