Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 09-24-2013, 06:09 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default little style fix needed

What I have done so far

Field: Single-Selection Menu
  • Title: My Team:
  • Description: Please Select your My Team
  • Profile Field Category: Uncatagorized
  • Options: test1, test2 putting this for now until i get this right
  • Set Default: None
  • Display Order: (Chosen By You)
  • Field Required: Yes, at registration & profile updating (You don’t have to make it compulsory)
  • Field Editable By User: Yes
  • Private Field: No
  • Field Searchable On Members List: Yes
  • Show On Members List: Yes
Optional Output:
  • Allow User to input their own value for this option: No
  • Max length of allowed user input: 100
  • Field Length: 25
  • Regular Expression: Leave this EMPTY
Display Page:
  • Which page displays this option? Edit Profile
STEP 2; Add a Phrase:

AdminCP -> Languages & Phrases -> Phrase Manager -> Add New Phrase (Center button on the bottom):
  • Phrase Type: GLOBAL
  • Product: vBulletin
  • Varname: my_team
  • Text: MY Team
SAVE


STEP 3; Postbit_Legacy Template

Find:
Code:
<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if>
Add below
Code:
<!-- My Team in postbit_legacy Start -->
<vb:if condition="$post['field5']"><dt>{vb:rawphrase my_team}</dt> <dd><img src="{vb:stylevar imgdir_misc}/{vb:raw post.field5}.gif" alt="{vb:raw post.field5}" /></dd></vb:if>
<!-- My Team in postbit_legacy End -->
Ok my small problem is it does not blend in with the skin and needs moved over a small bit to the left if any one can help and were to put the code am thinking of one place but not sure
Attached Images
File Type: jpg team.jpg (50.9 KB, 0 views)
Reply With Quote
  #2  
Old 09-24-2013, 11:44 PM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe you mean the custom field there is missing the style. if this is what you are after, then make sure what postbit_legacy class is used for the common fields.

if you provide a link to your site, I may help you with that.

if not, then use Chrome inspection element to see what class you need to add to your custom field and add a div to that class i.e:

PHP Code:
<!-- My Team in postbit_legacy Start -->
<
vb:if condition="$post['field5']"><div class="your_common_style_name"><dt>{vb:rawphrase my_team}</dt> <dd><img src="{vb:stylevar imgdir_misc}/{vb:raw post.field5}.gif" alt="{vb:raw post.field5}" /></dd></div></vb:if>
<!-- 
My Team in postbit_legacy End --> 
Good luck
Reply With Quote
  #3  
Old 09-25-2013, 08:37 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here is a link to a post that has it but its not showing the image in IE so need to remove that but when i do from the code it still shows
http://www.anygivensaturday.com/show...=1#post2005099

I need to remove the image part of this code but when I do it messes up or does not remove it any help from anyone
Reply With Quote
  #4  
Old 09-25-2013, 10:08 AM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ForceHSS View Post
here is a link to a post that has it but its not showing the image in IE so need to remove that but when i do from the code it still shows
http://www.anygivensaturday.com/show...=1#post2005099

I need to remove the image part of this code but when I do it messes up or does not remove it any help from anyone
ok, as I thought that was the issue.

it is very simple, all you need is to find the template where you can edit this, and usually that is postbit_legacy

Then you need to remove the image between <dd></dd>

after that, add this to your custom field:

Code:
<div class="bppostbit"><dt>My Team:</dt><dd>{vb:raw post.fieldX}</dd></div>
change the X to your field id number.

and that's it.

if there is something else, post it here.

Good luck
Reply With Quote
Благодарность от:
CAG CheechDogg
  #5  
Old 09-25-2013, 10:36 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried these
PHP Code:
<!-- My Team in postbit Start -->
<
vb:if condition="$post['field5']"><dt>{vb:rawphrase my_team}</dt> <dd></dd></vb:if>
<!-- 
My Team in postbit End --> 
and
PHP Code:
<!-- My Team in postbit Start -->
<
vb:if condition="$post['field5']"><dt>{vb:rawphrase my_team}</dt> </vb:if>
<!-- 
My Team in postbit End --> 
Reply With Quote
  #6  
Old 09-25-2013, 10:53 AM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ForceHSS View Post
When you say add that to the custom field do you mean the template or title on the profile field
well, when you create a custom field, an id number for a custom field will be generated. you can use that id to place it in your <dl></dl> code.

so it is for template result because the title is fixed, not variable

like this:

<div class="bppostbit"><dt>My Team:</dt><dd>{vb:raw post.fieldX}</dd></div>

so basically what you will need to change only X which is field number i.e {vb:raw post.field8}

is it clear now? if not, I will try to add screenshot to clarify it deeper



--------------- Added [DATE]1380110482[/DATE] at [TIME]1380110482[/TIME] ---------------

ok, when you go to postbit_legacy, you will find few divs with the same name, i.e: <div class="bppostbit">

These ones where you need to look at and how they are arranged. The custom field you have there is only

<dt>My Team</dt><dd><img src="xxxxxxxxxxx/Test 1.gif" alt="Test 1" title="Test 1"></dd>

The above code will surly make a mess because it is not wrapped with a div

so that's why it is correct to make it like this:

<div class="bppostbit"><dt>My Team:</dt><dd>{vb:raw post.field5}</dd></div>

I don't think it is a good idea to use profile manager to write such code. there you create only a custom field and use that custom field to place it with the code in postbit_legacy template.

if you are still confused, send me your postbit_legacy code template as PM and I will make the modification and send it back to you ASAP.
Reply With Quote
  #7  
Old 09-25-2013, 11:04 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
<!-- My Team in postbit Start -->
<
vb:if condition="$post['field5']"><dt>{vb:rawphrase my_team}</dt> <div class="bppostbit"></dt><dd>{vb:raw post.field5}</div></vb:if>
<!-- 
My Team in postbit End --> 
last one I tried still messed in IE but in firefox it needs down a bit you can see here
http://www.anygivensaturday.com/show...=1#post2005099
Reply With Quote
  #8  
Old 09-25-2013, 11:07 AM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ForceHSS View Post
PHP Code:
<!-- My Team in postbit Start -->
<
vb:if condition="$post['field5']"><dt>{vb:rawphrase my_team}</dt> <div class="bppostbit"></dt><dd>{vb:raw post.field5}</div></vb:if>
<!-- 
My Team in postbit End --> 
last one I tried still messed in IE but in firefox it needs down a bit you can see here
http://www.anygivensaturday.com/show...=1#post2005099
This is not correct, the correct one is this:

PHP Code:
<!-- My Team in postbit Start -->
<
vb:if condition="$post['field5']"><div class="bppostbit"><dt>{vb:rawphrase my_team}</dt><dd>{vb:raw post.field5}</dd></div></vb:if>
<!-- 
My Team in postbit End --> 
Reply With Quote
Благодарность от:
ForceHSS
  #9  
Old 09-25-2013, 11:11 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that helped in firefox but for some reason in IE it still shows its missing a image and I dont want any image
Reply With Quote
  #10  
Old 09-25-2013, 11:13 AM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ForceHSS View Post
that helped in firefox but for some reason in IE it still shows its missing a image and I dont want any image
ok, if you need an image, make sure about the image path url because this is what most of the times the issue.
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 08:43 PM.


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.04443 seconds
  • Memory Usage 2,306KB
  • Queries Executed 12 (?)
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
  • (3)bbcode_code
  • (6)bbcode_php
  • (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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete