Adding Usernames to Page Titles in Oxwall

Rename “Your Dashboard” with a User’s Name

Hello fellow Oxwallers!

Today I am going to show you how you can rename your page titles such as “Your dashboard” to include usernames such as “Dave’s Dashboard”. This is actually a rather simple thing to do and in just a few easy steps, I’ll show you how you can get this accomplished.

1. Go to your cPanel and open the following file in file manager

File: ow_system_plugins/base/controllers/component_panel.php

Original Code: $this->setPageHeading(OW::getLanguage()->text(‘base’, ‘dashboard_heading’));
Modified code:

$displayName = BOL_UserService::getInstance()->getDisplayName(OW::getUser()->getId());
$this->setPageHeading(OW::getLanguage()->text(‘base’, ‘dashboard_heading’, array(‘username’ => $displayName)));

2. From the admin panel of your Oxwall website go to the following location:

admin panel>>settings>>languages>>edit text key {text

key=’base+dashboard_heading’}

Original text: My Dashboard
Modified text:{$username}’s Dashboard

Congrats on the new mod. I think this definitely another small mod that helps you site looks more personal to your members. In other words it makes your oxwall based website appear more professional and that is never a bad thing.

NOTES:

1. This will rename only heading and not the menu title
2. All custom code modifications will be erased if you updated the software.
3. You are doing any custom code modifications at your own risk. So always back up the file you are editing to have original one just in case.

Thank you,
Charles Benson,   http://OxwallAccessories.com

Looking for quality OxWall Hosting? Look no further than Arvixe Web Hosting!

– See more here

Credit for blog post goes to Emil from the Oxwall Team.

– See more here!

Tags: , , , , , , , , , , , , , , | Posted under Oxwall | RSS 2.0

Author Spotlight

Charles Benson

Charles Benson

I'm here to find you answers and give you tips on running an oxwall based website through Arvixe Web hosting. If you need anything at all feel free to get in touch with me!

Leave a Reply

Your email address will not be published. Required fields are marked *


3 + = 4

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>