Modified Weblink Block *Help*...Trying to add the link catag

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Modified Weblink Block *Help*...Trying to add the link catag
Jakobi
CZ Newbie
Jakobi has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Aug 22, 2005
0.00 posts per day
Posts: 2
Points: 190
   
Im changing my weblink block and this is the current code:

if (stristr($_SERVER['SCRIPT_NAME'], "block-Web_Links.php")) {
    Header("Location: ../index.php");
    die();
}

// ######################################################################
// CONFIG - START
// ######################################################################
$latest = "LATEST";
$top = "TOP";
$links = "DAILY LINKS";
$moreLink = "More Daily Links";
$subLY = 1;      // <= Submit Link On?  1=Yes :: 0=No
$submitLink = "Submit Daily Link";
$limit = 10;
// ######################################################################
// CONFIG - END - You shouldn't need to edit anything below this line
// ######################################################################

global $bgcolor1, $bgcolor2, $bgcolor3, $db, $prefix, $admin;

$content = "<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=2 WIDTH=100%><TR><TD WIDTH=50% ALIGN=CENTER VALIGN=TOP BGCOLOR=\"$bgcolor2\"><TABLE BORDER=0 CELLPADDING=2 CELLSPACING=1 WIDTH=100%>";
$content .= "<TR><TD COLSPAN=2 WIDTH=100% BGCOLOR=\"$bgcolor1\" ALIGN=LeftCLASS=\"title\">$latest $links</TD></TR><TR><TD BGCOLOR=\"$bgcolor1\" VALIGN=TOP ALIGN=CENTER WIDTH=100%>";
$content .= "<TABLE BORDER=0 WIDTH=\"100%\">";

$color = $bgcolor3;
$sql = "SELECT lid, title, hits FROM ".$prefix."_links_links ORDER BY date DESC LIMIT 0, $limit";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
      $title2 = ereg_replace("_", " ", $row[title]);
    if ($color == $bgcolor3) { $color = $bgcolor1; } else { $color = $bgcolor3; }
      $content .= "<TR><TD BGCOLOR=\"$color\" ALIGN=LEFT><a href=\"links.html&amp;l_op=viewlinkdetails&amp;lid=$row[lid]&amp;ttitle=$row[title]\">$title2</a></TD>";
      $content .= "<TD BGCOLOR=\"$color\" ALIGN=CENTER WIDTH=\"20\">$row[hits]</TD></TR>";
}


$content .= "</TABLE></TD></TR></TABLE></TD></TR></TABLE>";

$content .= "<CENTER>|[ <A HREF=\"links.html\">$moreLink</A> ]";
if ($subLY == 1) { $content .= "|[ <A HREF=\"links.html&amp;l_op=AddLink\">$submitLink</A> ]"; }
$content .= "|</CENTER>";

?>



What it looks like is here about 2 blocks down: [ Register or login to view links on this board.]

I would like for the catagory to be displayed before the link.
Is it possible to put images in for the catagory displayed as well?

Above the right column above the number of hits, To put the word "Views". I cant seem to get it to align correctly.

Thanks if anyone can help.


Back to top Reply with quote
#2   re: Modified Weblink Block *Help*...Trying to add the link c
Jakobi
CZ Newbie
Jakobi has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Aug 22, 2005
0.00 posts per day
Posts: 2
Points: 190
   
bump



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