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
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Troubles for adapting Userspice on my website
#1
Hi everyone,

I’m trying to include a page called head.php, where there's all the part before <!DOCTYPE html>. It works well on my index page, but when I put it (for example) on the users/join.php it doesn’t work.
What I want to do is to make all my pages starting like this: http://pasted.co/4dd2ff6c.
Page head.php: http://pasted.co/4e404c3d
Page header.php: http://pasted.co/fec196e7
All I have is a blank page when I paste it on pages in the users file, but it works well in my root file. Does anyone have a solution?
Thanks
  Reply
#2
Are you calling the init before you call your head? Reason being - if you don't, there is no value for
Code:
$abs_us_root
or
Code:
$us_url_root
  Reply
#3
The init I call it in the head. I wrote that in this file require_once $abs_us_root.$us_url_root.'./users/init.php';
It works on other pages but not when it's in a file. So I should just call it in the page and not in head?
  Reply
#4
You can't call it in your head because you can't call your head without the values from init. You will need to call init on its own - and then the head.
  Reply
#5
Okay thanks
  Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)