Exchange Your Boonex Tricks

Here We can Exchange Our trusted tricks with other

Quote · 27 Mar 2013

Friend Request Block Set On All Pages

For Example This Is Nice One Trick

 

In Dolphin it is not very obvious when someone is requesting to befriend. You have to go to accounts, and then activities.

So, my solution to this is as follows

Use Deanos Tools to add a PHP block code to the HOMEPAGE and add the following code;

$iProfileID = getID( $_GET['ID'] );
$oDb = new BxDolDb();
$sSQLQuery = "SELECT Profile FROM `sys_friend_list` WHERE `Profile` = $iProfileID AND `Check` = 0;";
$sProfile= $oDb->getColumn($sSQLQuery);

if ( $sProfile[0] != 0 ) {
echo "<A href='http://www.YOURDOMAINNAMEHERE.COM/communicator.php'>
<table> <tr bgcolor="#FFFF00"><td> You have a friend request !</td></tr> </table> </A>";
}


 

I have this block of code at the top, so that it cannot be missed.

Thats all, have fun!

W//

Quote · 27 Mar 2013

Media Uploading Limit Setting

 

I believe in all newer versions of dolphin, file size limits in dolphin are obtained from the PHP INI max upload setting as per this code in inc/classes/BxDolFilesUploader.php at line 66 in the BxDolFilesUploader function

        $this->iMaxFilesize = return_bytes(ini_get('upload_max_filesize')); //max allowed from php.ini
        $this->sMultiUploaderParams = array( //Important! Should be override with necessary params
            'accept_file' => '', //Important! Current file non exist. Should be override with accepting file (addFile.php)
            'multi' => 'true',
            'auto' => 'true',
            'accept_format' => '*.*',
            'accept_format_desc' => 'All Files',
            'file_size_limit' => $this->iMaxFilesize, //Examples: 2147483648 B, 2097152, 2097152KB, 2048 MB, 2 GB
            'file_upload_limit' => '10',
            'file_queue_limit' => '5',
            'button_image_url' => BX_DOL_URL_PLUGINS . 'swfupload/images/XPButtonUploadText_61x22.png',
        );
    }


I have yet to test this to see if it affects photos as well. I think it does as dolphin shares a lot of things and i believe all uploaded files are handled by the same uploader functions.

Quote · 27 Mar 2013

Move Guests instnand to join.php

 

Have you tried searching forum? There are couple of topics about this. this one +1

Do this
In index.php just after

check_logged();

Put this

if(!isMember())
      header('Location: join.php'); 

And done. Good luck

Quote · 27 Mar 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.