Jump to content


spartan63

Member Since 10 Dec 2010
Offline Last Active Jan 23 2012 05:35 PM
-----

Topics I've Started

Menu and headers

10 November 2011 - 10:16 PM

Is there a way to break up the automenu output to allow for separation of topics by headers?

Ie
XYZ
link
link
link

ABC
1
2
3

etc?
I am wondering as I don't necessarily want to create a template with hard code menus (but I will if I have to.)

Upcoming development plan / feature list

10 November 2011 - 08:40 PM

Is there anywhere that lists an overall development plan / need to fix list / future version goals etc for Soholaunch?

Blog posts are posting twice or more

04 August 2011 - 03:46 PM

I am using Lwyau's excellent list by blog title code
<?php
error_reporting(E_PARSE);
session_start();
if($_GET['_SESSION'] != '' || $_POST['_SESSION'] != '' || $_REQUEST['_SESSION'] != '' || $_COOKIE['_SESSION'] != '') { exit; }

echo "<div class=\"sohotext\" align=\"left\">\n";
if ($id) {
$qry = "SELECT * FROM BLOG_CONTENT WHERE PRIKEY = '".$id."'";
$result = mysql_query($qry);
$row = mysql_fetch_array($result);
echo "<h1>".stripslashes($row[BLOG_TITLE])."</h1>\n";
echo stripslashes($row[BLOG_DATA])."\n";
echo "<br/><div align=\"center\"><a href=\"".$pr.".php\">Back to General Resources</a></div>\n";
} else {
$qry = "SELECT * FROM BLOG_CONTENT WHERE BLOG_SUBJECT = '11' ORDER BY BLOG_TITLE";
$result = mysql_query($qry);
$num_notes = mysql_num_rows($result);
$col_max = $num_notes/3;
$x=1;
echo "<h1>VSSA Articles</h1>\n";
echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" class=\"sohotext\" align=\"left\">\n";
echo "<tr><td valign=\"top\">\n";
while ($row = mysql_fetch_array($result)) {
echo "<a href=\"".$pr.".php?id=".$row[PRIKEY]."\">".stripslashes($row[BLOG_TITLE])."</a><br/>\n";
if ($x < $col_max) { $x++; }
else { $x=1; echo "</td><td valign=\"top\">\n"; }
}
echo "</td></tr>\n";
echo "</table> <br/>\n";
}
echo "</div><br/>\n";
?>

on ceudamanitoba.ca/general.php

It is listing each blog title correctly, but when I click on the individual article, it writes the article twice or more.

I have tried refreshing browser, reinstalled build 4.9.3 r49.

Anyone have any ideas?