SimplePortal

Support => English Support => Topic started by: Nabil on November 30, 2008, 05:48:26 AM

Title: Simple Portal 2.1 blocks problem
Post by: Nabil on November 30, 2008, 05:48:26 AM
please take a look at my settings and tell me how to fix this problem : I cant let the blocks
appear in the Portal and Forum together I can either choose Portal or Forum but not both.

in the last image where the choice Portal and Forum the Blocks are only shown in the Portal but not in the Forum , all other choices are displayed correctly as expected
Title: Re: Simple Portal 2.1 blocks problem
Post by: [SiNaN] on November 30, 2008, 07:14:42 AM
"Forum" option only shows the block on forum main page. If you want it to be displayed in portal and all forum pages, then select the "All Pages" option from the selectbox.
Title: Re: Simple Portal 2.1 blocks problem
Post by: Nabil on November 30, 2008, 07:54:00 AM
Quote
"Forum" option only shows the block on forum main page
thats exactly what I want , only in the main page of the forum, not in the Topics not in the search page , profile etc. but this is not happening , if you see the last image you'll see the choice Portal and Forum so the blocks should also appear in the forum main page but the blocks are not displayed there.
Title: Re: Simple Portal 2.1 blocks problem
Post by: [SiNaN] on November 30, 2008, 07:59:29 AM
Can you provide me an account on your forum with necessary permissions to check it, via pm?
Title: Re: Simple Portal 2.1 blocks problem
Post by: Nabil on December 01, 2008, 04:43:37 AM
I have solved the problem by adding a seperate block for the forum , because it wasnt possible to let the same block to be displayed in the portal and in the forum
, but the problem was I cant make another block with the same name , this would let this error message appear :
'That name is already in use. Please use a different name.'so I have added some code to the SportalBlocks1-1.template.php

Code befor change :
Code: [Select]
echo '
', parse_bbc($block['label']), '
</td>

after the change :
Code: [Select]
$changethename=$block['label'];
if (substr($changethename,-1)=='#'){
$length=strlen($changethename);
$changethename= substr($changethename,0,$length-1);
};

echo '
', parse_bbc($changethename), '
                                              </td>

so now if I want to make a block like  'User Info'  in the forum which is already exists (displayed in the portal) for example , I just have to give it the name 'User Info# '
but it will be displayed as 'User Info'

this solution is useful if you only have the problem that I have (not able to display the same block in the portal and in the forum)
Title: Re: Simple Portal 2.1 blocks problem
Post by: [SiNaN] on December 01, 2008, 05:18:15 AM
That's not a good solution really.

I installed a new SMF 1.1.7. Then installed SimplePortal 2.1.1. Set the exact same settings and everything worked as expected.

It is better to figure out what the problem is with that.

You are using 2.1.1 right, not 2.1? If you are using 2.1, update to 2.1.1. Without uninstalling the 2.1, just install the new version.
Title: Re: Simple Portal 2.1 blocks problem
Post by: Nabil on December 01, 2008, 05:42:54 AM
I have 2.1  so I'm gonna update to 2.1.1 and see what happen whether that problem
would be solved without depending on the above solution , at least I wont have to
repeat the blocks

 :0 here we go again
Title: Re: Simple Portal 2.1 blocks problem
Post by: Nabil on December 01, 2008, 07:37:00 AM
Everything is working ok with 2.1.1 , that problem is gone..   :D
Title: Re: Simple Portal 2.1 blocks problem
Post by: [SiNaN] on December 02, 2008, 07:33:26 AM
Yeah, it should be. Glad that you could solve it.
SimplePortal 2.3.8 © 2008-2024, SimplePortal