Welcome to GFXstyles
GFXstyles  
All times are GMT -5. The time now is 03:31 PM.
 »   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
Old April 6th, 2007, 08:04 AM
  post #1
3ts'
 
Santai's Avatar
 
Join Date: Mar 2006
Location: USA - tn
Age: 52
Posts: 6,261
Blog Entries: 6
Rep Power: 96 @ 666
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 behold
Send a message via MSN to Santai Send a message via Yahoo to Santai Send a message via Skype™ to Santai
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 . \\
donations appreciated
Santai is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 2nd, 2007, 06:59 AM
  post #2
Junior Member
 
captainslater's Avatar
 
Join Date: May 2007
Location: Austria
Posts: 16
Rep Power: 14 @ 66
captainslater will become famous soon enough
Send a message via ICQ to captainslater
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%.
captainslater is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 2nd, 2007, 07:47 AM
  post #3
3ts'
 
Santai's Avatar
 
Join Date: Mar 2006
Location: USA - tn
Age: 52
Posts: 6,261
Blog Entries: 6
Rep Power: 96 @ 666
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 behold
Send a message via MSN to Santai Send a message via Yahoo to Santai Send a message via Skype™ to Santai
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 . \\
donations appreciated
Santai is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 11th, 2007, 05:03 PM
  post #4
Junior Member
 
captainslater's Avatar
 
Join Date: May 2007
Location: Austria
Posts: 16
Rep Power: 14 @ 66
captainslater will become famous soon enough
Send a message via ICQ to captainslater
Default Re: User adjustable style width

Yeah is it showned up, that's the strange thing.
captainslater is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 12th, 2007, 03:49 AM
  post #5
3ts'
 
Santai's Avatar
 
Join Date: Mar 2006
Location: USA - tn
Age: 52
Posts: 6,261
Blog Entries: 6
Rep Power: 96 @ 666
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 behold
Send a message via MSN to Santai Send a message via Yahoo to Santai Send a message via Skype™ to Santai
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 . \\
donations appreciated
Santai is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 30th, 2007, 12:09 PM
  post #6
Junior Member
 
captainslater's Avatar
 
Join Date: May 2007
Location: Austria
Posts: 16
Rep Power: 14 @ 66
captainslater will become famous soon enough
Send a message via ICQ to captainslater
Default Re: User adjustable style width

Ok, stupid as I am I forgot to add the variable to the header
captainslater is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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