Home Forum  Search the forums : 
GFXstyles
Go Back   GFXstyles » Style forums » Articles / Plug ins
Articles / Plug ins from How to install a style and changes to the templates for our free styles to add them into plug ins.

Reply
 
LinkBack Thread Tools Display Modes
Santai's Avatar
3ts'
Join Date: Mar 2006 Age: 53 Location: USA - tn Posts: 7,675 Santai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to behold Send a message via MSN to Santai Send a message via Yahoo to Santai Send a message via Skype™ to Santai Santai is offline
April 6th, 2007, 09:04 AM
Default User adjustable style width

use it here - user cp -> edit options -- along with the post bit choice, legacy or modern .

not my idea, just how its' done here.

was originally discovered on vB.org - this is how we did/ do it and are using it : sorry no plug in :

Add a new profile field :
remember the field number : is the id : or from the User profile fields can get it :
you will need only the number itself : ours is 14 .


Admin-CP : User Profile Fields : Add New User Profile Field :

Single-Selection Radio Buttons

Title :
Default Style Width

Description : we use - can have html in it :
Code:
Guests are not allowed to view code. To enable the
viewing of code, please click 'here' to register.

Items Per Line :
0

Options : Enter the options that the user can choose from. Separate each option with a new-line (carriage return).
770px
970px
80%
90%
95%
100%

this can be in any order : the fist option is the default setting! 770px here .
if you dont' wish them all, then dont' put them here - the plug in should be edited also, but is not necessary .

Set Default : Will set the first non blank option as the default. :
Yes

Display Order :
your choice

Field Required:
No : as it will use what is the first line or the default set in the plug in code or options .
( we also have it enable to show at registration )

Field Editable by User :
Yes

Private Field :
your choice

Field Searchable on Members List :
your choice


Show on Members List :
your choice


Optional Input :

Allow user to input their own value for this option :
No

Max length of allowed user input :
n/a

Field Length :
n/a

Regular Expression :You may require the input field to match a regular expression (PCRE).
n/a

Display Page :
your choice ( options other is where we have it )

-------------------------------------------------------------------------

Add a New Plugin :

Admin-CP : Plugins & Products : Add New Plugin :

Product :
vBulletin

Hook Location : This specifies the location within the vBulletin code of the hook that will fire this plugin function.
golbal_start

Title : Enter a title that describes this plugin.
Style width

Execution Order : Use this field to enter the order in which code at the same hook will be executed.
would leave at what its' at unless you know what your doing .

Plugin PHP Code : Use this field to enter the PHP code that you would like to be run.
Code:
Guests are not allowed to view code. To enable the
viewing of code, please click 'here' to register.

Plugin is Active : If this plugin is marked as inactive, it will not be called by vBulletin. Use this to temporarily turn plugins on and off.
On ( or can turn it on later, wont' work unless its on )


change the field number 14 here to what yours is for the User profile Field .

change the 100% to the default width you wish .

do not edit any more than this unless you understand or know what you are doing .
the ' must be there, where they are along with everything else ! formatting is very important.

trouble reading or copying the code : thread options - Print may be easier to read/ copy the code.


for our upDated styles, and those from April 06 2007 on.
(members area will be finished no later than monday)

in the header find :
Code:
Guests are not allowed to view code. To enable the
viewing of code, please click 'here' to register.

change to :
Code:
Guests are not allowed to view code. To enable the
viewing of code, please click 'here' to register.

depend on which style you did this on you may wish to change the code block width in the StyleVars.
we use 480 for fixed and 600 for fluid


if you have an older style ask, will need the style name and a link to see it.

Kenj
a certain amount of common sense is necessary to survive in this world !
insanity leaves you no restrictions !
// support is available via the forums, post the apparent discrepancy or help needed . \\
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  Reply With Quote top of post top of page
captainslater's Avatar
Junior Member
Join Date: May 2007 Location: Austria Posts: 16 captainslater will become famous soon enough Send a message via ICQ to captainslater captainslater is offline
June 2nd, 2007, 07:59 AM
Default Re: User adjustable style width

Strange, I've done everything mentioned above and it don't work.
I've downloaded the Revisited style yesterday, installed and it is still remaining at 100%.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  Reply With Quote top of post top of page
Santai's Avatar
3ts'
Join Date: Mar 2006 Age: 53 Location: USA - tn Posts: 7,675 Santai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to behold Send a message via MSN to Santai Send a message via Yahoo to Santai Send a message via Skype™ to Santai Santai is offline
June 2nd, 2007, 08:47 AM
Default Re: User adjustable style width

is this showing up in the user cp ?

if it is -

check the plug in and make sure it is turned on / vBulletins default is off .

Kenj
a certain amount of common sense is necessary to survive in this world !
insanity leaves you no restrictions !
// support is available via the forums, post the apparent discrepancy or help needed . \\
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  Reply With Quote top of post top of page
captainslater's Avatar
Junior Member
Join Date: May 2007 Location: Austria Posts: 16 captainslater will become famous soon enough Send a message via ICQ to captainslater captainslater is offline
July 11th, 2007, 06:03 PM
Default Re: User adjustable style width

Yeah is it showned up, that's the strange thing.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  Reply With Quote top of post top of page
Santai's Avatar
3ts'
Join Date: Mar 2006 Age: 53 Location: USA - tn Posts: 7,675 Santai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to behold Send a message via MSN to Santai Send a message via Yahoo to Santai Send a message via Skype™ to Santai Santai is offline
July 12th, 2007, 04:49 AM
Default Re: User adjustable style width

is it enabled now for the styles width . is at 95% .
was not a setting -
if not could you add
Code:
Guests are not allowed to view code. To enable the
viewing of code, please click 'here' to register.

to the very top of the header template and make sure that the plug in is enabled .

need to see if its doing the replacement ( looking at the source )

thinking the field number or if widths were changed maby 2 are not coiensiding properly .

Kenj
a certain amount of common sense is necessary to survive in this world !
insanity leaves you no restrictions !
// support is available via the forums, post the apparent discrepancy or help needed . \\
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  Reply With Quote top of post top of page
captainslater's Avatar
Junior Member
Join Date: May 2007 Location: Austria Posts: 16 captainslater will become famous soon enough Send a message via ICQ to captainslater captainslater is offline
July 30th, 2007, 01:09 PM
Default Re: User adjustable style width

Ok, stupid as I am I forgot to add the variable to the header
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  Reply With Quote top of post top of page
MikeD's Avatar
Style Owner
Join Date: Feb 2007 Age: 44 Location: Cologne, Germany Posts: 70 MikeD has a spectacular aura aboutMikeD has a spectacular aura about MikeD is offline
August 11th, 2008, 02:09 PM
Default Re: User adjustable style width

How about a shorter Code with just 5 lines...

Code:
Guests are not allowed to view code. To enable the
viewing of code, please click 'here' to register.


Acura/Honda Legend Forum Cologne's Honda Legend Enthusiasts Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  Reply With Quote top of post top of page
Santai's Avatar
3ts'
Join Date: Mar 2006 Age: 53 Location: USA - tn Posts: 7,675 Santai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to behold Send a message via MSN to Santai Send a message via Yahoo to Santai Send a message via Skype™ to Santai Santai is offline
August 11th, 2008, 03:15 PM
Thumbs up Re: User adjustable style width

nice -- should have thought of it but

been a while since i figured out this way and this one is even better --thanks much .. .
Quote:
Originally Posted by MikeD View Post
How about a shorter Code with just 5 lines...

Code:
Guests are not allowed to view code. To enable the
viewing of code, please click 'here' to register.


Kenj
a certain amount of common sense is necessary to survive in this world !
insanity leaves you no restrictions !
// support is available via the forums, post the apparent discrepancy or help needed . \\
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  Reply With Quote top of post top of page
No avatar
Junior Member
Join Date: Oct 2008 Posts: 2 Khaled will become famous soon enough Khaled is offline
October 31st, 2008, 12:14 AM
Default Re: User adjustable style width

sorry for elementary question (new to vBulletin)

you said
Quote:
in the header find :
where can find this html file


thanks in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  Reply With Quote top of post top of page
Santai's Avatar
3ts'
Join Date: Mar 2006 Age: 53 Location: USA - tn Posts: 7,675 Santai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to beholdSantai is a splendid one to behold Send a message via MSN to Santai Send a message via Yahoo to Santai Send a message via Skype™ to Santai Santai is offline
October 31st, 2008, 04:02 AM
Default Re: User adjustable style width

the template is in the : admin cp -> expand : Styles & Templates -> click on : Style Manager.

right side : expand the templates for the style : drop down menu or the button . the templates are in alphabetical order, or in groups - header is in the list.
Quote:
Originally Posted by Khaled View Post
sorry for elementary question (new to vBulletin)

you said


where can find this html file


thanks in advance

Kenj
a certain amount of common sense is necessary to survive in this world !
insanity leaves you no restrictions !
// support is available via the forums, post the apparent discrepancy or help needed . \\
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  Reply With Quote top of post top of page
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Styles - Adjustable width - available here .. . Santai Announcements / news and updates 0 May 24th, 2007 05:34 PM
Adjustable width available for Fluid styles . Santai Announcements / news and updates 1 February 14th, 2007 03:57 PM
Cyb-advanced-stat width broke style daman Styles Support : free : 2 February 9th, 2007 04:36 PM


All times are GMT -5. The time now is 09:31 AM.
style developed @ GFXstyles
Content Relevant URLs by vBSEO 3.2.0
Copyright © 2006-2008 gfxstyles.com