corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » PHPBB2 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 PHPBB2 Question
Tom J
Organiser: South Wales
Premium Member


Registered: 8th Sep 03
Location: Bridgend
User status: Offline
19th May 07 at 00:21   View User's Profile U2U Member Reply With Quote

When you are hovering over a button along the top of the forum, it displays some text in a box underneath, cant find the file to change this?

Ian
Site Administrator

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Online
19th May 07 at 01:29   View Garage View User's Profile U2U Member Reply With Quote

Is it alternative text for the images? Do you have an example?
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
19th May 07 at 08:13   View Garage View User's Profile U2U Member Reply With Quote

in your corresponding tpl file, find the html for the image and change its alt value
Tom J
Organiser: South Wales
Premium Member


Registered: 8th Sep 03
Location: Bridgend
User status: Offline
19th May 07 at 10:49   View User's Profile U2U Member Reply With Quote

forgot to explain,
in overall header it has stuff like {L_PROFILE} and {L_SEARCH} in the alt values, also the links have {U_PROFILE} and {U_SEARCH}

which files do these refer to? I created a new page called links.php and {U_LINKS} and {L_LINKS} wont work?
Tom J
Organiser: South Wales
Premium Member


Registered: 8th Sep 03
Location: Bridgend
User status: Offline
19th May 07 at 10:51   View User's Profile U2U Member Reply With Quote

if i try to use {U_LINKS} it just refers me back to the forum index

[Edited on 19-05-2007 by Tom J]
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
19th May 07 at 10:51   View Garage View User's Profile U2U Member Reply With Quote

those values will be dynamically generated from includes\page_header.php

most L_ values are taken from the language php files in Lang\english\lang_main.php

[Edited on 19-05-2007 by Steve]
PaulW
Member

Registered: 26th Jan 03
Location: Atherton, Greater Manchester
User status: Offline
19th May 07 at 10:53   View User's Profile U2U Member Reply With Quote

L_PROFILE and L_SEARCH are the language descriptiors. ie, Profile, Search - they are defined within your language file.

U_PROFILE and U_SEARCH are the URL's to the different pages. They are defined in the .php file (ie, index.php)

but as your heading the header, you need to edit includes/header.php or something like that.
Tom J
Organiser: South Wales
Premium Member


Registered: 8th Sep 03
Location: Bridgend
User status: Offline
19th May 07 at 11:00   View User's Profile U2U Member Reply With Quote

thanks guys, the U and the L values were set out in page header.php
I was looking through all the lang files and couldn't find them
Tom J
Organiser: South Wales
Premium Member


Registered: 8th Sep 03
Location: Bridgend
User status: Offline
19th May 07 at 11:03   View User's Profile U2U Member Reply With Quote

http://www.swfconline.co.uk/forum/links.php

also on this page it keeps on wanting to send any links back to links.php, any ideas?

its a page set up like FAQ so it is like an array, and i've input it in lang_links.php

$faq[] = array("--","Links");
$faq[] = array("http://www.sheff-weds.co.uk", "Unofficial Sheffield Wednesday Website");

[Edited on 19-05-2007 by Tom J]
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
19th May 07 at 11:07   View Garage View User's Profile U2U Member Reply With Quote

the array is a number generated youl notice

http://www.swfconline.co.uk/forum/links.php#0

you need to make the URL the same as what it appears at in your HTML

[Edited on 19-05-2007 by Steve]
Tom J
Organiser: South Wales
Premium Member


Registered: 8th Sep 03
Location: Bridgend
User status: Offline
19th May 07 at 11:10   View User's Profile U2U Member Reply With Quote

so what would it be if i wanted a link to corsasport there?
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
19th May 07 at 11:12   View Garage View User's Profile U2U Member Reply With Quote

in that case surely you wouldnt be displaying it as http://www.sheff-weds.co.uk then?
Tom J
Organiser: South Wales
Premium Member


Registered: 8th Sep 03
Location: Bridgend
User status: Offline
19th May 07 at 11:14   View User's Profile U2U Member Reply With Quote

do you mean i will need a href and the tags? my brain is fried i can't think
Tom J
Organiser: South Wales
Premium Member


Registered: 8th Sep 03
Location: Bridgend
User status: Offline
19th May 07 at 11:15   View User's Profile U2U Member Reply With Quote

i was asking what it would be for corsasport so you could give me an example
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
19th May 07 at 11:18   View Garage View User's Profile U2U Member Reply With Quote

ah, do you have any sort of HTML tpl file for the links page?
Tom J
Organiser: South Wales
Premium Member


Registered: 8th Sep 03
Location: Bridgend
User status: Offline
19th May 07 at 11:22   View User's Profile U2U Member Reply With Quote

yes, links body.tpl
Tom J
Organiser: South Wales
Premium Member


Registered: 8th Sep 03
Location: Bridgend
User status: Offline
19th May 07 at 11:23   View User's Profile U2U Member Reply With Quote

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td align="left" class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></td>
</tr>
</table>

<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<th class="thHead">{L_FAQ_TITLE}</th>
</tr>
<tr>
<td class="row1">
<!-- BEGIN faq_block_link -->
<span class="gen"><b>{faq_block_link.BLOCK_TITLE}</b></span><br />
<!-- BEGIN faq_row_link -->
<span class="gen"><a href="{faq_block_link.faq_row_link.U_FAQ_LINK}" class="postlink">{faq_block_link.faq_row_link.FAQ_LINK}</a></span><br />
<!-- END faq_row_link -->
<br />
<!-- END faq_block_link -->
</td>
</tr>
<tr>
<td class="catBottom" height="28">&nbsp;</td>
</tr>
</table>

<br clear="all" />

<!-- BEGIN faq_block -->
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<td class="catHead" height="28" align="center"><span class="cattitle">{faq_block.BLOCK_TITLE}</span></td>
</tr>
<!-- BEGIN faq_row -->
<tr>
<td class="{faq_block.faq_row.ROW_CLASS}" align="left" valign="top"><span class="postbody"><a name="{faq_block.faq_row.U_FAQ_ID}"></a><b>{faq_block.faq_row.FAQ_QUESTION}</b></span><br /><span class="postbody">{faq_block.faq_row.FAQ_ANSWER}<br /><a class="postlink" href="#Top">{L_BACK_TO_TOP}</a></span></td>
</tr>
<tr>
<td class="spaceRow" height="1"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<!-- END faq_row -->
</table>

<br clear="all" />
<!-- END faq_block -->

<table width="100%" cellspacing="2" border="0" align="center">
<tr>
<td align="right" valign="middle" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><br />{JUMPBOX}</td>
</tr>
</table>
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
19th May 07 at 11:24   View Garage View User's Profile U2U Member Reply With Quote

well in there you will have something like

<a href="{LINK}">{LINKNAME}</a>

well just make it

<a href="{LINK}">{LINK}</a>

or in the links.php make whatever the variable that outputs {link} to equal {linkname}
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
19th May 07 at 11:27   View Garage View User's Profile U2U Member Reply With Quote

quote:
Originally posted by Tom J
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td align="left" class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></td>
</tr>
</table>

<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<th class="thHead">{L_FAQ_TITLE}</th>
</tr>
<tr>
<td class="row1">
<!-- BEGIN faq_block_link -->
<span class="gen"><b>{faq_block_link.BLOCK_TITLE}</b></span><br />
<!-- BEGIN faq_row_link -->
<span class="gen"><a href="{faq_block_link.faq_row_link.U_FAQ_LINK}" class="postlink">{faq_block_link.faq_row_link.FAQ_LINK}</a></span><br />
<!-- END faq_row_link -->
<br />
<!-- END faq_block_link -->
</td>
</tr>
<tr>
<td class="catBottom" height="28"> </td>
</tr>
</table>

<br clear="all" />

<!-- BEGIN faq_block -->
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<td class="catHead" height="28" align="center"><span class="cattitle">{faq_block.BLOCK_TITLE}</span></td>
</tr>
<!-- BEGIN faq_row -->
<tr>
<td class="{faq_block.faq_row.ROW_CLASS}" align="left" valign="top"><span class="postbody"><a name="{faq_block.faq_row.U_FAQ_ID}"></a><b>{faq_block.faq_row.FAQ_QUESTION}</b></span><br /><span class="postbody">{faq_block.faq_row.FAQ_ANSWER}<br /><a class="postlink" href="#Top">{L_BACK_TO_TOP}</a></span></td>
</tr>
<tr>
<td class="spaceRow" height="1"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<!-- END faq_row -->
</table>

<br clear="all" />
<!-- END faq_block -->

<table width="100%" cellspacing="2" border="0" align="center">
<tr>
<td align="right" valign="middle" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><br />{JUMPBOX}</td>
</tr>
</table>


looks like you have too much stuff going on in ther that you dont need, i would personally rewrite something from scratch

se FAQ uses anchors and links to the anchor so it drops down.

you will need to dynamically generate these anchors etc.

easier to just write it so the link goes to the website not flick to somewhere else on your page

[Edited on 19-05-2007 by Steve]
Tom J
Organiser: South Wales
Premium Member


Registered: 8th Sep 03
Location: Bridgend
User status: Offline
19th May 07 at 11:28   View User's Profile U2U Member Reply With Quote

might just change it so it isn't like a faq page and just start with a basic html page
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
19th May 07 at 11:31   View Garage View User's Profile U2U Member Reply With Quote

either design it entirely in html, or just have a basic database query to pull the link from the database, if you wanted to make it so you could add links from the admin control panel etc
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
19th May 07 at 11:32   View Garage View User's Profile U2U Member Reply With Quote

i can make you a quick php file that includes the page header and footer that outputs to a blank html file if you want
Tom J
Organiser: South Wales
Premium Member


Registered: 8th Sep 03
Location: Bridgend
User status: Offline
19th May 07 at 11:35   View User's Profile U2U Member Reply With Quote

would this do the same thing?
http://www.phpbbhacks.com/download/1972
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
19th May 07 at 11:36   View Garage View User's Profile U2U Member Reply With Quote

no that creates a blank admin page

although this is

http://www.phpbbhacks.com/download/1945
Tom J
Organiser: South Wales
Premium Member


Registered: 8th Sep 03
Location: Bridgend
User status: Offline
19th May 07 at 11:39   View User's Profile U2U Member Reply With Quote

cheers steve

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
check out these highly modified cars lol Johnyboy18 General Chat 11 574
3rd Feb 05 at 22:36
by corsa_luvva_rach
 
pics from my car fresh outta the bodyshop! kz General Chat 23 991
19th Feb 05 at 20:25
by Ned
 
My SQL-Nearly there! Tom J Geek Day 31 2927
25th Dec 06 at 23:32
by Ian
 

Corsa Sport » Message Board » Off Day » Geek Day » PHPBB2 Question 28 database queries in 0.1912570 seconds