Newsflash 2.o sql always returns errors

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Newsflash 2.o sql always returns errors
Hustler
CZ Newbie
usa.gif minnesota.gif
Occupation: Student
Age: 54
Gender: Male
Fav. Sports Team: Baltimore Ravens
Status: Offline
Joined: Oct 13, 2003
0.00 posts per day
Posts: 10
Points: 3,882
 Yahoo Messenger  
DROP TABLE IF EXISTS nuke_newsflash;

CREATE TABLE nuke_newsflash (
nid int(11) NOT NULL auto_increment,
title varchar(150) NOT NULL,
data blob,
launch_time datetime NOT NULL,
expires datetime default NULL,
active int(1) DEFAULT '1' NOT NULL,
PRIMARY KEY (nid)
);

ALTER TABLE `nuke_authors` ADD `radminNewsFlashAdmin` TINYINT(2) NOT NULL AFTER `radminency`;



Can you tell me waht has to be edited to access it?
If you could change the fields that need to be edited with red text.
Would be greatly appreciated.


I have included the original sql file here the block appears on my page but I cannot access the admin part. [ Register or login to view links on this board. ]



Back to top Reply with quote
#2   re: Newsflash 2.o sql always returns errors
echo
CZ Wiz
 Codezwiz Site Donator
Gender: Male
Status: Offline
Joined: Oct 04, 2003
0.15 posts per day
Posts: 1147
Points: 93
   
Now I see why everyone is having a problem with this block, it's missing a very important ingredient. This line is missing from the SQL file:

update nuke_authors set radminNewsflashAdmin = 1 where aid = 'admin';


In that line you just put your "GOD" Nuke name in place of "admin".

I'm attaching a different newsflash here, it has everything you need and I will inform an Admin here about this issue. Sorry for any inconvenience.


Back to top Reply with quote
#3   re: Newsflash 2.o sql always returns errors
Hustler
CZ Newbie
usa.gif minnesota.gif
Occupation: Student
Age: 54
Gender: Male
Fav. Sports Team: Baltimore Ravens
Status: Offline
Joined: Oct 13, 2003
0.00 posts per day
Posts: 10
Points: 3,882
 Yahoo Messenger  
ty very much for the quick response I will try that and see what i get I will repost to let you know how it is



Back to top Reply with quote
#4   re: Newsflash 2.o sql always returns errors
Hustler
CZ Newbie
usa.gif minnesota.gif
Occupation: Student
Age: 54
Gender: Male
Fav. Sports Team: Baltimore Ravens
Status: Offline
Joined: Oct 13, 2003
0.00 posts per day
Posts: 10
Points: 3,882
 Yahoo Messenger  
#1054 - Unknown column 'radminency' in 'nuke_authors'


any ideas?



Back to top Reply with quote
#5   re: Newsflash 2.o sql always returns errors
echo
CZ Wiz
 Codezwiz Site Donator
Gender: Male
Status: Offline
Joined: Oct 04, 2003
0.15 posts per day
Posts: 1147
Points: 93
   
Back up your nuke_authors table, then open up your nuke_authors table and remove the line:
radminNewsflashAdmin tinyint(2) DEFAULT '0' NOT NULL,
save and run the newsflash SQL file with the proper edits. You may have to drop the nuke_newsflash table also before running the SQL again.


Back to top Reply with quote
#6   re: Newsflash 2.o sql always returns errors
Hustler
CZ Newbie
usa.gif minnesota.gif
Occupation: Student
Age: 54
Gender: Male
Fav. Sports Team: Baltimore Ravens
Status: Offline
Joined: Oct 13, 2003
0.00 posts per day
Posts: 10
Points: 3,882
 Yahoo Messenger  
I do not see that name there in the nuke_authors table.



Back to top Reply with quote
#7   re: Newsflash 2.o sql always returns errors
echo
CZ Wiz
 Codezwiz Site Donator
Gender: Male
Status: Offline
Joined: Oct 04, 2003
0.15 posts per day
Posts: 1147
Points: 93
   
I see you have it working. The reason you don't see the text is because of the black, if you click and hightlight inside the block you will see what I mean. If you look at my site you will see I have it set to my themes bg color. Look in the block and find this code:
bgcolor=\"#FFFFFF
now the default code is white, I have no idea why your block is showing up as black, try and change the ffffff to some other color in the block.php.


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