Making bold text in Advanced Weblinks 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   Making bold text in Advanced Weblinks Block
BombSquad
CZ Super Newbie
 Codezwiz Site Donator
BombSquad has been a member for over 20 year's 20 Year Member
usa.gif alabama.gif
Gender: Male
Status: Offline
Joined: Apr 02, 2004
0.00 posts per day
Posts: 35
Points: 3,162
   
I want to have some of the text come up in BOLD, but I dont know how to do it. Any help would be appreciated.

<?php

/************************************************************************/
/* Advanced Links Block                                             */
/* ===========================                                          */
/*                                                                      */
/* This is basically just an edit of the original block by Francisco.   */
/* Even though this is heavly edited, I think he deserves credit, so:   */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
/*                                                                      */
/* Copyright © 2002 by Michael Bacoz                                    */
/* http://www.fatal-instinct.com                                        */
/*                                                                      */
/************************************************************************/

/************************/
/*      Variables       */
/************************/

$downloadstoshow = 5;
$usemarquee = 1;
$scrolldirection = "Up";

$most = "Most Hits";
$latest = "Latest Links";
$totalfiles = "Total Links";
$totalcategories = "Total Categories";
$totaldownloads = "Total Hits";
$hitstext = "Hits";

/************************/
/*     End Variables    */
/************************/

// Make sure people don't try and access it directly
if (eregi("block-Advanced_Links.php",$PHP_SELF)) {
    Header("Location: index.html");
    die();
}

global $prefix, $dbi;

// Total Files
$result = sql_query("select * from ".$prefix."_links_links", $dbi);
$files = sql_num_rows($result, $dbi);

// Total Categories
$result = sql_query("select * from ".$prefix."_links_categories", $dbi);
$cats = sql_num_rows($result, $dbi);

// Total Downloads
$result = sql_query("select hits from ".$prefix."_links_links", $dbi);

$a = 1;
while(list($hits) = sql_fetch_row($result, $dbi)) {
     $total_hits = $total_hits + $hits;
      $a++;
}

$content .= "$totalfiles: $files<br>$totalcategories: $cats<br> $totaldownloads: $total_hits<br>";
 
if ($usemarquee == 1) {
   $content .= "<Marquee Behavior=\"Scroll\" Direction=\"$scrolldirection\" Height=\"140\" ScrollAmount=\"2\" ScrollDelay=\"100\" onMouseOver=\"this.stop()\" onMouseOut=\"this.start()\"><br>";
}

// Latest added
$content .= $latest."<br>";
$a = 1;
$result = sql_query("select lid, title, hits from ".$prefix."_links_links order by date DESC limit 0,$downloadstoshow", $dbi);

while(list($lid, $title, $hits) = sql_fetch_row($result, $dbi)) {
      $title2 = ereg_replace("_", " ", $title);
      
     $content .= "<strong><big>·;</big></strong>&nbsp;$a: <a href=\"viewlink-.html$lid\">$title2</a><br>[$hitstext: $hits]<br><br>";
      $a++;
}

// Most downloaded
$content .= "<br>".$most."<br>";
$a = 1;
$result = sql_query("select lid, title, hits from ".$prefix."_links_links order by hits DESC limit 0,$downloadstoshow", $dbi);

while(list($lid, $title, $hits) = sql_fetch_row($result, $dbi)) {
    $title2 = ereg_replace("_", " ", $title);
    $content .= "<strong><big>·;</big></strong>&nbsp;$a: <a href=\"viewlink-.html$lid\">$title2</a><br>[$hitstext: $hits]<br><br>";
    $a++;
}

?>


The text I want to make bold is just the following variables when shown in the block:

$most = "Most Hits";
$latest = "Latest Links";
$totalfiles = "Total Links";
$totalcategories = "Total Categories";
$totaldownloads = "Total Hits";
$hitstext = "Hits";


Back to top Reply with quote
#2   re: Making bold text in Advanced Weblinks Block
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.48 posts per day
Posts: 3765
Points: 351,412
   
This should work:

$most = "<b>Most Hits</b>";
$latest = "<b>Latest Links</b>";
$totalfiles = "<b>Total Links</b>";
$totalcategories = "<b>Total Categories</b>";
$totaldownloads = "<b>Total Hits</b>";
$hitstext = "<b>Hits</b>";



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