Go Back   vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Please Register to get full access to the forums.
Post New Thread  Reply



#1   05-25-2008, 11:02 AM
Jason_A will become famous soon enough Join Date: Apr 2008 Posts: 17
iTrader: (0)
Questions...!


I have a new style - which I'll be implementing into my main forums soon. Just need to get a few things straight first, though.

The style can be seen on my dev board: Dev Board - Powered by vBulletin

Please note: It is still not complete. Need some new images, forum_new.gif ect.

Onto the questions:

As you can see, it has a sidebar. However, for certain usergroups, I want to give them the option to disable the viewing of the sidebar, thus displaying the full width of the forums. I have created a User Profile Field in UserCP so that they can disable the viewing of the sidebar. Now, onto the coding. How can I make it this User Profile Field show for certain users, and where would I put the code?

Now, for it to disable the viewing of the sidebar when set to remove in UserCP. In my footer, where the sidebar is coded, I have put the following under <!-- Sidebar Start --> :

Code:
<if condition="is_member_of(->, 6) AND  == YES">
7 is the user profile field number, to show the sidebar or not. However, the sidebar then just disappears and the forums are at full width, regardless of the setting in my UserCP. I'd appreciate if anyone could help me on this.

Onto my next question: With my new style, I wish to have different colour variations of it. I know this can be achieved simply by creating a new style, however, I'm planning giving users an option in their UserCP where they can pick which colour scheme they want. Can this be achieved without creating a new style just for some colour changes, and background images. It will be basically the same, just different coloured? If not, I could just create a new style, but what coding can I use with a profile field so that they can change the colour scheme -- I can simply remove quick_stylechooser. Thanks!
--------------------
techsupportteam.org
Quote   |  



#2   05-26-2008, 04:01 AM
Jason_A will become famous soon enough Join Date: Apr 2008 Posts: 17
iTrader: (0)
Re: Questions...!


That is the only if statement I'm using, just before the sidebar coding.I can't think of how to get it to work.

Basically, I just want to give certain usergroups an option in their UserCP to turn the sidebar off and view the full forums width - but I have yet to come to a solution.
--------------------
techsupportteam.org
Quote   |  



#3   05-26-2008, 06:18 AM
Jason_A will become famous soon enough Join Date: Apr 2008 Posts: 17
iTrader: (0)
Re: Questions...!


Ok, I've got somewhat further.

I created a user profile field, then added the following if statement before my sidebar coding:
Code:
<if condition="is_member_of(, 6) AND ['fieldX'] == 'YES'">
That seems work with enabling and disabling the option. However, the sidebar is then removed for guests some some strange reason, and the user profile field still shows for every member. Any ideas?
--------------------
techsupportteam.org
Quote   |  



#4   05-26-2008, 12:30 PM
Send a message via AIM to Brandon Send a message via MSN to Brandon Send a message via Yahoo to Brandon Brandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of light Join Date: Jul 2006 Posts: 11,296 Location: Topeka, KS
iTrader: (0)
Submit your RSS feeds to over 58 search engines and top directories
Re: Questions...!


it's strange it shows for other users still, to me it should only show to the 6 usergroup with that code.
--------------------
Brandon Sheley / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.


Add our Facebook Blog, Group and LinkedIn group.. Thanks
Stay up to date by installing our Tool Bar
Quote   |  



#5   05-28-2008, 12:14 PM
Jason_A will become famous soon enough Join Date: Apr 2008 Posts: 17
iTrader: (0)
Re: Questions...!


I thought that, but is is obviously wrong somewhere. That code also stops working after a while, so no matter what option I set in UserCP - the sidebar doesn't show. Hmm.....
--------------------
techsupportteam.org
Quote   |  



#6   05-28-2008, 12:33 PM
Send a message via AIM to Caddyman Send a message via MSN to Caddyman Send a message via Yahoo to Caddyman Send a message via Skype™ to Caddyman Caddyman is just really niceCaddyman is just really niceCaddyman is just really nice Join Date: Dec 2006 Posts: 3,381 Location: Delaware
iTrader: (0)

[CaRP] XML error: Mismatched tag at line 7 - This appears to be an HTML webpage, not a feed.
Re: Questions...!


Your link asked me for a username and password?
--------------------
Philly Sports
Delaware Online
PA Forums
Quote   |  



#7   05-28-2008, 06:23 PM
Jason_A will become famous soon enough Join Date: Apr 2008 Posts: 17
iTrader: (0)
Re: Questions...!


Thanks for your replies. MaddenGods, that causes the following error:

Quote:
The following error occurred when attempting to evaluate this template:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/adminfunctions_template.php(3717) : eval()'d code on line 53
Thus, I cannot save the template......

====================

On top of this, I'd like to ask some more question (but the first question is the main priority atm).

How do I display an image for the login (submit) button? I've tried:

Code:
<td><input type="image" class="image" value="./images/colortheory/misc/loginb.gif" tabindex="104" title="" accesskey="s" /></td>
Doesn't seem to show the image, though -- any ideas?

===================

Now, I want to pull the latest say 10 threads and display in one of my blocks on the sidebar. I tried putting the following in, but this didn't work:
Code:
<script type="text/javascript" src="external.php?type=js"></script> 
<script language="" type="text/javascript"></script>
I know I have to use something like that, but can't quite remember. Any ideas?

Thanks!
--------------------
techsupportteam.org

Last edited by Jason_A; 05-29-2008 at 05:08 PM..
Quote   |  



#8   05-31-2008, 07:42 AM
Jason_A will become famous soon enough Join Date: Apr 2008 Posts: 17
iTrader: (0)
Re: Questions...!


Managed to do the sidebar if statement. Now, does anyone know the answers to my above questions ?
--------------------
techsupportteam.org
Quote   |  
Post New Thread  Reply
vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Tags
condition, side bar

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
2 Questions Carpenter1 vBulletin Questions 5 08-24-2007 10:58 PM
Some vB Questions bdude vBulletin Questions 3 08-24-2007 09:51 PM
Some Questions? sagar vBulletin Questions 2 03-13-2007 02:53 PM
Questions blind-eddie vBulletin Questions 1 01-04-2007 01:33 PM
Hello & Questions ... bloody Introduce Yourself 3 12-22-2006 02:27 PM


All times are GMT -6. The time now is 01:31 PM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions
vBulletin Skins, Styles, Templates, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory