Cz user info and modules questions

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Cz user info and modules questions
sabastina
CZ Active Member
Occupation: College Student
Website:
Status: Offline
Joined: Nov 03, 2003
0.03 posts per day
Posts: 212
Points: 120,520
AIM Address Yahoo Messenger MSN Messenger ICQ Number
Hi telli,

I was wondering first of all about the users info block...

1. How did you add the who is where link to the one in here?
2. Can this be done with any -errr... html? (it is html right, and I would go to the html board here form more on that part?)


about the modules block (whicih is great on both my sites!)

I was thinking that it would be great if the language box could be in the modules block. Is this possible for someone to do? It's so bulky and ugly yet kind of necessary and i know when I go to a forums site, (before I knew nuke had that option) I just left when I didn't see the option to change the language becasue I didn't know it existed. Just an idea.

Sabastina



Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
The User info box is just simple html here is what you need to change for it and that is if you have the Who is where module.

Find:

$content .= "<hr>\n<img src=\"images/CZUser/group-2.gif\" height=\"14\" width=\"17\"><b><u>"._CZ_ONLINE."</b></u>$who_online $who_online_now";
}
else
{
if (is_admin($admin)) { $content .= "<hr>\n<img src=\"images/CZUser/group-2.gif\" height=\"14\" width=\"17\"><b><u>"._CZ_ONLINE."</b></u>$who_online $who_online_now\n";


Change to:

$content .= "<hr>\n<img src=\"images/CZUser/group-2.gif\" height=\"14\" width=\"17\"><b><u>"._CZ_ONLINE."</b></u>$who_online $who_online_now<br><br><center><a href='modules.php?name=Who-is-Where'>Who-Is-Where?</a></center>";
}
else
{
if (is_admin($admin)) { $content .= "<hr>\n<img src=\"images/CZUser/group-2.gif\" height=\"14\" width=\"17\"><b><u>"._CZ_ONLINE."</b></u>$who_online $who_online_now<br><br><center><a href='modules.php?name=Who-is-Where'>Who-Is-Where?</a></center>\n";


And i dont have a language block but if you add it at the bottom of the block it should work fine. If you need help doing it post the contents of the block here.



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   
sabastina
CZ Active Member
Occupation: College Student
Website:
Status: Offline
Joined: Nov 03, 2003
0.03 posts per day
Posts: 212
Points: 120,520
AIM Address Yahoo Messenger MSN Messenger ICQ Number
ok, I'm going to give this a try...

So I add that code to the block right?

also, you say if I add it.... do you mean that I take the contents of a language block and copy it to the bottom of the modules block?

Thanks telli!

I'm nervous as all get out!!!

Sabastina



Back to top Reply with quote
#4   
sabastina
CZ Active Member
Occupation: College Student
Website:
Status: Offline
Joined: Nov 03, 2003
0.03 posts per day
Posts: 212
Points: 120,520
AIM Address Yahoo Messenger MSN Messenger ICQ Number
will this work?
Description: Now there is the block and the module !! For people who don't know what is who is where, it's a block (and/or module) who display peoples online with the situation in your website. For exemple you can see that Mitirapa is reading the article 478 since 1min4sec...
Ip of visitors are only show for admin, time of last click of a member is show by roll over is name, by clicking the name of the module, you will go to the specific page that the user read, one query less than the last version, and 5 languages ( french, english, spanish, italian, portuguese)

Sabastina



Back to top Reply with quote
#5   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Yes thats it but you will link to the module. And the search box if you like post the contents here and I will show you where to insert it.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#6   
Turbo
CZ Super Newbie
Turbo has been a member for over 20 year's 20 Year Member
usa.gif maine.gif
Website:
Status: Offline
Joined: Jan 06, 2004
0.01 posts per day
Posts: 63
Points: 6,985
   
I'm tring to get the cz_user info to work-- my question is about executing the mostonline.sql

I do not have phpmyadmin installed, I am trying to do this with mysql database manager provided from my host--
it has a place to execute sql statements...i'm pasteing this code (i opened up the file with word and copied it from there...)
DROP TABLE IF EXISTS nuke_mostonline;
CREATE TABLE nuke_mostonline (
  total int(10) NOT NULL default '0',
  members int(10) NOT NULL default '0',
  nonmembers int(10) NOT NULL default '0',
  PRIMARY KEY  (total)
) TYPE=MyISAM;


then hitting a execute button...then I get the following errors--

You have an error in your SQL syntax near '; CREATE TABLE nuke_mostonline ( total int(10) NOT NULL default '0', memb' at line 1
which is pretty much greek to me...lol

I do have phpmyadmin 2.5.4,but got confused trying to configure it so I gave up- i never uploaded to my site

can someone plz steer me in the right direction.... much appreciated
TY



_________________
Back to top Reply with quote
#7   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Save this as install.php and upload it to your nuke root with your congif.php and execute by going to [ Register or login to view links on this board. ] then delete it.

<?php
/************************************************************************/
/* Mostonline Database install file
/* Installation of the mostonline database tables
/* Written by Telli - [ Register or login to view links on this board. ]
/* Delete after use
/************************************************************************/
include("config.php");
require_once("mainfile.php");
mysql_connect($dbhost, $dbuname, $dbpass);
@mysql_select_db($dbname);
mysql_query("DROP TABLE IF EXISTS ".$prefix."_mostonline");
mysql_query("CREATE TABLE ".$prefix."_mostonline (
total int(10) NOT NULL default '0',
members int(10) NOT NULL default '0',
nonmembers int(10) NOT NULL default '0',
PRIMARY KEY  (`total`)
) TYPE=MyISAM");
include("header.php");
OpenTable();
echo "<center><br><b>Mostonline database complete, please <font color=#ff0000>delete</font> this file off your server, enjoy!</b></center>";
CloseTable();
    include("footer.php");
?>




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#8   
Turbo
CZ Super Newbie
Turbo has been a member for over 20 year's 20 Year Member
usa.gif maine.gif
Website:
Status: Offline
Joined: Jan 06, 2004
0.01 posts per day
Posts: 63
Points: 6,985
   
this comes up when i run it--

Warning: Unexpected character in input: ' ' (ASCII=11) state=1 in /home/u4/turbo/html/install.php on line 2

Warning: Unexpected character in input: ' ' (ASCII=11) state=1 in /home/u4/turbo/html/install.php on line 2

Warning: Unexpected character in input: ' ' (ASCII=11) state=1 in /home/u4/turbo/html/install.php on line 2

Warning: Unexpected character in input: ' ' (ASCII=11) state=1 in /home/u4/turbo/html/install.php on line 2

Warning: Unexpected character in input: ' ' (ASCII=11) state=1 in /home/u4/turbo/html/install.php on line 2

Warning: Unexpected character in input: ' ' (ASCII=11) state=1 in /home/u4/turbo/html/install.php on line 2

Warning: Unexpected character in input: ' ' (ASCII=11) state=1 in /home/u4/turbo/html/install.php on line 2

Warning: Unexpected character in input: ' ' (ASCII=11) state=1 in /home/u4/turbo/html/install.php on line 2

Warning: Unexpected character in input: ' ' (ASCII=11) state=1 in /home/u4/turbo/html/install.php on line 2

Warning: Unexpected character in input: ' ' (ASCII=11) state=1 in /home/u4/turbo/html/install.php on line 2

Warning: Unexpected character in input: ' ' (ASCII=11) state=1 in /home/u4/turbo/html/install.php on line 2

Warning: Unexpected character in input: ' ' (ASCII=11) state=1 in /home/u4/turbo/html/install.php on line 2

Warning: Unexpected character in input: ' ' (ASCII=11) state=1 in /home/u4/turbo/html/install.php on line 2

Parse error: parse error in /home/u4/turbo/html/install.php on line 2

kinda scary looking ---lol




_________________
Back to top Reply with quote
#9   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Yes the database structure is differant and I havnt clue what yours is all about. Maybe you can go to the site and learn the differances? You must have other problems when installing things that require database table installation.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#10   
Turbo
CZ Super Newbie
Turbo has been a member for over 20 year's 20 Year Member
usa.gif maine.gif
Website:
Status: Offline
Joined: Jan 06, 2004
0.01 posts per day
Posts: 63
Points: 6,985
   
hmmmm.. i installed nuke 6.9 with a similiar install.php with no trouble at all- also have a stand alone phpbb running with no installation troubles--
no biggy, thanks for trying Telli--

i'm gonna tackle phpmyadmin-- seems like most are using that anyways...

wish me luck!!

Turbo




_________________
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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
You cannot attach files in this forum
You cannot download files in this forum