I broke my forums

  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 broke my forums
goonel
CZ Newbie
goonel has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Apr 28, 2004
0.00 posts per day
Posts: 8
Points: 400
   
ok first off I am a newb

phpnuke 7.0

I tried adding a new style to my forums and I broke them
I added the file into forums folder next to the existing subsilver theme

I then when into the admin on the site and changed to the new theme.

I reloaded the page and went to forums through the admin and got a debug message

phpBB : Critical Error

Could not open forums template config file

DEBUG MODE

Line : 391
File : c:\program files\apache group\apache\root\includes\functions.php

so i went back into the folder where I added the new theme and deleted that folder hoping it would default back to subsilver. It didn't.

now I cannot access the forums admin in order to choose subsilver as the theme again (which was the original style)

any ideas?

thanks



Back to top Reply with quote
#2   re: I broke my forums
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
   
Log into phpmyamin select the database then across the top click SQL paste this into it and hit GO:

UPDATE TABLE nuke_bbconfig SET default_style='1';




_________________
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: I broke my forums
goonel
CZ Newbie
goonel has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Apr 28, 2004
0.00 posts per day
Posts: 8
Points: 400
   
like I said I am a newb

where do i log into php my admin?

I am on the site as a superadmin

I go to the admin menu which are all icons

if i click on the icon for FORUMS then it goes to a page with the error i posted above



Back to top Reply with quote
#4   re: I broke my forums
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 this as fixstyle.php upload it next to your config.php and your mainfile.php and then call it in your browser.
[ Register or login to view links on this board. ]

<?php
require_once("mainfile.php");
$style= "1";
$sql = "UPDATE ".$prefix."_bbconfig SET default_style = '".$style."'";
$result = $db->sql_query($sql); 
echo "Success!";
?>




_________________
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
#5   Re: re: I broke my forums
goonel
CZ Newbie
goonel has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Apr 28, 2004
0.00 posts per day
Posts: 8
Points: 400
   


Originally posted by Telli @ Thu Apr 29, 2004 1:25 pm:

Save this as fixstyle.php upload it next to your config.php and your mainfile.php and then call it in your browser.
[ Register or login to view links on this board. ]

<?php
require_once("mainfile.php");
$style= "1";
$sql = "UPDATE ".$prefix."_bbconfig SET default_style = '".$style."'";
$result = $db->sql_query($sql); 
echo "Success!";
?>




save it in what application? notepad, word, powerpoint? I cannot even open a .php on my desktop.

I probably should have told you this before....I am logging into an FTP server and working from home.....the server is 250 miles away.


Back to top Reply with quote
#6   re: I broke my forums
goonel
CZ Newbie
goonel has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Apr 28, 2004
0.00 posts per day
Posts: 8
Points: 400
   
ok i used editplus and created the fixstyle.php file and placed it in between the the config and main file.

now you said call it in my browser. so I double clicked it and a IE opened with page could not be found....it went looking for [ Register or login to view links on this board. ] (asterix are the ftp server)

so I am not sure what you mean by call it in your browser...I am pretty sure i did exactly what you said to do correctly but am not understanding how to complete this last part



Back to top Reply with quote
#7   re: I broke my forums
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
   
[ Register or login to view links on this board. ]

NoteTab Light

Download that its free and doesnt have anything bad in it. Its compatible with windows any version. It will let you work with php. If not then use your notepad to save it as .php and upload through your [ Register or login to view links on this board. ] Then call it in a browser.

Type it in your browser "visit it" just like you came here.




_________________
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
#8   Re: re: I broke my forums
goonel
CZ Newbie
goonel has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Apr 28, 2004
0.00 posts per day
Posts: 8
Points: 400
   


Originally posted by Telli @ Thu Apr 29, 2004 2:08 pm:

Then call it in a browser.

Type it in your browser "visit it" just like you came here.


What is it? Is it ftp//:***.**.**.**/fixstyle.php? If that's what you mean then I go to a cannot display page screen in internet explorer.



Back to top Reply with quote
#9   re: I broke my forums
Tuffy
CZ Addict
 Codezwiz Site Donator
Tuffy has been a member for over 20 year's 20 Year Member
usa.gif newyork.gif
Occupation: Wedding Photographer
Age: 59
Gender: Female
Fav. Sports Team: NY Mets
Website:
Status: Offline
Joined: Nov 20, 2003
0.09 posts per day
Posts: 724
Points: 127,871
AIM Address Yahoo Messenger  
icon_wink.gif I think that what Telli is trying to tell you is to type in the web address where your fixstyle.php file is located. So instead of ftp//your-web-address/fixstyle.php it should probably be http://your-web-address/fixstyle.php.



Back to top Reply with quote
#10   re: I broke my forums
goonel
CZ Newbie
goonel has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Apr 28, 2004
0.00 posts per day
Posts: 8
Points: 400
   
ok,

It went to a page that said success!. when i typed in [ Register or login to view links on this board. ]

I am still getting a error page when i try to access the forums icon from the admin page though.



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