Trouble customising PM links

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jamesyfx
    Senior Member
    • Feb 2005
    • 679
    • 3.6.x

    Trouble customising PM links

    Hello, I'm busy customising the templates but I'm having issues altering the PM Links (e.g. 'Welcome x, you have x messages, x total').

    I want to alter the code (But I don't want to change the phrase.. as it's only for a specific theme where I want the code to change)

    I just want it to say..

    'Welcome, x. (Private Messages: Unread 0)'

    I want to Private Messages text to be a link to the inbox.

    So far I have done this.. but in a nasty way.

    The link 'works', but it's not proper code - 'private.php?%3Ca%20href='

    I don't know what to do, could someone help me please?

    I've attached a screenshot of the problem child.

    Code:
    <div class="left">
    <phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase> (<a href="private.php?<phrase 1="$vbphrase[unread_x_nav_compiled]">$vbphrase[private_messages_nav]</phrase></a>)
    </div>
    And the code. I know it's broken. I just wanted it to 'work'. Now I want it to be... 'proper'. Thanks.
    Attached Files
  • jamesyfx
    Senior Member
    • Feb 2005
    • 679
    • 3.6.x

    #2
    Bump. I'd like some help on this please.

    Thanks.

    Comment

    • peterska2
      Senior Member
      • Oct 2003
      • 8869
      • 3.7.x

      #3
      change
      Code:
      private.php?<phrase
      to
      Code:
      private.php?[COLOR=Red][B]">[/B][/COLOR]<phrase

      Comment

      • jamesyfx
        Senior Member
        • Feb 2005
        • 679
        • 3.6.x

        #4
        Thank you I haven't fixed my problem but it has helped me delve deeper into this issue...

        I noticed I totally don't understand how this code works. >.>

        I've changed my code a bit, and it now reads:

        Code:
        <div class="left">
        <phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase> (<phrase 1="$vbphrase[unread_x_nav_compiled]">$vbphrase[private_messages_nav]</phrase>)
        </div>
        And the link I get is

        private.php[ARG:3 UNDEFINED]

        I'm starting to think this isn't possible just with html >.>

        Could I pick your brains a little more please? It's much appreciated!

        Comment

        • jamesyfx
          Senior Member
          • Feb 2005
          • 679
          • 3.6.x

          #5
          Bump.

          I really can't figure this out on my own.

          Comment

          • jamesyfx
            Senior Member
            • Feb 2005
            • 679
            • 3.6.x

            #6
            Bump.

            I'm still not getting anywhere with this by myself.

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...