Coding modes for the Dolphin Newbie

Thanks to everyone who has help me with TheMediLounge

Here is a list of mod changes I have used, that are listed all over the forum from different dolphin users. I have put them together in one place in hopes that you won't drive the people on this forum CRAZY like I did so many nights. You know who you are.CryIf anyone else can add to this list please do.

Coding mods for the Dolphin Newbie

How to add moderators to your chat room:

Yes, you can make moderators for you chatroom as well. I little weird how its done, but here is how:

**Whoever you want to be a moderator HAS to be in the chatroom at the time you do this

From Admin Panel, Click Modules>Flash Apps> Open the A/V Chat and click the Admin button underneath it. This will launch a new window from within the Admin Panel. You are now logged in as the Chat Administrator. Click the person you want and then click Moderator. That’s it!

You can assign multiple if you want. Now that person has the ability to Kick and Ban from the chatroom.

Creating a search engine friendly new Dolphin page

Navigate to Admin Panel -> Builders -> Pages Builder

Click the New Page link in the upper right corner

Enter a new name -> Press Ok

After page reload you need to create columns by clicking the Add column link

Then you can create HTML or RSS blocks by dragging them from the Samples area to the columns you created. You need to release the blocks only after you can see a placeholder in the Active Blocks. Sometimes you will need to drag the block to the lower-left corner of the area to see the placeholder.

After you have completed, click the View page link above the Active Area block

You will see a page with the address like http://yoursite_url/viewPage.php?ID=NewPage

Open the .htaccess file in your Dolphin's home directory, find the following line:

RewriteCond %{REQUEST_FILENAME} -f [OR]

and insert the following line before it:

RewriteRule ^NewPage$  viewPage.php?ID=NewPage [QSA,L]

Note: If the name of your page contains spaces, you need to specify the previous instructions the following way:

RewriteRule ^New\sPage$  viewPage.php?ID=New+Page [QSA,L]

After that your new page will become available at the URL: http://yoursite_url/NewPage or http://yoursite_url/New Page (with a space)

N.B. You have to replace the NewPage with your desired page name.

Now you will be able to add this link to the navigation menu using the Navigation Menu Builder

How to change chat box title:

The easiest thing to do is from Admin Panel got to Settings>Language Settings and in the "Look For:" box put in this

Acronym


_chat_page_caption and put a check mark in the Apply. Edit the string that it pulls up and type in whatever you want your Chat page to say. (This will change the name in the browser bar at the very top)


You can also repeat the same steps for _chat_box_caption and this will change the name of the caption displayed at the top of the Chat box.

How to keep shout box message from disappearing:

go to admin panel/modules/shoutbox/ put 0 for "Clean message older than (sec)

How to get rid of sex and age in the chat room:

flash/modules/chat/langs/english.xml

line 21

"txtUserCaption"><![CDATA[#nick# #age#, #sex#.]]></item>

item key="txtUserCaption"><![CDATA[#nick# #age#, #sex#.]]></item>

change to

item key="txtUserCaption"><![CDATA[#nick#]]></item>

How to get rid of the Hot List:

edit templates/base/scripts/BxBaseCommunicator.php and remove 'hotlist_requests'  =>  _t( '_Hot lists' )

_t( '_MEMBERS_YOU_HOTLISTED' )

_t( '_MEMBERS_YOU_HOTLISTED_BY' )

How to remove the sex symbols next to profile picture:

edit member.php

From:

$sProfileIcon = ($this->aMemberInfo['Sex'] == 'male') ? $sMaleIcon : $sFemaleIcon;

To:

//$sProfileIcon = ($this->aMemberInfo['Sex'] == 'male') ? $sMaleIcon : $sFemaleIcon;

------------

From:

<img src="{$sProfileIcon}" /> <img src="{$sProfileIcon}" />

To:

<!--<img src="{$sProfileIcon}" />-->

How to remove sex symbols from various places, follow file path:

html/templates/base&file=mail_box.html

remove: <img src="__member_sex_img__" alt="__member_sex__" />

html/templates/base&file=mail_box_contacts_list.html

remove: <img src="__member_sex_img__" alt="__member_sex_img_alt__" />

html/templates/base&file=communicator_page.html

remove: __member_sex_img__

How to remove Hotlist Requests:

html/templates/base/scripts&file=BxBaseCommunicator.php

'hotlist_requests' => _t( '_Hot lists' ),

How to add a Fav Icon:

Fav icon is in public_html

hey Magnussoft, I just uploaded my favicon.ico to my root directory and I still haven't seen the icon showing up yet.  i installed dolphin in public_html/main folder so I put favicon.ico in main folder.  right?  Anything else i need to edit?  what about _header.html?

hat is the file format of your favicon size and color depth?

Most modern browsers support a favicon in either gif,png and jpg which you just rename to favicon.ico

Older versions of IE required the the favicon.ico file be in icon format. No longer the case.

The image size should be 16x16 or 32x32 and be 8 or 24 bit color depth.

Put this  <link rel="shortcut icon" href="favicon.ico">   in < head > PUT HERE < /head > section.   templates/index.html

Should work within an hour.

e size is 16px by 16px and the depth is 8.  I just saved the file as jpg and renamed it to favicon.ico  I put the file in the main directory.  I cleared all cache.  The icon still doesn't show up after a couple hours.

@rhimpr

I added the extra tag in template/index.html and it still doesn't show up after a couple hours.

It's so weird.  I feel like i'm the only one having this issue.  :-/

ang on a minute. Did you say that you saved it as a JPEG and then renamed it with a .ICO extension? That could be your problem, as you must either save it natively as an ICO file, or convert it to one. To convert the image in question, visit: http://converticon.com/.

Also try adding it to your favorites/bookmarks.

How to add a background picture to your website:

/templates/base/css

common.css

body {
font-family:Verdana,Arial;
font-size:11px;
color:#333333;
background-color:#589CBC;
margin:0px;
padding:0 0 50px 0;   
}

change to

body {
font-family:Verdana,Arial;
font-size:11px;
color:#333333;
background-image:url(../images/YOUR-IMG.gif );
margin:0px;
padding:0 0 50px 0;   
}

Note the uploaded image should be in

/templates/base/image

You can also change the background color here by changing the color code.

How to add a picture to your header below your logo:

templates/base/_sub_header.html ...

upload your image to /templates/base/images

Add your website information along with the path to your picture file below in red.

__main_logo__

<bx_injection:injection_logo_after />

</div>

</div>

<img src="http://www.themedilounge.com/templates/base/images/colorbar.png" style="padding-top: 10px; padding-bottom: 5px; height: 13px; width: 998px; margin-left: auto; margin-right: auto; display: block;">

<bx_injection:banner_top />

</div>

<bx_injection:injection_between_logo_top_menu />

<div class="sys_top_menu">

How to add a custom HTML to your promo box

<div id="indexPhotoBorder">
<div id="indexPhotoLabel">
<div class="sys_title">Welcome to the community!</div> You can change your greeting here
<div class="sys_promo">
<div class="subMenuOvr">
<div class="sys_tm_actions">
<div class="input_wrapper input_wrapper_input_set">
<div style="margin-right: 14px;" class="button_wrapper">
<input type="button" onclick="window.open (\'join.php\',\'_self\');" name="join" value="Join" class="form_input_submit bigJoinButton submit">
<div class="button_wrapper_close">&nbsp;</div>
</div>
<div class="button_wrapper">
<input type="button" onclick="showPopupLoginForm(); return false;" name="login" value="Login" class="form_input_submit bigLoginButton submit">
<div class="button_wrapper_close">&nbsp;</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div onclick="location=\'join.php\'" id="indexPhoto" style="overflow: hidden; position: relative;">
<img src="media/images/promo/promo_p04.jpg" style="position: absolute; left: 0px; top:

Change promo_p04.jpg to your selected picture or logo

0px; display: block;"></div>
</div>

This change will show the Promo image reloader to guests only, and it will not be displayed once a user is logged in. This will allow site owners to use the Promo image rotator to show guests what they can do on the site, and not annoy logged in members with what they already know.

In the file: /inc/design.inc.php

Find:

function getPromoCode() {
global $site;

$sSiteUrl = BX_DOL_URL_ROOT;

if( getParam( 'enable_flash_promo' ) != 'on' )



Change to:

function getPromoCode() {
global $site;

$sSiteUrl = BX_DOL_URL_ROOT;
if(!isMember())
if( getParam( 'enable_flash_promo' ) != 'on' )

In the file: templates/base/css/index.css    - add the text in red

How to remove 'Welcome to the community Login/Join" banner plastered across the bottom of the promo.


#indexPhotoLabel {
display:none;
height:82px;
line-height:82px;
position:absolute;
bottom:0px;
width:100%;
z-index:1;
background:transparent url(../images/opSplash.png) repeat-x scroll left top;
}

Quote · 13 Mar 2010

Awesome information...ii need heaps of this info...all is one place...great post...good work mate!!!

Quote · 25 Apr 2010

Please move this topic into the proper section.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 25 Apr 2010

@medfly beautiful! Thanks for sharing with us!

If you still haven't found a solution for the favicon problem here is what I found very useful. You place the favicon.ico in your root folder. Then you go visit it with your browser as follows http://www.yourwebsite.com/favicon.ico and click go. You should be able to see the favicon.ico on your browser, and at the same time it should appear up there next to the site address.

Quote · 10 Dec 2010

I follow the steps to inject a sub header. but, there is no any changes in out put.. is there any other changes i want to do?? such as changes in general.css??  

Quote · 15 Dec 2011

ok.. done.. i juz clear the cach.. now its showing the sub header. i wanna show this like link instantly near to the logo. how?? solutions plz.. 

Quote · 15 Dec 2011

Very good, easy for us new people, 

$sProfileIcon = ($this->aMemberInfo['Sex'] == 'male') ? $sMaleIcon : $sFemaleIcon;

Where does it convert from being male / female  to "sex" and the same with the Date Of Birth to "age" i am trying to add new images on a profiles like the male / female / country ones depending on what options someone has choose when they joined and or editing there profile, so knowing this would be a great help.

Do you also know if you can save chat conv? worth a try asking here

 

 

Job well done by the way!

Quote · 18 Jan 2012
 
 
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.