Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Education Degree in Postbit & Postbit_Legacy. vB 4.0 Beta 4 Details »»
Education Degree in Postbit & Postbit_Legacy. vB 4.0 Beta 4
Version: 1.00, by Dr.osamA Dr.osamA is offline
Developer Last Online: Oct 2015 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.0 Beta 4 Rating:
Released: 12-04-2009 Last Update: Never Installs: 6
Template Edits
Re-useable Code Code Changes Translations  
No support by the author.

MOD Education Degree in Postbit & Postbit_Legacy. vB 4.0 Beta 4.

Description:
This MOD adds you the option during the registration of the new member to learn more on how culture
The mod is just an idea occurred to me, i modify the code to be compatible with version 4.0.0

Instructions:
in your Admin Control Panel (ACP), please do the following:
ACP -> User Profile Fields -> Add New User Profile Field ->Profile Field Type -> Single-Selection Menu (select ‘Single-Selection Menu’ from the Drop-Down Menu) -> Please enter the following into the following fields (REMEMBER to make a note of the FieldID, because you will need to replace ALL the X’s in [fieldX] with it!!!

Title = Education Degree
Description = Put us here the Education Degree Please
Profile Field Category = (Uncategorized)
Options =Without
elementary
middle
secondary
university
graduate

Code:
Without
elementary
middle
secondary
university
graduate
Set Default = Yes,Including a First Blank Optiion
Display Order = You Select this (dependant on how many you already have)
Field Required = yes, at registration and profile updating
Field Editable by User = Yes
Private Field = No
Field Searchable on Members List = No
Show on Members List = Yes or No

see the attached photo

SAVE

The second step

Edit the templates ( Postbit or Posbit_legacy)

ACP -> Styles & Templates -> Style Manager -> <<>> -> Postbit Templates -> select the template that you use ( Postbit or Posbit_legacy) – This is for the Postbit_Legacy…

Now i hve 2 codes with frame or without frame

in postbit_legacy find:

Code:
		<vb:if condition="$post['userid']">
			<hr />
			<dl class="userinfo_extra">
add below: code with frame

Code:
<!-- Education Degree Start -->
<vb:if condition="$post[fieldX]">
<div align="center" style="padding: 1px">
<div align="center" style="padding: 3px; border: 1px solid #000000; background: #FFFFFF ">
Education : {vb:raw post.fieldX}
</div></div>
</vb:if>
<!-- Education Degree End -->
https://vborg.vbsupport.ru/attachmen...1&d=1259981319

OR code without frame

Code:
<!-- Education Degree Start -->
<vb:if condition="$post[fieldX]"> Education :<dd>{vb:raw post.fieldX}</dd></vb:if>
<!-- Education Degree End -->
https://vborg.vbsupport.ru/attachmen...1&d=1259981319
Replace the ‘X’ with your FieldID number

*************
if you want it in Postbit try this

in post bit find

Code:
						<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if>
add below add:

Code:
<!-- Education Degree Start -->
                       <vb:if condition="$post[fieldX]"><dt>Education :</dt><dd>{vb:raw post.fieldX}</dd></vb:if>
<!-- Education Degree End -->
Replace the ‘X’ with your FieldID number

and SAVE

Enjoy!

Please do not forget to click "Install"

Screenshots

File Type: jpg cp1.jpg (138.5 KB, 0 views)
File Type: gif cp2.GIF (140.1 KB, 0 views)
File Type: gif cp3.GIF (12.1 KB, 0 views)
File Type: gif postbit.GIF (40.3 KB, 0 views)
File Type: gif postbit2.GIF (42.4 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-05-2009, 10:58 AM
fourat fourat is offline
 
Join Date: Mar 2008
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

بارك الله فيك أخوي أسامة
ولكن أعتقد أن مكان الموضوع في قسم التمبليت
Thank you very much i think its Template Modification
Reply With Quote
  #3  
Old 12-05-2009, 12:25 PM
robbiefritz robbiefritz is offline
 
Join Date: Oct 2008
Location: Eastern US
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice.
Reply With Quote
  #4  
Old 12-05-2009, 01:14 PM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

u are welcom
________
Gm foods
Reply With Quote
  #5  
Old 12-05-2009, 03:01 PM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey - That code looks familiar, Dr.OsmaA?! Lol.


https://vborg.vbsupport.ru/showthread.php?t=229511


Reply With Quote
  #6  
Old 12-05-2009, 03:07 PM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Welshy2008 View Post
Hey - That code looks familiar, Dr.OsmaA?! Lol.


https://vborg.vbsupport.ru/showthread.php?t=229511


There all the same its just adding a new field to the postbit
Reply With Quote
  #7  
Old 12-05-2009, 03:36 PM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Shazz View Post
There all the same its just adding a new field to the postbit
I know Shazz, It was tongue in cheek.

I actually came back on to edit it, in case it was taken the wrong way - but you'd quoted it.


Nice Mod.
Reply With Quote
  #8  
Old 12-05-2009, 04:10 PM
EidolonAH EidolonAH is offline
 
Join Date: Apr 2009
Location: London, England
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This will put user field description and value on same line:

Code:
<vb:if condition="$post[fieldX]"><dt> Education</dt> <dd>{vb:raw post.fieldX}</dd></vb:if>
Reply With Quote
  #9  
Old 12-05-2009, 07:58 PM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Welshy2008 View Post
Hey - That code looks familiar, Dr.OsmaA?! Lol.


https://vborg.vbsupport.ru/showthread.php?t=229511


Quote:
Originally Posted by Shazz View Post
There all the same its just adding a new field to the postbit
Quote:
Originally Posted by Welshy2008 View Post
I know Shazz, It was tongue in cheek.

I actually came back on to edit it, in case it was taken the wrong way - but you'd quoted it.


Nice Mod.
Hello guys

Is there a problem?

I said it's just an idea and did not say he was a distinguished road

Thank you for the accuracy of your observation
________
The Cigar Boss
Reply With Quote
  #10  
Old 12-05-2009, 08:00 PM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EidolonAH View Post
This will put user field description and value on same line:

Code:
<vb:if condition="$post[fieldX]"><dt> Education :</dt> <dd>{vb:raw post.fieldX}</dd></vb:if>
tankxxx EidolonAH !!!!
________
INTERRACIAL VID
Reply With Quote
Reply


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:24 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.04920 seconds
  • Memory Usage 2,340KB
  • Queries Executed 25 (?)
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
  • (8)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)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
  • (9)postbit
  • (5)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
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete