PDA

View Full Version : End-User Options - AnyVersion: User select a Custom Cursor


Kaasie
02-14-2010, 10:00 PM
Hello all...

I am posting this in this forum as i use 3.7 but this goes for all versions as this one is simple to apply everywhere..

What does this do

It gives the user the option to use a custom cursor and if so select one in a pulldown selection menu


Estimated installation time: 10 minutes

OK here we go, this one is so simple you will laugh your socks off!

Step 1 uploading files
create a directory cursors in the forums image directory
unrar the attached cursors
upload them in the directory forums/images/cursors

Note: some of these cursors in the package were made by: azn_romeo_4u (https://vborg.vbsupport.ru/member.php?u=128916)

Step 2 Creating new Profile Fields
Go into the adminpanel and add a new User Profile Field


Profilefield1
Type: Single-Selection Radio Buttons
Title: Use Custom Cursors
Description: Set this to Yes if you want to use a custom cursor
Options: Yes No
Set default: Yes if you want the hack to be turned on by default
Field required: If you like

Private Field: No
Searchable on memberslist: No
Show on memberslist: No
Allow user to input their own value for this option: No

Which page displays this option?: my choice was into other options but you can put it where it fits you best


Hit Save and add a new User Profile Field

Step 3 Creating new Profile Fields
Profilefield2
Type: Single-Selection menu [pulldown]
Title: Set your Cursor
Description: Which cursor would you like? select one of your likings NB: this option only works if use custom cursor is set to YES

Options:

arrow_blue
arrow_green
arrow_grey
arrow_magenta
arrow_orange
arrow_pink
arrow_red
arrow_yellow
dart
double
green
guitar
hearts
pencil
rainbow
red
rocket
sharpblue
sword
yellow


Set default: Yes if you want the hack to be turned on by default
Field required: If you like

Private Field: No
Searchable on memberslist: No
Show on memberslist: No
Allow user to input their own value for this option: No

Which page displays this option?: my choice was into other options but you can put it where it fits you best.


Hit Save and remember these 2 profilefields


Step 4 Edit Templates
go to the Style manager and select Edit Templates
Open the template: header

Customize the Fields and the DomainName to your needs and put it where you like it best in your header template

Change the code below where [fieldXX] is your profilefield number ie [field31]

respectively to your board field numbers alter the XX below:


<if condition=" $bbuserinfo[fieldXX]== Yes">
<style>
<!--
BODY {
CURSOR: url(http://www.yourdomain.com/forums/images/cursors/$bbuserinfo[fieldXX].cur);
}
-->
</style>

</if>



Congrats: You are done!
Simple and Effective
Step 5
Be nice add a comment /suggestion
Step 6
Be Thankful That vBulletin exists! ;)

Kaasie
02-15-2010, 09:00 AM
What I REALLY would like is after selecting an image that it would give a preview thumbnail..
If anyone could point me into the right direction i would be happy to add it