Hello. Does anyone know how can I disable collapse function for one or all custom blocks? I am trying to install AdSense and obviously it isn't much use if anyone can just collapse and forget about it.
Thanks in advance!
Disable Collapse for Custom Blocks?
Started by 6mt, Jan 08 2008 10:46 AM
2 replies to this topic
#2
Posted 12 January 2008 - 02:17 PM
6mt, on Jan 8 2008, 12:45 PM, said:
Hello. Does anyone know how can I disable collapse function for one or all custom blocks? I am trying to install AdSense and obviously it isn't much use if anyone can just collapse and forget about it.
Thanks in advance!
Thanks in advance!
never mind, i figured it out. I am sure there are other ways to do this, but this one worked for me.
go to ACP->Look & Feel-> skin_uportal->block_start.
find
<p class="expand"><a href='java script:togglecategory("{$name}", 0);'><{E_PLUS}></a></p>replace with
<if="$name != 'your_custom_block_name'">
<p class="expand"><a href='java script:togglecategory("{$name}", 0);'><{E_PLUS}></a></p>
</if>find
<p class="expand"><a href='java script:togglecategory("{$name}", 1);'><{E_MINUS}></a></p>replace with <if="$name != 'your_custom_block_name'">
<p class="expand"><a href='java script:togglecategory("{$name}", 1);'><{E_MINUS}></a></p>
</if>remember to replace "your_custom_block_name" with whatever you named your custom block (NAME, NOT THE TITLE!)
hope it helps
#3
Posted 18 August 2008 - 10:57 AM
the post above didn't work for me. so I played around a little, and got this to work.
go to ACP->Look & Feel-> your skin-> edit template Html-> skin_uportal->block_start.
find
Replace with
find
replace with
notice I just took out ><{E_Plus} and same for ><{E_MINUS} worked for me. hope this helps someone.
you can see what it looks like here.
go to ACP->Look & Feel-> your skin-> edit template Html-> skin_uportal->block_start.
find
<p class="expand"><a href='java script:togglecategory("{$name}", 0);'><{E_PLUS}></a></p>Replace with
<p class="expand"><a href='java script:togglecategory("{$name}", 0);'></a></p>find
<p class="expand"><a href='java script:togglecategory("{$name}", 1);'><{E_MINUS}></a></p>replace with
<p class="expand"><a href='java script:togglecategory("{$name}", 1);'></a></p>notice I just took out ><{E_Plus} and same for ><{E_MINUS} worked for me. hope this helps someone.
you can see what it looks like here.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











