Hey, i am developing a toppanel plugin which will display wordpress sidebars. now my problem is that the code get_sidebar(); always gets the whole page content. Link: http://www.color4you.org/demo/wptoppanel/
Thanks in advance! 
My first guess would be unpropperly closed div tags 
Nop unfortunately not
divs are closed
<div class="tp-s3">
'.dynamic_sidebar( $right);'
</div>
I would start with some PHP logging to see what $right contains. If it contains more or less than what you are looking for you might need to tweak your query.
Color4you said
Nop unfortunately notdivs are closed
<div class="tp-s3"> '.dynamic_sidebar( $right);' </div>
You see, I was right 
<div class="tp-s3"> ' . dynamic_sidebar( $right ) . ' </div>Ah got it fixed thanks OriginalEXE 
No problem!
