Page 1 of 1

Links buttons

Posted: 12. February 2009 23:34
by Conditor
Your Portal Version: 1.0.0RC3
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Beginner
Boardlink: http://forum.conditor.be

What have you done before the problem was there?
Nothing

What have you already tryed to solve the problem?
searching

Description and Message
Hello again,

Next question, sorry to be so noobish...

There is a links block, where u can type in text and a url.. now my question is:

Instead of text i want a button in there.. i tried with [img] tags and with html, both didn't work.. is there a way to add buttons (images) instead of plain text?

Thanks in advance!

Re: Links buttons

Posted: 13. February 2009 06:38
by PeterS
Hello again,

i didn´t think so at the moment, but i use the middle custom block to show credit buttons from friends an partners.

Image

greetz Peter

Re: Links buttons

Posted: 13. February 2009 12:07
by Conditor
If i didn't use that one allready i could have used it :-)

Is there a way to get more "custom" blocks in the middle? atm i'm using the side and middle block allready, and don't wanna change them for the links

maybe there is a mod for it?

Greetz

Re: Links buttons

Posted: 13. February 2009 12:19
by PeterS

Re: Links buttons

Posted: 13. February 2009 19:44
by Conditor
Great thanks, i'll give that a go.

I'll let you know if i got it to work, knowing me i'll screw up somewhere in the process :-p

Re: Links buttons

Posted: 14. February 2009 09:30
by Conditor
Like i said..

Somehow i can't get it to work :-/

I made a copy of:

/forum/styles/SF_Glacier_Lite/template/portal/block/custom_small.html

And called it

/forum/styles/SF_Glacier_Lite/template/portal/block/custom_small2.html

Then i changed the code to:

Code: Select all

<!--version $Id: custom_small2.html 236 2008-05-18 15:50:06Z kevin74 $ //-->
<div class="portal-panel">
	<div class="inner">
		<span class="portal-corners-top"><span></span></span>
			<h3><img src="{T_THEME_PATH}/images/portal/portal_menu.gif" width="18px" height="18px" alt=""/>&nbsp;Link Partners</h3>
			<div class="postbody" style="width: 100%">
				<div class="content"><a href="http://www.starlightweb.nl/nuke-evo"><img src="http://www.starlightweb.nl/nuke-evo/images/evo/ministar.gif" alt="Starlightweb" title="Starlightweb" border="0" /></a></div>
			</div>
			<br />
		<span class="portal-corners-bottom"><span></span></span>
	</div>
</div>
<br style="clear:both" />
Then i opened:

/forum/styles/SF_Glacier_Lite/template/portal/portal_body.html
And changed the code to:

Code: Select all

<!-- IF S_DISPLAY_USERMENU -->
			<!-- IF not S_USER_LOGGED_IN -->
				<!-- INCLUDE portal/block/login_box.html -->
			<!-- ENDIF -->
            
              <!-- IF S_CUSTOM_SMALL2 -->
			<!-- INCLUDE portal/block/custom_small2.html -->
		<!-- ENDIF -->		

			<!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->
				<!-- INCLUDE portal/block/user_menu.html -->
			<!-- ENDIF -->
		<!-- ENDIF -->
And i don't see the block.

Where did it go wrong??

Re: Links buttons

Posted: 14. February 2009 09:36
by thomas.d
Did you refresh the template- and theme cache?

Re: Links buttons

Posted: 14. February 2009 09:40
by Conditor
Yes, i did that

I also moved 1 block (the custom_small) and that i can see after a refresh of the cache.
But i can't see the new block

Re: Links buttons

Posted: 14. February 2009 10:32
by Kevin
Conditor wrote:Then i opened:

/forum/styles/SF_Glacier_Lite/template/portal/portal_body.html
And changed the code to:

Code: Select all

<!-- IF S_DISPLAY_USERMENU -->
			<!-- IF not S_USER_LOGGED_IN -->
				<!-- INCLUDE portal/block/login_box.html -->
			<!-- ENDIF -->
            
              <!-- IF S_CUSTOM_SMALL2 -->
			<!-- INCLUDE portal/block/custom_small2.html -->
		<!-- ENDIF -->		

			<!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->
				<!-- INCLUDE portal/block/user_menu.html -->
			<!-- ENDIF -->
		<!-- ENDIF -->
And i don't see the block.

Where did it go wrong??
This is a bit mixed up, i guess. Try this:

Code: Select all

<!-- IF S_DISPLAY_USERMENU -->
            <!-- IF not S_USER_LOGGED_IN -->
                <!-- INCLUDE portal/block/login_box.html -->
            <!-- ENDIF -->
            
            <!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->
                <!-- INCLUDE portal/block/user_menu.html -->
            <!-- ENDIF -->
        <!-- ENDIF -->

            <!-- INCLUDE portal/block/custom_small2.html --> 

Re: Links buttons

Posted: 14. February 2009 10:49
by Conditor
That is great!!!

Thanks :-)

So now it's just a mather of renaming them and place them that way.

Thanks alot, this was a great help and it's solved :-)

Re: Links buttons

Posted: 14. February 2009 10:53
by Kevin
Just to explain:
  1. You've placed the new block within a switch for the usermenu. You have to keep it outside.
  2. If you want to use a switch like <!-- IF S_CUSTOM_SMALL2 --> - it has to be defined somewhere and set to "TRUE". Otherwise it will always be "FALSE" and nothing is displayed.
    So just insert the include - without a not defined switch. ;)

Re: Links buttons

Posted: 14. February 2009 16:49
by nedumeritu
Kevin wrote:Just to explain:
  1. You've placed the new block within a switch for the usermenu. You have to keep it outside.
  2. If you want to use a switch like <!-- IF S_CUSTOM_SMALL2 --> - it has to be defined somewhere and set to "TRUE". Otherwise it will always be "FALSE" and nothing is displayed.
    So just insert the include - without a not defined switch. ;)
And so, everything can be great but you forgot to show us the final codes.
The theory is fine. But the practice will kill us.

Re: Links buttons

Posted: 14. February 2009 19:25
by Kevin
I showed the code as a solution above, as i saw the problem. It was never my intention to "show you the final codes". There was a clear question and i answered it.
What are planning to do? Just complaining wont get you further.
nedumeritu wrote:The theory is fine. But the practice will kill us.
That sounds bad. You better think about it, if it is the right thing for you to do. ;)