6101
mjoel
Re: xBootstrap XOOPS Theme - Development
  • 2015/1/28 14:19

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Quote:

Bleekk wrote:
no it is not, this is a responsive theme.


i found these but not sure it will work with xbootstrap

http://responsiveviewport.com/
http://stackoverflow.com/questions/22405816/bootstrap-3-desktop-view-on-a-mobile-device

can you xoops experts take a look at this...



6102
HopeL
Re: Responsive Theme Blocks
  • 2015/1/28 11:48

  • HopeL

  • Just popping in

  • Posts: 29

  • Since: 2009/8/21


Thank you! It's working perfectly so far!



6103
Bleekk
Re: Responsive Theme Blocks
  • 2015/1/28 11:36

  • Bleekk

  • Theme Designer

  • Posts: 941

  • Since: 2002/12/14


I just checked the code on github and you are right.
The top blocks are always displaying below the content

content-zone.html
<{if $xoBlocks.canvas_left && $xoBlocks.canvas_right}>
    <
div class="col-sm-6 col-md-6">
        <{elseif 
$xoBlocks.canvas_left}>
            <
div class="col-sm-9 col-md-9">
                <{elseif 
$xoBlocks.canvas_right}>
                    <
div class="col-sm-9 col-md-9">
                        <{else}>
                            <
div class="col-sm-12 col-md-12">
<{/if}>
    <{
includeq file="$theme_name/tpl/contents.html"}>
    
    <
div class="row">
        <{
includeq file="$theme_name/tpl/centerBlock.html"}>
        <{
includeq file="$theme_name/tpl/centerLeft.html"}>
        <{
includeq file="$theme_name/tpl/centerRight.html"}>
    div>
div>


try to put the blocks above the content like this
<{if $xoBlocks.canvas_left && $xoBlocks.canvas_right}>
    <
div class="col-sm-6 col-md-6">
        <{elseif 
$xoBlocks.canvas_left}>
            <
div class="col-sm-9 col-md-9">
                <{elseif 
$xoBlocks.canvas_right}>
                    <
div class="col-sm-9 col-md-9">
                        <{else}>
                            <
div class="col-sm-12 col-md-12">
<{/if}>
    <
div class="row">
        <{
includeq file="$theme_name/tpl/centerBlock.html"}>
        <{
includeq file="$theme_name/tpl/centerLeft.html"}>
        <{
includeq file="$theme_name/tpl/centerRight.html"}>
    div>

    <{
includeq file="$theme_name/tpl/contents.html"}>
div>



6104
HopeL
Re: Responsive Theme Blocks
  • 2015/1/28 11:15

  • HopeL

  • Just popping in

  • Posts: 29

  • Since: 2009/8/21


Yes but can you put a center block above the forum module? I just checked and the block displays at the top when I'm not at a module page. When on a module page, it displays at the bottom.



6105
timgno
Re: TDMCreate 1.91 alpha 1 for Testing
  • 2015/1/28 10:38

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


Yes please!

Thanks

But it was just a typo and not change much.

The problem is to be solved, and it seems that I have to work well yet to solve



6106
Bleekk
Re: Responsive Theme Blocks
  • 2015/1/28 9:48

  • Bleekk

  • Theme Designer

  • Posts: 941

  • Since: 2002/12/14


as you can see here in the demo there are top blocks
http://themes.angelorocha.com.br/



6107
goffy
Re: TDMCreate 1.91 alpha 1 for Testing
  • 2015/1/28 7:27

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


field_main['.$i.']
is not the same as
field_main['.$id.']





6108
timgno
Re: TDMCreate 1.91 alpha 1 for Testing
  • 2015/1/28 7:23

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


Quote:
your current code (in this posting) in class/fields.php look like this
$check_field_main = new TDMCreateFormRadio('''field_main['.$i.']'$main_field);


but $i is (as I see on GitHub) always empty

therefore replace thsi line by
$check_field_main = new TDMCreateFormRadio('''field_main['.$id.']'$main_field);

I don't understand...! it seems to me the same code



6109
goffy
Re: TDMCreate 1.91 alpha 1 for Testing
  • 2015/1/28 7:15

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


hi timgno

I do not know your current complete code, but:

if you look into admin/fields.php, there is under 'save'
$fieldsObj->setVar'field_main', (($key == isset($_REQUEST['field_main'][$key])) ? 0) );
so your radio needs an index (key)

your current code (in this posting) in class/fields.php look like this
$check_field_main = new TDMCreateFormRadio('''field_main['.$i.']'$main_field);


but $i is (as I see on GitHub) always empty

therefore replace thsi line by
$check_field_main = new TDMCreateFormRadio('''field_main['.$id.']'$main_field);



6110
iHackCode
Re: How does displaying user time work?

Thanks, that was really helpful




TopTop
« 1 ... 608 609 610 (611) 612 613 614 ... 29425 »



Login

Who's Online

468 user(s) are online (329 user(s) are browsing Support Forums)


Members: 0


Guests: 468


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits