Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes
Author Message
southern
Client


Joined: Jan 29, 2004
Posts: 591
Location: Texas

PostPosted: Mon Mar 22, 2004 3:59 pm Reply with quote

Hello theme guru, I have a snippet of code showing at the bottom of stories pages
Code:


CloseTable(); echo "
"; } ?>

I have the subBlack theme on my site. Where might I find this bit of code and how do I fix it? Thanks mucho hombre.
 
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number
southern
PostPosted: Tue Mar 23, 2004 10:38 am Reply with quote

bumpbump, guru
 
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Tue Mar 23, 2004 7:40 pm Reply with quote

Does this stay there when you change themes?

_________________
Scott Johnson MIS Ubuntu/Linux 11.10 
View user's profile Send private message Visit poster's website
southern
PostPosted: Tue Mar 23, 2004 9:03 pm Reply with quote

Ah... I'll go look 'n see, nukeum guru...
It's just a squiggle of loose code at the bottom of a story page, you know click read more and at the end of the next page... back anon
 
southern
PostPosted: Tue Mar 23, 2004 9:13 pm Reply with quote

Yup, in both themes I use are those puzzling pernicious words
Code:
Posted on Monday, March 22 @ 16:04:17 EST by southern 

 
 
 


 CloseTable(); echo "
"; } ?> 
 
Nukeum66
PostPosted: Tue Mar 23, 2004 9:53 pm Reply with quote

Have you made any changes to your News module ? I think that is where this is coming from.
 
southern
PostPosted: Tue Mar 23, 2004 9:58 pm Reply with quote

Well, I mighta put on a security fix or two, wouldn't be nary other reason to mess with the News module. I'll go look... back anon
 
Nukeum66
PostPosted: Tue Mar 23, 2004 10:19 pm Reply with quote

Look in modules/News/comments.php see if the code at the bottom looks like so:
about lines 93-111
Code:
function nocomm() {

    OpenTable();
    echo "<center><font class=\"content\">"._NOCOMMENTSACT."</font></center>";
    CloseTable();
}

function navbar($sid, $title, $thold, $mode, $order) {
    global $user, $bgcolor1, $bgcolor2, $textcolor1, $textcolor2, $anonpost, $prefix, $db, $module_name;
    $sql = "SELECT * FROM ".$prefix."_comments WHERE sid='$sid'";
    $query = $db->sql_query($sql);
    if(!$query) {
   $count = 0;
    } else {
   $count = $db->sql_numrows($query);
    }
    if(!isset($thold)) {
   $thold=0;
    }
    echo "\n\n<!-- COMMENTS NAVIGATION BAR START -->\n\n";
 
southern
PostPosted: Tue Mar 23, 2004 10:46 pm Reply with quote

Same, same
Code:
function nocomm() {

    OpenTable();
    echo "<center><font class=\"content\">"._NOCOMMENTSACT."</font></center>";
    CloseTable();
}

function navbar($sid, $title, $thold, $mode, $order) {
    global $user, $bgcolor1, $bgcolor2, $textcolor1, $textcolor2, $anonpost, $prefix, $db, $module_name;
    $sql = "SELECT * FROM ".$prefix."_comments WHERE sid='$sid'";
    $query = $db->sql_query($sql);
    if(!$query) {
   $count = 0;
    } else {
   $count = $db->sql_numrows($query);
    }
    if(!isset($thold)) {
   $thold=0;
    }
    echo "\n\n<!-- COMMENTS NAVIGATION BAR START -->\n\n";

Where next, guru one?
 
Nukeum66
PostPosted: Tue Mar 23, 2004 11:07 pm Reply with quote

Try modules/News/associates.php

Code:
if ($arow[associated] != "") {

    OpenTable();
    echo "<center><b>"._ASSOTOPIC."</b><br><br>";
    $asso_t = explode("-",$arow[associated]);
    for ($i=0; $i<sizeof($asso_t); $i++) {
   if ($asso_t[$i] != "") {
       $sql2 = "SELECT topicimage, topictext from ".$prefix."_topics WHERE topicid='$asso_t[$i]'";
       $result2 = $db->sql_query($sql2);
       $atop = $db->sql_fetchrow($result2);
       echo "<a href=\"modules.php?name=$module_name&new_topic=$asso_t[$i]\"><img src=\"$tipath$atop[topicimage]\" border=\"0\" hspace=\"10\" alt=\"$atop[topictext]\" title=\"$atop[topictext]\"></a>";
   }
    }
    echo "</center>";
    CloseTable();
    echo "<br>";
}

?>
 
southern
PostPosted: Tue Mar 23, 2004 11:23 pm Reply with quote

I overwrote my code here
Code:
if ($arow[associated] != "") {

    OpenTable();
    echo "<center><b>"._ASSOTOPIC."</b><br><br>";
    $asso_t = explode("-",$arow[associated]);
    for ($i=0; $i<sizeof($asso_t); $i++) {
   if ($asso_t[$i] != "") {
       $sql2 = "SELECT topicimage, topictext from ".$prefix."_topics WHERE topicid='$asso_t[$i]'";
       $result2 = $db->sql_query($sql2);
       $atop = $db->sql_fetchrow($result2);
       echo "<a href=\"modules.php?name=$module_name&new_topic=$asso_t[$i]\"><img src=\"$tipath$atop[topicimage]\" border=\"0\" hspace=\"10\" alt=\"$atop[topictext]\" title=\"$atop[topictext]\"></a>";
   }
    }
    echo "</center>";
    CloseTable();
    echo "<br>";
}

?>   CloseTable();
    echo "<br>";
}

?>

with the code you put above and it's gone, the squiggle is gone.
Muchos gracias, guru. Smile
 
Nukeum66
PostPosted: Tue Mar 23, 2004 11:30 pm Reply with quote

PEPSI PLEASE! A WHOLE CASE ....... Laughing
 
southern
PostPosted: Tue Mar 23, 2004 11:48 pm Reply with quote

Ahh... in the souf' it's called Coke even iffn it Pepsi... Kool-Aid is juice, a shopping cart is a buggy, girls are gals, but Pepsi it is iffn that what you wants. Smile
 
Nukeum66
PostPosted: Tue Mar 23, 2004 11:58 pm Reply with quote

I know ! I've lived in Tennessee for 13 yrs. , but I'm from Ohio/Indiana . I know to ask now, "Would you like a Coke or Pespi-Coke or DoctorPepper-Coke" and so on....... LOL!! Rolling Eyes

"All of you" is "All Yall" Laughing
 
southern
PostPosted: Wed Mar 24, 2004 8:17 am Reply with quote

It's enough to start a civil war.... but thanks, Nukeum!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©