Added blocks in theme footer! Latest tutorials

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Added blocks in theme footer! Latest tutorials
Neoszion
CZ Super Newbie
 Codezwiz Site Donator
Neoszion has been a member for over 19 year's 19 Year Member
uk.gif
Occupation: Web Designer
Age: 45
Gender: Male
Fav. Sports Team: Liverpool
Website:
Status: Offline
Joined: Sep 02, 2004
0.01 posts per day
Posts: 92
Points: 10,111
   
hi all,

I see the post on this page regarding adding blocks in theme footer:
[ Register or login to view links on this board. ]

I know this was regarding Downloads & weblinks. I would like to add latest (10) tutorials scrolling up from the bottom in the footer. I know this is possible but for life of me couldnt work out my self. The tutorial is done by Code-Area51, i will post this question there as well. I am currently using Nuke 7.8 if that helps as well.

have a nice day all!




_________________
Back to top Reply with quote
#2   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Can you attach a copy of the tutorials database structure?




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: Added blocks in theme footer! Latest tutorials
Neoszion
CZ Super Newbie
 Codezwiz Site Donator
Neoszion has been a member for over 19 year's 19 Year Member
uk.gif
Occupation: Web Designer
Age: 45
Gender: Male
Fav. Sports Team: Liverpool
Website:
Status: Offline
Joined: Sep 02, 2004
0.01 posts per day
Posts: 92
Points: 10,111
   
Would this be it its the install.php that comes with the package! It contains the Database stucture I think!

//Installer version 1.0.1 included with module version 1.1.2
if (!stristr($_SERVER['SCRIPT_NAME'], "modules.php")) {
    die ("You can't access this file directly...");
}
include_once('mainfile.php');
$index=1;
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
if (!is_admin($admin)) { die ("Sorry you are not an administrator, You can not install this module"); }

switch($op) {

    default:
        $pagetitle = "PT Tutorials Module";
        include("header.php");
        title("$pagetitle");
        OpenTable();
        echo "<table align='center' border='0' cellpadding='2' cellspacing='2'>\n";
        echo "<form action='modules.php?name=".$module_name."' method='post'>\n";
        echo "<tr><td>This script will install or uninstall the tables for the $pagetitle.</td></tr>\n";
        echo "<tr><td><b>Backup data tables before going on!</b></td></tr>\n";
        echo "<tr><td><select name='op'>\n";
        echo "<option value=''>---- Install Options ----</option>\n";
        echo "<option value='install'>First Time Install of $pagetitle</option>\n";
        echo "<option value=''>---- Update Options ----</option>\n";
        echo "<option value='update100111'>Update $pagetitle from 1.0.0 to 1.1.1</option>\n";
        echo "<option value=''>---- Uninstall Options ----</option>\n";
        echo "<option value='uninstall'>Uninstall $pagetitle</option>\n";
        echo "</select> <input type='hidden' name='file' value='install'><input type='submit' value='Adjust DB'></td></tr>\n";
        echo "<tr><td><b>Once you have finished with this script, delete it from your server!</b></td></tr>\n";
        echo "</form>";
        echo "</table>\n";
        CloseTable();
        include("footer.php");
    break;

    case "install":
        $pagetitle = "PT Tutorials Module: Install";
        include("header.php");
        title("$pagetitle");
        OpenTable();
        echo "Operation Status!<br>\n";
        echo "<hr>\n";
        $error = 0;
        $sql = "CREATE TABLE `".$prefix."_tutorials_categories` (
  `tc_id` int(11) NOT NULL auto_increment,
  `tc_title` varchar(50) NOT NULL default '',
  `tc_description` text NOT NULL,
  `parentid` int(11) NOT NULL default '0',
  PRIMARY KEY  (`tc_id`),
  KEY `tc_id` (`tc_id`),
  KEY `tc_title` (`tc_title`)
) TYPE=MyISAM;";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "CREATE TABLE `".$prefix."_tutorials_config` (
  `tutsperpage` tinyint(2) NOT NULL default '10',
  `hitsforpopular` varchar(5) NOT NULL default '5000',
  `toptutorials` tinyint(2) NOT NULL default '10',
  `anonwaitdays` tinyint(2) NOT NULL default '1',
  `anonweight` tinyint(2) NOT NULL default '10',
  `detailvotedecimal` tinyint(1) NOT NULL default '2',
  `mainvotedecimal` tinyint(1) NOT NULL default '1',
  `mostpoptutorials` tinyint(2) NOT NULL default '10',
  `tutorialvotemin` tinyint(3) NOT NULL default '25',
  `show_links_num` tinyint(1) NOT NULL default '0',
  `maxfavs` tinyint(2) NOT NULL default '10',
  `rightblocks` tinyint(1) NOT NULL default '1',
  `searchtutorials` tinyint(2) NOT NULL default '10',
  `submit_on` tinyint(1) NOT NULL default '1',
`approve_on` tinyint(1) NOT NULL default '1'
) TYPE=MyISAM;";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "CREATE TABLE `".$prefix."_tutorials_favorites` (
  `fav_id` int(11) NOT NULL auto_increment,
  `user_id` int(11) NOT NULL default '0',
  `t_id` int(11) NOT NULL default '0',
  `showlist` tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (`fav_id`)
) TYPE=MyISAM PACK_KEYS=0;";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "CREATE TABLE `".$prefix."_tutorials_tutorials` (
  `t_id` int(10) NOT NULL auto_increment,
  `tc_id` int(10) NOT NULL default '0',
  `t_title` varchar(255) NOT NULL default '',
  `t_text` longtext NOT NULL,
  `t_date` datetime NOT NULL default '0000-00-00 00:00:00',
  `t_counter` int(10) NOT NULL default '0',
  `version` varchar(10) NOT NULL default '',
  `description` text NOT NULL,
  `tutorialsratingsummary` double(6,4) NOT NULL default '0.0000',
  `author` varchar(60) NOT NULL default '',
  `author_email` varchar(60) NOT NULL default '0',
  `author_homepage` varchar(200) NOT NULL default '0',
  `submitter` varchar(60) NOT NULL default '',
  `totalvotes` int(11) NOT NULL default '0',
  `totalcomments` int(11) NOT NULL default '0',
  `bbcode_uid` varchar(10) default NULL,
  `level` varchar(30) default NULL,
  PRIMARY KEY  (`t_id`),
  KEY `t_id` (`t_id`),
  KEY `tc_id` (`tc_id`)
) TYPE=MyISAM PACK_KEYS=0;";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "CREATE TABLE `".$prefix."_tutorials_votedata` (
  `ratingdbid` int(11) NOT NULL auto_increment,
  `ratinglid` int(11) NOT NULL default '0',
  `ratinguser` varchar(60) NOT NULL default '',
  `rating` int(11) NOT NULL default '0',
  `ratinghostname` varchar(60) NOT NULL default '',
  `ratingcomments` text NOT NULL,
  `ratingtimestamp` datetime NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (`ratingdbid`),
  KEY `ratingdbid` (`ratingdbid`)
) TYPE=MyISAM;";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "CREATE TABLE `".$prefix."_tutorials_levels` (
  `sid` int(10) NOT NULL auto_increment,
  `title` varchar(60) NOT NULL default '',
  `weight` int(10) NOT NULL default '1',
  PRIMARY KEY  (`sid`),
  KEY `title` (`title`),
  KEY `sid` (`sid`)
) TYPE=MyISAM PACK_KEYS=0 AUTO_INCREMENT=6;";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "CREATE TABLE `".$prefix."_tutorials_submit` (
  `t_submitid` int(10) NOT NULL auto_increment,
  `tc_id` int(10) NOT NULL default '0',
  `t_title` varchar(255) NOT NULL default '',
  `t_text` longtext NOT NULL,
  `t_submitdate` datetime NOT NULL default '0000-00-00 00:00:00',
  `t_counter` int(10) NOT NULL default '0',
  `version` varchar(10) NOT NULL default '',
  `description` text NOT NULL,
  `tutorialsratingsummary` double(6,4) NOT NULL default '0.0000',
  `author` varchar(60) NOT NULL default '',
  `author_email` varchar(60) NOT NULL default '0',
  `author_homepage` varchar(200) NOT NULL default '0',
  `submitter` varchar(60) NOT NULL default '',
  `totalvotes` int(11) NOT NULL default '0',
  `totalcomments` int(11) NOT NULL default '0',
  `bbcode_uid` varchar(10) default NULL,
  `level` varchar(30) default NULL,
  PRIMARY KEY  (`t_submitid`),
  KEY `t_submitid` (`t_submitid`),
  KEY `tc_id` (`tc_id`)
) TYPE=MyISAM PACK_KEYS=0;";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "INSERT INTO `".$prefix."_tutorials_levels` VALUES (1, 'Very Easy', 1);";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "INSERT INTO `".$prefix."_tutorials_levels` VALUES (2, 'Easy', 2);";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "INSERT INTO `".$prefix."_tutorials_levels` VALUES (3, 'Intermediate', 3);";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "INSERT INTO `".$prefix."_tutorials_levels` VALUES (4, 'Difficult', 4);";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "INSERT INTO `".$prefix."_tutorials_levels` VALUES (5, 'Advanced', 5);";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "INSERT INTO `".$prefix."_tutorials_config` VALUES (10, '5000', 10, 1, 10, 2, 1, 10, 25, 0, 10, 1, 10, 1, 1);";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "OPTIMIZE TABLE `".$prefix."_tutorials_votedata`";
        $result = $db->sql_query($sql);
        $sql = "OPTIMIZE TABLE `".$prefix."_tutorials_config`";
        $result = $db->sql_query($sql);
        $sql = "OPTIMIZE TABLE `".$prefix."_tutorials_favorites`";
        $result = $db->sql_query($sql);
        $sql = "OPTIMIZE TABLE `".$prefix."_tutorials_tutorials`";
        $result = $db->sql_query($sql);
        $sql = "OPTIMIZE TABLE `".$prefix."_tutorials_categories`";
        $result = $db->sql_query($sql);
        $sql = "OPTIMIZE TABLE `".$prefix."_tutorials_levels`";
        $result = $db->sql_query($sql);
        echo "<hr>\n";
        if($error==0){
        echo "Operation Complete!<br><font size=16><b>NOW DELETE THIS FILE</b></font><br>\n";
        }else{
        echo "There were ".$error." error(s)! Fix them First!<br><font size=16><b>NOW DELETE THIS FILE</b></font><br>\n";
        }
        echo "[ <a href=\"javascript:history.go(-1)\">Go Back</a> ]\n";
        CloseTable();
        include("footer.php");
    break;
    case "update100111":
        $pagetitle = "PT Tutorials Module: Update from 1.0.0 to 1.1.1";
        include("header.php");
        title("$pagetitle");
        OpenTable();
        echo "Operation Status!<br>\n";
        echo "<hr>\n";
        $error = 0;
        $sql = "ALTER TABLE `".$prefix."_tutorials_tutorials` CHANGE `submitter` `author` VARCHAR( 60 ) NOT NULL";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "ALTER TABLE `".$prefix."_tutorials_tutorials` CHANGE `submitter_email` `author_email` VARCHAR( 60 ) NOT NULL";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "ALTER TABLE `".$prefix."_tutorials_tutorials` CHANGE `submitter_homepage` `author_homepage` VARCHAR( 60 ) NOT NULL";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "ALTER TABLE `".$prefix."_tutorials_tutorials` ADD `submitter` VARCHAR( 60 ) NOT NULL AFTER `author_homepage` ;";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "ALTER TABLE `".$prefix."_tutorials_config` ADD `submit_on` tinyint(1) NOT NULL default '1' AFTER `searchtutorials` ;";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "ALTER TABLE `".$prefix."_tutorials_config` ADD `approve_on` tinyint(1) NOT NULL default '1' AFTER `submit_on` ;";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "ALTER TABLE `".$prefix."_tutorials_tutorials` CHANGE `t_text` `t_text` LONGTEXT NOT NULL ;";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "CREATE TABLE `".$prefix."_tutorials_submit` (
  `t_submitid` int(10) NOT NULL auto_increment,
  `tc_id` int(10) NOT NULL default '0',
  `t_title` varchar(255) NOT NULL default '',
  `t_text` longtext NOT NULL,
  `t_submitdate` datetime NOT NULL default '0000-00-00 00:00:00',
  `t_counter` int(10) NOT NULL default '0',
  `version` varchar(10) NOT NULL default '',
  `description` text NOT NULL,
  `tutorialsratingsummary` double(6,4) NOT NULL default '0.0000',
  `author` varchar(60) NOT NULL default '',
  `author_email` varchar(60) NOT NULL default '0',
  `author_homepage` varchar(200) NOT NULL default '0',
  `submitter` varchar(60) NOT NULL default '',
  `totalvotes` int(11) NOT NULL default '0',
  `totalcomments` int(11) NOT NULL default '0',
  `bbcode_uid` varchar(10) default NULL,
  `level` varchar(30) default NULL,
  PRIMARY KEY  (`t_submitid`),
  KEY `t_submitid` (`t_submitid`),
  KEY `tc_id` (`tc_id`)
) TYPE=MyISAM PACK_KEYS=0;";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "OPTIMIZE TABLE `".$prefix."_tutorials_votedata`";
        $result = $db->sql_query($sql);
        $sql = "OPTIMIZE TABLE `".$prefix."_tutorials_config`";
        $result = $db->sql_query($sql);
        $sql = "OPTIMIZE TABLE `".$prefix."_tutorials_favorites`";
        $result = $db->sql_query($sql);
        $sql = "OPTIMIZE TABLE `".$prefix."_tutorials_tutorials`";
        $result = $db->sql_query($sql);
        $sql = "OPTIMIZE TABLE `".$prefix."_tutorials_categories`";
        $result = $db->sql_query($sql);
        $sql = "OPTIMIZE TABLE `".$prefix."_tutorials_levels`";
        $result = $db->sql_query($sql);
        echo "<hr>\n";
        if($error==0){
        echo "Operation Complete!<br><font size=16><b>NOW DELETE THIS FILE</b></font><br>\n";
        }else{
        echo "There were ".$error." error(s)! Fix them First!<br><font size=16><b>NOW DELETE THIS FILE</b></font><br>\n";
        }
        echo "[ <a href=\"javascript:history.go(-1)\">Go Back</a> ]\n";
        CloseTable();
        include("footer.php");
    break;
    case "uninstall":
        $pagetitle = "PT Tutorials Module: Uninstall";
        include("header.php");
        title("$pagetitle");
        OpenTable();
        if($ok==1){
        echo "Operation Status!<br>\n";
        echo "<hr>\n";
        $error = 0;
        $sql = "DROP TABLE ".$prefix."_tutorials_categories";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "DROP TABLE ".$prefix."_tutorials_config";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "DROP TABLE ".$prefix."_tutorials_favorites";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "DROP TABLE ".$prefix."_tutorials_tutorials";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "DROP TABLE ".$prefix."_tutorials_votedata";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "DROP TABLE ".$prefix."_tutorials_levels";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        $sql = "DROP TABLE ".$prefix."_tutorials_submit";
        $result = $db->sql_query($sql);
        if (!$result) { echo "- ".$sql." => <font color=red>Query failed</font><br>\n"; $error++;} else { echo "- ".$sql." => <font color=green>Query succeeded</font><br>\n"; }
        echo "<hr>\n";
        if($error==0){
        echo "Operation Complete!<br><font size=16><b>NOW DELETE THIS FILE</b></font><br>\n";
        }else{
        echo "There were ".$error." error(s)! Fix them First!<br><font size=16><b>NOW DELETE THIS FILE</b></font><br>\n";
        }
        echo "[ <a href=\"javascript:history.go(-2)\">Go Back</a> ]\n";
        }else{
        echo "Are you sure you want to uninstall 'PT Tutorials Module'??<br>You will lose all data in the tables!!<br><br>";
        echo "<center><a href=\"modules.php?name=".$module_name."&file=install&op=uninstall&ok=1\">Yes</a> | <a href=\"modules.php?name=".$module_name."\">No</a></center>";
        }
        CloseTable();
        include("footer.php");
    break;
}
?>




_________________
Back to top Reply with quote
#4   re: Added blocks in theme footer! Latest tutorials
Neoszion
CZ Super Newbie
 Codezwiz Site Donator
Neoszion has been a member for over 19 year's 19 Year Member
uk.gif
Occupation: Web Designer
Age: 45
Gender: Male
Fav. Sports Team: Liverpool
Website:
Status: Offline
Joined: Sep 02, 2004
0.01 posts per day
Posts: 92
Points: 10,111
   
Was the above correct Telli or do you need further tables?




_________________
Back to top Reply with quote
#5   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Ok now look at the tutorials table:


CREATE TABLE `nuke_tutorials_tutorials` (
  `t_id` int(10) NOT NULL auto_increment,
  `tc_id` int(10) NOT NULL default '0',
  `t_title` varchar(255) NOT NULL default '',
  `t_text` longtext NOT NULL,
  `t_date` datetime NOT NULL default '0000-00-00 00:00:00',
  `t_counter` int(10) NOT NULL default '0',
  `version` varchar(10) NOT NULL default '',
  `description` text NOT NULL,
  `tutorialsratingsummary` double(6,4) NOT NULL default '0.0000',
  `author` varchar(60) NOT NULL default '',
  `author_email` varchar(60) NOT NULL default '0',
  `author_homepage` varchar(200) NOT NULL default '0',
  `submitter` varchar(60) NOT NULL default '',
  `totalvotes` int(11) NOT NULL default '0',
  `totalcomments` int(11) NOT NULL default '0',
  `bbcode_uid` varchar(10) default NULL,
  `level` varchar(30) default NULL,
  PRIMARY KEY  (`t_id`),
  KEY `t_id` (`t_id`),
  KEY `tc_id` (`tc_id`)
) TYPE=MyISAM PACK_KEYS=0;


If you change this around in the query for the footer blocks tutorial (which I just updated some):


$result = $db->sql_query("select lid, title, hits from ".$prefix."_downloads_downloads order by date DESC limit 0,$maxshow");
while(list($lid, $title, $hits) = $db->sql_fetchrow($result)) {


To this:

$result = $db->sql_query("SELECT t_id, t_title, t_counter FROM ".$prefix."_tutorials_tutorials ORDER BY t_date DESC LIMIT 0, $maxshow");
while(list($t_id, $t_title, $t_counter) = $db->sql_fetchrow($result)) {


Then change the link and the two variables for $lid and $title you should be all set.



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#6   re: Added blocks in theme footer! Latest tutorials
Neoszion
CZ Super Newbie
 Codezwiz Site Donator
Neoszion has been a member for over 19 year's 19 Year Member
uk.gif
Occupation: Web Designer
Age: 45
Gender: Male
Fav. Sports Team: Liverpool
Website:
Status: Offline
Joined: Sep 02, 2004
0.01 posts per day
Posts: 92
Points: 10,111
   
Thanks Telli I cannot get it to go directly to the Tutorial but its close enough:

$show .= "$a: <a href=\"modules.php?name=Tutorials&d_op=viewtutorialsdetails&lid=$t_id&title=$t_title\">$t_title</a><br><br>";


I appriciate your help man it work great!



_________________
Back to top Reply with quote
#7   
Neoszion
CZ Super Newbie
 Codezwiz Site Donator
Neoszion has been a member for over 19 year's 19 Year Member
uk.gif
Occupation: Web Designer
Age: 45
Gender: Male
Fav. Sports Team: Liverpool
Website:
Status: Offline
Joined: Sep 02, 2004
0.01 posts per day
Posts: 92
Points: 10,111
   
Sorry to bump an Old topic but for some reason the Scrolling Tutorials at the bottom appear on all pages accept The forums why is this anyone know?




_________________
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