I have installed MS Trenches and cannot get the right side boxes to show up. Can someone please instruct me (in great detail ) as to where to edit this code. Many thanks in advance..........
dezina Support Mod
Joined: Jun 09, 2003
Posts: 1713
Location: England
Posted:
Tue Jan 24, 2006 12:34 am
Code:
In your theme.php find:
if ($index == 1) {
and change to:
if (defined('INDEX_FILE')) {
_________________
Backup files BEFORE altering
Use PHPNuke 7.6 with patches!!
No private messages please, POST in forums.
LHS-8Ball Nuke Cadet
Joined: Jan 23, 2006
Posts: 3
Posted:
Tue Jan 24, 2006 3:46 am
dezina wrote:
Code:
In your theme.php find:
if ($index == 1) {
and change to:
if (defined('INDEX_FILE')) {
This is my first try at setting up a site and altering code. I have been successful at adding a few blocks and modules. My problem/trouble is knowing the path to the folder to alter.
I went from httpdocs>>themes( I think)>>>MS Trenches>>>theme.php and altered the text as you have stated in the quote. I have noticed while trying to setup a TS block that if any code is not correct or out of place strange things happen to the site. I guess my question is if in the above alter are the spaces important? I have it entered as I see it with what appears to be without spaces. Also how do you tell what the line # is? Do you start at the top and have to count down? I am using File Zille for transfer and Plesk for editing. Please be patient with me because I am a NooB at this. Once again thanks for the help.
P.S. - I have read a 1000 posts/documents so far. I'm tired of searching and would like some instant results.
dezina Support Mod
Joined: Jun 09, 2003
Posts: 1713
Location: England
Posted:
Tue Jan 24, 2006 5:03 am
Quote:
I went from httpdocs>>themes( I think)>>>MS Trenches>>>theme.php and altered the text as you have stated in the quote.
Exactly right, should be working fine now
i.e. code below changes from
Code:
if ($index == 1) {
TO
Code:
if (defined('INDEX_FILE')) {
in theme.php which you find in folder
/themes/nameofyourtheme/
_________________
Backup files BEFORE altering
Use PHPNuke 7.6 with patches!!
No private messages please, POST in forums.
1- If you want right side blocks to appear in third party add-ons change:
In Modules find:
index = 1;
and change to:
/**********************************/
/* Module Configuration */
/* (right side on) */
/* Remove the following line */
/* will remove the right side */
/**********************************/
define('INDEX_FILE', true);
In Themes:
if ($index == 1) {
to:
if (defined('INDEX_FILE')) {
2- Additional changes for third party add-ons:
if ($mainfile == 1) {
should be changed to:
if (defined('NUKE_FILE')) {
if ($module == 1) {
should be changed to:
if (defined('MODULE_FILE')) {
if ($footer == 1) {
should be changed to:
if (defined('NUKE_FOOTER')) {
if ($header == 1) {
should be changed to:
if (defined('NUKE_HEADER')) {
This is the readme file attached. I finally got the blocks working by copying the code from here and pasting into the themes.php. I had already turned on the index = 1 in modules so when I saved the right side blocks appeared.This has been a headache for about 3 days now and I am sure glad to have it resolved. I'm sure I'll be posting soon with another problem
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum