[UCP] Navigation & Profile (template) hack

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Floris
    Senior Member
    • Dec 2001
    • 37767

    [UCP] Navigation & Profile (template) hack

    User Control Panel Navigation > Icon, Link & Profile Hack

    What does this one do?
    Actually three things!
    a) Replaces the '>'-text from the top navigation with an '>'-icon
    b) This will make the words: 'User Control Panel' from the top navigation clickable
    c) Displays which users control panel is viewed and made the username clickable (result = profile of that user)

    Why did you make this?
    Why not
    Everytime I changed my profile, I wanted to see the result. I had to load the memberlist up again and search my username in it and click on it. Now when I saved my profile, I get swooped back to the Control Panel's home where I can directly click on it for result.

    The Code
    Walkthrough:
    • Goto the Admin Control Panel and login as an administrator
    • From the left menu, browse down to the "Template"-section and select 'Modify'
    • Click on 'Expand' and browse down to the "User Control Panel Templates" and click 'Expand' again
    • Click on 'edit' from "usercp"
    • Find:
      Code:
      <!-- breadcrumb -->
      <table cellpadding="2" cellspacing="0" border="0" width="{[i][/i]contenttablewidth}" {[i][/i]tableinvisibleextra} align="center">
      <tr>
      	<td><img src="{[i][/i]imagesfolder}/vb_bullet.gif" align="middle" alt="vBulletin">
      	<normalfont><b><a href="index.php?s=$session[sessionhash]">$bbtitle</a> &gt;
      	User Control Panel For $bbuserinfo[username]</b></normalfont></td>
      	<td align="right">$forumjump</td>
      </tr>
      </table>
      <!-- /breadcrumb -->
    • And replace that with:
      Code:
      <!-- breadcrumb -->
      <table cellpadding="2" cellspacing="0" border="0" width="{[i][/i]contenttablewidth}" {[i][/i]tableinvisibleextra} align="center">
      <tr><td>
      <img src="{[i][/i]imagesfolder}/vb_bullet.gif" align="middle" alt="$bbtitle">
       <normalfont><b>
      <a href="index.php?s=$session[sessionhash]">$bbtitle</a> 
      <img src="images/nav.gif" align="middle"> <a href="usercp.php?s=$session[sessionhash]">
      User Control Panel</a>
       &[i][/i]nbsp;&[i][/i]nbsp;&[i][/i]nbsp;&[i][/i]nbsp;&[i][/i]nbsp; User: 
      <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$bbuserinfo[userid]">
      $bbuserinfo[username]</a></b></normalfont></td>
      <td align="right">$forumjump</td></tr></table>
      <!-- /breadcrumb -->
    • Click on 'Save' and go see if it worked!


    Uhm, when I click the other links in the Control Panel, the new icon doesn't show up! What is wrong?
    This template hack is only for the 'My vB Home' -section!

    version?
    Tested with vBulletin 2.2.x and works like a charme.

    The result
    This is how it looks now, on my web site
    Last edited by Floris; Thu 23 May '02, 11:04am.
  • Floris
    Senior Member
    • Dec 2001
    • 37767

    #2
    The nav.gif image

    And here is the nav.gif image which you need to put in your publick_html/forum/images/ dir

    (right-click mouse > save as..)
    Last edited by Floris; Mon 28 Oct '02, 4:05am.

    Comment

    • Airwaves
      Member
      • Oct 2001
      • 63

      #3
      how do you get the image to appear everywhere else aswell (the arrow image that is)?

      thanks in advance !

      Comment

      • Floris
        Senior Member
        • Dec 2001
        • 37767

        #4
        Originally posted by Airwaves
        how do you get the image to appear everywhere else aswell (the arrow image that is)?

        thanks in advance !
        I apply that arrow replace-hack on other templates too. (and there are a few)
        Last edited by Floris; Mon 28 Oct '02, 4:06am.

        Comment

        • Airwaves
          Member
          • Oct 2001
          • 63

          #5
          being a dumass, can you please tell me which ones and where please?

          and also the code, i see that it will be slightly different to the one you posted above? because its not usercp.php this time is it?

          Comment

          • Floris
            Senior Member
            • Dec 2001
            • 37767

            #6
            Originally posted by Airwaves
            being a dumass, can you please tell me which ones and where please?

            and also the code, i see that it will be slightly different to the one you posted above? because its not usercp.php this time is it?

            Just browse over your forum, and where you see the > instead of nav.gif, just try to search for that template. And instead of the &gt code, put this image: <img src="images/nav.gif" align="middle"> and save the template.
            Last edited by Floris; Mon 28 Oct '02, 4:06am.

            Comment

            • Airwaves
              Member
              • Oct 2001
              • 63

              #7
              you dont know off hand where they are then?

              the one on the posts and when you click a forum category and inthe user cp ?

              cheers

              Comment

              • c-prompt
                Senior Member
                • Apr 2001
                • 1309

                #8
                In "navbar" template

                Find
                Code:
                &gt; $navbits
                Replace &gt; with your arrow button.

                Then in "nav_joiner" replace what is there with your arrow image as well.

                Comment

                • Floris
                  Senior Member
                  • Dec 2001
                  • 37767

                  #9
                  Originally posted by Airwaves
                  you dont know off hand where they are then?

                  the one on the posts and when you click a forum category and inthe user cp ?

                  cheers
                  Login to the admin control panel and goto the template section, click on search and enter &gt; as a search term .. No, I do not know them by head, but you can guess too. announcement, wol, errors, faqs, .. there are enough that are not linked to the navbar bit.
                  Last edited by Floris; Mon 28 Oct '02, 4:06am.

                  Comment

                  • Airwaves
                    Member
                    • Oct 2001
                    • 63

                    #10
                    thanks

                    Comment

                    • VeRTeX
                      Member
                      • Nov 2001
                      • 33

                      #11
                      great hack, thanks alot once again

                      your "how to" series of modifications is becoming my favourite, keep them coming = ]

                      Comment

                      • Floris
                        Senior Member
                        • Dec 2001
                        • 37767

                        #12
                        I think I have bad news. They are great, because I saw those stuff on other web site's and I wanted it too, and had to figure it out from scratch. I put them together and posted them. But currently I am not working anything that can be published publicly. But who knows that the future brings. With vB3 around the corner, ..

                        Comment

                        • Xelation
                          Senior Member
                          • Jan 2002
                          • 229
                          • 3.0.0 Beta 5

                          #13
                          worked like a charm, Thanks once again for your great template edits!

                          Comment

                          • Floris
                            Senior Member
                            • Dec 2001
                            • 37767

                            #14
                            Originally posted by Xelation
                            worked like a charm, Thanks once again for your great template edits!
                            Xelation A special secret thank you for your worthy donation

                            Comment

                            • Xelation
                              Senior Member
                              • Jan 2002
                              • 229
                              • 3.0.0 Beta 5

                              #15
                              Originally posted by xiphoid
                              Xelation A special secret thank you for your worthy donation
                              np

                              Comment

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