I can't find a categorized module block with an installer

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   I can't find a categorized module block with an installer
ts-s
CZ Newbie
ts-s has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Nov 30, 2003
0.00 posts per day
Posts: 8
Points: 539
   
My myAdmin has never been able to import sql files when I need them. I have downloaded the modules block tweak from 3 sources now hoping one of them had an installer with it. They have all had the categories.sql file instead. Does anyone know where to find a block WITH installer. OR, an installer for the module block tweak that is everywhere.

Thx in advance.



Back to top Reply with quote
#2   
ts-s
CZ Newbie
ts-s has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Nov 30, 2003
0.00 posts per day
Posts: 8
Points: 539
   
Thx bro, but that doesnt have the sql processing yet. icon_cry.gif They said the next addition will. I was hoping to run into the guy who wrote the center block script here. He recently wrote an installer in about 30 minutes for me when I couldnt import the sql that came with it. But again thx. Maybe someone will come by who has seen a modules block that can be categorized and comes with an installer.



Back to top Reply with quote
#3   re: I can't find a categorized module block with an installe
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Save as install.php and upload to your root file run it once and delete it.

<?php
/************************************************************************/
/* CZModules Database install file
/* Installation of the CZModules database tables
/* Written by Telli - [ Register or login to view links on this board. ]
/* Delete after use
/************************************************************************/
include("config.php");
require_once("mainfile.php");
mysql_connect($dbhost, $dbuname, $dbpass);
@mysql_select_db($dbname);
mysql_query("DROP TABLE IF EXISTS ".$prefix."_modules_categories");
mysql_query("CREATE TABLE ".$prefix."_modules_categories (
mcid int(11) NOT NULL auto_increment,
mcname varchar(60) NOT NULL,
visible int(1) NOT NULL default '1',
PRIMARY KEY(mcid),
KEY mcid (mcid),
KEY mcname (mcname)
) TYPE=MyISAM");
mysql_query("INSERT INTO ".$prefix."_modules_categories VALUES (NULL, 'General', '1')");
mysql_query("ALTER TABLE ".$prefix."_modules ADD mcid int(11) NOT NULL default '1'");
include("header.php");
OpenTable();
echo "<center><br><b>CZModules database complete, please <font color=#ff0000>delete</font> this file off your server, enjoy!</b></center>";
CloseTable();
    include("footer.php");
?>




_________________
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
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