xoops forums

Forum Index


Board index » All Posts (Bleekk)




Bleekk

Theme Designer
Posted on: 7/8 17:48
Bleekk
Bleekk (Show more)
Theme Designer
Posts: 903
Since: 2002/12/14
#1

Re: Accesing page in a turned off XOOPS site

my first thought is not to close the site but to restrict the modules only to members.
you can then grant access to modules you want to show to anonymous users


Bleekk

Theme Designer
Posted on: 7/5 16:32
Bleekk
Bleekk (Show more)
Theme Designer
Posts: 903
Since: 2002/12/14
#2

Re: Xoops Tags and char limit in modules

Does this also prevent that xoops tags will be counted as chars?


Bleekk

Theme Designer
Posted on: 7/4 7:31
Bleekk
Bleekk (Show more)
Theme Designer
Posts: 903
Since: 2002/12/14
#3

Xoops Tags and char limit in modules

Hi all,

I hope someone of the module developers can help here.
Following problem:
When you set a limit to the chars of a article, like in the latest news, the xoops tags will be counted as chars. Which result in a problem because they will be cut off if the limit of chars exeeds. The next problem is that then the html is not valid.
If you have something like this
[b]this is a bold line[/b]
then the it counts 26 chars instead of 19. And if it cuts of the closing tag then the rest of the article, maybe the complete website is bold.
You can see it here https://xoops.org/modules/publisher/
The first article destroys the design of the complete website.
This is not a probem with publisher but with all other modules.


Bleekk

Theme Designer
Posted on: 6/27 6:40
Bleekk
Bleekk (Show more)
Theme Designer
Posts: 903
Since: 2002/12/14
#4

Re: extgallery and java version error

Hi Goffy,

Ich habe an dem Modul gearbeitet und es versucht zu verschlanken. Dieses extended uplaoad habe ich auch rausgenommen. Alfred hat bei dem Modul noch weitere Bugs ausgebessert. Ausserdem gibt es neue bootstrap templates.
https://github.com/bleekk/extgallery

Wenn du Zeit hast, teste es bitte


Bleekk

Theme Designer
Posted on: 6/18 9:48
Bleekk
Bleekk (Show more)
Theme Designer
Posts: 903
Since: 2002/12/14
#5

Re: Default title for the news comments ?

Thanks to geekwright it is fixed now


Bleekk

Theme Designer
Posted on: 6/18 9:41
Bleekk
Bleekk (Show more)
Theme Designer
Posts: 903
Since: 2002/12/14
#6

Re: Setting the block

Here are screenshots of the result
First naming the block
Resized Image

and the result
Resized Image


Bleekk

Theme Designer
Posted on: 6/18 9:35
Bleekk
Bleekk (Show more)
Theme Designer
Posts: 903
Since: 2002/12/14
#7

Re: Setting the block

here is the code that I have tested with xoops 2.5.9 RC1 and the xbootstrap theme.
I tested it now only with the leftblocks but it will work will all blocks.

open themes/xbootstrap/tpl/leftBlock.tpl and change your code of the block to this
<{if $xoBlocks.canvas_left}>
    <
div class="col-sm-3 col-md-3 xoops-side-blocks">
        <{foreach 
item=block from=$xoBlocks.canvas_left}>
            <
aside <{if $block.title && strpos($block.title'|') != false }> class="<{$block.title|substr:0:8}>" <{/if}>>
                <{if 
$block.title}><h4 class="block-title"><{if strpos($block.title'|') != false }><{$block.title|substr:9}><{else}><{$block.title}><{/if}></h4><{/if}>
                <{
$block.content}>
            </
aside>
        <{/foreach}>
    </
div>
<{/if}>

short explanation what I am doing here.
The new css class will always have 8 characters, like block-01.
In the aside-tag I am checking if the title has a | in it, and if so I will take the part before | as my class.
In the title of the block I again need to check if the title has a | in it, and if so I will only display the text behind | as my title, else it will display the complete title


then I define some css classes in my theme.html (you can also define them in the style.css)
.block-01{background#5CB85C;}
.block-02{background#C3C3C3;}
.block-03{background#333333;}


Now when you want to change the style of a block you need only to name the block like the class
For examle if you wan to change the main menu block you will name it "block-01|Main Menu"

I hope you understand everything here


Bleekk

Theme Designer
Posted on: 6/17 7:05
Bleekk
Bleekk (Show more)
Theme Designer
Posts: 903
Since: 2002/12/14
#8

Re: Setting the block

No, it is not only valid for content of the block, it is valid for all html that is inside the foreach loop of the blocks.


Bleekk

Theme Designer
Posted on: 6/16 17:54
Bleekk
Bleekk (Show more)
Theme Designer
Posts: 903
Since: 2002/12/14
#9

Re: Setting the block

You can add the class in the name of the Blocks.
Name your block like "blue|block-title"
Then use a .blue class in the css.
In the template you need to work with smarty to check if the title has a | in it and then use first Part as css class and second as the title


Bleekk

Theme Designer
Posted on: 6/16 16:34
Bleekk
Bleekk (Show more)
Theme Designer
Posts: 903
Since: 2002/12/14
#10

Re: Setting the block

Yes it is possible.
But you need css to change it. If you do not want to change the main css File, You can add the css into your theme.html.

You can add a css class to your blocks using for example the block id.
class="block-<{block.id} >"

And when you know the id of the block you want to change then add a css style for it like
.block-4{background#c3c3c3}

This will not affect other blocks



TopTop
(1) 2 3 4 ... 65 »