vbulletin's usage experience--a two-page improvement _php Tutorial

Source: Internet
Author: User
Tags php and mysql vbulletin
Fine Line box for table
In fact, vbulletin left behind the HTML specifications of the table outside the thin box traces, but also in all the table reserved "interface"-strictly speaking, this is not related to PHP, or database, because this is the web design. By default, however, the HTML code for these hairline boxes is commented out, not displayed, and not all templates have. Strictly speaking, the process of adding a thin frame is not hack, so it is not shared with everyone in the form of hack.
Although it seems that these fine lines will make some people feel good, but it is not easy to process, especially those who have set up their own templates, they have to modify more than 20 templates, to change the place is not many, but very troublesome.
Basically, the table for the default template for vbulletin has a feature, such as: "
, these tables have a cellspacing (cell void) of 1, and each cell has a specific base color on a regular basis, which ensures that the table has a 1-pixel-wide fine-line box as long as it is nested outside a specified background cell (table). The cellpadding (blank in cells) are 4, border (border) are 1, respectively, to ensure that the text and the table has a certain gap, and will not show clumsy HTML default border lines.
So, we can get a thin box effect by enclosing a table with a specified background on the outside of these tables. To make the color of this fine-line box also possible, I recommend using the vbulletin function of the "replace variable". For example, in front of the original table, add "

", add later"
and add a variable of {Tablebordercolor} with a value of #000000 in Control Panel, replace variable. This allows you to add a black thin line box.
There are many templates that need to be modified, all of them
EDITPOST,EDITPROFILE,EDITTHREAD,FORUMDISPLAY,FORUMHOME,GETINFO,GETIP,LOSTPW,
Memnerlist,memberlistsearch,modifyprofile,move,newreply,newthread,
Openclosethread,postpreview,searchintro,searchresults,sendtofriend,

Settopthread (hacked), showfav (hacked), Showthread,standarderror
There are a few points to note:
⒈postbit best not to process, because these fine lines will overlap, resulting in an ugly;
⒉ parts have two or more places to be processed, such as Memberlist, newreply, and Showthread;
⒊ if the template has a form, it's best to surround the table, but keep it nested correctly, however you want;
A bit of advice: if you have not installed vbulletin system, it is best to change inside the installtemplate, but note that ", $, all need to add." If you've already installed it, it's a bit of a hassle because you have to get rid of the existing system templates. See if this is needed-I don't want to change it.
Example: http://www.charmaine.f2s.com/
"Cursor Position"
When we speak or reply, we use the mouse to drag the scroll bar, and then click the input position, so that the cursor stay there, so as to start typing text. Is there a way to get the cursor to stay in place automatically?
Yes!
We can do this with the method focus () of the JavaScript object. Process several corresponding templates (mainly Editpost,editthread,newreply,newthread), and in the end add "

", where the form is Example: http://gogosoft.oso.com.cn/
vbulletin only uses PHP and MySQL to achieve dynamic, interactive Web programming, there are many aspects, such as the design of Web pages, the production of pictures, Client programming and so on we can fully play, to improve it.

http://www.bkjia.com/phpjc/532104.html www.bkjia.com true http://www.bkjia.com/phpjc/532104.html techarticle "Thin line box of the table" in fact, vbulletin left behind the HTML specification of the table outside the thin box traces, but also in all forms reserved "interface"--strictly speaking, This is with PHP, or several ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.