Results 1 to 4 of 4

Thread: HTML/PHP problem

  1. #1
    Super-Rad Recognized Member Spatvark's Avatar
    Join Date
    Oct 2001
    Location
    The Mysterious Island of Bigfoot Women
    Posts
    2,098
    Articles
    7
    Contributions
    • Former Cid's Knight
    • Former Senior Site Staff

    Default HTML/PHP problem

    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...)
    Seriously the best band in the world.
    And here's where I'll stay / For ten years and a day
    We're on a quest to find hidden treasure / And mystery on The Wild Sea

  2. #2
    Hypnotising you crono_logical's Avatar
    Join Date
    May 2001
    Location
    Back in Time
    Posts
    9,313
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    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
    Problems playing downloaded videos? Try CCCP


  3. #3
    Ominous Wanderer Tech Admin Samuraid's Avatar
    Join Date
    Oct 2001
    Posts
    5,522

    Default

    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.

  4. #4
    Super-Rad Recognized Member Spatvark's Avatar
    Join Date
    Oct 2001
    Location
    The Mysterious Island of Bigfoot Women
    Posts
    2,098
    Articles
    7
    Contributions
    • Former Cid's Knight
    • Former Senior Site Staff

    Default

    *huggles Terralith* Finally! Someone who understands me!

    Methinks you're gonna be the first person I hassle with my phpBB problems now :evil:
    Seriously the best band in the world.
    And here's where I'll stay / For ten years and a day
    We're on a quest to find hidden treasure / And mystery on The Wild Sea

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •