
03-09-2010, 06:09 AM
|
 |
|
|
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
FREQUENTLY ASKED QUESTIONS
- 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:
{vb:raw template_hook.postbit_userinfo_left}
{vb:raw template_hook.postbit_userinfo_right_after_posts}
{vb:raw template_hook.postbit_userinfo_right}
- 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:
PHP Code:
global $vbulletin; if ($vbulletin->options['ecshowmemberinfo']) { eval('$template_hook[postbit_userinfo_right_after_posts] .= " ' . fetch_template('downloads_memberinfo_postbit') . '";'); }
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 \"
- 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 in between the <li></li> tags. Just remember to remove the references to background images in the CSS file.
- 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 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.
- 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.
- 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.
- 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:
PHP Code:
/* Info Boxes CSS */ .info { font-size:10px; font-face:Arial; color: #CCCCCC; padding-left: 3px; padding-right: 3px; padding-top: 3px; padding-bottom: 3px; background-color: #181818; border-top: 1px solid #000000; border-right: 2px solid #000000; border-left: 1px solid #000000; border-bottom: 2px solid #000000; margin-bottom: 3px; }
Remember that this goes in your Additional CSS Definitions way down at the bottom of your Main CSS controls in the Style Manager.
|