Quote style and stuff [message #21345] |
Fri, 26 November 2004 02:39 |
nayomie
Messages: 27 Registered: November 2004
Karma: 0
|
Junior Member |
|
|
I was able to edit the css template to get rid of the background for [quote]. But, The word "quote" appears above the quoted text. Where can I get rid of that? I just want to have the ability to format like HTML <blockquote>.
Thanks
;>p
|
|
|
|
|
|
|
|
|
Re: Quote style and stuff [message #21383 is a reply to message #21381] |
Sun, 28 November 2004 18:29 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The forum's files are "locked" by default. You need to use the admin control panel (file lock/unlock) to unlock them.
FUDforum Core Developer
|
|
|
What happened!? [message #21433 is a reply to message #21383] |
Tue, 30 November 2004 03:56 |
nayomie
Messages: 27 Registered: November 2004
Karma: 0
|
Junior Member |
|
|
I went into admin and saw that files appeared to be unlocked but because I still couldn't access files, I put in my password and hit "unlock",
I tried to transfer a file but it failed. When I went to go back to the forum I can't log in and get these messages:
Warning: Unknown(/usr/www/users/weblynxd/frugal/forum/index.php): failed to open stream: Permission denied in Unknown on line 0
Warning: (null)(): Failed opening '/usr/www/users/weblynxd/frugal/forum/index.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0
I changed the name of the original forum and installed a new concurrent forum (same version). I entered the name of the old database in the new forum hoping it would connect to that. Have I lost everything or is there some way to get out of this mess?
Please be specific as possible because I'm feeling pretty clueless right now. :>(
[Updated on: Tue, 30 November 2004 05:18] Report message to a moderator
|
|
|
|
|
Re: What happened!? [message #21452 is a reply to message #21451] |
Tue, 30 November 2004 17:07 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
All the data is still there, you haven't lost anything.
Basically you need to re-chmod the forum's files.
FUDforum Core Developer
|
|
|
Re: What happened!? [message #21453 is a reply to message #21452] |
Tue, 30 November 2004 17:23 |
nayomie
Messages: 27 Registered: November 2004
Karma: 0
|
Junior Member |
|
|
does that mean I set the /forum and FUDforum directories to 777 again?
What did that error message mean? Will the forum reappear as it was after I chmod?
At this point I'm hesitant to unlock files ever again - how'd this all happen?
Your assistance is appreciated.
;>p
[Updated on: Tue, 30 November 2004 17:24] Report message to a moderator
|
|
|
Re: What happened!? [message #21454 is a reply to message #21453] |
Tue, 30 November 2004 17:33 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
There is a bug in that code on certain version of Redhat/Fedora which was fixed in later FUDforum releases.
The current fix would be to chmod all of the forum's files 666 and directories 777.
Ex.
find /forum/dir -type f | xargs chmod 666
find /forum/dir -type d | xargs chmod 777
FUDforum Core Developer
|
|
|
|
Re: What happened!? [message #21459 is a reply to message #21455] |
Tue, 30 November 2004 20:10 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Yeah you definately should upgrade.
If your customizations were inside header/footer tmpl then nothing will change. Other templates that you modified would be backuped by the upgrade process.
FUDforum Core Developer
|
|
|
Can't chmod [message #21463 is a reply to message #21452] |
Wed, 01 December 2004 02:26 |
nayomie
Messages: 27 Registered: November 2004
Karma: 0
|
Junior Member |
|
|
OK - when I look at my directories through FTP I see that forum and FUDforum are already 777 as well as the subdirectories. But, when I look in FUDforum/files at the individual files, there are no permissions at all - so I guess the bug is that the "unlock files" button erased the permissions. This is the case in ALL of the directories.
So then , I go as far at seeing the files in Telnet, but when I go to chmod files, the operation is not permitted. What next?
Hmmmm, I don't know much, but I'm geussing I can't change something that's not there to begin with. Is there a command to set the mode for files?
If so, what would the exact command be to set the mode for all files in a directory all at once? Is that possible?
Is it possible to import the data from the original forum into the new setup? Where would I find what needs to be imported?
So many questions - sorry! I'm nearly ready to throw in the towel, take a data loss and have users re-register. *argh*
[Updated on: Wed, 01 December 2004 02:46] Report message to a moderator
|
|
|
Re: Can't chmod [message #21475 is a reply to message #21463] |
Wed, 01 December 2004 15:43 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
There is no need to take the data loss, since no data was actually lost. The permissions were changed by a web script, and you'll need a web script to restore them.
One way is to ask you ISP to chmod all the forum files in the manner indicated in my previous e-mail.
Another way is to make a quick PHP script to try to do the same.
Ex.
<?php shell_exec("find /forum/dir -type f | xargs chmod 666");
shell_exec("find /forum/dir -type d | xargs chmod 777"); ?>
FUDforum Core Developer
|
|
|
|
Re: Can't chmod [message #21485 is a reply to message #21484] |
Wed, 01 December 2004 17:01 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
They (the ISP) need to run the chmod as the "root" user.
The PHP script can be placed in any web directory and then executed via the browser. Be sure that you change the script to reflect you forum installation dir.
FUDforum Core Developer
|
|
|
Re: Can't chmod [message #21508 is a reply to message #21485] |
Wed, 01 December 2004 22:03 |
nayomie
Messages: 27 Registered: November 2004
Karma: 0
|
Junior Member |
|
|
OK - I contacted my ISP again and they chmod-ed all my directories and files (that also includes all of the sub and sub/sub directories), but I still get this error messsage when I try to get to the forum. What's wrong now? Does index.php need to be executable? Are there anyother files that need to be executable - right now all files are just read/write and just directories are 777.
Quote: | Warning: main(/usr/www/users/weblynxd/frugal/forum/theme/default/index.php): failed to open stream: Permission denied in /usr/www/users/weblynxd/frugal/forum/index.php on line 1148
Fatal error: main(): Failed opening required '/usr/www/users/weblynxd/frugal/forum/theme/default/index.php' (include_path='.:/usr/local/lib/php') in /usr/www/users/weblynxd/frugal/forum/index.php on line 1148
|
A question - they suggested using a cgi-wrap and chmod-ing everything to 755 so I'd show as the "owner". Will FUD work with that?
Thanks
[Updated on: Wed, 01 December 2004 22:08] Report message to a moderator
|
|
|
|
Re: Can't chmod [message #21511 is a reply to message #21509] |
Thu, 02 December 2004 01:21 |
nayomie
Messages: 27 Registered: November 2004
Karma: 0
|
Junior Member |
|
|
OK - so I can do the cgi-wrap, right? But what is wrong that I'm getting this error message. Is that because that particular file isn't executable or will I need to edit something?
This is the error meassage again:
Quote: | Warning: main(/usr/www/users/weblynxd/frugal/forum/theme/default/index.php): failed to open stream: Permission denied in /usr/www/users/weblynxd/frugal/forum/index.php on line 1148
Fatal error: main(): Failed opening required '/usr/www/users/weblynxd/frugal/forum/theme/default/index.php' (include_path='.:/usr/local/lib/php') in /usr/www/users/weblynxd/frugal/forum/index.php on line 1148
|
Thanks
[Updated on: Thu, 02 December 2004 01:22] Report message to a moderator
|
|
|
Re: Can't chmod [message #21512 is a reply to message #21511] |
Thu, 02 December 2004 01:23 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
the file needs to readable by the forum user, the error you are seeing is because the use the forum is running as does not have permissions to the file(s).
FUDforum Core Developer
|
|
|
Re: Can't chmod [message #21513 is a reply to message #21512] |
Thu, 02 December 2004 02:08 |
nayomie
Messages: 27 Registered: November 2004
Karma: 0
|
Junior Member |
|
|
hmmmm, I don't understand what you mean. What needs to be done to fix that? Please be specific.
Will that be resolved once the files are all chmod-ed to 755 and in my CGI-bin?
thanks
[Updated on: Thu, 02 December 2004 02:08] Report message to a moderator
|
|
|
Re: Can't chmod [message #21530 is a reply to message #21513] |
Thu, 02 December 2004 15:15 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
On your system PHP runs as a certain user account, in order for the forum to work that user account MUST have read access to the forum's files.
FUDforum Core Developer
|
|
|
Re: Can't chmod [message #21535 is a reply to message #21530] |
Thu, 02 December 2004 16:52 |
nayomie
Messages: 27 Registered: November 2004
Karma: 0
|
Junior Member |
|
|
OK - I'll call my ISP when I get home from work. How did this get changed if everything was working before? Everything went belly-up after I hit the "unlock files" button in the CP. You say this bug is fixed in a later version.
Which upgrade should I install? - I'm hesitant because I keep reading about others losing their templates.
thanks
[Updated on: Thu, 02 December 2004 16:53] Report message to a moderator
|
|
|
Re: Can't chmod [message #21536 is a reply to message #21535] |
Thu, 02 December 2004 16:54 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You never lose templates since the forum backs up any of templates it replaces. The best version is 2.6.9RC1 at this moment and RC2 will be out no later then Monday.
FUDforum Core Developer
|
|
|