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)
-   -   Mini Mods - Education Degree in Postbit & Postbit_Legacy. vB 4.0 Beta 4 (https://vborg.vbsupport.ru/showthread.php?t=229540)

Dr.osamA 12-04-2009 10:00 PM

Education Degree in Postbit & Postbit_Legacy. vB 4.0 Beta 4
 
1 Attachment(s)
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"

fourat 12-05-2009 10:58 AM

بارك الله فيك أخوي أسامة
ولكن أعتقد أن مكان الموضوع في قسم التمبليت
Thank you very much i think its Template Modification

robbiefritz 12-05-2009 12:25 PM

Very nice.

Dr.osamA 12-05-2009 01:14 PM

u are welcom
________
Gm foods

Welshy2008 12-05-2009 03:01 PM

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


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


;)

Shazz 12-05-2009 03:07 PM

Quote:

Originally Posted by Welshy2008 (Post 1925737)
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

Welshy2008 12-05-2009 03:36 PM

Quote:

Originally Posted by Shazz (Post 1925739)
There all the same its just adding a new field to the postbit

I know Shazz, It was tongue in cheek. :D

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


Nice Mod. :)

EidolonAH 12-05-2009 04:10 PM

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>

Dr.osamA 12-05-2009 07:58 PM

Quote:

Originally Posted by Welshy2008 (Post 1925737)
Hey - That code looks familiar, Dr.OsmaA?! Lol.


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


;)

Quote:

Originally Posted by Shazz (Post 1925739)
There all the same its just adding a new field to the postbit

Quote:

Originally Posted by Welshy2008 (Post 1925746)
I know Shazz, It was tongue in cheek. :D

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?:confused:

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

Dr.osamA 12-05-2009 08:00 PM

Quote:

Originally Posted by EidolonAH (Post 1925769)
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

EidolonAH 12-06-2009 07:38 AM

Welcome, check my edit, the original code placed an extra ":", I have removed it!

SİMAR 12-06-2009 01:23 PM

thanks nice

gurler 12-06-2009 06:18 PM

thank you very much.
i make the changes and it works very good

but i want to ask a question
how can i show this degree in user profile page between the <title>....</title> tags.

the tag standarts are: (MEMBERINFO template)
<title>{vb:rawphrase view_profile}: {vb:raw prepared.username} - {vb:raw vboptions.bbtitle} </title>

But i want to change it;
<title>{vb:raw post.field8} {vb:raw post.field9} {vb:raw post.field10} </title>
only in the MEMBERINFO template.

but it doesn`t works.
can you help me ?

Dr.osamA 12-07-2009 09:58 PM

Quote:

Originally Posted by gurler (Post 1926416)
thank you very much.
i make the changes and it works very good

but i want to ask a question
how can i show this degree in user profile page between the <title>....</title> tags.

the tag standarts are: (MEMBERINFO template)
<title>{vb:rawphrase view_profile}: {vb:raw prepared.username} - {vb:raw vboptions.bbtitle} </title>


But i want to change it;
<title>{vb:raw post.field8} {vb:raw post.field9} {vb:raw post.field10} </title>
only in the MEMBERINFO template.

but it doesn`t works.
can you help me ?

You want only the title??

or you want appear in the condition when a member of the member information page?

odonel 12-08-2009 11:00 AM

anybody tried this in beta 5? it does not work for me

Dr.osamA 12-09-2009 02:14 AM

Quote:

Originally Posted by odonel (Post 1927209)
anybody tried this in beta 5? it does not work for me

have it in beta5 ;)


Where is the problem, my friend??
Possible I can help you:)
________
Pissing Girl

odonel 12-09-2009 11:10 AM

I did all the modifications, it does not show in posbit

Dr.osamA 12-10-2009 01:43 PM

Quote:

Originally Posted by odonel (Post 1927737)
I did all the modifications, it does not show in posbit

plzz chek the [fieldX] it is 2 times ther in the code

put corecct No. field

I have vBulletin? Version 4.0.0 Beta 5 and it is work goood

chek it
her


user = vBulletin
pss = 123456

;)
________
Handjob Public

odonel 12-10-2009 04:29 PM

it's funny... it is now showing osamA.... maybe the counters needed to be updated

TheLastSuperman 12-10-2009 09:13 PM

Simple but effective! Glad to see you release a mod here Dr.osamA keep it up :D

Dr.osamA 12-11-2009 01:43 PM

you are welcom men
________
Expert insurance

Dr.osamA 12-11-2009 01:45 PM

TheLastSuperman !!

I will do what I can , my best ;)
________
Milf black


All times are GMT. The time now is 01:33 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.02902 seconds
  • Memory Usage 1,774KB
  • 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
  • (8)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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