Difference between revisions of "Extensions:User Ads"

From Lorekeeper Wiki
Jump to navigation Jump to search
Tag: 2017 source edit
Tag: 2017 source edit
Line 16: Line 16:
  
 
== Usage ==
 
== Usage ==
<!-- Is there anything users should know about using your extension? -->
+
Display in the app.blade.php for only logged in users.  It will not show to guests unless you edit it.
 +
 
 +
Users can delete their own ads but cannot edit their own.
 +
 
 +
Staff with the power manage_uses_ads are able to delete and edit ads regardless of who made them.
 +
 
 
== Troubleshooting ==
 
== Troubleshooting ==
 
<!-- Are there known issues or errors that require user action? Who should they contact, and where, for support? -->
 
<!-- Are there known issues or errors that require user action? Who should they contact, and where, for support? -->

Revision as of 12:58, 21 January 2026

the extension's name
Description A short description
Author(s) Author(s)
Status status (such as WIP, testing, stable)
Github branch
LK Version What Lorekeeper version the ext is built on





Installation

Pull the extension.

Do the following commands once you resolve all conflicts.

  • php artisan migrate
  • php artisan optimize

Configuration

The user ads are called with @include('layouts._user_ads') in app.blade.php by default. If you move this elsewhere, like the Dashboard, you may have to fiddle with the back end.

You can also adjust the look of the user ads index and the ads itself with these files: resources/views/user_ads/index.blade.php resources/views/user_ads/_user_ads.blade.php

Usage

Display in the app.blade.php for only logged in users. It will not show to guests unless you edit it.

Users can delete their own ads but cannot edit their own.

Staff with the power manage_uses_ads are able to delete and edit ads regardless of who made them.

Troubleshooting

Images

See Also