Login
Main menu

Pragmatism in code

Michael Percy AKA DeeEmm - Waxing lyrical about life the universe and everything software related since lunchtime 2006.

Subscribe to this list via RSS Blog posts tagged in D7
This tag contains 4 private blog which isn't listed here.
2554

The DeeEmm Dolphin 7 Sitemap generator has just been updated. The update addresses an issue where multiple URLS are included within the sitemap.

Some configuration parameters have also been added to make it easier to customise the output.

Links from each module can now be easily enabled / disabled from appearing in the sitemap.

Updating is simply a case of overwriting your old sitemap.php file.

...
Continue reading
Recent Comments - Show all comments
  • DeeEmm
    DeeEmm says #
    Just a quick note. I can confirm that this is working for 7.0.4.
  • DeeEmm
    DeeEmm says #
    Just added a further update. Seems that there was a new issue with Query strings in the URL. Also changed the XML schema to allow
8405

A new blog post by Andrew Boon over at Boonex, has finally announced the upcoming release of 7.0.3. Whilst there is still no commitment to a date, it is scheduled for the beginning of August. This is great news, as for a moment it almost looked like Boonex had forgotten about Dolphin, I was almost certain that the next announcement from them was going to be the release of Trident.

It's good to see Boonex continuing to follow their promise of more regular updates, and whilst I may be very vocal over at Boonex.com about a monthly release cycle, the truth is, anything is better then the year waited for D7, especially when you consider the failure that it was bug wise. As with any of these interim releases, bugs have to be prioritised, so not everyone will get what they want, but give it time and all bugs will eventually get fixed.

It will be interesting to see what kind of balance between bugs and features there are. I personally think that the bugs should have a higher priority than features, but I guess that Boonex policy differs form this, as there are generally some new features released with every update.

New Improved Orca

...
Continue reading
2675

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
Tagged in: D7 Dolphin 7 RSS
2358

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

Edit

/inc/banners.inc.php

Search for

...
Continue reading
3666

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
9133

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
Recent Comments - Show all comments
  • DeeEmm
    DeeEmm says #
    Hi Eric, The code should be added to the templates css file (index.css should work). Adding it to the end of the file should suff
  • Eric H
    Eric H says #
    In the part where you hide the stripe, exactly where do you insert that code? First part worked perfectly!
  • dave
    dave says #
    You can also turn off the bottom menu before login. Open inc/classes/BXdoltemplate.phpGo To Line 723: case 'bottom_links':replace:
3083

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
2492

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
5602

You can (fairly) easily record the userid along with the ip address by adding an extra field to the database table and modifying member.php

Here'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
Recent Comments - Show all comments
  • DeeEmm
    DeeEmm says #
    Ron, try checking the last page of recorded names. The list is in reverse order to what you may expect - newest last. I have some
  • Ron
    Ron says #
    7.0.4 records ip's, but it's not showing the member name for me. It's kind of useless set up the way it is if you can't associate
  • DeeEmm
    DeeEmm says #
    It looks like 7.0.4 already records the members nickname. Happy to take a look, but what would you like it to record?
6651

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
3034

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
Recent comment in this post - Show all comments
  • DeeEmm
    DeeEmm says #
    This also available as a downloadable MOD from our store - [url]http://www.deeemm.com/store.html?page=shop.product_details&flypage
7682

It would seem that this weekend has been an active time in the CMS community for security vulnerabilities, first Joomla issue a patch for a potential XSS issue, and now Boonex's Dolphin package has been raising some eyebrows with, an as yet unresolved security issue that exposes the database name, username and password, in plain text to the browser via a verbose error report. This report is triggered by any number of bugs, and could easily be used to compromise a website or server.

The security 'hole' had previously been reported and raised as an issue with the Dolphin developers, who's response was that it had been addressed. Amusingly this seems not to have been the case, with the latest attention being that the bug has now been witnessed on the Boonex admin test site, and the resulting full error report published. - http://www.boonex.com/unity/forums/topic/Hey-BoonEx-Notice-Something-.htm There is some further discussion in the blogs as well - Major Security Risk: Information and Temporary Solution

The community were quick to act, with a couple of suggested workarounds published on modmysite - http://www.modmysite.com/general-issues-comments-questions/10491-db_full_visual_processing.html#post39764 as well as on the Boonex site, but there has been no official response.

As of the time of this post, some three days after the original post, Boonex have still yet to comment, and there has been no official patch available to address the issue.

...
Continue reading
Recent Comments - Show all comments
  • DeeEmm
    DeeEmm says #
    UPDATE.On further investigation it would seem that the main issue is that error_reporting is set to E_ALL in the header.inc.php fi
  • DeeEmm
    DeeEmm says #
    OK The above fix is not the complete answer....A better solution is this...Comment out whole genMySQLErr function.And add am echo'
  • DeeEmm
    DeeEmm says #
    OK - here's my fix for this...edit the following fileBxDolDB.phpfind if( DB_FULL_VISUAL_PROCESSING )replace it with/* if( DB_FULL_
4464

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
2106

The DeeEmm Dolphin Tiny MCE Browser modification has now been updated to work with the new Dolphin 7.0.1 release.

This release is a compatibility update, There are no additional features or bugfixes included.

If you have previously purchased the 7.0.0 version, you will be pleased to know that you are entitled to a free update. If you would like a copy of the updated files, please email me and i will send a copy out to you.

As usual, support for purchasers of our premium modifications are all entitled to access to the help-desk for priority 1-on-1 support. General support, bug reports, and feature requests can be posted to the forums.

...
Continue reading
5146

The latest release to Boonex's CMS system - Dolphin 7, has now been out on the wild for some time. Released at Christmas, the much anticipated Dolphin 7 was to be heralded as the latest in web tech, offering an advanced platform for social networking sites that was far ahead of the competition. With several public beta releases, the anticipation was fueled by the glimpses offered in each release, building up the expectations to a massive level. Also adding fuel to this fire, was the long overdue update and bugfix release due for Dolphin 6. As a result, Dolphin 7 had a lot to deliver.

With the release of Dolphin 7 finally made a year later than expected, it was unleashed into the public with a massive amount of issues, over 300 bugs to be precise. This left the Dolphin community a little abashed, with many users having stuck with Dolphin, through the extended development period, now feeling disappointed. Lots of these users had put development plans on hold, with the expectation that the promised release would be the answer to their needs.

It is now a further 5 months down the line, and the recent update release 7.0.1 has addressed many of the problems that plagued version 7. The problems are not completely fixed however, and there are still many issues surrounding how development and releases are handled, but it seems that Boonex are moving in the right direction with a shorter release cycle, and prioritisation of bugs addressed for each release. I previously touched on this issue with one of my blog posts over at unity - http://www.boonex.com/unity/blog/entry/Product_release_cycles

Based on past performance at Boonex, and anticipating the issues and extended wait with version 7, when it was originally announced, I decided to stick with version 6  - This is a choice that i am glad i made. Not only as the expected release date slipped way beyond the original estimate, and there were more issues than even I anticipated, but also as it has meant that I have managed to build my user-base over the past year, and develop the community for which the site serves.

...
Continue reading
2458

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
Recent Comments - Show all comments
  • DeeEmm
    DeeEmm says #
    Sure - Here you go - Just follow the link - [url]http://www.deeemm.com/resources/tutorials/42-dolphin-70x-modifications/181-dolphi
  • davidjmorin
    davidjmorin says #
    Hey i was wondering if you could make one for hiding the menu bar for non members. ???
3046

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
Recent comment in this post - Show all comments
  • DeeEmm
    DeeEmm says #
    Please note that the opening less-than-sign has been stripped from the injection tags by the CMS.
3234

You may have noticed that after neatly setting out your post within the TinyMCE editor, when the page is published, the paragraphs are all squashed up.

The issue is a CSS issue. Basically the style applied to the P tag by TinyMCE and D7 are different - so it displays OK in the editor, but when the D7 code renders it - it is displayed differently.

The offending code is in templates/base/css/general.css, the attribute margin:0px is applied to the P tag, remove this and the issue will be gone, BUT there is one caveat - obviously this affects ALL instances of the P tag - so it may be that whilst this cures the immediate issue, it may cause problems elsewhere (i've not tested this, and this may be different for your site - depending on which template you use and what modifications you have applied to them)

To fix the issue, you will need to change general.css in two places -

...
Continue reading

Search