Web server logs - CHAPTER 12 STYLING PHPBB 361 For the

CHAPTER 12 STYLING PHPBB 361 For the Really Ambitious: Styling BBCode One of the unique features of phpBB 2.0 is that the BBCode functionality is now fully customizable via the template mechanism. Previous BBCode implementations hard-coded the formatting into the software, so this is a welcome addition. You can edit the blocks of BBCode by opening bbcode.tpl in your theme s directory. This step is entirely optional, but if done right, it can be a major enhancement to your board. One of my favorite modifications for the BBCode template is to edit the [URL] BBCode to display the location of the hyperlink in an HTML titleattribute inside the hyperlink. This way, when a user rolls over the link, the true destination of the link shows up in a tool tip. This can help foil pranksters and help cut down on people clicking links and then regretting that click. Here s how to do this: 1. Open bbcode.tpl and navigate to around line 58, which will begin with . 2. Near the end of the hyperlink code, by class=”postlink”, insert the following small piece of code before the right-angle bracket: title=”{URL}” 3. Save bbcode.tpland upload it to your server in the templates/yourtemplate directory. 4. Visit your board and look for a hyperlink embedded in one of the posts. With any luck, hovering over the hyperlink will display the target URL of the link in a tool tip. (All browsers since Internet Explorer 4.0, Netscape 6.0, and Mozilla will display these tool tips.) Testing Your Templates Now that you have customized your template, you will want to test it thoroughly to ensure there are no major problems. I recommend testing your template at different screen resolutions and in different browsers to ensure accessibility and platform parity between browsers. If at lower resolutions you have horizontal scroll bars on your page, for example, you will want to revisit some of your code to see if these can be prevented. Remember that you want your community to be as clean-looking as possible in as many browsers as possible, to make it inviting to your users. With the recent rise in usage of alternative browsers, you can t afford to target your site to one particular platform, because that could make your community uninviting to those who choose not to use that platform. Tip A Mozilla Firefox extension provides a very handy toolbar for debugging and testing your web sites, including your phpBB templates. Visit https://addons.mozilla.org/extensions/moreinfo.php?id=60 to download and install the Web Developer Toolbar for Mozilla Firefox. It works with all current versions of Firefox and can be quite a lifesaver!
You need excellent and relaible webhost company to host your web applications? Then pay a visit to Inexpensive Web Hosting services.

Leave a Reply