Need some help with BLOCKS

Hello,

I have created 2 new blocks on the profile page but I am not able to change the style of those blocks. See the image attached below and help me with your experience.



As shown in the above image, the 2 new blocks ( Pointed in RED ) " The cause -  why do you run for deepam? " and " Fundraising goals " are not looking like the " About the runner " block ( Pointed in BLUE ) ............ here " About the Runner " = " Description " ( Default profile description block in D7 ), I have changed its name

So what I want to do is, I want to make the 2 new blocks look like the default block, just to save some space there.

Some one please help me with this issue.

Vivek.

Quote · 14 Apr 2010

Hello!

First plz specify way of ur new blocks creation. It depends of their type - php fucntion in BxBaseProfileView.php file or just HTML code in Page Builder.

Regard

Quote · 14 Apr 2010

Hi,

I just use HTML block in page builder and I dont know the other one you said i.e., about PHP function. So please help me according to using HTML block in page builder.

Quote · 14 Apr 2010

Some one please help me with this issue

Quote · 15 Apr 2010

There is a nice free mod somewhere in the Market that give instructions about how to customize the look of any block... The name of this free mod is DesignBoxMod...

Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine.
Quote · 15 Apr 2010

Hey I searched for that mod for the whole day but I couldn't find it :( I may left it some where. Can any one tell me where can I find it in the market ? any tags ? or any links to that mod

Quote · 16 Apr 2010

Are you looking to hide the field caption inside the blocks you created?

From your screenshot:
"Fundraising Goals" -> Block title
Field caption "Goals" -> Hide/remove "Goals" ???

Quote · 16 Apr 2010

PageBlock Template Changer

Quote · 16 Apr 2010

@Robin

Yes mate I want to remove GOALS from there so that the content takes the whole area :) as I don't want to see that caption there.

@okweb

Thanks for the link to the mod :) will try it out and let you know how I used it ;) thnx once again.

Quote · 17 Apr 2010

Guys I tried a lot made many changes to that block but I am not able to remove that caption "Goals" and "Because" in the 2 new blocks :( Can any one tell me how to remove it ?

Quote · 19 Apr 2010

Some one please look into this one ....

Quote · 20 Apr 2010

Guys I tried a lot made many changes to that block but I am not able to remove that caption "Goals" and "Because" in the 2 new blocks :( Can any one tell me how to remove it ?

I can take a look at it, but I need to know how you added this blocks on the Profile Fields Builder,
which of these used you Text, TextArea or HtmlTextArea!!!!

Quote · 27 Apr 2010

I tried it with both textarea and htmltextarea, but there are no changes in the output as both are functioning almost same and the output looks exact as the other one

Quote · 15 Jun 2010

I tried it with both textarea and htmltextarea, but there are no changes in the output as both are functioning almost same and the output looks exact as the other one

You can do it this way, much have you already done...
this will do the new block on profilepage, equal to the Description block



1)
A)
Fields Builder -> Join Form
add a new item(you have allready done it) I will name this new item RunnerMe


General
-------
System name: RunnerMe
Caption: Runner
Description: Why Do You Run....should be at least {0} characters long.
Type: HtmlTextArea

SAVE IT


Advanced
--------
Minimum value: 5

SAVE IT

you can also choose mandatory here


Messages
--------
Mandatory error message: You must enter why you run
Minimum exceed error message: Description should be at least 5 characters long

SAVE IT


Item RunnerMe shall be below Active Items
=================================


B)
Fields Builder -> Edit Profile

Click on item RunnerMe

Caption: Runner

SAVE IT


Item RunnerMe shall be below Active Items (Owner and Admin)
=================================================


C)
Fields Builder -> View Profile

Click on item RunnerMe

Caption: Runner

SAVE IT


Item RunnerMe shall be below Inactive Items
====================================



2)
A)
Pages Blocks
select page Profile -> Add a new HTML Block, drop it below Description block
click on the new HTML block

Caption Lang Key: Runner
Visible for: Guest and Member

SAVE IT


B)
use phpMyAdmin and choose table sys_page_compose
att the end of the table you will find your new HTML Block (Capti alt= Runner)
edit it as below

Desc: Profile Runner block
Caption: Runner
Func: Runner

SAVE IT

C)
Go to Pages Blocks
and move the new Block Runner down a bit and drop it and then move it up again and drop it again
(this will save the last change you do on DB)

Not sure about you need to do it, but clean all Cache.


3)
open file templates/base/scripts/BxBaseProfileView.php

add code below after function getBlockCode_Description()


function getBlockCode_Runner() {
global $oSysTemplate;

$aProfileInfo = getProfileInfo($this -> oProfileGen -> _iProfileID);
if(!$aProfileInfo['RunnerMe']) {
return;
}

$aTemplateKeys = array(
'content' => $aProfileInfo['RunnerMe'],
);

return $oSysTemplate -> parseHtmlByName('default_padding.html', $aTemplateKeys);
}

Quote · 15 Jun 2010

Thanks alot mate..

I will try it now and post the outcome here :) thnx once again for the long post :D

Quote · 16 Jun 2010

Wow it worked awesome man :D thanks a lot for helping me ..... if anyone want to have to look at a screenshot please reply here or message me I will add the screenshot :) Customizing it according to my need now.

Quote · 16 Jun 2010
 
 
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.