Thread: Miscellaneous Hacks - DJ's Dynamic Tab Content for Postbit_Legacy
View Single Post
  #5  
Old 02 Jul 2008, 07:46
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Real name: Mark Daniel Martinez
FREQUENTLY ASKED QUESTIONS
  1. Some of the content of my postbit_legacy was done automatically by some modifications. How do I move that content into one of the tabs?
    Answer: Modifications that add content to your postbit automatically do so using one of your template hooks. Search your posbit_legacy template for a template hook close to the area the content you want to move is displayed and try moving it around to see if that's where it's controlled. The most common hooks to be used by modifications are:

    $template_hook[postbit_userinfo_left]
    $template_hook[postbit_userinfo_right_after_posts]
    $template_hook[postbit_userinfo_right]
  2. I have a lot of content that uses the template hooks, so everything ends up in one place. I can't split it up. How do I move the content where I want it to go?
    Answer: What you can try to do is check each of your modifications plugins that use the postbit's template hook. The easiest way to do this is to go through your Plugin Manager and peruse each of your product's plugins. Look for the plugins that use the postbit_display_complete hook. Disable them one at a time, each time checking to see if something disappears from your forum's postbits. You've likely found the right plugin.

    Now the next part is trickier. In some cases, the plugin calls a template to display it's information. So in those cases, you can turn the plugin off and look for the template it calls and copy and paste that template information into your postbit_legacy template instead. For instance, DownloadsII postbit information is controlled via the downloads_postbit_display_complete plugin. And all that plugin says is:


    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    Notice the fetch_template part calls a template called downloads_memberinfo_postbit. That's the template you can go into and copy and paste what's in there into your postbit_legacy, in turn turning this plugin off.

    In other cases, the plugin might reference a PHP file, in which case you'd have to go to that file and search for the code to duplicate. Another case might have the postibit code worked right into the plugin itself. In all cases though, provided you can find the HTML code used, you can just disable that one plugin and post the HTML code wherever you want (and however you want it to look) in your postbit_legacy template, removing any extraneous code inherent to PHP, like escaped quotations \"
  3. Can I use text or different images for the tabs?
    Answer: Absolutely. If you want different images, all you have to do is replace the two images in the postbit_tabs folder. If you want text instead, type what you want to appear in place of the &nbsp; in between the <li></li> tags. Just remember to remove the references to background images in the CSS file.
  4. Can I use different images for different tabs?
    Answer: Yes, but you would need to add the image code for each image to the posbit_legacy template. Replace each of the &nbsp; in between the <li></li> tags with the images of your choice. You may also need to remove the references to the background images in the CSS file. Note, though, that this has some limitations. For example, all your images would look the same all the time. Though they would be different from each other, they would not change when clicked on or deselected.
  5. I've made the template edits, but the tabs don't show. They just stretch out underneath each other like a list.
    Answer: This is because your CSS file can't be found. Are you sure you uploaded the postbit_tabs folder to your forum root? Your forum root is the folder you have physically installed vBulletin. For a lot of us, this is the same as our site root, but for those of us who have installed vBulletin in a subfolder, (such as a folder named forums) then that's where our postbit_tabs folder should be located. Also check to make sure your FTP client didn't drop any files during transfer by re-uploading the files.
  6. I've made the template edits, but when I click the tabs, nothing happens or the forum just jumps to the top of the page.
    Answer: This is because your Javascript file can't be found. Are you sure you uploaded the postbit_tabs folder to your forum root? Your forum root is the folder you have physically installed vBulletin. For a lot of us, this is the same as our site root, but for those of us who have installed vBulletin in a subfolder, (such as a folder named forums) then that's where our postbit_tabs folder should be located. Also check to make sure your FTP client didn't drop any files during transfer by re-uploading the files.
  7. My forum doesn't display those little boxes.
    Then you probably don't have the CSS code for .info on your forum. It's a commonly used CSS class name in many styles, but not all have it, or have different names. First take a moment to look at your forum and see if you don't have a box style somewhere that's being used and just use it's class (presuming it has one) rather than .info. Alternatively, you can use the following code, but change the color codes to match your forum:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    Remember that this goes in your Additional CSS Definitions way down at the bottom of your Main CSS controls in the Style Manager.

Last edited by Digital Jedi; 25 Feb 2010 at 03:29.
Reply With Quote