Announcement

Collapse
No announcement yet.

A few questions i would really appreciate your help on

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • A few questions i would really appreciate your help on

    Part 1:

    Im working on my new forum and i have been trying to stop the breadcrumb putting the current forum on a new level. For example it would be like this:

    My Forum > My Catagory
    News Forum
    Instead i would like it to be like this:

    My Forum > My Catagory > News Forum
    My attempts ended in stopping the current forum from even showing, i was hoping it would be just removing a <br /> but it doesnt look like it. Can you shed any light please?

    ---------------------------------------------------------------

    Part 2:

    I am trying to merge the bar that has the forums name and the bar that says the columbs name, i.e posts, threads etc. I have removed the latter bar, here is an image showing what i want to do a little better:

    http://img186.imageshack.us/img186/9589/vbhelpyn3.jpg

    Is it possible to add the text on the right so it lines up with each columb? Alternatively i could put images on the right with the right spacing so it lines up with the columbs with the text in the image. Either one would be great. Can it be done?

    Thank you for any help you can give!

    James

  • #2
    1) This would require a plugin (and i am not even sure if it can be done with only a plugin, probably need a plugin at the 'navbits' hook location). I suggest you try to get help on this at www.vbulletin.org.

    2) Not really sure i understand what you want.
    Want to take your board beyond the standard vBulletin features?
    Visit the official Member to Member support site for vBulletin Modifications: www.vbulletin.org

    Comment


    • #3
      http://img186.imageshack.us/img186/9589/vbhelpyn3.jpg

      This image pretty much sums it up, i want to label up the top catagory bar with the column names, either using text lined up or images with the right spacing. I.e At the moment the bar doesnt have the last post column labled.

      Comment


      • #4
        2. Edit your forumhome_forumbit_level1_nopost template, and find this code:

        Code:
                <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
                    <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
                    <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
                    <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                    <if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
                </td>
        Replace it with this code:

        Code:
                <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">3<else />2</if>">
                    <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
                    <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                    <if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
                </td>
        <td class="tcat" style="text-align:center;">Last Post</td>
        <td class="tcat" style="text-align:center;">Threads</td>
        <td class="tcat" style="text-align:center;"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>Posts</td>
        Edit: that'll change all your category bars.
        Otherwise you'll need to add a template conditional to check for the first forumid number, and only display the new code then.
        Best Regards
        Colin Frei

        Please don't contact me per PM.

        Comment


        • #5
          Colin, you are a legend! Thank you, it worked perfectly!

          Comment


          • #6
            1. This can be done with a template modification.

            Just to make sure that we are working to the same requirements, attached is a copy of my navbar. If that's want you are aiming for, let me know and I'll post up the navbar changes required. (sorry if it is a bit small - I'm very limited with image editing at the moment)
            Attached Files
            Kerry-Anne :)

            Twitter Blog

            www.peterska2.com www.worldnewszone.com www.popularusenetgroups.com www.superclickers.co.uk www.forumsforchrist.com www.browsergameplanet.com

            Comment


            • #7
              Yes thats it, the current forum is on the same level instead of putting it on the level below after the little folder image.

              Can you please tell how you did it?

              James

              Comment


              • #8
                In your navbar template

                FIND

                Code:
                <if condition="is_array($navbits)">
                            <table cellpadding="0" cellspacing="0" border="0">
                            <tr valign="bottom">
                                <td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
                                <td>&nbsp;</td>
                                <td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
                            </tr>
                            <tr>
                                <td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><if condition="$_SERVER['REQUEST_METHOD'] == 'POST'"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="" border="0" /><else /><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a></if> <strong>$navbits[lastelement]</strong></td>
                            </tr>
                            </table>
                and replace with
                Code:
                <if condition="is_array($navbits)">
                            <table cellpadding="0" cellspacing="0" border="0">
                            <tr valign="bottom">
                                <td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
                                <td>&nbsp;</td>
                                <td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]<if condition="$_SERVER['REQUEST_METHOD'] == 'POST'"> &gt; <else /> &gt; </if> <strong>$navbits[lastelement]</strong></td>
                            </tr>
                            </table>
                Then save it.
                Kerry-Anne :)

                Twitter Blog

                www.peterska2.com www.worldnewszone.com www.popularusenetgroups.com www.superclickers.co.uk www.forumsforchrist.com www.browsergameplanet.com

                Comment


                • #9
                  Worked perfectly, thank you for the help guys, i really appreciate it.

                  Comment


                  • #10
                    Originally posted by Colin F View Post
                    2. Edit your forumhome_forumbit_level1_nopost template, and find this code:

                    Code:
                            <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
                                <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
                                <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
                                <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                                <if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
                            </td>
                    Replace it with this code:

                    Code:
                            <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">3<else />2</if>">
                                <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
                                <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                                <if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
                            </td>
                    <td class="tcat" style="text-align:center;">Last Post</td>
                    <td class="tcat" style="text-align:center;">Threads</td>
                    <td class="tcat" style="text-align:center;"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>Posts</td>
                    Edit: that'll change all your category bars.
                    Otherwise you'll need to add a template conditional to check for the first forumid number, and only display the new code then.
                    I have applied the following changes but now im having a problem setting the width of the columns. I started to follow the following tutorial:

                    but i couldnt find this:

                    <tr align="center">
                    <td class="thead">&nbsp;</td>
                    <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
                    <td class="thead" width="175">$vbphrase[last_post]</td>
                    <td class="thead">$vbphrase[threads]</td>
                    <td class="thead">$vbphrase[posts]</td>
                    <if condition="$vboptions['showmoderatorcolumn']">
                    <td class="thead">$vbphrase[moderator]</td>
                    </if>
                    </tr>
                    In the forumhome or forumhome_forumbit_level1_nopost. The only place i could find that code was in my forum display template. I changed that section of the code to this on my forumdisplay:

                    <tr align="center">
                    <td class="thead" width="5%">&nbsp;</td>
                    <td class="thead" width="50%" align="$stylevar[left]">$vbphrase[forum]</td>
                    <td class="thead" width="25%">$vbphrase[last_post]</td>
                    <td class="thead" width="10%">$vbphrase[threads]</td>
                    <td class="thead" width="10%">$vbphrase[posts]</td>
                    <if condition="$vboptions['showmoderatorcolumn']">
                    <td class="thead" width="0%">$vbphrase[moderator]</td>
                    </if>
                    </tr>
                    But nothing changed. First of all should i revert that bit of forumdisplay to what it was (without the new percents in). Then, where should i be looking for that section of code after i have done the modification quoted above? If you need me to post any of the code inside my templates just let me know.

                    Comment


                    • #11
                      You will also need to do this in your forumhome template, as forumdisplay does not affect the main forums index.
                      Kerry-Anne :)

                      Twitter Blog

                      www.peterska2.com www.worldnewszone.com www.popularusenetgroups.com www.superclickers.co.uk www.forumsforchrist.com www.browsergameplanet.com

                      Comment


                      • #12
                        But i dont have this code in the forumhome template

                        <tr align="center">
                        <td class="thead">&nbsp;</td>
                        <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
                        <td class="thead" width="175">$vbphrase[last_post]</td>
                        <td class="thead">$vbphrase[threads]</td>
                        <td class="thead">$vbphrase[posts]</td>
                        <if condition="$vboptions['showmoderatorcolumn']">
                        <td class="thead">$vbphrase[moderator]</td>
                        </if>
                        </tr>

                        Comment


                        • #13
                          This is driving me nuts. To get the spacing right i am told that i need to find this code in forumhome:

                          Code:
                          <tr align="center">
                          <td class="thead">&nbsp;</td>
                          <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
                          <td class="thead" width="175">$vbphrase[last_post]</td>
                          <td class="thead">$vbphrase[threads]</td>
                          <td class="thead">$vbphrase[posts]</td>
                          <if condition="$vboptions['showmoderatorcolumn']">
                          <td class="thead">$vbphrase[moderator]</td>
                          </if>
                          </tr>
                          But my forumhome goes as follows:

                          Code:
                          $stylevar[htmldoctype]
                          <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
                          <head>
                           <!-- no cache headers -->
                           <meta http-equiv="Pragma" content="no-cache" />
                           <meta http-equiv="Expires" content="-1" />
                           <meta http-equiv="Cache-Control" content="no-cache" />
                           <!-- end no cache headers -->
                           $headinclude
                           <title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
                          </head>
                          <body>
                          $header
                          $navbar
                          <!-- main -->
                          <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
                          $forumbits
                          <tbody>
                           <tr>
                            <td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
                             <a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
                             <if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
                             <a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>
                            </strong></div></td>
                           </tr>
                          </tbody>
                          </table>
                          $forumhome_markread_script
                          <!-- /main -->
                          <br />
                          <br />
                          <!-- what's going on box -->
                          <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
                          <thead>
                           <tr>
                            <td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
                           </tr>
                          </thead>
                          <if condition="$show['loggedinusers']">
                          <!-- logged-in users -->
                          <tbody>
                           <tr>
                            <td class="thead" colspan="2">
                             <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
                             <a href="online.php$session[sessionurl_q]" rel="nofollow">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
                            </td>
                           </tr>
                          </tbody>
                          <tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
                           <tr>
                            <td class="alt2"><a href="online.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
                            <td class="alt1" width="100%">
                             <div class="smallfont">
                              <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
                              <div>$activeusers</div>
                             </div>
                            </td>
                           </tr>
                          </tbody>
                          <!-- end logged-in users -->
                          </if>
                          <tbody>
                           <tr>
                            <td class="thead" colspan="2">
                             <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
                             <phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
                            </td>
                           </tr>
                          </tbody>
                          <tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
                           <tr>
                            <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
                            <td class="alt1" width="100%">
                            <div class="smallfont">
                             <div>
                              $vbphrase[threads]: $totalthreads,
                              $vbphrase[posts]: $totalposts,
                              $vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
                               <span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
                              </if>
                             </div>
                             <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
                            </div>
                            </td>
                           </tr>
                          </tbody>
                          <if condition="$show['birthdays']">
                          <!-- today's birthdays -->
                          <tbody>
                           <tr>
                            <td class="thead" colspan="2">
                             <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
                             $vbphrase[todays_birthdays]
                            </td>
                           </tr>
                          </tbody>
                          <tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
                           <tr>
                            <td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td>
                            <td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
                           </tr>
                          </tbody>
                          <!-- end today's birthdays -->
                          </if>
                          <if condition="$show['upcomingevents']">
                          <tbody>
                           <tr>
                            <td class="thead" colspan="2">
                             <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
                             <if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
                            </td>
                           </tr>
                          </tbody>
                          <tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
                           <tr>
                            <td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
                            <td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
                           </tr>
                          </tbody>
                          </if>
                          </table>
                          <br />
                          <!-- end what's going on box -->
                          <!-- icons and login code -->
                          <table cellpadding="0" cellspacing="2" border="0" width="100%">
                          <tr valign="bottom">
                           <if condition="!$show['guest']">
                            <!-- member logout -->
                            <td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]"  onclick="return log_out()"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
                            <!-- end member logout -->
                           </if>
                          </tr>
                          </table>
                          <!-- / icons and login code -->
                          $footer
                          </body>
                          </html>
                          I did a search for that code and the only time i could see it coming up is in the usercp. Can anyone please help?

                          James
                          Last edited by peterska2; Wed 24 Jan '07, 2:16am. Reason: added code tags

                          Comment


                          • #14
                            This won't be there because you changed your template earlier in this thread with Colin.

                            You need to edit your forumhome_forumbit_level2_post template

                            Find
                            Code:
                            <td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
                            replace with
                            Code:
                            <td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]" width="100%">
                            find
                            Code:
                            <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
                            replace with
                            Code:
                            <td class="alt2" nowrap="nowrap" width="175">$forum[lastpostinfo]</td>
                            Kerry-Anne :)

                            Twitter Blog

                            www.peterska2.com www.worldnewszone.com www.popularusenetgroups.com www.superclickers.co.uk www.forumsforchrist.com www.browsergameplanet.com

                            Comment

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