Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Search
Editing
User talk:DariusC
(section)
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
Namespaces
User page
Discussion
More
More
Page actions
Read
Edit source
New topic
History
User contributions
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===LocalSettings.php #2 (Add this)=== Please add this after the AddThis extension loads (without the pre tag): <pre> $wgAddThispubid = 'ra-5cdfe8dacb9028fa'; </pre> Hopefully the sharing icons on the left sidebar will then show up using Pivot or Timeless skins. Thanks [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 09:45, 18 May 2019 (EDT) : Hey! I added the AddThis id to the LocalSettings.php file, so the problem should be fixed now. Thanks! : [[User:DariusC|DariusC]] ([[User talk:DariusC|talk]]) 11:45, May 27, 2019 (EDT) :: This isn't working. It looks like my instructions were wrong. The existing setting you added needs to be put in an array of ''Pivot'' skin values, see documentation on [https://www.mediawiki.org/wiki/Skin:Pivot https://www.mediawiki.org/wiki/Skin:Pivot]. Secondly, ''' $wgAddThispubid = ra-5cdfe8dacb9028fa and $wgAddThisSidebar = true ''' must be set within a list of values for the AddThis variable, as described in [https://www.mediawiki.org/wiki/Extension:AddThis https://www.mediawiki.org/wiki/Extension:AddThis]. To check they are working you can use [https://www.me-pedia.org/index.php?title=Portal:Contents/Portals&useskin=pivot link 1] and [https://www.me-pedia.org/index.php?title=Portal:Contents/Portals&useskin=timeless link 2] or just change your preferences- look under the "Share" heading at the bottom of the sidebar menu. Timeless doesn't need any configuration extra configuration. [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 14:10, May 27, 2019 (EDT) :::Would the following code accomplish this? <pre> $wgPivotFeatures = [ 'addThisPUBID' => 'ra-5cdfe8dacb9028fa' ]; $wgAddThispubid = 'ra-5cdfe8dacb9028fa'; $wgAddThisSidebar = true; </pre> :::(Code obviously comes after wfLoadSkin('pivot'); ) How would you test it? Just by looking at the lefthand sidebar to see if the AddThis icons show up? :::[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 15:03, May 27, 2019 (EDT) ::::Here's the code, must go after both loading AddThis and loading the Pivot skin <pre > $wgAddThisSidebar = true; $wgAddThispubid = 'ra-5cdfe8dacb9028fa', $wgPivotDefaultFeatures = [ 'addThisPUBID' => 'ra-5cdfe8dacb9028fa', ]; </pre > ::::Yes to how it is tested - should work on both Pivot and Timeless, but might not the vector skin. [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 22:43, May 27, 2019 (EDT) :::::Great! That’s the code we have in the ProposedLocalSettings.php file, except for the ‘useAddThisShare’ line. Double-check the ‘useAddThisShare’ feature- it’s not a boolean, it requires a specific CSS class. Plus, the icons already show up at the top of the screen. The ‘useAddThisShare’ shouldn’t impact the sidebar at all. :::::[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 23:55, May 27, 2019 (EDT) ::::::Well spotted, just edited the code above. [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 04:27, May 29, 2019 (EDT) Working in Timeless and vector, but not in the Pivot skin.[[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 14:04, May 29, 2019 (EDT) :I saw that too. Very Weird. I don’t know why only Pivot skin has a problem with this. Oh well, at least the icons show up at the top of the page. After all, we don’t absolutely ''need'' to have the icons in two separate places on the page... :[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 15:47, May 29, 2019 (EDT) ::Task done but not working on Pivot, potential bug in Pivot skin, although it does work on one site I've seen [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 15:51, May 31, 2019 (EDT) ====Re: LocalSettings.php #2 (Add this) -- ~~~~==== :: Replace this text with your reply
Summary:
Please make sure your edits are consistent with
MEpedia's guidelines
.
By saving changes, you agree to the
Terms of use
, and you irrevocably agree to release your contribution under the
CC BY-SA 3.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Skip to content
Main page
Browse
Become an editor
Random page
Popular pages
Abbreviations
Glossary
About MEpedia
Links for editors
Contents
Guidelines
Recent changes
Pages in need
Search
Help
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
Logs
View user groups
More
What links here
Related changes
Page information
Page logs