MikeJones they should be shown in the sidebar on the homepage
FriendsOfFlarum Links
matteocontrini I see it now above the search bar! Thanks!
- Edited
0.2.0
- Add
active
class and style internal links when they are active, thanks @clarkwinkelmann (FriendsOfFlarum/links#5)
Updating
composer require fof/links ^0.2.0
datitisev by the way, you tagged a new major version (in the 0.x
line, 0.2.0
is major), so composer require
will be required to update to this version
PS: I noticed afterwards that the active links feature doesn't work if your forum is installed in a subfolder. I'll try to come up with a fix, in the meantime the links will just never be active on such forums
Maybe in next update, we can add font awesome icons inside of the extension like a tags?
tolgaaaltas Do you mean include icons with the links ?
- Edited
datitisev Yes, like a tags with extra fields for font awesome.
Edit: @datitisev I mean this:
tolgaaaltas That image returns 403 forbidden, I can't see it :/
- Edited
datitisev you can see here: https://1drv.ms/u/s!Ak9NTpwE2VCmm444KO0DUNZrkBPMvA?e=S1rmNO
Left side, tags extension. Right side links extension. I want to similar feature in Links extension, sure if it's possible.
When this plug-in is enabled in beta 9 localhost, it gives a "Oops! Something went wrong. Please reload the page and try again." error.
qurse Looks like same issue with FoF Pages extension.
tolgaaaltas yes pages had the same problem in the plugin has been fixed.
Can either of you check the flarum log file and send the error that is being thrown ?
- Edited
[2019-07-09 16:54:59] production.ERROR: Error: Call to undefined method Flarum\Database\Migration::fixIndexNames() in C:\xampp7.2\htdocs\flarum\vendor\fof\links\migrations\2016_02_13_000000_create_links_table.php:28
Stack trace:
#0 C:\xampp7.2\htdocs\flarum\vendor\illuminate\database\Schema\Builder.php(164): Illuminate\Filesystem\Filesystem->{closure}(Object(Illuminate\Database\Schema\Blueprint))
#1 C:\xampp7.2\htdocs\flarum\vendor\illuminate\support\helpers.php(1027): Illuminate\Database\Schema\Builder->Illuminate\Database\Schema\{closure}(Object(Illuminate\Database\Schema\Blueprint))
#2 C:\xampp7.2\htdocs\flarum\vendor\illuminate\database\Schema\Builder.php(165): tap(Object(Illuminate\Database\Schema\Blueprint), Object(Closure))
#3 C:\xampp7.2\htdocs\flarum\vendor\fof\links\migrations\2016_02_13_000000_create_links_table.php(29): Illuminate\Database\Schema\Builder->create('links', Object(Closure))
#4 [internal function]: Illuminate\Filesystem\Filesystem->{closure}(Object(Illuminate\Database\Schema\MySqlBuilder))
#5 C:\xampp7.2\htdocs\flarum\vendor\flarum\core\src\Database\Migrator.php(199): call_user_func(Object(Closure), Object(Illuminate\Database\Schema\MySqlBuilder))
#6 C:\xampp7.2\htdocs\flarum\vendor\flarum\core\src\Database\Migrator.php(130): Flarum\Database\Migrator->runClosureMigration(Array)
#7 C:\xampp7.2\htdocs\flarum\vendor\flarum\core\src\Database\Migrator.php(113): Flarum\Database\Migrator->runUp('C:\\xampp7.2\\htd...', '2016_02_13_0000...', Object(Flarum\Extension\Extension))
#8 C:\xampp7.2\htdocs\flarum\vendor\flarum\core\src\Database\Migrator.php(87): Flarum\Database\Migrator->runMigrationList('C:\\xampp7.2\\htd...', Array, Object(Flarum\Extension\Extension))
#9 C:\xampp7.2\htdocs\flarum\vendor\flarum\core\src\Extension\Extension.php(352): Flarum\Database\Migrator->run('C:\\xampp7.2\\htd...', Object(Flarum\Extension\Extension))
#10 C:\xampp7.2\htdocs\flarum\vendor\flarum\core\src\Extension\ExtensionManager.php(234): Flarum\Extension\Extension->migrate(Object(Flarum\Database\Migrator), 'up')
#11 C:\xampp7.2\htdocs\flarum\vendor\flarum\core\src\Extension\ExtensionManager.php(127): Flarum\Extension\ExtensionManager->migrate(Object(Flarum\Extension\Extension))
#12 C:\xampp7.2\htdocs\flarum\vendor\flarum\core\src\Api\Controller\UpdateExtensionController.php(49): Flarum\Extension\ExtensionManager->enable('fof-links')
#13 C:\xampp7.2\htdocs\flarum\vendor\flarum\core\src\Http\RouteHandlerFactory.php(40): Flarum\Api\Controller\UpdateExtensionController->handle(Object(Zend\Diactoros\ServerRequest))
#14 C:\xampp7.2\htdocs\flarum\vendor\flarum\core\src\Http\Middleware\DispatchRoute.php(67): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}(Object(Zend\Diactoros\ServerRequest), Array)
#15 C:\xampp7.2\htdocs\flarum\vendor\zendframework\zend-stratigility\src\Next.php(60): Flarum\Http\Middleware\DispatchRoute->process(Object(Zend\Diactoros\ServerRequest), Object(Closure))
#16 C:\xampp7.2\htdocs\flarum\vendor\flarum\core\src\Http\Middleware\SetLocale.php(51): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#17 C:\xampp7.2\htdocs\flarum\vendor\zendframework\zend-stratigility\src\Next.php(60): Flarum\Http\Middleware\SetLocale->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
....
Next Exception: Call to undefined method Flarum\Database\Migration::fixIndexNames() in C:\xampp7.2\htdocs\flarum\vendor\flarum\core\src\Api\ErrorHandler.php:41
Stack trace:
[2019-07-09 16:55:07] production.ERROR: Error: Call to undefined method Flarum\Database\Migration::fixIndexNames() in C:\xampp7.2\htdocs\flarum\vendor\fof\links\migrations\2016_02_13_000000_create_links_table.php:28
Stack trace:
[2019-07-09 16:57:59] production.ERROR: Error: Call to undefined method Flarum\Database\Migration::fixIndexNames() in C:\xampp7.2\htdocs\flarum\vendor\fof\links\migrations\2016_02_13_000000_create_links_table.php:28
Stack trace:
...
- Edited
I think I found a bug - you can't "grab" links and change their order like it's supposed to.
Browser console output:
LinksPage.js:52 Uncaught TypeError: this.$(...).sortable is not a function
at n.e.config (LinksPage.js:52)
at Object.e.attrs.config (Component.js:113)
at mithril.js:447
at mithril.js:1353
at g (mithril.js:189)
at Function.m.render (mithril.js:1353)
at mithril.js:1567
at g (mithril.js:189)
at ut (mithril.js:1563)
at Function.m.redraw (mithril.js:1547)
"Grabbing" works for me fine in Tags for example.