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, 149 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 - navtap and colors [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
XtremeMotocross
Lieutenant
Lieutenant


Joined: Aug 06, 2003
Posts: 217

Location: USA

PostPosted: Mon Aug 18, 2003 7:53 pm Reply with quoteBack to top

Hey,

I read the new navtap.php file and it says to find a line with the body looking similar to this

echo "<body leftmargin=\"1\" topmargin=\"1\" marginwidth=\"1\" marginheight=\"1\"

i cannot find a line that looks remotely similar to this. Do you know what spot it should be in i.e. open table functions, format story etc. Do you know what spot the line should be in or is there another line that it can go under...any ideas?

Thanks

_________________
XM
Find all posts by XtremeMotocrossView user's profileSend private messageVisit poster's websiteAIM Address
badger
Sergeant
Sergeant


Joined: Apr 02, 2003
Posts: 113

Location: Scotland

PostPosted: Tue Aug 19, 2003 4:36 am Reply with quoteBack to top

err, is that line not supposed to be in mainfile.php not the navtap.php?? It is afterthat line you add the NavTap(); function call.

Badger.
Find all posts by badgerView user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Tue Aug 19, 2003 4:54 am Reply with quoteBack to top

Hi in most themes the main file is called the "theme.php" script. Most of these have the "body" tag line, you know like in HTML code:

HTML
HEAD
BODY

Well if you can find it in your theme.php file, simply enter

NavTap();

After it on its own line and you are golden.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
badger
Sergeant
Sergeant


Joined: Apr 02, 2003
Posts: 113

Location: Scotland

PostPosted: Tue Aug 19, 2003 5:28 am Reply with quoteBack to top

Embarassed oops, my bad. I meant theme.php
Find all posts by badgerView user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger
XtremeMotocross
Lieutenant
Lieutenant


Joined: Aug 06, 2003
Posts: 217

Location: USA

PostPosted: Tue Aug 19, 2003 12:41 pm Reply with quoteBack to top

I also meant theme.php and not navtap.php... Rolling Eyes Well i looked in theme.php and this is the only line that i can find that has "body" in it
Code:
echo "<body bgcolor=\"#545454\" text=\"#000000\" link=\"#363636\"
vlink=\"#363636\" alink=\"#d5ae83\">\n"

I have put NavTap(); right below the body, i have put it 2 lines below, and 3 lines below and even farther. I either get no change what so ever, i get 2 navtaps, or i get this error

Parse error: parse error in /www/x/xtrememotox/htdocs/themes/Doom/theme.php on line 113

Fatal error: Call to undefined function: themeheader() in /www/x/xtrememotox/htdocs/header.php on line 47

but the navtap is still there. Any ideas?

Thanks a lot

_________________
XM
Find all posts by XtremeMotocrossView user's profileSend private messageVisit poster's websiteAIM Address
badger
Sergeant
Sergeant


Joined: Apr 02, 2003
Posts: 113

Location: Scotland

PostPosted: Tue Aug 19, 2003 12:51 pm Reply with quoteBack to top

Code:
<?php

/************************************************************/
/* Theme Name: Helius                                       */
/* Theme Design: mikem (http://www.nukemods.com)            */
/* version 2.0                                              */
/* Theme inspired by the phpbb2 style Helius by             */
/* Cyberalien (http://www.trushkin.net/)                    */
/*                                                          */
/* Copyright Notice                                         */
/* - THIS THEME IS NOT RELEASED AS GPL/GNU SCRIPTING.       */
/* - Our Package name and link MUST REMAIN in the credit    */
/*   footer of all Nuke generated pages.                    */
/*   Translations are permitted, not renaming.              */
/* - This package CAN NOT be ported without written         */
/*   permission.                                            */
/* - This package CAN NOT be mirrored without written       */
/*   permission.                                            */
/* - Use of this package requires that credits to the       */
/*   original PHPNuke remain in all site generated          */
/*   page footers.                                          */
/*                                                          */
/************************************************************/

/************************************************************/
/* Theme Colors Definition                                  */
/*                                                          */
/* Define colors for your web site. $bgcolor2 is generaly   */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the  */
/* other two bgcolor variables follows the same criteria.   */
/* $texcolor1 and 2 are for tables internal texts           */
/************************************************************/

$bgcolor1 = "#EDEFF2";
$bgcolor2 = "#DDE2EC";
$bgcolor3 = "#EDEFF2";
$bgcolor4 = "#DDE2EC";
$textcolor1 = "#000000";
$textcolor2 = "#000000";

include("themes/Helius/tables.php");

/************************************************************/
/* Function themeheader()                                   */
/*                                                          */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks    */
/* function for left side with: blocks(left);               */
/************************************************************/
NavTap();
function themeheader() {
    global $admin, $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $nukeurl, $anonymous;
    if ($banners == 1) {
    $numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'"));
   /* Get a random banner if exist any. */
   /* More efficient random stuff, thanks to Cristian Arroyo from http://www.planetalinux.com.ar */

thats where i put it and it works a treat

Badger
Find all posts by badgerView user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger
XtremeMotocross
Lieutenant
Lieutenant


Joined: Aug 06, 2003
Posts: 217

Location: USA

PostPosted: Tue Aug 19, 2003 12:58 pm Reply with quoteBack to top

ok...also now i cannot get my site back to normal...i took out the navtap from the theme.php but now it says that there is an error on line 109 in theme.php but line 109 is just
[/code] echo "<body bgcolor=\"#545454\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\"
Code:


and i didnt change anything in this line...this is actually 2 lines in notepad...all i did was try to put the navtap line inbetween this line because it was broken....i dont know what i did wrong...any ideas?

Thanks

_________________
XM
Find all posts by XtremeMotocrossView user's profileSend private messageVisit poster's websiteAIM Address
XtremeMotocross
Lieutenant
Lieutenant


Joined: Aug 06, 2003
Posts: 217

Location: USA

PostPosted: Tue Aug 19, 2003 1:01 pm Reply with quoteBack to top

oops messed up the code a little there Confused sorry bout that it should be:

Code:
    echo "<body bgcolor=\"#545454\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\"

_________________
XM
Find all posts by XtremeMotocrossView user's profileSend private messageVisit poster's websiteAIM Address
XtremeMotocross
Lieutenant
Lieutenant


Joined: Aug 06, 2003
Posts: 217

Location: USA

PostPosted: Tue Aug 19, 2003 1:12 pm Reply with quoteBack to top

sorry to be spamming but i just have one more thing that i found that i think i should post

it says when i got to my website

Parse error: parse error, expecting `','' or `';'' in /www/x/xtrememotox/htdocs/themes/Doom/theme.php on line 110

Fatal error: Call to undefined function: themeheader() in /www/x/xtrememotox/htdocs/header.php on line 47

it says its expecting a , or a ;...im not sure where but i think that will fix it if any1 knows where i should put it...

_________________
XM
Find all posts by XtremeMotocrossView user's profileSend private messageVisit poster's websiteAIM Address
XtremeMotocross
Lieutenant
Lieutenant


Joined: Aug 06, 2003
Posts: 217

Location: USA

PostPosted: Tue Aug 19, 2003 1:26 pm Reply with quoteBack to top

ok...i i found where the ; had to go and then it said parse error on line 112 and i fixed it by just taking out the line which was include("banner.php") is that ok that i took out that line...My site works now without it or is it a recessary line? Also i tried putting the navtap(); in the same place that you have it but all it does is make another navtap right below the one that is already there...im lost


thanks,


ps. sorry bout the spammin'

_________________
XM
Find all posts by XtremeMotocrossView user's profileSend private messageVisit poster's websiteAIM Address
badger
Sergeant
Sergeant


Joined: Apr 02, 2003
Posts: 113

Location: Scotland

PostPosted: Tue Aug 19, 2003 1:42 pm Reply with quoteBack to top

take out the first one and use the second one then!!
Find all posts by badgerView user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger
XtremeMotocross
Lieutenant
Lieutenant


Joined: Aug 06, 2003
Posts: 217

Location: USA

PostPosted: Tue Aug 19, 2003 2:17 pm Reply with quoteBack to top

but the seccond one is no different than the first one. they both have the blue navbar at the top that says like "New Forum Posts," the PM image, "Your Topics," etc...in both of them the navbar is blue and i want it to match the theme...i have it so that "buddies online" and "staff online" are the same theme color but i want the navbar at the top to also be the same as the theme. Are we misunderstanding each other or am i just doing this wrong?

Thanks for your help

_________________
XM
Find all posts by XtremeMotocrossView user's profileSend private messageVisit poster's websiteAIM Address
revspalding
Premium
Premium


Joined: Jan 31, 2003
Posts: 125

Location: Badlands of NW Colorado

PostPosted: Tue Aug 19, 2003 5:35 pm Reply with quoteBack to top

Here are the instructions within the navtap.php file.

Code:
INSTRUCTIONS FOR INSTALLATION AND USE OUTSIDE OF THE NUKECOPS PHP-NUKE BUNDLE
-----------------------------------------------------------------------------

1. Upload this file (navtap.php) into your base PHP-Nuke folder's "includes"
   location.

2. Add the following line to your mainfile.php.  Ensure it isn't placed in
   any function or else it won't work.

   include("includes/navtap.php");

3. Ensure you have the following files installed in their appropriate
   locations from the http://cvs.nukecops.com website:

   images/posts.gif
   images/members.gif
   images/icon_mini_folder2.gif
   images/nopm.gif
   iamges/pm.gif

4. Add the following lines to the appropriate language file, in this case
   as an example: language/lang-english.php

   // start NavTap definitions by http://nukecops.com
   define("_NEWFORUMPOSTS","New Forum Posts");
   define("_YOURTOPICS","Your Topics");
   define("_YOURFORUMPOSTS","Your Forum Post");
   define("_UNANSWEREDPOSTS","Unanswered Posts");
   define("_BLOG","Blog");
   define("_PREFERENCES","Preferences");
   define("_THEMES","Themes");
   define("_UPLOADS","Uploads");
   define("_WEBMAIL","WebMail");
   define("_YOURTOPICS","Your Topics");
   define("_ALLFORUMS","All Forums");
   define("_WHOISONLINE","Who's Online");

5. To enable navtap for a particular theme, open the the relevant
   theme.php file and add the following line:

   NavTap();

   After the "body" tag line that may look similar to this:

   echo "<body leftmargin=\"1\" topmargin=\"1\" marginwidth=\"1\" marginheight=\"1\">";

6. To change the colors modify the variable settings below.

7. For updates check http://cvs.nukecops.com.

8. For bug reports visit http://bugs.nukecops.com.

9. For support, questions, comments visit http://nukecops.com/forums.html


Updated today, so ZX probably read your post and took care of the colors problem by assigning the variables inside the file. Download the latest...

_________________
When the blind lead the blind, they both fall in the ditch...
Find all posts by revspaldingView user's profileSend private messageVisit poster's website
XtremeMotocross
Lieutenant
Lieutenant


Joined: Aug 06, 2003
Posts: 217

Location: USA

PostPosted: Tue Aug 19, 2003 8:31 pm Reply with quoteBack to top

i have that one....and i have added

NavTap();

below the "body" tag in the theme.php folder and all it does is add a seccond navtap that is no different than the first one...

_________________
XM
Find all posts by XtremeMotocrossView user's profileSend private messageVisit poster's websiteAIM Address
badger
Sergeant
Sergeant


Joined: Apr 02, 2003
Posts: 113

Location: Scotland

PostPosted: Wed Aug 20, 2003 12:09 am Reply with quoteBack to top

We must be getting our wires crossed. I thought you couldn't get it to work properly. Do you just want to change the colour of it??
Find all posts by badgerView user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-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.773 Seconds - 79 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::