Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 12-09-2012, 04:24 PM
Amaury Amaury is offline
 
Join Date: Nov 2011
Location: Ellensburg, WA
Posts: 1,075
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Customization Options Button between Sidebar and Member List Link and Username

Is it possible to move the Customization Options / Hide User Customizations / Show User Customizations button here and have it centered between those areas?

I know where where the code for it is in the MEMBERINFO template, I just don't know how to get it in that area and center it.

Reply With Quote
  #2  
Old 12-09-2012, 10:27 PM
WorldCraft WorldCraft is offline
 
Join Date: Jun 2010
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Step 1: remove the 'floatright' class from the button and wrap the entire <vb:if> </vb:if> in div tags

Step 2: add style="text-align:center;" to the div tag you made

Step 3: place the entire div one line under this div
HTML Code:
		<div class="profile_widgets member_summary userprof_moduleinactive userprof_moduleinactive_border<vb:if condition="$stylevar['textdirection'] == 'ltr'"> sidebarleft</vb:if>" id="sidebar_container">

Below is how it should look.


HTML Code:
		<div class="profile_widgets member_summary userprof_moduleinactive userprof_moduleinactive_border<vb:if condition="$stylevar['textdirection'] == 'ltr'"> sidebarleft</vb:if>" id="sidebar_container">
<!--Place button below-->
<div style="text-align:center;">
				<vb:if condition="$show_customize_profile">
					<button class="userprof_button hidden" id="profile_customization_button"><img src="{vb:stylevar imgdir_misc}/userprofile/paintbucket_icon.png" alt=""/>&nbsp;{vb:rawphrase customize_my_profile}</button>
				<vb:else />
					<vb:if condition="$show['userhastheme']">
						<form action="{vb:link member, {vb:raw userinfo}}" method="get" id="profile_swap_form" class="floatright">
							<input type="hidden" name="do" value="swapcss" />
							<input type="hidden" name="u" value="{vb:raw prepared.userid}" />
							<input type="hidden" name="token" value="{vb:raw bbuserinfo.securitytoken}" />
							<input type="submit" tabindex="1" name="swapcss" value="{vb:raw usercss_switch_phrase}" class="userprof_button" id="profile_swap_button" />
						</form>
					</vb:if>
				</vb:if>
</div>
Reply With Quote
  #3  
Old 12-09-2012, 10:54 PM
Amaury Amaury is offline
 
Join Date: Nov 2011
Location: Ellensburg, WA
Posts: 1,075
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WorldCraft View Post
Step 1: remove the 'floatright' class from the button and wrap the entire <vb:if> </vb:if> in div tags

Step 2: add style="text-align:center;" to the div tag you made

Step 3: place the entire div one line under this div
HTML Code:
        <div class="profile_widgets member_summary userprof_moduleinactive userprof_moduleinactive_border<vb:if condition="$stylevar['textdirection'] == 'ltr'"> sidebarleft</vb:if>" id="sidebar_container">
Below is how it should look.


HTML Code:
        <div class="profile_widgets member_summary userprof_moduleinactive userprof_moduleinactive_border<vb:if condition="$stylevar['textdirection'] == 'ltr'"> sidebarleft</vb:if>" id="sidebar_container">
<!--Place button below-->
<div style="text-align:center;">
                <vb:if condition="$show_customize_profile">
                    <button class="userprof_button hidden" id="profile_customization_button"><img src="{vb:stylevar imgdir_misc}/userprofile/paintbucket_icon.png" alt=""/>&nbsp;{vb:rawphrase customize_my_profile}</button>
                <vb:else />
                    <vb:if condition="$show['userhastheme']">
                        <form action="{vb:link member, {vb:raw userinfo}}" method="get" id="profile_swap_form" class="floatright">
                            <input type="hidden" name="do" value="swapcss" />
                            <input type="hidden" name="u" value="{vb:raw prepared.userid}" />
                            <input type="hidden" name="token" value="{vb:raw bbuserinfo.securitytoken}" />
                            <input type="submit" tabindex="1" name="swapcss" value="{vb:raw usercss_switch_phrase}" class="userprof_button" id="profile_swap_button" />
                        </form>
                    </vb:if>
                </vb:if>
</div>
Is this good? I just copied and pasted your code to make it easier and save time.

Reply With Quote
  #4  
Old 12-09-2012, 11:03 PM
WorldCraft WorldCraft is offline
 
Join Date: Jun 2010
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, you need to delete the button from its original position, and find
HTML Code:
<div class="profile_widgets member_summary userprof_moduleinactive userprof_moduleinactive_border<vb:if condition="$stylevar['textdirection'] == 'ltr'"> sidebarleft</vb:if>" id="sidebar_container">
in the template (it's somewhere up above) and place the button with the centered div under it.

If you would prefer, you can copy paste your template here and I'll make the change for you.
Reply With Quote
  #5  
Old 12-09-2012, 11:12 PM
Amaury Amaury is offline
 
Join Date: Nov 2011
Location: Ellensburg, WA
Posts: 1,075
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WorldCraft View Post
No, you need to delete the button from its original position, and find
HTML Code:
<div class="profile_widgets member_summary userprof_moduleinactive userprof_moduleinactive_border<vb:if condition="$stylevar['textdirection'] == 'ltr'"> sidebarleft</vb:if>" id="sidebar_container">
in the template (it's somewhere up above) and place the button with the centered div under it.

If you would prefer, you can copy paste your template here and I'll make the change for you.
I usually understand template changes when it's something like "find this" and "change it to this." For some reason, I'm just not understanding this. It's me, the way you're explaining it, or both. XD

It's not letting me post the template here. It's 2,568 character too long.

I can create you a temporary admin account, though, if you want and PM you the details. You'd just need access to styles, right?
Reply With Quote
  #6  
Old 12-09-2012, 11:21 PM
WorldCraft WorldCraft is offline
 
Join Date: Jun 2010
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, this may be an easier explanation. :P

Find
HTML Code:
<div class="profile_widgets member_summary userprof_moduleinactive userprof_moduleinactive_border<vb:if condition="$stylevar['textdirection'] == 'ltr'"> sidebarleft</vb:if>" id="sidebar_container">
Add one line below
HTML Code:
<div style="text-align:center;">
                <vb:if condition="$show_customize_profile">
                    <button class="userprof_button hidden" id="profile_customization_button"><img src="{vb:stylevar imgdir_misc}/userprofile/paintbucket_icon.png" alt=""/>&nbsp;{vb:rawphrase customize_my_profile}</button>
                <vb:else />
                    <vb:if condition="$show['userhastheme']">
                        <form action="{vb:link member, {vb:raw userinfo}}" method="get" id="profile_swap_form" class="floatright">
                            <input type="hidden" name="do" value="swapcss" />
                            <input type="hidden" name="u" value="{vb:raw prepared.userid}" />
                            <input type="hidden" name="token" value="{vb:raw bbuserinfo.securitytoken}" />
                            <input type="submit" tabindex="1" name="swapcss" value="{vb:raw usercss_switch_phrase}" class="userprof_button" id="profile_swap_button" />
                        </form>
                    </vb:if>
                </vb:if>
</div>
Just make sure to backup or comment out the original button should you need to restore it.

If you do need more help just send me a PM and I'll take a look at it for you.
Reply With Quote
  #7  
Old 12-09-2012, 11:34 PM
Amaury Amaury is offline
 
Join Date: Nov 2011
Location: Ellensburg, WA
Posts: 1,075
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WorldCraft View Post
Sorry, this may be an easier explanation. :P

Find
HTML Code:
<div class="profile_widgets member_summary userprof_moduleinactive userprof_moduleinactive_border<vb:if condition="$stylevar['textdirection'] == 'ltr'"> sidebarleft</vb:if>" id="sidebar_container">
Add one line below
HTML Code:
<div style="text-align:center;">
                <vb:if condition="$show_customize_profile">
                    <button class="userprof_button hidden" id="profile_customization_button"><img src="{vb:stylevar imgdir_misc}/userprofile/paintbucket_icon.png" alt=""/>&nbsp;{vb:rawphrase customize_my_profile}</button>
                <vb:else />
                    <vb:if condition="$show['userhastheme']">
                        <form action="{vb:link member, {vb:raw userinfo}}" method="get" id="profile_swap_form" class="floatright">
                            <input type="hidden" name="do" value="swapcss" />
                            <input type="hidden" name="u" value="{vb:raw prepared.userid}" />
                            <input type="hidden" name="token" value="{vb:raw bbuserinfo.securitytoken}" />
                            <input type="submit" tabindex="1" name="swapcss" value="{vb:raw usercss_switch_phrase}" class="userprof_button" id="profile_swap_button" />
                        </form>
                    </vb:if>
                </vb:if>
</div>
Just make sure to backup or comment out the original button should you need to restore it.

If you do need more help just send me a PM and I'll take a look at it for you.
I actually wanted it outside of the sidebar under the Member List link, but that actually looks pretty good.

Now, how would I move it down a bit? It's going up right against the the border of the sidebar, and I don't want that.

Reply With Quote
  #8  
Old 12-09-2012, 11:40 PM
WorldCraft WorldCraft is offline
 
Join Date: Jun 2010
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add padding-top:5px (or however much you want) to the div's style.
Reply With Quote
  #9  
Old 12-09-2012, 11:44 PM
Amaury Amaury is offline
 
Join Date: Nov 2011
Location: Ellensburg, WA
Posts: 1,075
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WorldCraft View Post
Add padding-top:5px (or however much you want) to the div's style.
In the code you gave me?

Also, if you look here, the Hide / Show User Customizations button isn't centered like the Customization Options button.

Additionally, there's a duplicate like you said. Where's the code that I delete or comment out?
Reply With Quote
  #10  
Old 12-09-2012, 11:48 PM
WorldCraft WorldCraft is offline
 
Join Date: Jun 2010
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find this div around the button
HTML Code:
<div style="text-align:center;">
After change text-align:center; to text-align:center;padding-top:5px;

And the Customize buttons are not available for guests to see, but if you are talking about removing the original button, you just need to locate it in the template (where it was originally) and just delete it, or comment it out with <!-- old button code --> if you just want to hide it from displaying on the page.
Reply With Quote
Reply

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

Forum Jump


All times are GMT. The time now is 01:31 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04549 seconds
  • Memory Usage 2,284KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (11)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete