The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
New Page - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: New Page (/showthread.php?tid=904)



New Page - johnson72764 - 01-05-2018

I have tried...but can't seem to figure out how to get something to work...

How do I create a new page?
I have tried but continually get errors....
What I am trying to do...
I want a subscribed user to log in, and be taken to a 'new page' ...like 'logged_in.php'
this is where they will be able to download different applications...

I will be able to give a user privilege to this page as all the other pages...

Seems like it should be simple... I have tried to use the 'empty.php' in the usersc folder...
I copied the php from the index page...but get errors due to log in issues...

Thanks in advance for guidance



New Page - Brandin - 01-05-2018

Your issue would be changing the init call.

A good page to start with would be index.php in the users folder. Your replacement files for stuff in users should go in usersc, and your init call would be ../users/init.php instead of init.php.

Hope this helps.


New Page - johnson72764 - 01-06-2018

???
Ok...Makes some sense...I guess If I knew the Hierarchy of the cms...
However, I don't see anything that navigates to the usersc folder while logged in...
Maybe I've played with .NET too long...lol
but it seems if the init.php files were different, there would be navigation to the /usersc/index.php page

I truly appreciate your help....


New Page - Brandin - 01-06-2018

You will just change your call at the beginning of the PHP file so it can reach init.php within the users folder. You never want to have multiple init's, only ever in the users folder.


New Page - johnson72764 - 01-06-2018

For instance...
when logged in, i view /users/account.php
I try to navigate to /users/index.php , and it auto navigates back to /users/account.php....
I thought it was a page or user permissions issue, so I logged in as admin, and set /users/index.php to be accessible with 'Users'
Tried again after this, and it still autonavigates back to account.php

I would like for it to navigate to /users/account/newpage.php once logged in...

Ideas?



New Page - Brandin - 01-06-2018

You modify the after-login redirect in usersc/scripts/custom_login_script.php