Page 1 of 1

Link directly to topic

Posted: Wed Jan 25, 2006 1:16 pm
by Akira2
When my forum shows up, you have different categories, each containing serveral forums. Is it possible to link directly to a topic?
For example, when you click on a forum title, you wont get a list with topics in that forum, but you see the topic content itself. (So actually you don't link to a forum, but to a topic)...

Can anyone explain me if and how this can be done?

Thanks in advance!

<BTW, is this the right forum to post this question?>

Posted: Wed Jan 25, 2006 2:07 pm
by Akira2
Nobody has an idea how to do this?

Posted: Wed Jan 25, 2006 2:28 pm
by biscuitkeeper
If i undersand correctly.. if you were to say click on phpBB Support from the index of this site it wouldnt show you support topics it would take you to a specific topic.

I assume you would want this only for a specific forum where there is a particular post you want to display? Otherwise how will people see the other topics posted? And surely the topic you choose to open would have to be hard wired into the code eg as it needs to know which topic you want to display?

Posted: Wed Jan 25, 2006 2:42 pm
by Akira2
Thats exactly what I mean! Only one specific forum I want to display its post instead of topic list. So I have to put the topic url in a link, but where can I edit that link?

Posted: Wed Jan 25, 2006 2:54 pm
by biscuitkeeper
If it was to be the top (or bottom) forum in your index then you could code it in by hand so it would display with the link coded in then the php would generate the actual forums after it.

The only problem is that it would then display the dummy forrum but also since the post will be in a real forum it will display that. If you make the post in an existing forum then this wouldn't be a problem. Otherwise you will need a guru to help with creating case switches etc.

Posted: Wed Jan 25, 2006 3:25 pm
by Akira2
Code it in by hand? What file do I have to edit then?

But actually, it's not the top forum in my index, its the second forum in the first category... I cant edit it myself?

Isnt there maybe a way to edit it in the mysql database? So that the forum just wont show its topics but only the content of the only topic inside of it.

Posted: Wed Jan 25, 2006 3:43 pm
by biscuitkeeper
I have come up with a bit of a hack to get this to work.. it's not exactly bullet proof but it seems to work..

Go to: ACP - Forum Admin - Management
Edit the forum you want to link and make the forum name..

Code: Select all

<a href=viewtopic.php?p=xxx>Forum Name</a>
Obviously changing the Topic ID and forum title to suit your needs..

The only ill effect it seemed to have on my site was it made the nav bar font slightly incorrect but only for the post which it pointed to.

Posted: Wed Jan 25, 2006 4:39 pm
by Akira2
Hey thanks man! It worked! What a nice, simple solution! I dont even have that ill effect you mentioned, mayb because I use another template?

Nice tip you gave me! Thanks again :)

Posted: Thu Jan 26, 2006 9:37 am
by biscuitkeeper
Excellent! 8)

Posted: Thu Jan 26, 2006 4:24 pm
by Lumpy Burgertushie
biscuitkeeper wrote: Excellent! 8)

good post, excellent help.


Posted: Thu Jan 26, 2006 5:48 pm
by RipperĀ®
That works great, with only one problem I can see. The posts and replies entries on the right of the forum show "0" and it says "no posts" in the last column.

If I can hack that somehow, this would be a perfect way to add topic links to the home page. Maybe biscuitkeeper should write a mod....... (I'll look into it too, but I don't have that kind of time right now).

One other thing I found out that might help others looking to add content to their index page..... You can add HTML links in the forum descriptions too. I added the Topics Anywhere mod into each forum description. It lists the latest announcement in that particular forum. It works great.
You can see it here: