adding soial sites buttons to the profile area

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
TheButcher2
Registered User
Posts: 565
Joined: Tue May 13, 2014 11:38 pm
Contact:

adding soial sites buttons to the profile area

Post by TheButcher2 » Wed Jun 12, 2019 3:06 pm

Hi guys


Happy Wednesday, any ideas how I can add this code to just under the "contact" button on posts?

Code: Select all

<center><div class="addthis_inline_share_toolbox"></div></center>



I have it in the footer of the pages but want users to be able to post to their social media sites by post not the whole thread.

Please see 2 attachments.

Peace
Dave
Attachments
Screen Shot 2019-06-12 at 10.59.50 AM.png
Screen Shot 2019-06-12 at 10.59.50 AM.png (26.05 KiB) Viewed 470 times
Screen Shot 2019-06-12 at 11.00.08 AM.png
Screen Shot 2019-06-12 at 11.00.08 AM.png (9.74 KiB) Viewed 470 times

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: adding soial sites buttons to the profile area

Post by Hanakin » Thu Jun 13, 2019 7:29 pm

in viewtopic_body.html -> https://github.com/phpbb/phpbb/blob/mas ... .html#L207

At line 207 you can add that however you will need to change the code to the following

Code: Select all

<dd class="social-btns">
	<div class="addthis_inline_share_toolbox"</div>
</dd>
then add the class social-btns to your theme.css file with the text-align: center as a property.

NOTE: it may not render correctly especially when responsive. so what ever code gets injected you may need to re-style...
Donations welcome via Paypal Image

TheButcher2
Registered User
Posts: 565
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: adding soial sites buttons to the profile area

Post by TheButcher2 » Thu Jun 13, 2019 8:33 pm

Hanakin wrote:
Thu Jun 13, 2019 7:29 pm
in viewtopic_body.html -> https://github.com/phpbb/phpbb/blob/mas ... .html#L207

At line 207 you can add that however you will need to change the code to the following

Code: Select all

<dd class="social-btns">
	<div class="addthis_inline_share_toolbox"</div>
</dd>
then add the class social-btns to your theme.css file with the text-align: center as a property.

NOTE: it may not render correctly especially when responsive. so what ever code gets injected you may need to re-style...


Hi thanks for that, there is no themes.css, any other .css I should add this too?

and can you please post how so I can copy / paste it I am not good with code.

Peace

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

Re: adding soial sites buttons to the profile area

Post by Lumpy Burgertushie » Fri Jun 14, 2019 12:50 am

add this to the bottom of the common.css file:

Code: Select all

.social-btns {
      text-align:  center;
}
if you are going to keep creating new ways to change the original code you should at least learn to understand how basic phpbb styles work.

the html files have the layout and the html code.
the css files have the instructions on how to control the html with colors, positioning etc.

spend a little time experimenting with changes to see exactly what happens to the pages.


ropbert
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?

TheButcher2
Registered User
Posts: 565
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: adding soial sites buttons to the profile area

Post by TheButcher2 » Fri Jun 14, 2019 1:09 pm

Ok thanks guys it works, but it sends a Tweet for the whole page not the specific post, not seur why

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: adding soial sites buttons to the profile area

Post by Hanakin » Fri Jun 14, 2019 7:41 pm

because thats how it works. without integration into the app itself it does not know anything about the posts just scraps the page info. instead have a look at the following extension viewtopic.php?f=616&t=2435671&p=1480965 ... #p14809656
Donations welcome via Paypal Image

TheButcher2
Registered User
Posts: 565
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: adding soial sites buttons to the profile area

Post by TheButcher2 » Fri Jun 14, 2019 7:49 pm

Thanks for that, will give it a try now.

TheButcher2
Registered User
Posts: 565
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: adding soial sites buttons to the profile area

Post by TheButcher2 » Fri Jun 14, 2019 8:04 pm

Okay installed it, works great I tested it on Twitter, but the same problem as before. Buttons show up in ll posts, but you can Tweet the first pot on a page in the topic or last post on the same page, all the posts form that page get included.

Here is an example.
Topic page https://www.sponsorchat.com/viewtopic.php?f=74&t=2479
I tweeted the first and last post on the page, all the posts show up.
Not exactly what I want, I want to be able to tweet the single post ,

I replied to the support page for the extension hope they can sort this out.

Peace

Post Reply

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