corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » php question


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author php question
Tom J
Organiser: South Wales
Premium Member


Registered: 8th Sep 03
Location: Bridgend
User status: Offline
5th Jan 07 at 22:58   View User's Profile U2U Member Reply With Quote

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">&nbsp;&nbsp;&nbsp;<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>&nbsp;&nbsp;&nbsp;<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 />
&nbsp; </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

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Offline
5th Jan 07 at 23:01   View Garage View User's Profile U2U Member Reply With Quote

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

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Offline
5th Jan 07 at 23:04   View Garage View User's Profile U2U Member Reply With Quote

<table width="100%" cellspacing="2" cellpadding="2" border="0">

<tr>
<td align="left" valign="middle" width="100%">
<span class="nav">&nbsp;&nbsp;&nbsp;
<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>
&nbsp;&nbsp;&nbsp;
<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 />
&nbsp;
</span>
</td>

</tr>
Ian
Site Administrator

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Offline
5th Jan 07 at 23:06   View Garage View User's Profile U2U Member Reply With Quote

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

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Offline
5th Jan 07 at 23:13   View Garage View User's Profile U2U Member Reply With Quote

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
5th Jan 07 at 23:54   View User's Profile U2U Member Reply With Quote

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
6th Jan 07 at 00:59   View User's Profile U2U Member Reply With Quote

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

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Offline
6th Jan 07 at 04:17   View Garage View User's Profile U2U Member Reply With Quote

Not sure, not familiar with exactly how phpBB deals with templates.
drax
Member

Registered: 5th Feb 05
Location: Sittingbourne, Kent
User status: Offline
6th Jan 07 at 11:35   View User's Profile U2U Member Reply With Quote

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

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
does anyone know Jodi_the_g Geek Day 2 1017
22nd Dec 04 at 02:26
by Ian
 
php question - need more help :( Dom Geek Day 10 827
22nd Jan 05 at 00:02
by Dom
 
Corsa c20xe with weber 45's Donnalisa Help Zone, Modification and ICE Advice 11 962
13th Dec 05 at 15:27
by lee mitchell
 

Corsa Sport » Message Board » Off Day » Geek Day » php question 29 database queries in 0.0084929 seconds