Add locked topic icons?

classic Classic list List threaded Threaded
10 messages Options
GD
Reply | Threaded
Open this post in threaded view
|

Add locked topic icons?

GD

Hello Nabble! Would be very happy if any of you could help me with the topics icon. I found the right _micor ''pin_column''
And i did this after some investigation of it.

<override_macro name="pin_column">    
    <n.table_column>        
        <head>            
            <td class="[n.column_default_border/] pin-column nowrap" style="width:30px"></td>        
        </head>        
        
        <body>            
            <n.current_node.>                
                <td class="[n.column_default_border/]" style="padding-left:.2em">                    
                    <n.if.is_app>                        
                        <then>                            
                            <n.if.is_pinned_in_loop>                                
                                <then><img src="http://support.nabble.com/file/t395796/pinforum.png" 
width="40" height="40" title="[t]Pinned sub-forum[/t]" alt="[t]Pinned sub-forum[/t]"/>
                                </then>                                
                                <else><img src="http://support.nabble.com/file/t395796/forum.png" 
width="40" height="40" title="[t]Floating sub-forum[/t]" alt="[t]Floating sub-forum[/t]"/>
                                </else>                            
                            </n.if.is_pinned_in_loop>                        
                        </then>                        
                        <else>                            
                            <n.if.is_pinned_in_loop>                                
                                <then><img src="http://support.nabble.com/file/t395796/pintopic.png" 
width="40" height="40" alt="pin"/>
                                </then>                                
                                <else><img src="http://support.nabble.com/file/t395796/topic.png" width="40" 
height="40" alt="pin"/>
                                </else>                            
                            </n.if.is_pinned_in_loop>                        
                        </else>                    
                    </n.if.is_app>                
                </td>            
            </n.current_node.>        
        </body>    
    </n.table_column>
</override_macro>

I want to add an icon for locked topics to. Is that possible?


GD
Reply | Threaded
Open this post in threaded view
|

Re: Add locked topic icons?

GD
My Forum Right now with new icons:

Reply | Threaded
Open this post in threaded view
|

Re: Add locked topic icons?

Mencey Melgar
Hi GD, here is my own pin_column:

<override_macro name="pin_column">
    <n.table_column>
        <head>
            <td class="[n.column_default_border/] pin-column nowrap" style="border-top-left-radius: 1em;border-bottom-left-radius: 1em;width:24px"></td>
        </head>
        <body>
            <n.current_node.>
                <td class="[n.column_default_border/]" style="padding-left:.2em">
                    <n.if.current_node.is_app>
                        <else>
                            <n.if.is_pinned>
                                <then>
                                    <n.if.is_locked_topic>
                                        <then>
                                            <img src="http://static.wix.com/media/f737c2_3f8c179382a606e433441ecdfaeca764.png_srz_125_128_75_22_0.50_1.20_0.00_png_srz" width="30" height="28" title="[t]Pinned&Locked Topic[/t]" alt="[t]Pinned&Locked Topic[/t]"/>
                                        </then>
                                        <else>
                                            <img src="http://static.wix.com/media/f737c2_c5abeb527a5ae06c78e6d9abc4b0b235.png_srz_128_125_75_22_0.50_1.20_0.00_png_srz" width="28" height="26" title="[t]Pinned Topic[/t]" alt="[t]Pinned Topic[/t]"/>
                                        </else>
                                    </n.if.is_locked_topic>
                                </then>
                                <else>
                                    <n.if.is_locked_topic>
                                        <then>
                                            <img src="http://static.wix.com/media/f737c2_b553b1e847a760ee79dc6b76a4ff1657.png_srz_128_128_75_22_0.50_1.20_0.00_png_srz" width="27" height="25" title="[t]Locked Topic[/t]" alt="[t]Locked Topic[/t]"/>
                                        </then>
                                        <else>
                                            <img src="http://static.wix.com/media/f737c2_78d0327f8628751dae5ca397a0ffa103.png_srz_128_128_75_22_0.50_1.20_0.00_png_srz" width="25" height="23" title="[t]Topic[/t]" alt="[t]Topic[/t]"/>
                                        </else>
                                    </n.if.is_locked_topic>
                                </else>
                            </n.if.is_pinned>
                        </else>
                    </n.if.current_node.is_app>
                    <n.if.is_app>
                        <then>
                            <n.if.is_pinned>
                                <then><img src="http://cdn1.iconfinder.com/data/icons/Hand_Drawn_Web_Icon_Set/128/folder_empty.png" width="35" height="35" title="[t]Pinned sub-forum[/t]" alt="[t]Pinned sub-forum[/t]"/></then>
                                <else>
                                    <n.if.is_pinned>
                                        <then>
                                            <n.if.is_locked_topic>
                                                <then>
                                                    <img src="http://static.wix.com/media/f737c2_3f8c179382a606e433441ecdfaeca764.png_srz_125_128_75_22_0.50_1.20_0.00_png_srz" width="30" height="28" title="[t]Pinned&Locked Topic[/t]" alt="[t]Pinned&Locked Topic[/t]"/>
                                                </then>
                                                <else>
                                                    <img src="http://static.wix.com/media/f737c2_c5abeb527a5ae06c78e6d9abc4b0b235.png_srz_128_125_75_22_0.50_1.20_0.00_png_srz" width="28" height="26" title="[t]Pinned Topic[/t]" alt="[t]Pinned Topic[/t]"/>
                                                </else>
                                            </n.if.is_locked_topic>
                                        </then>
                                        <else>
                                            <n.if.is_locked_topic>
                                                <then>
                                                    <img src="http://static.wix.com/media/f737c2_b553b1e847a760ee79dc6b76a4ff1657.png_srz_128_128_75_22_0.50_1.20_0.00_png_srz" width="27" height="25" title="[t]Locked Topic[/t]" alt="[t]Locked Topic[/t]"/>
                                                </then>
                                                <else>
                                                    <img src="http://static.wix.com/media/f737c2_78d0327f8628751dae5ca397a0ffa103.png_srz_128_128_75_22_0.50_1.20_0.00_png_srz" width="25" height="23" title="[t]Topic[/t]" alt="[t]Topic[/t]"/>
                                                </else>
                                            </n.if.is_locked_topic>
                                        </else>
                                    </n.if.is_pinned>
                                </else>
                            </n.if.is_pinned>
                        </then>
                    </n.if.is_app>
                </td>
            </n.current_node.>
        </body>
    </n.table_column>
</override_macro>
:) Helper
GD
Reply | Threaded
Open this post in threaded view
|

Re: Add locked topic icons?

GD
Hello Louk!
Thx for the help. But i dont get it to working. Can you take my code and put your code insade it?
So i just can copy and past it.
Reply | Threaded
Open this post in threaded view
|

Re: Add locked topic icons?

Mencey Melgar
Just an example:
Look to the alt="[t]Pinned&Locked Topic[/t]". alt="" or title says to you which type of topic is, to change the image url change the  <img src="" like here:
   
<img src="http://static.wix.com/media/f737c2_3f8c179382a606e433441ecdfaeca764.png_srz_125_128_75_22_0.50_1.20_0.00_png_srz"
:) Helper
GD
Reply | Threaded
Open this post in threaded view
|

Re: Add locked topic icons?

GD
I understand you code. But i dont understand where to past it insade my own code.
Reply | Threaded
Open this post in threaded view
|

Re: Add locked topic icons?

Mencey Melgar
Just in your pin_column macro ;)


2013/4/14 GD [via Nabble Support] <[hidden email]>
I understand you code. But i dont understand where to past it insade my own code.



If you reply to this email, your message will be added to the discussion below:
http://support.nabble.com/Add-locked-topic-icons-tp7584051p7584057.html
To start a new topic under NAML Free Support, email [hidden email]
To unsubscribe from NAML Free Support, click here.
NAML



--
:{Per}:LouK
:) Helper
Reply | Threaded
Open this post in threaded view
|

Re: Add locked topic icons?

Mencey Melgar
In reply to this post by GD
copy and paste all the code


2013/4/14 The LouK <[hidden email]>
Just in your pin_column macro ;)


2013/4/14 GD [via Nabble Support] <[hidden email]>

I understand you code. But i dont understand where to past it insade my own code.



If you reply to this email, your message will be added to the discussion below:
http://support.nabble.com/Add-locked-topic-icons-tp7584051p7584057.html
To start a new topic under NAML Free Support, email [hidden email]
To unsubscribe from NAML Free Support, click here.
NAML



--
:{Per}:LouK



--
:{Per}:LouK
:) Helper
GD
Reply | Threaded
Open this post in threaded view
|

Re: Add locked topic icons?

GD
Sry, i did that. And it wont save
Reply | Threaded
Open this post in threaded view
|

Re: Add locked topic icons?

Mencey Melgar
Try it in the advanced editor.


2013/4/14 GD [via Nabble Support] <[hidden email]>
Sry, i did that. And it wont save



If you reply to this email, your message will be added to the discussion below:
http://support.nabble.com/Add-locked-topic-icons-tp7584051p7584062.html
To start a new topic under NAML Free Support, email [hidden email]
To unsubscribe from NAML Free Support, click here.
NAML



--
:{Per}:LouK
:) Helper