Links buttons

Current Version: 1.0.6
Released: 09.01.10
Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
Conditor
Active Member
Posts: 10
Joined: 9. February 2009 13:36

Links buttons

Post 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!
User avatar

PeterS
Former Team Member
Posts: 246
Joined: 15. January 2008 08:41
phpBB.de User: PeterS
phpBB.com User: PeterS

Re: Links buttons

Post 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

Topic author
Conditor
Active Member
Posts: 10
Joined: 9. February 2009 13:36

Re: Links buttons

Post 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
User avatar

PeterS
Former Team Member
Posts: 246
Joined: 15. January 2008 08:41
phpBB.de User: PeterS
phpBB.com User: PeterS

Re: Links buttons

Post by PeterS »


Topic author
Conditor
Active Member
Posts: 10
Joined: 9. February 2009 13:36

Re: Links buttons

Post 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

Topic author
Conditor
Active Member
Posts: 10
Joined: 9. February 2009 13:36

Re: Links buttons

Post 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??
User avatar

thomas.d
Former Team Member
Posts: 625
Joined: 19. January 2008 23:56
phpBB.de User: thomas.d
phpBB.com User: thomas.d
Contact:

Re: Links buttons

Post by thomas.d »

Did you refresh the template- and theme cache?
Viele Grüße

Thomas

Deutsche Sprachdateien für
[Alpha] phpBB Calendar 0.0.8 (alightner) | [RC] phpBB Arcade 1.0.RC8 |
ACP Add User MOD 1.0.0 |

Topic author
Conditor
Active Member
Posts: 10
Joined: 9. February 2009 13:36

Re: Links buttons

Post 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
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: Links buttons

Post 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 --> 
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!

Topic author
Conditor
Active Member
Posts: 10
Joined: 9. February 2009 13:36

Re: Links buttons

Post 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 :-)
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: Links buttons

Post 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. ;)
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!

nedumeritu
Active Member
Posts: 2
Joined: 9. February 2009 18:28
phpBB.de User: nedumeritu
phpBB.com User: nedumeritu

Re: Links buttons

Post 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.
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: Links buttons

Post 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. ;)
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!
Locked

Return to “board3 Portal 1.0.x - English Support”