vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   End-User Options - AnyVersion: User select a Custom Cursor (https://vborg.vbsupport.ru/showthread.php?t=235903)

Kaasie 02-14-2010 10:00 PM

AnyVersion: User select a Custom Cursor
 
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

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:
Code:


<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


All times are GMT. The time now is 10:37 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01017 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete