Author
Message
southern Client Joined: Jan 29, 2004 Posts: 579 Location: Texas
Posted:
Mon Mar 22, 2004 3:59 pm
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.
southern Client Joined: Jan 29, 2004 Posts: 579 Location: Texas
Posted:
Tue Mar 23, 2004 10:38 am
Nukeum66 Life Cycles Becoming CPU Cycles Joined: Jul 30, 2003 Posts: 551 Location: Neurotic, State, USA
Posted:
Tue Mar 23, 2004 7:40 pm
Does this stay there when you change themes?
southern Client Joined: Jan 29, 2004 Posts: 579 Location: Texas
Posted:
Tue Mar 23, 2004 9:03 pm
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 Client Joined: Jan 29, 2004 Posts: 579 Location: Texas
Posted:
Tue Mar 23, 2004 9:13 pm
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 Life Cycles Becoming CPU Cycles Joined: Jul 30, 2003 Posts: 551 Location: Neurotic, State, USA
Posted:
Tue Mar 23, 2004 9:53 pm
Have you made any changes to your News module ? I think that is where this is coming from.
southern Client Joined: Jan 29, 2004 Posts: 579 Location: Texas
Posted:
Tue Mar 23, 2004 9:58 pm
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 Life Cycles Becoming CPU Cycles Joined: Jul 30, 2003 Posts: 551 Location: Neurotic, State, USA
Posted:
Tue Mar 23, 2004 10:19 pm
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 Client Joined: Jan 29, 2004 Posts: 579 Location: Texas
Posted:
Tue Mar 23, 2004 10:46 pm
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 Life Cycles Becoming CPU Cycles Joined: Jul 30, 2003 Posts: 551 Location: Neurotic, State, USA
Posted:
Tue Mar 23, 2004 11:07 pm
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 Client Joined: Jan 29, 2004 Posts: 579 Location: Texas
Posted:
Tue Mar 23, 2004 11:23 pm
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.
Nukeum66 Life Cycles Becoming CPU Cycles Joined: Jul 30, 2003 Posts: 551 Location: Neurotic, State, USA
Posted:
Tue Mar 23, 2004 11:30 pm
PEPSI PLEASE! A WHOLE CASE .......
southern Client Joined: Jan 29, 2004 Posts: 579 Location: Texas
Posted:
Tue Mar 23, 2004 11:48 pm
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.
Nukeum66 Life Cycles Becoming CPU Cycles Joined: Jul 30, 2003 Posts: 551 Location: Neurotic, State, USA
Posted:
Tue Mar 23, 2004 11:58 pm
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!!
"All of you" is "All Yall"
southern Client Joined: Jan 29, 2004 Posts: 579 Location: Texas
Posted:
Wed Mar 24, 2004 8:17 am
It's enough to start a civil war.... but thanks, Nukeum!
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