PDA

View Full Version : Cheat-master30's vBulletin Modifications


cheat-master30
8th July 2007, 09:47 PM
Various Unusual vB Cpde

This modification is not a modification in the sense it requires actual template modifications, but nor is it an add on product in that it uses what is already in vBulletin, as in the BB code manager. This is simply a collection of BB code for features not found online often, and that use standards compliant, semantic code to add curious codes that may come in handy sometimes.

Updates:

1.7- Added a new code (definition) which looks awesome.
1.6- Tried a new code (Internet Explorer only, see post 3.

1.5- Updated Definition List codes. New one allows infinite child items and is perfectly XHTML valid. Also has bold headings.

1.4- Added glossary link code and blink code (plus instructions on how to block blinking text in Firefox

1.3- Forgot to add css for overline in second post.

1.2- Added some other sites to the search link code

1.1- Added horizontal rule and Spoiler code

1.0- Release BB Code

Support:

None needed

Notes:

Works in any version with custom BB code as an option. Tested in vBulletin 3.6.4, 3.6.5, 3.6.6 and 3.6.7 PL1.

Definition List

This allows users to insert a definition list in their posts, and when used with the definition entry BB code, has a wide range of uses.

Code to use:

Code:

Replacement:
Code:
<dl>{param}</dl>
Example:

Code:
A scripting language used for interactive features such as forums online
Description:

Use this to insert the definition titles and actual definitions.

Definition Entry (only use with definition list)

Code to use:

Code:
Defineobject
Replacement:

Code:
<dt><b>{option}</b></dt>
<dd>{param}</dd>
Example:

Code:
A scripting language used for interactive features such as forums online
Description:


Use this to add more definitions to a definition list.

Heading

Use this to add heading tags of types 1 to 6 in posts. Semantic titles without using bold formatting or italics and that show the level of heading to screen readers and the like.

Tag:

Code:
h
Replacement:

Code:
<h{option}>{param}</h{option}>
Example:

Code:

This is a heading
Description:

Use this to insert a semantically correct heading into the document by modifying the text you want made into a bold, large heading. This is good semantics for headings in guides and FAQs.

Google Search:

Use this to link to Google for the specified term. I also attached a modified one which replaces Google with Ask Jeeves. Can also be used for any search engine online if you know how to edit the code.

Tag:

Google


Replacement:

Code:
<a href="http://www.google.com/search?hl=en&q={param}">{param}</a>
Example:

Nintendo

To use with Ask Jeeves, use this replacement for the replacement part in BB code manager:

Code:

<a href="http://uk.ask.com/web?q={param}">{param}</a>
For Wikipedia, use this for the replacement:

Code:

<a href="http://en.wikipedia.org/wiki/{param}">{param}</a>
To use Lycos, use this for a replacement:

Code:

<a href="http://search.lycos.com/?query={param}&x=0&y=0">{param}</a>
To use Yahoo, use this as a replacement:

Code:

<a href="http://search.yahoo.com/search?p={param}&fr=yfp-t-501&toggle=1&cop=mss&ei=UTF-8&vc=&fp_ip=UK">{param}</a>
To use the Internet Archive, use this as a replacement:

Code:

<a href="http://web.archive.org/web/*/{param}">{param}</a>
You can use each one as a different code if you wish.

Right to left

Changes text direction.

Tag:

rtl

Replacement:
Code:
<bdo dir="rtl">{param}</bdo>
Example:

This is weird
Description:

Turns the text from the right to left rather than left to right.

Sub Script

This is explanatory in the name.

Tag:

sub

Replacement:

Code:
<sub>{param}</sub>
Example:


test
Description:

Make text that floats slightly below the main text.

Sup Script

Tag:

sup

Replacement:

Code:
<sup>{param}</sup>
Example:

33
Description:

This is for text floating slightly above, like how the 3 floated up and to the right of a number shows that it is cubed.

Horizontal Line

Tag:

hr

Replacement:

Code:
<hr /><p>{param}</p>
Example:
Code:

Description:

Use this to insert a horizontal line into your post with your highlighted content below it.

Note: The text between goes in the p tags under the line.

Spoiler Tag

Tag:

spoiler

Replacement:
Code:
<span class="Spoiler">{param}</span>
In CSS, add:
Code:
.Spoiler {background: white; color: white; outline: 1px solid black;}

Example:

There is a Shroob Princess in the Cobalt Star in Mario and Luigi 2
Description:

You can use this to hide spoilers in games, movies and from TV shows by turning the text the same colour as the background.

Blinking Text

Tag:

blink

Replacement:

Code:
<span style="text-decoration: blink">{param}</span>

Example:

text
Description:

This allows you to have blinking text.

To disable blink in Firefox if favourite forums implements above code:

Type in about:config then set browser.blink_allowed so the value is false. No more blinking text.

Glossary Category Link:

Tag:

Glossary

Replacement:

Code:
<a href="glossary.php?do=listglossary&c=1&ltr={param}&pp=0">{param}</a>
Example:

A
Description:

Use this to link to a glossary category.

Definition

Tag:

def

Replacement:

Code:
<dfn title="{option}">{param}</dfn>
Add in CSS:

Code:
dfn {font-weight: bold; background: gold; cursor: help; }
Example:

[def=A popular games company]Nintendo
Description:

Use to post definitions, without a list, in your posts or signatures.


Supporters / CoAuthors

cheat-master30

More BB Code


Overline


Just as there is strike through and underlined text, this allows for overlined text in posts.

Tag:

overline

Replacement:

Code:
<span class="overline">{param}</span>
In CSS add:

.overline {text-decoration: overline; }

Example:

This text is overlined

Description:

Use this to overline text, whatever that is.

Lower Case Text

This turns all text within tags to lower case.

Tag:

lowercase

Replacement:

Code:
<span class="lower">{param}</span>
Put this in your CSS stylesheets:

Code:
.lower {text-transform: lowercase; }
Example:


THIS IS TEXT!

Make all text uppercase:

Makes all selected text fully upper case. Does not stay upper case when copied to Notepad or any other text editor.

Tag:

allcaps

Replacement:

Code:
<span class="Capital">{param}</span>
Put this in CSS:

Code:
.Capital {text-transform: uppercase; }

Example:

This is some capital text

Description:

Use to capitalise all text selected.

Small Capital Letters

Tag:

smallcaps

Replacement:

Code:
<span class="smallcaps">{param}</span>
Add in CSS:
Code:
.smallcaps {font-variant: small-caps; }
Example:

This is in small caps

Description:

This turns all lower case text between the tags into small upper case letters. Weird but cool.

Miscellaneous BB Code (either non standard, non semantic or overdone codes)

No Follow Links

Tag:

nofollow

Replacement:

Code:
<a href="{option}" rel="nofollow">{param}</a>
Example:


Code:
Non indexable Google Link
Description:

Use this when linking to not liked sites to stop them getting page rank from the links from forum pages! Such as Cheat Code Central!

Sample Code Output:

Tag:

samp

Replacement:

Code:
<samp>{param}</samp>
Example:

This is the sample output from a PHP String.
Description:

Allows you to show sample output from a code or program.

Marquee

WARNING: This code is not W3C Compliant! If you use, this will invalidate the FAQ page as standards compliant just as most video codes do, so encourage members NOT to use it in signatures and the like! It also does not work in some Netscape browsers.

Tag:

move

Replacement:

Code:
<marquee>{param}</marquee>
Example:

Moving text example

Description:


Allows for the creation of moving text. Note, please keep moving text to a minimum as not only is it very annoying after a short time, but also not correct XHTML 1.0 coding, which will cause various topic pages and the FAQ to fail validation. Try not to place in signatures.

Abbrieviations

Tag:

Abbrieviate

Replacement:


Code:
<abbr title="{option}">{param}</abbr>

Example:


DSU

Description:

Use this for abbrieviations such as shortened forms of words and stuff.

Flip Vertical (theoretically works, not tested, only works in Internet Explorer)

Tag:

flipv

Replacement:

Code:
<span class="flipv">{param}</span>
In CSS:

Code:
.flipv {
filter: flipv;
}
Example:

Text goes here

Description:

Use to post upside down text in posts.

Flip Horizontal


Tag:

fliph

Replacement:

Code:
<span class="fliph">{param}</span>

In CSS:

Code:
.fliph {
filter: fliph;
}
Description:

Use to flip text horizontally.

Notes: Best to use the 'Right to left BB code, that's standards compliant.

cheat-master30
8th July 2007, 09:57 PM
User Controls in Admin CP

Version 1.3 released with more features such as event reminders, subscriptions and attachment viewing through the Admin CP.

This simply adds a menu with these options to the sidebar in the Admin Control Panel:
View Forum Home Page
Read PMs
Read PMs
Send PM
Edit Signature
Edit Profile
Edit Options
Edit Avatar
Manage Groups
Friends/Enemies
Event Reminders
Subscriptions
Attachments
Moderator ControlsTo use it, all you need is to download the attached XML file and upload to includes/xml in the directory your forum is in. Now, I don't know if this is 100% secure, so if anyone finds anything wrong, just post it.

To ensure this is only used with those by a license, download at vBulletin.org topic below:

http://www.vbulletin.org/forum/showthread.php?t=150794

cheat-master30
8th July 2007, 09:59 PM
Manage Forum Accounts 2.0 Paginated

Note: This is not a replacement for my old modification, just a newer version which works differently, and where the links are now on a separate page in the Admin Control Panel.

Files to upload:

Manageaccount.php to admincp (or whatever it's name) folder

cpnav_manage.xml to includes/xml

Installation Time:

2 minutes at most. Unless you accidentally corrupted the file or I've made a mistake with the version attached.

Installation Procedure:
Download both files (either normal php file if you have IB Pro Arcade and VS Interactive Profiles installed or other php file if you have neither installed).
Open file in Notepad or Wordpad
Replace u=1 with u=[id number] if you deleted your initial vB admin account.
Upload to directories said.
Done.The files:

To ensure this is only used by those with a license, download files at vBulletin.org:

http://www.vbulletin.org/forum/showthread.php?t=151683

cheat-master30
8th July 2007, 10:01 PM
Notes:

If you want to know why the modifications are tied to those on the vBulletin.org site, it is because I have also released all modifications there under the same usernmame. Note my profile and home page there:

http://www.vbulletin.org/forum/member.php?u=193355

Support given at vBulletin.org

Images of each modification given there.

cheat-master30
8th July 2007, 10:03 PM
So, what do you think of my modifications I released at vBulletin.org then?

NintenDan
9th July 2007, 08:47 AM
Quite the long read, haven't read all of it myself, but looks technical, and I'm not that good at BB codes, so yeah...