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
Integrating into template - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28)
+--- Forum: Off-topic Discussions (https://userspice.com/forums/forumdisplay.php?fid=10)
+--- Thread: Integrating into template (/showthread.php?tid=513)



Integrating into template - lefox - 04-03-2017

This might be waaay to much to ask, but I downloaded this template

Template

and I wanted to incorporate it into the front end of my website.

How ever when I added the

<pre>
Code:
require_once 'init.php';
require_once $abs_us_root.$us_url_root.'users/includes/header.php';
</pre>


but it errors out every time!

Code:
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Program Files\VertrigoServ\www\snv\usersc\index.php:3) in C:\Program Files\VertrigoServ\www\snv\usersc\init.php on line 2

Code:
Cannot modify header information - headers already sent by (output started at C:\Program Files\VertrigoServ\www\snv\usersc\index.php:3) in C:\Program Files\VertrigoServ\www\snv\users\includes\header.php on line 3


If you look at the index.html(changed to index.php when I'm trying it) its got a bunch of header stuff:

<pre>
Code:
<!-- Google Fonts -->
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,700,700i|Raleway:300,400,500,700,800" rel="stylesheet">
  
  <!-- Bootstrap CSS File -->
  <link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  
  <!-- Libraries CSS Files -->
  <link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  <link href="lib/animate-css/animate.min.css" rel="stylesheet">
  
  <!-- Main Stylesheet File -->
  <link href="css/style.css" rel="stylesheet">
</pre>


I've tried adding these to init.php or header.php(I'm not sure which one).

It seemed to load a bit more properly when I added style.css as the custom css.

This is probably a lot to ask but if you had any suggestions it would really help!




Integrating into template - mudmin - 04-03-2017

Here's what I would do. I would unzip the entire thing into your root. Not the "users" folder, but your actual root. (So you will have a css folder in your root and the existing userspice one in the users folder).

Then I would create a file in usersc/includes/myheader.php and paste this in it.
https://pastebin.com/wzfgRjUr


Then I would create a file in usersc/includes/mynavigation.php and paste this in it
https://pastebin.com/7iGi7mVK

Then this would be your index.php
https://pastebin.com/jRgWv2Zv

You could create a footer if you wanted to. I hope this helps.





Integrating into template - lefox - 04-03-2017

I'm unable to test a the moment, but your response time and help is always appreciated. I will post back with any updates I may have. Thank you again!


Integrating into template - lefox - 04-04-2017

So this template comes with a preloader and I can't seem to get past it. If I'm running it from a local file(Just copying the html into the file browser) it starts right up, but when I try to run it through the WAMP server(127.0.0.1/index.html) it just get stuck at the preloader. I know this has absolutely nothing to do with Userspice, and I greatly appreciate trying to help. I might just try a different template!

Tried it with a different template and your formula and so far it works! Wish I would have figured out it was the template and few hours ago -_-.

Keep up the great work!


Integrating into template - mudmin - 04-04-2017

Try right clicking on a white part of the page and click inspect (in chrome) go to console and see if there is any red text telling you that something isn't loading.

Also, try XAMPP instead. I love WAMP but I've found it to be buggier and absolutely slower with big databases.