Page 1 of 1

Mod needed - Forum Links

Posted: Fri Sep 01, 2006 5:07 pm
by Leon
As you can see on my portal i have changes it quite havily this 2 days.
http://www.volunteerforum.se/portal.php (What do you think about the portal btw)

But one thing that i had to do was to "hard code" the
forum names, so when i update the names or change them
later in the admin panel, then i must change it on the portal too
because they are hard coded..


Is there some kind of code built into phpBB that let me use something like:

Link - Name
{U_forumID?f=1} - {L_forumID?f=1}
{U_forumID?f=2} - {L_forumID?f=2}
{U_forumID?f=53} - {L_forumID?f=53}
{U_forumID?f=47} - {L_forumID?f=47}

And that code be something like this as you see it:
Volunteer Jobs Wanted
Volunteer Jobs Offered
Projects/Idées/Economy
Travel Companions

Example:
<A href="{U_forumID?f=1}">{L_forumID?f=1}</A>
Gets:
Volunteer Jobs Wanted

So i dont need to change it twice (Once in the admin panel and one in the portal)

Posted: Fri Sep 01, 2006 9:44 pm
by Leon
Well i just come up whit this:

I could use this part:

<A href="viewforum.php?f=1">{L_forumID?f=1}</A>

Because
"viewforum.php?f=1"
never gona change if i just change the name on it ect.
But how about the name then :?: hmm

I wonder why i dident think of that first :oops:
(I have used that so many times before)


Update:
I found this in the index_body.tpl file:
<a href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a>

But i tried to use it on the testpage but it woulden't work
(Diden't show anything)

Posted: Sat Sep 16, 2006 3:14 pm
by battye
Sorry about the delay in replying. :oops:

If I understand correctly you want to display a list of all of the forums, with links to them?

Do you want links to EVERY FORUM, or just those that guests can access?

Posted: Sat Sep 16, 2006 5:15 pm
by Leon
If you take a look at my portal then you see the links to the forum
in the middle (Cant miss them)

Ans as it is now they are all hard coded like this:
<A HREF="viewforum.php?f=24" TARGET="_self">Organization Talk</A>


As you can see the "Organization Talk" name dosen't change
if i change in the name in the admin panel, so is there a way
to fix this problem ?