Adding Links To Portal Page In Between Header (Hard Coding)

Kein Support auf phpBB Styles direkt!
No support directly to phpBB Styles!


Topic author
HoodieWeather
Valued Contributor
Valued Contributor
Posts: 56
Joined: 10. December 2015 04:03

Adding Links To Portal Page In Between Header (Hard Coding)

Post by HoodieWeather » 14. February 2016 08:18

Your Portal Version: 2.0.2
Your phpBB Type: Premodded phpBB
MODs installed: Yes
Your knowledge: Beginner


PHP Version: 3.0.13

What have you done before the problem was there?
N/A

What have you already tryed to solve the problem?
N/A

Description and Message
Hey all.. curious as if I could add some links that would fit inbetween the header, and the middle part of the portal..

I want the links only to show up when someones at the portal, and when users go to the forum itself index.php you won't see the link, that will be written out.

please see picture

Image

Click on view image.. text got cut off cause it's so huge!

Now, I had the link to the forum in the header, but when at the forum itself, the link was on ever header which I don't want.

Thanks

User avatar

Kirk
Portal Professional
Portal Professional
Posts: 1602
Joined: 27. July 2010 18:02
phpBB.de User: Kirk

Re: Adding Links To Portal Page In Between Header (Hard Codi

Post by Kirk » 14. February 2016 10:38

Set it so in the overall_header.html:

Code: Select all

<!-- IF SCRIPT_NAME == "portal" -->your links<!-- ENDIF -->


Topic author
HoodieWeather
Valued Contributor
Valued Contributor
Posts: 56
Joined: 10. December 2015 04:03

Re: Adding Links To Portal Page In Between Header (Hard Codi

Post by HoodieWeather » 14. February 2016 18:03

I was actually there last night.. I added a donate button and such.. I don't want those links to be followed through out the website.

/forum/portal.php if i'm there I'd like to see links in between the header, and middle box.

Now, when I'm not there... and I'm here: forum/index.php I don't want to see those links in the middle of the page the white part.

So, pretty much I might have to just edit portal.php?

User avatar

talonos
Portal Specialist
Portal Specialist
Posts: 235
Joined: 7. June 2009 15:12
phpBB.com User: talonos

Re: Adding Links To Portal Page In Between Header (Hard Codi

Post by talonos » 14. February 2016 18:20

if your using board3 2.1 maybe a custom block with html code it in would do. it will only show on portal and can be set as a "top" block so it is above all portal blocks AND below overall header.
Creating board3 website? check the sites out below for board3 compatible extensions
Talonos: Pretereo stormrage EU


Topic author
HoodieWeather
Valued Contributor
Valued Contributor
Posts: 56
Joined: 10. December 2015 04:03

Re: Adding Links To Portal Page In Between Header (Hard Codi

Post by HoodieWeather » 16. February 2016 03:01

Thanks for the help guys I got help from the phpbb forums here's the coding if you want to add some to your site


using your ftp program, download:
prosilver/template/portal/portal_body.html


using a good text program, open the file and find:


Code: Select all
<table id="portal-body" cellpadding="0" cellspacing="0" border="0" width="100%">



right above that on new line, add this:

Code: Select all
<div style="width: 100%;">
<div style="text-align:center; font-size:12px;">
<a href="http://link1.com" >Link 1</a>&nbsp; &nbsp; <strong>&#8249;</strong><a href="http://link2.com" >Link 2</a> &nbsp; &nbsp; <strong>&#8249;</strong><a href="http://link3.com" >Link 3</a>&nbsp; &nbsp; <strong>&#8249;</strong><a href="http://link4.com" >Link 4</a>
</div>
</div>

Return to “Styles Support”