DeeEmm

Pragmatism in code

Pragmatism in code

Waxing lyrical about life the universe and everything software related since lunchtime 2006.

Dolphin - Open RSS links in same window

If you do not want a new window opening when you click on links in RSS feeds - such as the forum feed, you will need to do the following.

Edit

/inc/js/jquery.dolRSSFeed.js

find two instanced of

Continue reading
Tags:
2941 Hits
0 Comments

Dolphin - Hide banners from guests

If you want to hide advertising banners from non members - do this...

Edit

/inc/banners.inc.php

Search for

Continue reading
2577 Hits
0 Comments

Dolphin - Include instructions on the 'Add Site' page

The sites module in Dolphin sometiumes does not create the thumbnail, often refreshing the page fixes this. To display a simple tip to your members about this do the following...

Edit

/modules/sites/classes/BxSitesFormAdd.php

find

Continue reading
3836 Hits
0 Comments

Dolphin - Hide Menu Bar from Guests

If you would like to completely hide the menu bar from non-members, then this is the mod for you.

Edit

templates/base/scripts/BxBaseMenu.php

Find

Continue reading
8633 Hits
5 Comments

Dolphin - Redirect users after editing profile

If you would like to redirect users to a different page after editing their profiles, then make the following changes.

Edit

pedit.php

Find...

Continue reading
6035 Hits
0 Comments

Dolphin - Auto membership level on join

If you would like to automatically apply membership levels to new members, then this mod is for you.

This can also be useful when wanting to differentiate between different member groups - ie - making all female members of a female only member group. Both methods are shown below.

in profile_activate.php

Find

Continue reading
4321 Hits
4 Comments

Dolphin - Show Group / Events latest forum posts

If you would like to add a block to your Group or Events home pages that displays the latest forum posts , or maybe add a block to the home page for your site, you will need to do the following.

Go to

Builders > Pages Blocks > Groups Home

or Main Events Page for the events page

Continue reading
8144 Hits
0 Comments

Dolphin - Add search by country to Groups

To add an extra search field to your groups - for example 'Country' do the following.

Edit

/modules/boonex/groups/classes/BxGroupsFormSearch.php

Find

Continue reading
3282 Hits
0 Comments

Dolphin - Hide custom pages from non-members

Dolphin is not very good with permissions, as a result it is impossible to assign permissions to individual pages. So if you have created some custom pages for your site that you only want to display to logged in members, you will need the following hack...

Edit

viewPage.php

Find

Continue reading
2739 Hits
0 Comments

Dolphin - Record user Name and ID with IP address

You can (fairly) easily record the userid along with the ip address by adding an extra field to the database table and modifying member.phpHere's how...Add the following fields to the sys_ip_members_visits table in database

ALTER TABLE `sys_ip_members_visits` ADD `UserID` INT( 10 ) NOT NULL

ALTER TABLE `sys_ip_members_visits` ADD `UserName` VARCHAR( 30 ) NOT NULL

 

Continue reading
5682 Hits
11 Comments

Dolphin - Change landing page after login

If you want to direct members to a page other than the standard dashboard page (member.php) after they log in, then follow these simply steps.

Edit member.php

Find the following code

if(!$sUrlRelocate = $_REQUEST['relocate'] or $_REQUEST['relocate'] == $site['url'] or basename( $_REQUEST['relocate'] ) == 'join.php' ) $sUrlRelocate = $_SERVER['PHP_SELF'];

Change it to...

Continue reading
6893 Hits
0 Comments

Dolphin - Remove 'unregister' Links

To disabled the un-register buttons on your site - go to admin > builders > navigation builder and un-check both member and guest check boxes from the unregister link. This will prevent it from being displayed in the top menu and the quick links menu.You will then need to also get rid of the link from the members menu too.To do this you will need to edit your database - look in the sys_menu_member table for the entry named Dashboard - Then you will need to edit the PopupMenu field - simply remove the following text, leaving the rest intact

    'unregister' => array(        'url'     => 'unregister.php',        'icon'    => 'memeber_menu_sub_unregister.png',        'caption' => _t( '_Unregister' ),    ),

Then delete all files in cache folder except for the .htaccess file.

Refresh and enjoy.

/DM

5664 Hits
2 Comments

Add Youtube video button to TinyMCE

Not strictly a Dolphin modification, as it applies to TinyMCE in general, but I will outline it here for Dolphin 7. It's a pretty easy modification to do, just two files to edit.

The functionality for this is already in TinyMCE, but for some reason it is not enabled. I've tested this out on version 7.0.2 with no issues.

To enable YouTube /flash video button in the forums

Edit

Continue reading
12580 Hits
4 Comments

Dolphin - Remove big join button from promo

There are a few different ways of removing the join button from the promo banner. The method you use will vary depending on your requirements. You can even change the location that it navigates to.

Here's a few different methods.

 

Remove (hide) button via CSS

Continue reading
5379 Hits
0 Comments

Dolphin - Remove checkboxes from keyword search page

If, like me, you do not like the massive long list of checkboxes at the top of the keyword search page, removing them is pretty simple.

Edit the following file...

searchKeyword.php

At about line 97 look for the following text...

Continue reading
4172 Hits
0 Comments

Dolphin 7 - Increase text size in comments box

If you have the tinymce editor enabled for comments boxes, and you wish to increase the size of the text, then you will need to do the following.

To alter the size of the text in the comments area - if you have tinymce enabled for comments.

Edit /tinymce/themes/advanced/skins/default/content.css

look for the following element

Continue reading
4583 Hits
0 Comments

Dolphin Tag Converter

If like me, you used the migration tool to transfer your Dolphin 6 based site over to Dolphin 7, you will notice that there are some things that need a little tweaking. One of these things for me was the tags.

On D6 tags could use a space as a delimiter, but on Dolphin 7 the space is ignored, this is to allow multi word tags. What this effectively does is create massive long 'tag words' out of those tags that were entered without using a comma as a delimiter in D6.

The following code reads the tags and splits them up if more than one word is detected. it then deletes the original entry and creates a new entry for each word detected using the original data. Single word tags are ignored

$sql_query = mysql_query("SELECT * FROM `sys_tags`");

Continue reading
3277 Hits
1 Comment

Dolphin Forum - Show Expanded Categories

Here's a quick hack to get the forum categories to display as expanded by default on the forum home page.

Edit modules/boonex/forum/classes/Forum.php

Search for the following...

            if (( isset($p['cat']) && $p['cat'] == $r['cat_uri'] ) /*|| 1 == $r['cat_id'] */)            {                $this->setTitle ($r['cat_name']);                $c .= ''.$this->getForumsXML ($r['cat_uri'], 0) . '';            }

Comment the following lines

Continue reading
4852 Hits
0 Comments

D7 Hide Promo from logged in users

If you would like to hide the flash promo from displaying to logged in members all you have to do is the following.

Edit inc/design.inc.php

Find the following line in the getPromoCode() function (it's the last line)

return $sCode;

Continue reading
2723 Hits
2 Comments

D7 Move avatar from promo to banner

After updating my Dolphin 6 site to the new version 7 software I decided that I wanted to move the avatar to the banner - basically the same as for my D6 site. I also wanted to put the quotes at the bottom - I decided to mimick the style and layout for my D6 site - I wanted my upgrade to D7 to be more or less transparent to my users.

 

How To Relocate the daily quotes

To modify the quotes position is  simple enough - you just need to modify the sys_injections table - look for quotes_injection and then change the key to injection_footer_after

injection_footer_after refers to the tag that the content will replace - in this case the tag in the footer

Continue reading
3263 Hits
1 Comment