The Wild

How to Modify Profile Pages in Dolphin CMS

· 4 min read · Ocean Life

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Dolphin CMS (also known as Boonex Dolphin) is a community platform where user profiles are central. Modifying profile pages lets you change the layout, add custom fields, or display extra information. This guide covers the two main approaches: using the built-in Designer tool for layout changes and editing template files for deeper customization. You'll need admin access to your Dolphin installation and, for file edits, FTP or file manager access.

What You'll Need

  • Admin login credentials for your Dolphin CMS.
  • FTP client (like FileZilla) or cPanel file manager to edit template files.
  • A text editor (like Notepad++ or Sublime Text) for code changes.
  • Basic understanding of HTML/CSS and PHP (for advanced edits).

Step-by-Step

Using the Designer Tool (No Coding)

  1. Log in to your Dolphin admin panel. The URL is usually yourdomain.com/admin.
  2. Go to Design > Designer. This opens the visual editor for your site's templates.
  3. In the Designer, select the Profile page from the dropdown list of pages. It might be labeled "Profile View" or "Member Profile."
  4. Use the drag-and-drop interface to rearrange blocks (e.g., move the "About Me" block higher). You can also click on a block to edit its content or delete it.
  5. To add a new block, look for a "Add Block" button (often a plus icon). Choose from available content blocks like "Custom Text" or "HTML Block."
  6. If you want to change colors or fonts, click on the Settings icon (gear) in the Designer toolbar. Adjust the CSS variables or use the color picker.
  7. Click Save to apply changes. Preview the profile page to see the result.

Editing Template Files (Advanced)

  1. Download the current profile template file from your server. It's typically located at templates/base/scripts/ or templates/tmpl_<your_template>/scripts/. Look for files like profile_view.php or profile_edit.php.
  2. Open the file in your text editor. The file contains PHP and HTML code that generates the profile page.
  3. Locate the section you want to modify. For example, to add a custom field, find the <?php block that outputs profile info and add a new line echoing the field data.
  4. To add a new field to the profile, you first need to create it in the admin panel: Users > Fields. Add a new field, note its name (e.g., CustomField).
  5. In the template file, use the field variable. For Dolphin, profile fields are usually accessed as $this->_oProfile->getCustomField('CustomField') or similar. Check existing code for examples.
  6. If you need to change the overall layout (e.g., two-column to three-column), edit the HTML structure. Look for <div class="profile_left"> and <div class="profile_right"> and adjust the CSS classes or add new divs.
  7. After editing, upload the file back to the server, overwriting the original. Always backup the original first.
  8. Clear the cache in Dolphin admin: Tools > Cache > Clear all.

Common Mistakes

  • Editing the wrong template file – Dolphin can have multiple templates. Make sure you're editing the one that is active (check Settings > Templates).
  • Not backing up before editing – A small syntax error can break the profile page. Always keep a backup.
  • Forgetting to clear the cache – Changes may not appear until you clear the template cache.
  • Using the wrong variable name for custom fields – Field names are case-sensitive and must match exactly.
  • Overwriting core files directly – If you modify files in templates/base/, updates will overwrite them. Better to copy the file to your custom template folder and edit there.

Tips

  • Use the Designer for simple layout changes – it's safer and easier.
  • For custom fields, always test on a staging site first.
  • When editing PHP, keep the <?php tags intact and don't mix HTML inside them without proper echoing.
  • Use a child template if your Dolphin version supports it (e.g., templates/tmpl_yourname) to avoid losing changes on upgrade.
  • Check the Dolphin community forums for pre-made profile templates and snippets.

Troubleshooting

  • Changes not showing: Clear the cache in admin panel. Also, hard-refresh your browser (Ctrl+F5).
  • White screen or PHP error: This usually means a syntax error in your edited file. Restore the backup and redo the changes carefully.
  • Profile page loads but looks broken: Check for missing CSS classes or unclosed divs. Use browser developer tools to inspect the HTML.
  • Custom field not displaying: Ensure the field is set to be visible in the profile (edit the field settings in admin). Also, confirm the variable name is correct.
  • Designer changes not saving: Check file permissions – the cache and template folders need to be writable (usually 755 or 777).

Frequently Asked Questions

Can I modify profile pages without coding?

Yes, the Designer tool allows you to move blocks, change colors, and add simple content blocks without touching code.

Where are profile templates stored?

They are in the templates folder, under your active template's scripts subfolder, typically named profile_view.php and profile_edit.php.

How do I add a new field to the profile?

Go to Users > Fields in admin, create a new field, then edit the profile template to display it.

Will my changes be lost when I update Dolphin?

If you edit the base template, yes. To avoid this, copy the file to a custom template folder and edit there.

Can I change the profile page layout to three columns?

Yes, by editing the HTML structure in the template file and adding CSS for the new columns.

Why does my profile page show a blank area after editing?

This often happens when a PHP block fails to output due to an error. Check the server error log or enable error reporting temporarily.