A few questions about yer CZ user info block...

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   A few questions about yer CZ user info block...
Xandur
CZ Newbie
Xandur has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Jan 12, 2004
0.00 posts per day
Posts: 8
Points: 442
   
First of all, great site! Very helpful and informative. I've surfed thru most of the forum and actually had quite a few questions answered already. But of course, there are always more. icon_smile.gif

On my dev website, [ Register or login to view links on this board. ] , I can't seem to get a few things to do what I'd like them to concerning the user info block...

1: Under the Welcome name at the top, there doesn't seem to be a logout button. What am I doing wrong?

2: There doesn't seem to be any black arrows beside each icon as there is on your site. Is there something special I have to do to go those?

3: How would I incorporate the "Total Hits" block INTO the CZ User info block as done on [ Register or login to view links on this board. ] ? It really looks smooth and clean having it all in the same block. I tried just pasting the code from one block into the other, but that didn't quite get the results I was looking for lol.

4: Do I have to do something special to get the security number feature to work. I'm using 6.9 but cant seem to get it to show.

Thanks alot in advance for any help or insight you have. And I'll apologize now if any of these questions had completely obvious answers. icon_smile.gif

:=VCA=: Xandur [ Register or login to view links on this board. ]
Virtual Combat Allaince



Back to top Reply with quote
#2   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
You can manually add the line for the logout believe I added that after i released the block. The images you can also change jsut edit the block. To add more then one block to it you will have to add the $content directly inside the last closing brace.And if your using 6.9 look inside the config.php for the security code setting make it is set to show it at the login.




_________________
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   
websolution
CZ Active Member
websolution has been a member for over 20 year's 20 Year Member
netherlands.gif
Occupation: security
Age: 47
Gender: Male
Website:
Status: Offline
Joined: Dec 28, 2003
0.01 posts per day
Posts: 111
Points: 2,993
   
hi telli,

if i may cut in in this topic icon_wink.gif ,
after which line did you added the link for the logout?




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#4   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Find:

$content .= "<br><img src=\"images/CZUser/group-4.gif\" height=\"14\" width=\"17\">"._CZ_WELCOME."<b>".$username."</b><br>\n<hr>\n";
   $content .= "\n";


change it to:

$content .= "<br><img src=\"images/CZUser/group-4.gif\" height=\"14\" width=\"17\">"._CZ_WELCOME."<b>".$username."</b><br>\n";
   $content .= "<img src=\"images/arrow.gif\" height=\"9\" width=\"9\"> <a href=\"modules.php?name=Your_Account&op=logout\">Logout</a><br><hr>\n";


The image arrow.gif is standard with the nuke install if for some reason you dont have it just repost and I will get it for you.



_________________
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
#5   
websolution
CZ Active Member
websolution has been a member for over 20 year's 20 Year Member
netherlands.gif
Occupation: security
Age: 47
Gender: Male
Website:
Status: Offline
Joined: Dec 28, 2003
0.01 posts per day
Posts: 111
Points: 2,993
   
Thnx Telli its working icon_mrgreen.gif

My website is online again icon_razz.gif , ive installed 6.9 and everything is working including the private messaging icon_wink.gif




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#6   
Xandur
CZ Newbie
Xandur has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Jan 12, 2004
0.00 posts per day
Posts: 8
Points: 442
   
Thx, got the logout to work but the addition of the total hits is giving me problems. I keep getting parse errors no matter where I copy the code into. I basically just copied the entire block-CZTotal_Hit.php text (minus the first <?php and last ?>) into the block-CZUser-Info.php file just before the last ?>. But it didn't work. Could you possibly give a more specific, pro noob idea on how to merge the code? Thanks alot man!



Back to top Reply with quote
#7   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Attach the 2 blocks in a zip file to the board.




_________________
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
   
I dont mean to butt in here but i was able to merge those 2 blocks--

this is what i pasted for it to work--
// Total Hits
/* Hits for Today */
$t_time = time();
$t_year = date("Y", $t_time);
$t_month = date("n", $t_time);
$t_date = date("j", $t_time);
list($today) = $db->sql_fetchrow($db->sql_query("SELECT hits FROM $prefix"._stats_date." WHERE year='$t_year' AND month='$t_month' AND date='$t_date'"));
$today = number_format($today, 0);
/* Hits for Yesterday */
$y_time = $t_time - 86400;
$y_year = date("Y", $y_time);
$y_month = date("n", $y_time);
$y_date = date("j", $y_time);
list($yesterday) = $db->sql_fetchrow($db->sql_query("SELECT hits FROM $prefix"._stats_date." WHERE year='$y_year' AND month='$y_month' AND date='$y_date'"));
$yesterday = number_format($yesterday, 0);
/* Hits in Total */
$totalhits = 0;
$result = $db->sql_query("SELECT hits FROM $prefix"._stats_year."");
while(list($hits) = $db->sql_fetchrow($result)) {
    $totalhits = $totalhits + $hits;
}
$totalhit = number_format($totalhits, 0);
$content .= "<center><b><u><br><br>"._CZHITS."</u></b></center>";
$content .= "<big><b>·;</b></big> "._CZTD.": <b><a href=\"modules.php?name=Statistics&op=DailyStats&year=$t_year&month=$t_month&date=$t_date\">$today</a></b><br>";
$content .= "<big><b>·;</b></big> "._CZYD.": <b><a href=\"modules.php?name=Statistics&op=DailyStats&year=$y_year&month=$y_month&date=$y_date\">$yesterday</a>
</b><br></center>";
$content .= "<big><b>·;</b></big> "._CZTT.": <b><a href=\"modules.php?name=Statistics\">$totalhit</a></b><br>\n";


I pasted this just before the last ?>
notice nothing is selected above " //total hits"
and notice I put 2 br's before the "._CZHITS" --this is to seperate who's online and the start of the stats-

hope i didnt step on any toes here by posting this-- just trying to contribute to an awsum resource here!! icon_biggrin.gif

Turbo--



_________________
Back to top Reply with quote
#9   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Its great Thank you for the Help.




_________________
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   
Xandur
CZ Newbie
Xandur has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Jan 12, 2004
0.00 posts per day
Posts: 8
Points: 442
   
Thx alot guys! Appreciate it! Thats what I was doing wrong, there was some stuff above the //Total Hits that I was pasting. Thx again!



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