Quick Question about 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   Quick Question about CZ User Info Block
Cyberian
CZ Super Newbie
usa.gif newyork.gif
Gender: Male
Status: Offline
Joined: Nov 11, 2003
0.00 posts per day
Posts: 35
Points: 15,546
   
I would like to use the Staff/Admin online function, unfortunately, I get a error, due to the irregular names.

I need to add three names. The first part of the name is normal, but they have tags on the end, ie, Malcolm-X-

What seems to be causing the error is the -X- part, but am unsure how to add it into the coding so it works.

Thanks Codezwiz, you guys/ladies have been great and I appreciate all the help you have given me so far.



Back to top Reply with quote
#2   re: Quick Question about CZ User Info Block
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
   
Change the

(($session[uname] == XXXXX) or ($session[uname] == xxxxx))  {


To this and replace the # with thier user_id #

if ($user_id == #)  {


I also updated the download to make it a little easier to set up till I can finish the admin panel for 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
#3   re: Quick Question about CZ User Info Block
Cyberian
CZ Super Newbie
usa.gif newyork.gif
Gender: Male
Status: Offline
Joined: Nov 11, 2003
0.00 posts per day
Posts: 35
Points: 15,546
   
Thanks Telli I appreciate it. And I'd rather update it manually, it makes me have to learn some things, although asking questions doesn't really make me learn. Hehe.

On a side note: Telli, I created a block, not to say that it is the neatest, but it is a start. Anyway, I wanted to know how to keep thing tabled, without them distorting when going to the forums or something. I will paste the code here, and possibly you guys can tell me my mistake.

if (eregi("block-AAO_Tracker.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$content  =  "<table width=\"100%\" border=\"0\">";
$content  .= "    <tr><th colspan=\"2\" scope=\"row\"><div align=\"center\"><strong>Full Members:</strong></div></th></tr>";

$content  .= "    <tr><th scope=\"row\"><div align=\"center\"><a target=\"_blank\" href=\"http://aaotracker.4players.de/usertracker.php?userid=4246\">Mutant-X-</a></div></th>";
$content  .= "    <td><img border=\"0\" src=\"http://aaotracker.4players.de/trackericon.php?userid=4246&style=2\"></td></tr>";

$content  .= "    <tr><th scope=\"row\"><div align=\"center\"><a target=\"_blank\" href=\"http://aaotracker.4players.de/usertracker.php?userid=5038\">Grimwolf-X-</a></div></th>";
$content  .= "    <td><img border=\"0\" src=\"http://aaotracker.4players.de/trackericon.php?userid=5038&style=2\"></td></tr>";

$content  .= "    <tr><th scope=\"row\"><div align=\"center\"><a target=\"_blank\" href=\"http://aaotracker.4players.de/usertracker.php?userid=6963\">ArieS-X-</a></div></th>";
$content  .= "    <td><img border=\"0\" src=\"http://aaotracker.4players.de/trackericon.php?userid=6963&style=2\"></td></tr>";

$content  .= "    <tr><th scope=\"row\"><div align=\"center\"><a target=\"_blank\" href=\"http://aaotracker.4players.de/usertracker.php?userid=24099\">Code-X-</a></div></th>";
$content  .= "    <td><img border=\"0\" src=\"http://aaotracker.4players.de/trackericon.php?userid=24099&style=2\"></td></tr>";

$content  .= "    <tr><th scope=\"row\"><div align=\"center\"><a target=\"_blank\" href=\"http://aaotracker.4players.de/usertracker.php?userid=129731\">Clima-X-</a></div></th>";
$content  .= "    <td><img border=\"0\" src=\"http://aaotracker.4players.de/trackericon.php?userid=129731&style=2\"></td></tr>";

$content  .= "    <tr><th scope=\"row\"><div align=\"center\"><a target=\"_blank\" href=\"http://aaotracker.4players.de/usertracker.php?userid=109128\">Generation-X-</a></div></th>";
$content  .= "    <td><img border=\"0\" src=\"http://aaotracker.4players.de/trackericon.php?userid=109128&style=2\"></td></tr>";

$content  .= "    <tr><th scope=\"row\"><div align=\"center\"><a target=\"_blank\" href=\"http://aaotracker.4players.de/usertracker.php?userid=5339\">Malcolm-X-</a></div></th>";
$content  .= "    <td><img border=\"0\" src=\"http://aaotracker.4players.de/trackericon.php?userid=5339&style=2\"></td></tr>";

$content  .= "    <tr><th scope=\"row\"><div align=\"center\"><a target=\"_blank\" href=\"http://aaotracker.4players.de/usertracker.php?userid=129567\">Semte-X-</a></div></th>";
$content  .= "    <td><img border=\"0\" src=\"http://aaotracker.4players.de/trackericon.php?userid=129567&style=2\"></td></tr>";

$content  .= "    <tr><th colspan=\"2\" scope=\"row\"><hr align=\"center\" width=\"50%\" size=\"5\" color=\"#C0C0C0\"></th></tr>";

$content  .= "    <tr><th colspan=\"2\" scope=\"row\"><strong>Recruits:</strong></th></tr>";

$content  .= "    <tr><th scope=\"row\"><div align=\"center\"><a target=\"_blank\" href=\"http://aaotracker.4players.de/usertracker.php?userid=37214\">Ooryl</a></div></th>";
$content  .= "    <td><img border=\"0\" src=\"http://aaotracker.4players.de/trackericon.php?userid=37214&style=2\"></td></tr>";

$content  .= "    <tr><th scope=\"row\"><div align=\"center\"><a target=\"_blank\" href=\"http://aaotracker.4players.de/usertracker.php?userid=98827\">Scoob</a></div></th>";
$content  .= "    <td><img border=\"0\" src=\"http://aaotracker.4players.de/trackericon.php?userid=98827&style=2\"></td></tr>";

$content  .= "    <tr><th scope=\"row\"><div align=\"center\"><a target=\"_blank\" href=\"http://aaotracker.4players.de/usertracker.php?userid=37344\">Kilow</a></div></th>";
$content  .= "    <td><img border=\"0\" src=\"http://aaotracker.4players.de/trackericon.php?userid=37344&style=2\"></td></tr>";

$content  .= "    <tr><th scope=\"row\"><div align=\"center\"><a target=\"_blank\" href=\"http://aaotracker.4players.de/usertracker.php?userid=139982\">TeXasTrash</a></div></th>";
$content  .= "    <td><img border=\"0\" src=\"http://aaotracker.4players.de/trackericon.php?userid=139982&style=2\"></td></tr>";

$content  .= "    <tr><th colspan=\"2\" scope=\"row\"><hr align=\"center\" width=\"50%\" size=\"5\" color=\"#C0C0C0\"></th></tr>";

$content  .= "    <tr><th colspan=\"2\" scope=\"row\"><strong>Legend:</strong></th></tr>";

$content  .= "    <tr><th scope=\"row\"><div align=\"center\">User is Playing</div></th>";
$content  .= "    <td><img src=\"http://aaotracker.4players.de/Images/trackericons/online2.gif\" alt=\"Online\" name=\"User is Playing\"></td></tr>";

$content  .= "    <tr><th scope=\"row\"><div align=\"center\">User is Offline</div></th>";
$content  .= "    <td><img src=\"http://aaotracker.4players.de/Images/trackericons/offline2.gif\" alt=\"Offline\" name=\"User is Offline\"></td></tr>";

$content  .= "    <tr><th scope=\"row\"><div align=\"center\">User is Away</div></th>";
$content  .= "    <td><img src=\"http://aaotracker.4players.de/Images/trackericons/away2.gif\" alt=\"Away\" name=\"User is Away\"></td></tr>";
$content  .= "</table>";
?>


I know it's rather rudimentary, but I am trying to learn it. Anyway, my question is how to I table the content, without a distortion when members click on the forums, as this is a left side block on my site. I need the images to remain in one place, always, and the member's names to adjust so that it looks clean.

To see what I mean, drop by: [ Register or login to view links on this board.] . Then check the forums. The block looks normal on the page and viewing other pages, but once you go to the forum, it distorts it.


Back to top Reply with quote
#4   re: Quick Question about CZ User Info Block
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
   
Your picking up the forums.css for the th and td try giving them classes


<th colspan=\"2\" scope=\"row\" class=\"NO_CLASS\">

Something like that but the css doesnt need to be there your just making it think it is.




_________________
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   re: Quick Question about CZ User Info Block
Cyberian
CZ Super Newbie
usa.gif newyork.gif
Gender: Male
Status: Offline
Joined: Nov 11, 2003
0.00 posts per day
Posts: 35
Points: 15,546
   
Thanks Telli,

It didn't work. I'll do a search and see if I can come up with how to rid myself of it. I cleaned up the code some as well, but the NO_CLASS didn't work. Is possible to just leave it in .html format and have the block just call to the .html?



Back to top Reply with quote
#6   re: Quick Question about CZ User Info Block
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
   
<?php
#### Created by Telli (www.codezwiz.com) ###
if (eregi("block-Iframe.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
// Edit the block here
$width = 150;
$height = 300;
$frameborder = 0;
$scrolling = yes;
$iframe_url = http://your_iframed_page.com/;
// End edit
//Block contents begins
$content  .=  "<iframe width='$width' height='$height' frameborder='$frameborder' scrolling='$scrolling' src='$iframe_url'></iframe>";
//End Block
?>


Save that as block-Iframe.php and change the variables to what suit 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
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