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

Reply
 
Thread Tools Display Modes
  #11  
Old 12-09-2012, 10:56 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
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.
Alright, I'll take a look.

Also, here's a screenshot for the reference:

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

Ah, ok. To center the Hide Customizations button find:

HTML Code:
<form action="{vb:link member, {vb:raw userinfo}}" method="get" id="profile_swap_form" class="floatright">
And delete class="floatright"
Reply With Quote
  #13  
Old 12-09-2012, 11:10 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
Ah, ok. To center the Hide Customizations button find:

HTML Code:
<form action="{vb:link member, {vb:raw userinfo}}" method="get" id="profile_swap_form" class="floatright">
And delete class="floatright"
Wonderful!

As for the deleting or commenting out, is this the original code?

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

That's the new button you added. The old button is toward the bottom of the template.
Reply With Quote
  #15  
Old 12-09-2012, 11:23 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
That's the new button you added. The old button is toward the bottom of the template.
?

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

Yup, place HTML comment tags around that.
Reply With Quote
  #17  
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
Yup, place HTML comment tags around that.
I think I'll just delete it.

Before this, the MEMBERINFO template wasn't modified, so I can always revert it if we decide to get rid of those changes.

--------------- Added 12/9/2012 at 5:40 PM ---------------

Hm.

To fix the alignment issue of the user rank not being centered under the username, is it possible to move the pencil icon up with Customize button? Or did you already post about that?

In regards to my other thread, I noticed the rank isn't directly centered under the username there, either, but there's no pencil icon there. Weird.

EDIT: You can reply regarding the postbit there, though.
Reply With Quote
  #18  
Old 12-10-2012, 12:15 AM
WorldCraft WorldCraft is offline
 
Join Date: Jun 2010
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To move the pencil up, find your button code
HTML Code:
<div style="text-align:center;padding-top:5px;">
				<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">
							<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>
Right before the final </div> add

HTML Code:
<vb:if condition="$show['edit_profile']">
		<a href="moderator.php?{vb:raw session.sessionurl}do=useroptions&amp;u={vb:raw userinfo.userid}"><img src="{vb:stylevar imgdir_button}/edit_40b.png" alt="{vb:rawphrase edit_user_profile}" /></a>
</vb:if>
Then find where the original pencil is by searching for $show['edit_profile'] and delete it


Fix the centering, find
HTML Code:
<span class="member_username">{vb:raw prepared.musername}</span>
Add
HTML Code:
 style="position:relative;left:5px;"
Reply With Quote
  #19  
Old 12-10-2012, 12:22 AM
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
To move the pencil up, find your button code
HTML Code:
<div style="text-align:center;padding-top:5px;">
                <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">
                            <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>
Right before the final </div> add

HTML Code:
<vb:if condition="$show['edit_profile']">
        <a href="moderator.php?{vb:raw session.sessionurl}do=useroptions&amp;u={vb:raw userinfo.userid}"><img src="{vb:stylevar imgdir_button}/edit_40b.png" alt="{vb:rawphrase edit_user_profile}" /></a>
</vb:if>
Then find where the original pencil is by searching for $show['edit_profile'] and delete it


Fix the centering, find
HTML Code:
<span class="member_username">{vb:raw prepared.musername}</span>
Add
HTML Code:
 style="position:relative;left:5px;"
The whole line?

Code:
<vb:if condition="$show['edit_profile']">
Reply With Quote
  #20  
Old 12-10-2012, 12:24 AM
WorldCraft WorldCraft is offline
 
Join Date: Jun 2010
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have to remove the entire old <vb:if>code</vb:if> if you want to delete the old pencil icon.
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 10:56 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.13896 seconds
  • Memory Usage 2,261KB
  • Queries Executed 11 (?)
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
  • (1)bbcode_code
  • (11)bbcode_html
  • (5)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_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