PDA

View Full Version : HTML/PHP problem



Spatvark
11-15-2002, 02:22 AM
OK, I'm hardly the worlds greatest at HTML, let alone PHP but this strikes me as an incredibly simple problem...

<span class="mainmenu"> <a href="{U_FAQ}" class="mainmenu"><img src="templates/blueSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3">{L_FAQ}</a></span>

How come the href is {U_FAQ}? I don't understand how that can be a valid href... the same goes for {L_FAQ} That comes up as FAQ on the page...

Anyone understand this? My reckoning is that it's referring to another php file where the {U/L_BLAH} things were assigned to different things.

Now, to clarify, I'm referring to a tpl file in a phpBB 2.0.1 file (overall_header.tpl for any who actually run a phpBB fora) and I want to add another link in but I don't dare since I don't understand how it all works.

Would it be possible for me to use a bog-standard href link? e.g.

<a href="http://blah.blah.com/forums/blah.php" class="mainmenu"><img src="templates/blueSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="FAQ 2" hspace="3">FAQ 2</a></span>

And finally, did anyone understand any of what I just said? =P

(p.s. can you mods/admins in the know make it so it doesn't convert the html here? I can't remember the codes so I need someone to do it for me...)

crono_logical
11-15-2002, 02:45 AM
My guess is that the {U_REF} etc. stuff are references to variables which didn't get replaced correctly or something in the PHP code, but I'm not a PHP guy, so can't say for sure.

Yes, you can use the standard links if you want, but the reason why variables were used instead is to make it easier for everything to update should the site URL change, for example - that is, if they parsed correctly :p

Samuraid
11-16-2002, 01:18 AM
Yes, the {L_FAQ} is replaced by phpBB with the a string of text from the $language array. If you want, you can remove the {L_FAQ} and replace it with your own text, but make sure you back up the original file. And you can also add your own link in there.

Spatvark
11-16-2002, 02:39 AM
*huggles Terralith* Finally! Someone who understands me!

Methinks you're gonna be the first person I hassle with my phpBB problems now :evil: