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
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 20th, 2008, 05:35 AM
Question Customizing $stylevar?

Ken,
do you know whether it's kinda possible to overwrite the $stylevar and its value for Guests only? Guests have a different Forum view because my $stylevar value is currently at '0' (Picture 2) and for me the best view. But for Guests the view is kinda too wide (Picture 1).

Best would be for Guests: $stylevar['spacersize']= '25px'; and for Members: $stylevar['spacersize']= '0px';


So I tried in creating a seperate Plugin as follows...
Code:
Guests are not allowed to view code. To enable the
viewing of code, please click 'here' to register.

But that way of Coding does not work. I have no clue what the cause can be, but this won't work. Did you ever figured out how (if ever) it works? Seems to be that the $stylevar cannot be changed. Or am I wrong? I've embedded 3 Pics of my Local Test Forum. Whenever you have a lil bit time would you please so kind to see, what's wrong?
Thank you in advance -Mike
Attached Images
File Type: jpg Forum_Guests.jpg (109.1 KB, 4 views)
File Type: jpg Forum_Members.jpg (122.8 KB, 2 views)
File Type: jpg Sizes_and_Dimensions.jpg (144.4 KB, 2 views)

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 20th, 2008, 05:52 AM
Default Re: Customizing $stylevar?

vb edits this when it process the php and no of no way to over wright it - not much of a php coder

if i needed to do it would hard code it into the "spacer_open" template with a conditional.

assuming that the spacer is set at "0" this should work:
spacer_open
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
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 20th, 2008, 08:19 AM
Default Re: Customizing $stylevar?

Quote:
Originally Posted by Santai View Post
vb edits this when it process the php and no of no way to over wright it - not much of a php coder
Yes that's right. Right now I found the answer in that Thread Custom StyleVars at vBCom. The answer like you said, is in Post #5. Never knew that but I still learn every day

Quote:
Originally Posted by Santai View Post
if i needed to do it would hard code it into the "spacer_open" template with a conditional.
Indeed there are some Templates I don't know. "spacer_open" or "spacer_close" are some of them. Not only that you're ahead of schedule, but that's exactly what I was looking for. And that works indeed
Thank you so much for your help, Ken

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 20th, 2008, 08:27 AM
Thumbs up Re: Customizing $stylevar?

never a problem -- as i learn something every day.
vB has a lot of options, and conditionals is some times easier

just ask and will help out all i can, sharing what we know is good.
Quote:
Originally Posted by MikeD View Post
Yes that's right. Right now I found the answer in that Thread Custom StyleVars at vBCom. The answer like you said, is in Post #5. Never knew that but I still learn every day

Indeed there are some Templates I don't know. "spacer_open" or "spacer_close" are some of them. Not only that you're ahead of schedule, but that's exactly what I was looking for. And that works indeed
Thank you so much for your help, Ken

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
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 20th, 2008, 08:33 AM
Default Re: Customizing $stylevar?

So I hope to get a chance to return the favor. Let's see...

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


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