» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 63
2 members and 61 guests
Installer, koligansis
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on JavaScript in nuke within the Site design forums, part of the General category; i have the corporate version of the Milonic DHTML Menu , i was wondering how i can add javascript html code ...



Go Back   Nukemods Forum » General » Site design

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-29-2003, 06:13 PM
Junior Member
 
Join Date: Dec 2002
Location: iphoenixweb
Posts: 80
Send a message via AIM to iphoenix Send a message via MSN to iphoenix Send a message via Yahoo to iphoenix
JavaScript in nuke
i have the corporate version of the Milonic DHTML Menu, i was wondering how i can add javascript html code to my theme head?? i tryed to put it in the header.html file and that doesnt work, and i dont no where to add it in the theme.php or do you have to make a file in the includes directory????
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-29-2003, 10:08 PM
Junior Member
 
Join Date: Dec 2002
Location: iphoenixweb
Posts: 80
Send a message via AIM to iphoenix Send a message via MSN to iphoenix Send a message via Yahoo to iphoenix
ite here is my header.php code: http://iphoenixweb.net/PHPNuke/header.html

and i want the header to look loke this:
http://iphoenixweb.net/PHPNuke/menu.html

obviously the site is:
http://iphoenixweb.net/PHPNuke/index.php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-30-2003, 12:08 AM
Junior Member
 
Join Date: Dec 2002
Location: iphoenixweb
Posts: 80
Send a message via AIM to iphoenix Send a message via MSN to iphoenix Send a message via Yahoo to iphoenix
please :cry:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-30-2003, 06:35 AM
Junior Member
 
Join Date: May 2003
Posts: 9
I dont know if this will help you but I got it to work by putting 2 script lines in top of the header.html
http://www.gorgondo.com/downloads/header.rar

maybe you could help me =D
http://www.nukemods.com/modules.php?...ewtopic&t=2308
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-30-2003, 10:26 AM
Junior Member
 
Join Date: Dec 2002
Location: iphoenixweb
Posts: 80
Send a message via AIM to iphoenix Send a message via MSN to iphoenix Send a message via Yahoo to iphoenix
u have to add the right titles...

posted on: XXX should read: $posted
X comments Add View Comments should read: $comments

the posted by and posted on are the same thing, i believe you would have to make new variables, one for each, but u no nothing about mysql so just leave it. there may be other $commands which i dunt no about but prob mikem or mtech would.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-30-2003, 11:58 AM
Junior Member
 
Join Date: Jan 2003
Posts: 83
seems you have same problem like mein:
http://www.nukemods.com/modules.php?...ewtopic&t=2240

i took a look at your code..and you have the function definition good in <head> ... but the errors appears on JS calls in the body...cause nuke replace " with /" ... i have same problems...

I could fix the problem a little by using another JS script which don't use the JS calls in the body... but this new script is a little bit buggy...

Maybe some elite nukers can help us a little bit seems that many ppl have this problem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 05-30-2003, 12:28 PM
Junior Member
 
Join Date: Dec 2002
Location: iphoenixweb
Posts: 80
Send a message via AIM to iphoenix Send a message via MSN to iphoenix Send a message via Yahoo to iphoenix
i no sum one was making a theme which had it it wuas either mighty Y or mikem, it was a grey theme and it wus on this site for a few weeks, i just cant seem to find out wher it is or who did it. see it worx in reg html but y not in PHP, it looks like it works if u view the source but something does not register, do i have to change extentions of the .js files and canvert all that script to php, like four in the includes/javascript.php file?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 05-30-2003, 12:55 PM
Junior Member
 
Join Date: Jan 2003
Posts: 83
read carefully my post from there....
http://www.nukemods.com/modules.php?...ewtopic&t=2240

the problem about including .js files can be fixed easy.... the problem is about the JS code from that button (image) ..where you have many " and nuke replace them with /'.

My solution was to use a JS script which have everything defined (function and the calls) in a .js file and you include that in the <body>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-30-2003, 01:30 PM
Junior Member
 
Join Date: Apr 2003
Posts: 81
i can make it work for you but i need the theme.php to go with it, or if you want i can just make a theme.php with this header.
__________________
Think all nukes look the same?
=) Think again. www.mtechnik.net
Public / commercial themes
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 05-30-2003, 01:54 PM
Junior Member
 
Join Date: Apr 2003
Posts: 81
actually i dont need the theme.php, i've already tested and works fine. so here it goes, first you need to download this header.php http://65.109.75.163/Header.zip thats just the same header.html you have but in php. Then open up your theme.php and under function themeheader should look something like this


Code:
$tmpl_file = "themes/YOURTHEME/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(left);
$tmpl_file = "themes/YOURTHEME/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
replace it with


Code:
include("themes/YOURTHEME/header.php");
    blocks(left);
    $tmpl_file = "themes/YOURTHEME/left_center.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}
thats it.
__________________
Think all nukes look the same?
=) Think again. www.mtechnik.net
Public / commercial themes
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript Banners with Helius Daniel Theme packs 5 07-14-2006 08:41 PM
Javascript Popup kevbocat Site design 0 06-08-2003 02:16 PM
Javascript help.. bosanac Site design 0 04-30-2003 04:06 PM
Blocks and JavaScript denis Purged Topics 1 04-09-2003 02:16 PM
Adding Javascript Dman Purged Topics 4 03-14-2003 11:03 AM


All times are GMT -5. The time now is 08:37 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31