| Author |
Message |
XtremeMotocross
Lieutenant


Joined: Aug 06, 2003
Posts: 217
Location: USA
|
Posted:
Mon Aug 18, 2003 7:53 pm |
  |
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
|
|
     |
 |
badger
Sergeant


Joined: Apr 02, 2003
Posts: 113
Location: Scotland
|
Posted:
Tue Aug 19, 2003 4:36 am |
  |
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. |
|
|
      |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Tue Aug 19, 2003 4:54 am |
  |
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] |
|
     |
 |
badger
Sergeant


Joined: Apr 02, 2003
Posts: 113
Location: Scotland
|
Posted:
Tue Aug 19, 2003 5:28 am |
  |
oops, my bad. I meant theme.php |
|
|
      |
 |
XtremeMotocross
Lieutenant


Joined: Aug 06, 2003
Posts: 217
Location: USA
|
Posted:
Tue Aug 19, 2003 12:41 pm |
  |
I also meant theme.php and not navtap.php... 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
|
|
     |
 |
badger
Sergeant


Joined: Apr 02, 2003
Posts: 113
Location: Scotland
|
Posted:
Tue Aug 19, 2003 12:51 pm |
  |
| 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 |
|
|
      |
 |
XtremeMotocross
Lieutenant


Joined: Aug 06, 2003
Posts: 217
Location: USA
|
Posted:
Tue Aug 19, 2003 12:58 pm |
  |
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
|
|
     |
 |
XtremeMotocross
Lieutenant


Joined: Aug 06, 2003
Posts: 217
Location: USA
|
Posted:
Tue Aug 19, 2003 1:01 pm |
  |
oops messed up the code a little there sorry bout that it should be:
| Code: |
| echo "<body bgcolor=\"#545454\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" |
|
_________________ XM
|
|
     |
 |
XtremeMotocross
Lieutenant


Joined: Aug 06, 2003
Posts: 217
Location: USA
|
Posted:
Tue Aug 19, 2003 1:12 pm |
  |
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
|
|
     |
 |
XtremeMotocross
Lieutenant


Joined: Aug 06, 2003
Posts: 217
Location: USA
|
Posted:
Tue Aug 19, 2003 1:26 pm |
  |
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
|
|
     |
 |
badger
Sergeant


Joined: Apr 02, 2003
Posts: 113
Location: Scotland
|
Posted:
Tue Aug 19, 2003 1:42 pm |
  |
take out the first one and use the second one then!! |
|
|
      |
 |
XtremeMotocross
Lieutenant


Joined: Aug 06, 2003
Posts: 217
Location: USA
|
Posted:
Tue Aug 19, 2003 2:17 pm |
  |
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
|
|
     |
 |
revspalding
Premium


Joined: Jan 31, 2003
Posts: 125
Location: Badlands of NW Colorado
|
Posted:
Tue Aug 19, 2003 5:35 pm |
  |
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... |
|
    |
 |
XtremeMotocross
Lieutenant


Joined: Aug 06, 2003
Posts: 217
Location: USA
|
Posted:
Tue Aug 19, 2003 8:31 pm |
  |
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
|
|
     |
 |
badger
Sergeant


Joined: Apr 02, 2003
Posts: 113
Location: Scotland
|
Posted:
Wed Aug 20, 2003 12:09 am |
  |
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?? |
|
|
      |
 |
|
|