mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-09 00:28:44 +01:00
Added 'no Page URL' notice
Added a notice if a user tries to view their page without having a Page URL set on the User Panel.
This commit is contained in:
parent
9cb10aa777
commit
6c81802799
@ -26,6 +26,10 @@
|
|||||||
</div>-->
|
</div>-->
|
||||||
|
|
||||||
<div class="form-group col-lg-8">
|
<div class="form-group col-lg-8">
|
||||||
|
<?php
|
||||||
|
$url = $_SERVER['REQUEST_URI'];
|
||||||
|
if( strpos( $url, "no_page_name" ) == true ) echo '<span style="color:#FF0000; font-size:120%;">You do not have a Page URL</span>'; ?>
|
||||||
|
<br>
|
||||||
<label>Page URL</label>
|
<label>Page URL</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
|
@ -17,6 +17,11 @@ use App\Http\Controllers\UserController;
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
//Redirect if no page URL is set
|
||||||
|
Route::get('/@', function () {
|
||||||
|
return redirect('/studio/no_page_name');
|
||||||
|
});
|
||||||
|
|
||||||
//Public route
|
//Public route
|
||||||
Route::get('/going/{id?}/{link?}', [UserController::class, 'clickNumber'])->where('link', '.*')->name('clickNumber');
|
Route::get('/going/{id?}/{link?}', [UserController::class, 'clickNumber'])->where('link', '.*')->name('clickNumber');
|
||||||
Route::get('/+{littlelink}', [UserController::class, 'littlelink'])->name('littlelink');
|
Route::get('/+{littlelink}', [UserController::class, 'littlelink'])->name('littlelink');
|
||||||
@ -38,6 +43,7 @@ Route::get('/upLink/{up}/{id}', [UserController::class, 'upLink'])->name('upLink
|
|||||||
Route::get('/studio/edit-link/{id}', [UserController::class, 'showLink'])->name('showLink');
|
Route::get('/studio/edit-link/{id}', [UserController::class, 'showLink'])->name('showLink');
|
||||||
Route::post('/studio/edit-link/{id}', [UserController::class, 'editLink'])->name('editLink');
|
Route::post('/studio/edit-link/{id}', [UserController::class, 'editLink'])->name('editLink');
|
||||||
Route::get('/studio/page', [UserController::class, 'showPage'])->name('showPage');
|
Route::get('/studio/page', [UserController::class, 'showPage'])->name('showPage');
|
||||||
|
Route::get('/studio/no_page_name', [UserController::class, 'showPage'])->name('showPage');
|
||||||
Route::post('/studio/page', [UserController::class, 'editPage'])->name('editPage');
|
Route::post('/studio/page', [UserController::class, 'editPage'])->name('editPage');
|
||||||
Route::get('/studio/profile', [UserController::class, 'showProfile'])->name('showProfile');
|
Route::get('/studio/profile', [UserController::class, 'showProfile'])->name('showProfile');
|
||||||
Route::post('/studio/profile', [UserController::class, 'editProfile'])->name('editProfile');
|
Route::post('/studio/profile', [UserController::class, 'editProfile'])->name('editProfile');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user