I want a textlink over very-top of my forum

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
User avatar
Lumpy Burgertushie
Registered User
Posts: 66328
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: I want a textlink over very-top of my forum

Post by Lumpy Burgertushie » Tue Mar 12, 2019 9:35 pm

haven't tested your extension for this but if it will allow you to use the event: <!-- EVENT overall_header_body_before --> for placing the link, it would put it outside the whole forum which in his case would be to the far left of the page. that would be up to the OP of course to decide if that is how he wants the links.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
</Solidjeuh>
Registered User
Posts: 1611
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: I want a textlink over very-top of my forum

Post by </Solidjeuh> » Tue Mar 12, 2019 9:58 pm

Lumpy Burgertushie wrote:
Tue Mar 12, 2019 9:35 pm
haven't tested your extension for this but if it will allow you to use the event: <!-- EVENT overall_header_body_before --> for placing the link, it would put it outside the whole forum which in his case would be to the far left of the page. that would be up to the OP of course to decide if that is how he wants the links.

robert
It does: https://github.com/Solidjeuh/BoardMagic ... efore.html

You can add HTML or whatever in the template events. They are all present up to phpBB 3.2.5 : https://github.com/Solidjeuh/BoardMagic ... late/event

Image
Register a free account & Play!!
~~~ https://www.solidjeuh.be ~~~
Have a secret? --> https://www.tellyoursecrets.eu

User avatar
Talk19Zehn
Registered User
Posts: 327
Joined: Tue Aug 09, 2011 1:10 pm
Contact:

Re: I want a textlink over very-top of my forum

Post by Talk19Zehn » Wed Mar 13, 2019 4:24 pm

Hi, test it please: for one or two links, testing here in prosilver vs. 3.2.5

CSS:

Code: Select all

.headernavparttop {
	width: 100%;
	float: left;
	background: #282828;
	border-bottom: 8px solid rgba(0,0,0,0.6);
	border-radius: 7px;
}

.textlogoontop {
	display: block;
	width: 100%;
	margin-left: 10px;
	padding: 13px 8px;
	text-decoration: none;
	font-size: 11px;
	font-weight: bold;
	color: white;
}

@media screen and (min-width:800px) {
	.textlogoontop {
	width: auto;
	float: left;
	}
}

HTML: overall_header.html
find
<div class="headerbar" role="banner">

add before:

Code: Select all

		<div class="inner">
			<div class="headernavparttop">
				<div><a href="http://www.reasonheads.com" class="textlogoontop" title="Startpage"><span>W/e you want to call it</a></span></div>
				<div><a href="https://blog.phpbb.com/" class="textlogoontop" title="phpBB Blog"><span>phpBB-blog</a></span></div>
			</div>
		</div>
		<div style="clear: both;"></div>

Clear all caches after your works.

Regards

Edit:
Please create language variables, etc., use the corresponding link information in succession. The example is therefore still unfinished .... ;)

Edit: Result --> My test in the original prosilver 3.2.5
textlinkexample.png
Last edited by Talk19Zehn on Wed Mar 13, 2019 5:01 pm, edited 2 times in total.
World Meteorological Organization (WMO) Weather - Climate - Water
BTW: My own works - phpBB - read more: ongray-design-de or look here: phpBB VT Theme

User avatar
Lumpy Burgertushie
Registered User
Posts: 66328
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: I want a textlink over very-top of my forum

Post by Lumpy Burgertushie » Wed Mar 13, 2019 4:49 pm

1. using the extension and choosing overall_header_body_before would put it outside the wrap which would align it to the left of the whole page.
2. using the code from Talk19Zehn: <div class="headerbar" role="banner">would put it above the headerbar but still within the wrap.
3. using my idea of putting it after <div id="wrap" class="wrap"> would put it above the headerbar but still within the wrap.

just depends on where you want the links to show up.


robert

EDIT: corrected above
EDIT2: just created a sample of where it would show up etc.:

http://phpbbace.com/phpBB325/index.php
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
Hanakin
Front-End Dev Team Lead
Front-End Dev Team Lead
Posts: 891
Joined: Wed Dec 30, 2009 8:14 am
Name: Michael Miday
Contact:

Re: I want a textlink over very-top of my forum

Post by Hanakin » Wed Mar 13, 2019 5:56 pm

Lumpy Burgertushie wrote:
Tue Mar 12, 2019 9:24 pm
I believe it would be like this:

Code: Select all

<div id="wrap" class="wrap">
<a class="top-link" href="http://www.reasonheads.com" title="">W/e you want to call it</a>
yes its not aligned this way you would want to wrap it.

Code: Select all

<div class="top-link-wrap" style="margin: 0px auto; padding: 16px 0px 0px; max-width: 1152px;">
    <a title="" class="top-link" href="www.reasonheads.com">W/e you want to call it</a>
</div>
I used inline styles here but you can easily apply them to the .top-link-wrap class
Donations welcome via Paypal Image

User avatar
Talk19Zehn
Registered User
Posts: 327
Joined: Tue Aug 09, 2011 1:10 pm
Contact:

Re: I want a textlink over very-top of my forum

Post by Talk19Zehn » Wed Mar 13, 2019 6:49 pm

Yes indeed, if the CSS of my code is maintained, you can also insert the HTML code into the body (which is 100% full width (!)) also.
Just try my CSS and HTML code via online tool again and the result is okay. The link is located where it should be, according to request.
reasonheadsresultonlinetool.png
Best Regards
World Meteorological Organization (WMO) Weather - Climate - Water
BTW: My own works - phpBB - read more: ongray-design-de or look here: phpBB VT Theme

User avatar
deepndark
Registered User
Posts: 282
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Re: I want a textlink over very-top of my forum

Post by deepndark » Thu Mar 14, 2019 11:10 am

Thanks everyone, mission completed! http://www.reasonheads.com/forum/

User avatar
deepndark
Registered User
Posts: 282
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Re: I want a textlink over very-top of my forum

Post by deepndark » Sat Apr 06, 2019 8:44 am

deepndark wrote:
Tue Mar 12, 2019 6:08 pm
Hanakin wrote:
Tue Mar 12, 2019 5:27 pm
<a class="top-link" href="www.reasonheads.com" title="">W/e you want to call it</a>
+ this? simply edit the overall_header.html file of whatever style you want .

find: <div id="wrap" class="wrap"> and put it on the next line.
One more question: How do I make it opening in a new tab?

User avatar
david63
Registered User
Posts: 16180
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: I want a textlink over very-top of my forum

Post by david63 » Sat Apr 06, 2019 8:48 am

The fist result from a Google search gives this https://www.thesitewizard.com/html-tuto ... -tab.shtml
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
deepndark
Registered User
Posts: 282
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Re: I want a textlink over very-top of my forum

Post by deepndark » Sat Apr 06, 2019 8:54 am

So it should be like this?

Code: Select all

<a href="www.reasonheads.com" target="_blank">REASONHEADS</a>
Thanks, and sorry I ask it here and not googling.

User avatar
deepndark
Registered User
Posts: 282
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Re: I want a textlink over very-top of my forum

Post by deepndark » Sat Apr 06, 2019 9:05 am

Wait! How to combine these two codes i.e. where to put the: " target="_blank"

<a class="top-link" href="www.reasonheads.com" title="">Reasonheads</a> <-- This is the code I already have.

<a href="www.reasonheads.com/" target="_blank">Reasonheads</a>

User avatar
deepndark
Registered User
Posts: 282
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Re: I want a textlink over very-top of my forum

Post by deepndark » Sat Apr 06, 2019 9:21 am

I tried this but it doesn't open a link in a new tab: <a class="top-link" href="www.reasonheads.com" target="_blank"title="">Reasonheads Home</a>

User avatar
david63
Registered User
Posts: 16180
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: I want a textlink over very-top of my forum

Post by david63 » Sat Apr 06, 2019 9:27 am

You need a space before title=
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
deepndark
Registered User
Posts: 282
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Re: I want a textlink over very-top of my forum

Post by deepndark » Sat Apr 06, 2019 9:31 am

david63 wrote:
Sat Apr 06, 2019 9:27 am
You need a space before title=
I added a space, still not opening in a new tab. :)

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3986
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: I want a textlink over very-top of my forum

Post by HiFiKabin » Sat Apr 06, 2019 9:31 am

deepndark wrote:
Sat Apr 06, 2019 8:54 am
Please keep in mind that we have a six hour bumping rule. All team members and community members here are volunteers, so we ask you to wait at least six hours before bumping your topic or, if no-one has replied to your last post, edit your last post. Thanks!

Post Reply

Return to “[3.2.x] Styles Support & Discussion”