vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Profile Enhancements - Add editable Info to end of posts (https://vborg.vbsupport.ru/showthread.php?t=269713)

AURFSCAN 09-04-2011 10:00 PM

Add editable Info to end of posts
 
1 Attachment(s)
tested on 4.08 not sure about others


Add editable Info to the end of your posts. - look at the attached pics.

1. Create a new User Profile field http://www.youtube.com/watch?v=7rwHpG6Iilo

2. take note of the field number of your newly created field (screen @3:46 on the vid above) eg. field20

3. goto postbit template

4. Find and add above this line
Code:

<vb:if condition="$show['postedited']">

this

Code:

<vb:if condition="$post['field20']"><br /><br /><br /><br /><SPAN STYLE="font-size: 8pt"><font color="#151B54"><b>Equip: </b></font>{vb:raw post.field20}</span></vb:if>

so it looks like this

Code:


<vb:if condition="$post['field20']"><br /><br /><br /><br /><SPAN STYLE="font-size: 8pt"><font color="#151B54"><b>Equip: </b></font>{vb:raw post.field20}</span></vb:if>

<vb:if condition="$show['postedited']">


5. Change field20 in the above code (there are 2 Instances of field20) to your new field number eg. field8, field 12, field18 etc.

6. Change 'Equip' to whatever you want to show before editable info, also use html to change color etc.

Done

AURFSCAN 09-05-2011 04:21 PM

1 Attachment(s)
Some Ideas for Information displayed could be Computer specs, youtube channel, website url, Map url, mods etc. etc.


edit*

Some more features

- Add extra line
- Limit width of text on page



To add an extra line, create another custom field, note the field number and use the code below, again replacing the field
numbers with yours.

To limit the width of text edit width:820px (820 pixels) with a size that suits you



Code:


<vb:if condition="$post['field20']"><br /><br /><br /><br /> <div style="width:820px"><SPAN STYLE="font-size: 8pt"><font color="#2B3856"><b>Equip:</b></font> &nbsp; {vb:raw post.field20}</span></div></vb:if>

<vb:if condition="$post['field21']"><div style="width:820px"><SPAN STYLE="font-size: 8pt"><font color="#800517"><b>Equip2:</b></font> &nbsp; {vb:raw post.field21}</span></div></vb:if>




:)


All times are GMT. The time now is 09:35 PM.

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.01250 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete