
05-11-2012, 01:57 PM
|
|
|
Join Date: Apr 2005
Posts: 1,287
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by almannai
I got your pm.
You edited the mod but you didn't send the code so that I can help you.
Please send all changes you made to be able to direct you to avoid the error you are having.
|
Quote:
Originally Posted by KevinL
Hello,
I sent you the exact changes we made.
We edited this function:
original -
function rebuild_sidebar($sidebar_obj,$sidebar_str){
Edited -
function rebuild_sidebar_notnow($sidebar_obj,$sidebar_str){
Like explained, we changed this so custom blocks will show. Right now with that function custom HTML blocks do not show.
Thanks!
|
Changing back the function and using the code below works but then it triples the blocks.
Quote:
Originally Posted by Luerssen
ESidebar's code are so f... ugly... btw:
If you're using HTML blocks (especially <li> tag), you could notify that 1.5.0 broke your footer. Here's how to fix this:
Go to Plugins -> Modules, find module "sidebar_global", edit it:
Find
PHP Code:
$fullblocks = explode('<li>',$sidebar_str);
Replace with
PHP Code:
#$fullblocks = explode('<li>',$sidebar_str);
# fix by Arhivarius @ Forum-Grad
$fullblocks = preg_split("/<li>\s+<div class=\"block/i", $sidebar_str);
|
|