Giter VIP home page Giter VIP logo

tippingover's People

Contributors

alexia avatar chaud avatar elifoster avatar ooeyes avatar robert-nix avatar

Watchers

 avatar  avatar  avatar

tippingover's Issues

Add redirect support to category filtering

Category filtering doesn't currently follow redirects before performing the category check, which is not intuitive and less useful. All category filtering modes should be adapted to follow redirects first before performing the check.

Undefined properties

Guessing these were renamed or typoed.

( ! ) Notice: Undefined property: TippingOverConfiguration::$mLateCategoryFilter in extensions/TippingOver/includes/TippingOverConfiguration.php on line 423
Call Stack
#	Time	Memory	Function	Location
8	0.1970	8122040	TippingOverConfiguration->__construct( )	.../WikiTooltips.php:144
9	0.1970	8122616	TippingOverConfiguration->validate( )	.../TippingOverConfiguration.php:289

( ! ) Notice: Undefined property: TippingOverConfiguration::$mEarlyCategoryFilter in extensions/TippingOver/includes/TippingOverConfiguration.php on line 462
Call Stack
#	Time	Memory	Function	Location
8	0.1970	8122040	TippingOverConfiguration->__construct( )	.../WikiTooltips.php:144
9	0.1970	8122616	TippingOverConfiguration->validate( )	.../TippingOverConfiguration.php:289

( ! ) Notice: Undefined property: TippingOverConfiguration::$mExistsCheck in extensions/TippingOver/includes/TippingOverConfiguration.php on line 464
Call Stack
#	Time	Memory	Function	Location
8	0.1970	8122040	TippingOverConfiguration->__construct( )	.../WikiTooltips.php:144
9	0.1970	8122616	TippingOverConfiguration->validate( )	.../TippingOverConfiguration.php:289

( ! ) Notice: Undefined property: TippingOverConfiguration::$enableOnImageLinks in extensions/TippingOver/includes/WikiTooltips.php on line 150
Call Stack
#	Time	Memory	Function	Location
6	0.1968	8114480	Hooks::callHook( )	.../Hooks.php:202
7	0.1969	8118456	WikiTooltips::initializeHooksAndModule( )	.../Hooks.php:174

Option to disable title when a tooltip exists, and position tooltip appropriately

image

This is how it looks right now when I remove the title attr with javascript, I don't like having both a title and the tooltip. But if possible it would be nicer if the title could be removed by the extension (only when the tooltip actually exists) and then the tooltip positioned according just to the link and not to the link+title.

Fatal error due to unintialized options

Looks like TippingOver is not initializing its parser instance properly in all scenarios with a ParserOptions object. So when it attempts to use $this->mOptions it produces a fatal error.

This occurred on Hearthstone wiki on several pages. This example is from the Hunter article.

E_ERROR: Call to a member function getMaxIncludeSize() on a non-object

Sample stack trace
…:replaceVariables called at includes/parser/Parser.php (3139)
…:replaceVariables called at includes/parser/Parser.php (1216)
…er::internalParse called at includes/parser/Parser.php (602)
…ed at extensions/TippingOver/includes/WikiTooltips.php (338)
…ed at extensions/TippingOver/includes/WikiTooltips.php (367)
…ed at extensions/TippingOver/includes/WikiTooltips.php (478)
in WikiTooltips::checkAndAttachTooltip called at ? (?)
in call_user_func_array called at includes/Hooks.php (206)
in Hooks::run called at includes/GlobalFunctions.php (4013)
in wfRunHooks called at includes/Linker.php (252)
in Linker::link called at includes/OutputPage.php (1244)
…ge::addCategoryLinks called at includes/OutputPage.php (1591)
…ddParserOutputNoText called at includes/OutputPage.php (1644)
…utPage::addParserOutput called at includes/Article.php (639)
…rticle::view called at includes/actions/ViewAction.php (44)
in ViewAction::show called at includes/Wiki.php (428)
in MediaWiki::performAction called at includes/Wiki.php (292)
… MediaWiki::performRequest called at includes/Wiki.php (588)
in MediaWiki::main called at includes/Wiki.php (447)
in MediaWiki::run called at index.php (46)

attributes should be global constants

Copying this from Gitlab

Currently the HTML inserted by TO is something like this:

data-to-id="Invictus_Gaming" data-to-target-title="Invictus Gaming" data-to-can-late-follow="false" data-to-tooltip-title="Tooltip:Invictus Gaming" data-to-is-image="false" data-to-empty-page-name="false" data-to-missing-page="false"

But most of these either are global constants or could be computed easily from global constants. Could these be made to actual global constants and removed from the inline HTML? A huge percentage of the HTML on LoL wiki frontpage is TO attributes, and it's gotten in the way of inclusion size on some of my tournament pages so I had to make a lot of things not be links anymore; also I want to add tooltips for players but can't really do that because of the current inclusion size increase.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.