You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 344 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - No right side blocks on MS TRENCHES? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
LHS-8Ball
Nuke Cadet
Nuke Cadet


Joined: Jan 23, 2006
Posts: 3


PostPosted: Mon Jan 23, 2006 7:02 pm Reply with quoteBack to top

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.......... Confused
Find all posts by LHS-8BallView user's profileSend private message
dezina
Support Mod
Support Mod


Joined: Jun 09, 2003
Posts: 1713

Location: England

PostPosted: Tue Jan 24, 2006 12:34 am Reply with quoteBack to top

Code:
In your theme.php find:
if ($index == 1) {

and change to:
if (defined('INDEX_FILE')) {

_________________
Image
Backup files BEFORE altering
Use PHPNuke 7.6 with patches!!
No private messages please, POST in forums.
Find all posts by dezinaView user's profileSend private messageVisit poster's website
LHS-8Ball
Nuke Cadet
Nuke Cadet


Joined: Jan 23, 2006
Posts: 3


PostPosted: Tue Jan 24, 2006 3:46 am Reply with quoteBack to top

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. Crying or Very sad
Find all posts by LHS-8BallView user's profileSend private message
dezina
Support Mod
Support Mod


Joined: Jun 09, 2003
Posts: 1713

Location: England

PostPosted: Tue Jan 24, 2006 5:03 am Reply with quoteBack to top

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/

_________________
Image
Backup files BEFORE altering
Use PHPNuke 7.6 with patches!!
No private messages please, POST in forums.
Find all posts by dezinaView user's profileSend private messageVisit poster's website
LHS-8Ball
Nuke Cadet
Nuke Cadet


Joined: Jan 23, 2006
Posts: 3


PostPosted: Tue Jan 24, 2006 2:04 pm Reply with quoteBack to top

/************************************************************************/
/* PHP-Nuke Patched -- 2005 chatserv */
/* Nuke Patched DEV Team -- Evaders99 & Quake */
/* http://www.nukefixes.com -- http://www.nukeresources.com */
/************************************************************************/

Important notes relating to Nuke Patched 3.1:

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 Laughing
Find all posts by LHS-8BallView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.040 Seconds - 319 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::