Topic: going directly into a forum?

Alright, a few tests convinced me to use punbb, and now I have my first question.

I've installed the script at http://anfume.com/foro/
but I really want to be able to access the only forum available at the moment:
http://anfume.com/foro/viewforum.php?id=1

I like punbb because it's simple, and it would make things even simpler if I could go directly to the forum avobe by typing the root address of punbb.
Is there a way to type http://anfume.com/foro/ and go directly to http://anfume.com/foro/viewforum.php?id=1 by changing any internal settings in punbb?
Or my only solution is to create a subdomain (let's say http://foro.anfume.com) and 'point' it to http://anfume.com/foro/viewforum.php?id=1 ?

hi, welcome to me and thanks.

Re: going directly into a forum?

It's not the best approach, but you could always put up an index.html which just redirects in a normal fashion.

Re: going directly into a forum?

right, I kinda forgot about that option.

and I wonder, in most situations (and browsers) does index.html takes priority over index.php?

thanks btw.

Re: going directly into a forum?

well, I've done it smile and everything seems to work just fine actually.

here's the code I used (double redirect for more compatability) big_smile

<html>
<head>
<title>Todo Multimedia</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="refresh" content="0;url=http://anfume.com/foro/viewforum.php?id=1">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
redirTime = "0";
redirURL = "http://anfume.com/foro/viewforum.php?id=1";
function redirTimer() { self.setTimeout("self.location.href = redirURL;",redirTime); }
//  End -->
</script>
</head>

<body onLoad="redirTimer()" bgcolor="#2A2A2A" topmargin="0">
<p></p>
</body>
</html>

wink

5

Re: going directly into a forum?

Nice work.

Moves fast, barely even notice the change.

6 (edited by IdleFire 2005-10-31 02:02)

Re: going directly into a forum?

Yeah, it's by far the easiest way.

edit: if you don't want to have the javascript, you can just put

<meta 
http-equiv="refresh" content="0; url=your new address.html">

between the <head></head> tags.

Re: going directly into a forum?

IdleFire wrote:

Yeah, it's by far the easiest way.

edit: if you don't want to have the javascript, you can just put

<meta 
http-equiv="refresh" content="0; url=your new address.html">

between the <head></head> tags.

im using both javascript and meta wink just in case.
thanks for the suggestion.

I made sure to match the backrgound color on the redirect html, so it appears to redirect faster. tongue

Re: going directly into a forum?

The problem with this approach is that there are still links to index.php here and there in PunBB. I would just add a header redirect to the top of index.php. E.g:

header('Location: http://anfume.com/foro/viewforum.php?id=1');

"Programming is like sex: one mistake and you have to support it for the rest of your life."

9

Re: going directly into a forum?

I actually really liked being taken immediately into the main forum, and then have the option to go back to the index, and choose other destinations.

I have a site where there is one primary area, and the rest could maybe use a little more metriculation before folks are generally ready to join the discussion. The idea of entering into a single forum, but still having the option to seek more info if needed works well for me.

Re: going directly into a forum?

Rickard wrote:

The problem with this approach is that there are still links to index.php here and there in PunBB. I would just add a header redirect to the top of index.php. E.g:

header('Location: http://anfume.com/foro/viewforum.php?id=1');

right, I know the link to the main index.php is still active, but just like dss says: i want to leave that as an option, and use the short address to go directly into a specific forum.
Who knows, maybe later I'll need different sections, but for now (and for a long while) one forum will do just nicely.

nevertheless, thanks for the info about the header redirect. who knows when may be handy. wink

Re: going directly into a forum?

the header redirect will do excatly the same thing the java and meta redirect but faster, if you want to use index.php in the future you could put it back just the same as you could do using your solution.

Re: going directly into a forum?

Connorhd wrote:

the header redirect will do excatly the same thing the java and meta redirect but faster, if you want to use index.php in the future you could put it back just the same as you could do using your solution.

excellent. you were right. the redirection is much faster smile

I added the line of code after the comments on the top of the index.php file. it was a painless process big_smile

thanks all.