This will not delete friends. It will only delete pending requests and bffs.nero wrote:Is there anyway you could make a fix to this without deleting the data? I have about 100 users with friends...
Code: Select all
public function revert_schema()
{
return array(
'drop_tables' => array(
$this->table_prefix . 'zebra_confirm'
),
'drop_columns' => array(
ZEBRA_TABLE => array(
'bff',
),
$this->table_prefix . 'users_custom' => array(
'profile_friend_show',
)
),
);
}
Code: Select all
public function revert_schema()
{
return array(
// 'drop_tables' => array(
// $this->table_prefix . 'zebra_confirm'
// ),
'drop_columns' => array(
// ZEBRA_TABLE => array(
// 'bff',
// ),
$this->table_prefix . 'users_custom' => array(
'profile_friend_show',
)
),
);
}
Already got it to work but it works like a charm now! Is there anyway to set it across the board for everyone to have ALL by default?Lucifer4o wrote:This will not delete friends. It will only delete pending requests and bffs.nero wrote:Is there anyway you could make a fix to this without deleting the data? I have about 100 users with friends...
There is a way, but you will have to play a bit with the migrations
in v10x/release_1_0_0.php
you will find this function:
Comment out the drop_tables part and the drop_column -> zebra_table should look like this:Code: Select all
public function revert_schema() { return array( 'drop_tables' => array( $this->table_prefix . 'zebra_confirm' ), 'drop_columns' => array( ZEBRA_TABLE => array( 'bff', ), $this->table_prefix . 'users_custom' => array( 'profile_friend_show', ) ), ); }
The only thing reseted will be the ACL for who can view your friends ...Code: Select all
public function revert_schema() { return array( // 'drop_tables' => array( // $this->table_prefix . 'zebra_confirm' // ), 'drop_columns' => array( // ZEBRA_TABLE => array( // 'bff', // ), $this->table_prefix . 'users_custom' => array( 'profile_friend_show', ) ), ); }
Execute the following SQL query:nero wrote:Already got it to work but it works like a charm now! Is there anyway to set it across the board for everyone to have ALL by default?Lucifer4o wrote:This will not delete friends. It will only delete pending requests and bffs.nero wrote:Is there anyway you could make a fix to this without deleting the data? I have about 100 users with friends...
There is a way, but you will have to play a bit with the migrations
in v10x/release_1_0_0.php
you will find this function:
Comment out the drop_tables part and the drop_column -> zebra_table should look like this:Code: Select all
public function revert_schema() { return array( 'drop_tables' => array( $this->table_prefix . 'zebra_confirm' ), 'drop_columns' => array( ZEBRA_TABLE => array( 'bff', ), $this->table_prefix . 'users_custom' => array( 'profile_friend_show', ) ), ); }
The only thing reseted will be the ACL for who can view your friends ...Code: Select all
public function revert_schema() { return array( // 'drop_tables' => array( // $this->table_prefix . 'zebra_confirm' // ), 'drop_columns' => array( // ZEBRA_TABLE => array( // 'bff', // ), $this->table_prefix . 'users_custom' => array( 'profile_friend_show', ) ), ); }
Code: Select all
UPDATE phpbb_users SET profile_friend_show = 0 WHERE group_id NOT IN (1, 6)
Can you give me a visual example?nero wrote:How would you go about styling the friendlist a bit better? Like putting them in individual boxes.
A person coukd go into their friendlist tab in their UCP and choose which ones qualify to display as their top ten (they pick 10).Lucifer4o wrote:I could probably do that ... I will add it to the extension tasks ...
Define "top 10 friends"
This will complicate things a bit ... I will have to test few things and I will get back to you on that (after I complete some work on my other extensions)nero wrote:A person coukd go into their friendlist tab in their UCP and choose which ones qualify to display as their top ten (they pick 10).Lucifer4o wrote:I could probably do that ... I will add it to the extension tasks ...
Define "top 10 friends"
Then the rest would be displayed when someone hit a button on the profile that said "view all friends" if they had more than 10 friends.
id
's in the front-end unless there is a specific reason for it.<center></center>
as its deprecated. style=""
and use a CSS stylesheet instead. Code: Select all
{pending_requests.USERNAME}</span>
<!-- END pending_requests -->
<dd>
Code: Select all
<!-- BEGIN prity_zebra -->
<div id="ze_ajaxify" style="display: block;"><div style="float: left;">{prity_zebra.BFF} {prity_zebra.USERNAME}</div><div style="float: right;"> {prity_zebra.CANCEL} </div> <div style="clear: both"></div></div>
<!-- END prity_zebra -->