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
Troubles for adapting Userspice on my website - 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: Troubles for adapting Userspice on my website (/showthread.php?tid=742)



Troubles for adapting Userspice on my website - JulienS - 09-13-2017

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


Troubles for adapting Userspice on my website - Brandin - 09-13-2017

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



Troubles for adapting Userspice on my website - JulienS - 09-13-2017

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?


Troubles for adapting Userspice on my website - Brandin - 09-13-2017

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.


Troubles for adapting Userspice on my website - JulienS - 09-13-2017

Okay thanks