Tom J
Organiser: South Wales Premium Member
Registered: 8th Sep 03
Location: Bridgend
User status: Offline
|
building a forum, trying to get it to say the topic after the forum name
e.g Corsa Sport » Message Board » Off Day » Geek Day » php question
at the moment all i have is forum index > forum name
and i want the topic name to go after the forum name rather than on its own above.
i would of thought it would be:
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td align="left" valign="middle" width="100%"><span class="nav"> <a href="{U_INDEX}" class="nav">{L_INDEX}</a>
-> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td> <td align="left" valign="middle" colspan="2"><a class="maintitle" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><br />
- > <td align="left" valign="bottom" nowrap="nowrap"><span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a> <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></span></td>
<td align="left" valign="middle" colspan="2"><a class="maintitle" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><br />
<span class="gensmall"><b>{PAGINATION}</b><br />
</span></td>
</tr>
but it just brings it the furthest right on the page by the new topic and post reply buttons, anyone see where i've gone wrong?
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
Change
<table width="100%" cellspacing="2" cellpadding="2" border="0">
To
<table width="100%" cellspacing="2" cellpadding="2" border="2">
You'll get a better idea of how the tables are layed out.
Also ideally you should reformat all of that code so you can see the cell layout in the code.
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td align="left" valign="middle" width="100%">
<span class="nav">
<a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a>
</span>
</td>
<td align="left" valign="middle" colspan="2">
<a class="maintitle" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a>
<br />
- >
<td align="left" valign="bottom" nowrap="nowrap">
<span class="nav">
<a href="{U_POST_NEW_TOPIC}">
<img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" />
</a>
<a href="{U_POST_REPLY_TOPIC}">
<img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" />
</a>
</span>
</td>
<td align="left" valign="middle" colspan="2">
<a class="maintitle" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a>
<br />
<span class="gensmall">
<b>{PAGINATION}</b>
<br />
</span>
</td>
</tr>
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
I'm guessing you want
<a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a>
Changed to
<a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a> -> <a href="{U_VIEW_TOPIC}" class="nav">{TOPIC_TITLE}</a>
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
Might have to test that first though, I'm not sure what each of those things is. Basically if you want it in the same line then you want it inside that first <span> tag, and just play about with the {} bits to place them in there.
<a href="{U_VIEW_TOPIC}" class="nav">{TOPIC_TITLE}</a>
If you want it to be a link or drop the HTML bit if you just want plain text -
{TOPIC_TITLE}
|
Tom J
Organiser: South Wales Premium Member
Registered: 8th Sep 03
Location: Bridgend
User status: Offline
|
thats perfect Ian cheers
just need to get the hang of all the different terms and then i should be able to change things better
doing well so far got rid of a lot of unecessary junk as i want it plain and simple
[Edited on 05-01-2007 by Tom J]
|
Tom J
Organiser: South Wales Premium Member
Registered: 8th Sep 03
Location: Bridgend
User status: Offline
|
another question, i've been editing all of the files for the subsilver template, if i wanted to change the template to a different colour scheme, would i lose all of the editing i've done?
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
Not sure, not familiar with exactly how phpBB deals with templates.
|
drax
Member
Registered: 5th Feb 05
Location: Sittingbourne, Kent
User status: Offline
|
Tom, you should be able to just make a copy of the CSS file, and work on the colours from there, then link to it on the conf file (its been a while since i edited it)
Altho any inline css you have added to the headers and template includes will still be there of course
|