Little help fixing a block please

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Little help fixing a block please
Wreckless
CZ Super Newbie
Wreckless has been a member for over 20 year's 20 Year Member
Age: 51
Status: Offline
Joined: Mar 14, 2004
0.01 posts per day
Posts: 54
Points: 4,738
   
Basicly I've taken several teamspeak blocks and made one
Here's the code for the whole block

// Get Nuke UserName
global $user, $cookie, $user_prefix;
   cookiedecode($user);
   $username = $cookie[1];
   $sql = "SELECT user_id FROM $user_prefix"._users." WHERE username='$username'";
$content .= ("<center>"."$serverAddress".":"."$serverUDPPort"."</center>");
$content .= ("<center>__________________</p></center>");
// display channel list
$content .= "<table aalign=\"center\" width=\"100%\">\n";
$counter = 0;
foreach($tss2info->channelList as $channelInfo) {
  $channelname = $channelInfo[channelname];

  // determine codec (verbose)
  $codec = $tss2info->getVerboseCodec($channelInfo[codec]);

  // default?
  if($channelInfo[isdefault] == "1")  $isDefault = "yes"; else $isDefault = "no";

  if ($channelInfo[channelid] != "id") {
    $content .= ("<tr><td><img src=\"teamspeak/bullet_channel.gif\" align=absmiddle alt=MAX&nbsp;".$channelInfo[maxplayers]."&nbsp;Players><I><a href=\"teamspeak://".$serverAddress.":".$serverUDPPort."/nickname=".$username."?loginname=?password=".$serverPASSword."?channel=".$channelname."?channelpassword=\">".$channelname."</a></I></td></tr>\n");
    $counter_player = 0;
    foreach($tss2info->playerList as $playerInfo) {
     if ($playerInfo[channelid] == $channelInfo[channelid]) {
        $content .=("<tr><td>&nbsp;&nbsp;<img src=\"teamspeak/bullet_ts.gif\" alt=$playerInfo[playername] align=absmiddle>&nbsp;".$playerInfo[playername]."</td></tr>\n");
      $counter_player++;
     }
   }
   if($counter_player == 0) $content .= ("<tr><td></td></tr>\n");
  }
  $counter++;
}// end foreach

if ($counter == 0) $content .= ("<tr><td colspan=\"7\" align=\"CENTER\">Offline</td></tr>\n");
$content .= ("<center></table>\n</div>\n<center>");
$content .= ("<center><a href=http://goteamspeak.com><img src=\"teamspeak/ngz.gif\" alt=\"Download Teamspeak\"></a><br></center>");
$content .= ("<p align=\"center\">Please <a href=\"modules.php?name=Your_Account&amp;op=new_user\">register</a> and<br>");
$content .= ("or <a href=\"modules.php?name=Your_Account\">log-in</a> so you can<br>");
$content .= ("enter our TeamSpeak<br>");
$content .= ("with your own name.<br>");
$content .= ("<br>Thank You"." $username"."</p>");
?>


My question is how would I put a seperator that coresponds with the theme that isn't made with dashes. I see many blocks with it and cannot see the code in the blocks.
The part I'm looking to replace is
$content .= ("<center>__________________</p></center>");

Thanks for the help in advance.



_________________
[ [ Register or login to view links on this board.] | [ Register or login to view links on this board.] ]
Back to top Reply with quote
#2   re: Little help fixing a block please
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
Try:

$content .= ("<center><hr></center>");




_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#3   re: Little help fixing a block please
Wreckless
CZ Super Newbie
Wreckless has been a member for over 20 year's 20 Year Member
Age: 51
Status: Offline
Joined: Mar 14, 2004
0.01 posts per day
Posts: 54
Points: 4,738
   
Exactly what I was looking for thanks so much




_________________
[ [ Register or login to view links on this board.] | [ Register or login to view links on this board.] ]
Back to top Reply with quote
#4   re: Little help fixing a block please
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.49 posts per day
Posts: 3765
Points: 351,412
   
I do believe that sig is one of the best ones Red and I ever made! I still stare at it everytime I see it! LOL



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