# Got RForum working... now a few questions

**URL:** <https://www.ruby-forum.com/t/got-rforum-working-now-a-few-questions/113134>\
**Category:** Ruby-Forum\
**Created:** [August 27, 2007, 11:33pm UTC](https://www.ruby-forum.com/t/got-rforum-working-now-a-few-questions/113134 "2007-08-27T23:33:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![combas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/aca169/32.png) [@combas](https://www.ruby-forum.com/u/combas)\
**Post date:** [August 27, 2007, 11:33pm UTC](https://www.ruby-forum.com/t/got-rforum-working-now-a-few-questions/113134/1 "2007-08-27T23:33:24Z")

</div>

Finally got RForum running on Ubuntu Feisty with MySQL! Now I have a few  
questions about configuring some things:

1. How can I prevent users without accounts from posting? I disabled  
anonymous posting, but if I put in any random name I am still allowed to  
post. Also is it possible to make it so that only members can view  
forums?

2. Is there something I need to do to setup sendmail? When I was testing  
the “Forgot my password” feature I saw this coming up in the console:

Any idea about that?

1. Is there a place where I can find skins or is there a guide anywhere  
to creating them?

2. Is there any way of creating subforums like are seen on the left side  
of this forum? (i.e. with headings for different sets of forums).

3. The site I’m creating is aimed at being as simple as possible, and I  
would like to have a main index page for login/displaying of forums with  
some images and some slick scriptaculous effects. It is aimed at  
students so I want it to be simple to navigate and also look attractive.  
What is the best way to accomplish this?  
– Edit the current RForum index to fit my needs? (Would this be  
nav.rhtml in /app/?)  
– Create a seperate app to host my main page and then link to the  
forums using straight URLs? (seems like overkill)  
– Something else?

Thanks,  
Alex C.

---

<div class="post-metadata">

**Author:** ![combas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/aca169/32.png) [@combas](https://www.ruby-forum.com/u/combas)\
**Post date:** [August 30, 2007, 11:19pm UTC](https://www.ruby-forum.com/t/got-rforum-working-now-a-few-questions/113134/2 "2007-08-30T23:19:07Z")

</div>

Alex C. wrote:

> 1. How can I prevent users without accounts from posting? I disabled  
> anonymous posting, but if I put in any random name I am still allowed to  
> post. Also is it possible to make it so that only members can view  
> forums?

That is not yet implemented in the official version in the repository,  
but the changes are not very difficult. You can identify guests  
(non-members) with “@user.guest?”, so everywhere where you want to deny  
access (posting form, TopicController#new, replying) you check  
“@user.guest?” and display a “please login” message if it’s true.

> 1. Is there something I need to do to setup sendmail? When I was testing  
> the “Forgot my password” feature I saw this coming up in the console:

Does it really say “/user”, or is that a typo? That should be “/usr”. In  
any case, you need to install a mail transfer agent (Exim, Postfix,  
Courier) or configure ActionMailer to use an external mail server (see  
AM documentation).

> 1. Is there a place where I can find skins or is there a guide anywhere  
> to creating them?

Take a look at the directory public/skins/, there are a few examples. A  
skin basically consists of a stylesheet and maybe some images, if you  
want to make fundamental changes to the layout you need to edit the  
templates in app/views.

> 1. Is there any way of creating subforums like are seen on the left side  
> of this forum? (i.e. with headings for different sets of forums).

I did that manually in app/views/sidebar.rhtml.

> 1. The site I’m creating is aimed at being as simple as possible, and I  
> would like to have a main index page for login/displaying of forums with  
> some images and some slick scriptaculous effects. It is aimed at  
> students so I want it to be simple to navigate and also look attractive.  
> What is the best way to accomplish this?

Create a new controller and templates, open config/routes.rb and change  
map.connect ‘’, :controller =\> ‘forum’, :action =\> ‘list’  
to  
map.connect ‘’, :controller =\> ‘your\_new\_controller’, :action =\>  
‘index’

Andreas

---

<div class="post-metadata">

**Author:** ![combas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/aca169/32.png) [@combas](https://www.ruby-forum.com/u/combas)\
**Post date:** [February 23, 2008, 1:04am UTC](https://www.ruby-forum.com/t/got-rforum-working-now-a-few-questions/113134/3 "2008-02-23T01:04:12Z")

</div>

Alex C. wrote:

> Finally got RForum running on Ubuntu Feisty with MySQL! Now I have a few  
> questions about configuring some things:
> 
> 1. How can I prevent users without accounts from posting? I disabled  
> anonymous posting, but if I put in any random name I am still allowed to  
> post. Also is it possible to make it so that only members can view  
> forums?
> 
> 2. Is there something I need to do to setup sendmail? When I was testing  
> the “Forgot my password” feature I saw this coming up in the console:
> 
> Any idea about that?
> 
> 1. Is there a place where I can find skins or is there a guide anywhere  
> to creating them?
> 
> 2. Is there any way of creating subforums like are seen on the left side  
> of this forum? (i.e. with headings for different sets of forums).
> 
> 3. The site I’m creating is aimed at being as simple as possible, and I  
> would like to have a main index page for login/displaying of forums with  
> some images and some slick scriptaculous effects. It is aimed at  
> students so I want it to be simple to navigate and also look attractive.  
> What is the best way to accomplish this?  
> – Edit the current RForum index to fit my needs? (Would this be  
> nav.rhtml in /app/?)  
> – Create a seperate app to host my main page and then link to the  
> forums using straight URLs? (seems like overkill)  
> – Something else?
> 
> Thanks,  
> Alex C.  
> I am trying to setup RForum-0.2 on Debian using MySql. I have not been  
> able to get past the command  
> RAILS\_ENV=production rake migrate  
> as described in the readme file. I get the error message

/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/routing.rb:8  
85:in `assign\_route\_options’: Regexp anchor characters are not allowed  
in routin g requirements: /^[0-9]+$/ (ArgumentError)

Did you see this problem? or do you have any idea what it means or how  
to fix it?
