Need help with own theme

Development related discussion.
User avatar
paulhobbel
Member
Posts: 28
Joined: Thu Jul 31, 2014 10:06 am
Contact:

Re: Need help with own theme

Post by paulhobbel » Fri Aug 15, 2014 9:16 am

Why does the following not work?

Code: Select all

<?php include Request::base('vendor/traq/views/' . settings('theme') . '/config/bootstrap.config.php'); ?>
It does give me cannot load /vendor/traq/views/bootstrap/config/boostrap.config.php
Bootstrap Theme for Traq here | Dutch Translation for Traq here | Theme demo here

User avatar
Jack
Advanced Member
Posts: 668
Joined: Fri Mar 27, 2009 7:37 pm
Location: Australia

Re: Need help with own theme

Post by Jack » Fri Aug 15, 2014 12:47 pm

[quote="paulhobbel"]
Why does the following not work?

Code: Select all

<?php include Request::base('vendor/traq/views/' . settings('theme') . '/config/bootstrap.config.php'); ?>
It does give me cannot load /vendor/traq/views/bootstrap/config/boostrap.config.php
[/quote]
 
The "Request::base()" method is used to get a URI to the root directory of Traq for browsers.
 
To include something from the theme directory in PHP it can be done like so:

Code: Select all

<?php require APPPATH . '/views/' . setting('theme') . '/config/bootstrap.config.php'; ?>

User avatar
paulhobbel
Member
Posts: 28
Joined: Thu Jul 31, 2014 10:06 am
Contact:

Re: Need help with own theme

Post by paulhobbel » Mon Aug 18, 2014 4:25 am

Sorry that I'm asking all these things but is there a way to change the preview_text without changing anything in _misc folder
I already tried to change some things in the traq.js file but that didn't work
Bootstrap Theme for Traq here | Dutch Translation for Traq here | Theme demo here

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests