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

Reply
 
Thread Tools
Info box on Postbit Details »»
Info box on Postbit
Version: 4.1.4, by Asterix_ita Asterix_ita is offline
Developer Last Online: Jul 2019 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.0.x Rating:
Released: 08-11-2010 Last Update: 11-25-2011 Installs: 63
DB Changes Uses Plugins Template Edits Auto-Templates
Additional Files Translations  
No support by the author.

The addon allows you to back inside the post fieldx certain user in the user panel, that information is collected in an infobox retrieved via button, the box is returned immediately after signature.

Everything began to this modification Show Users System Specs.

Sorry for English but is the result of an online translator

The addon has the following options:
  • Automatic entry into the Temple: With this option, the insertion of the box is automatic procedure without the change in the template as it attaches to 'template_hook.postbit_signature_end.

    Remember that this hook works well on the template postbit in postbit_legacy hook appears to be within an if that event does not allow the missing signature display box.


    Who uses the postbit_legacy must proceed with editing the template and set this option to no.

    Find:
    Code:
    <div class="cleardiv"></div>
    add first
    Code:
     {vb:raw ctinfo.infobox}
  • Forums to be View: it is possible to select which forums to display this infobox
  • Info Fields 1 ?....Fields 8: represent the eight fieldx to be reported, the fields must contain the name of such fields. Fields5 ... ..
  • The last 4 options let you customize the infobox. eg. Border, background color etc. ...

Limitations

information is contained in two columns, the fields and their labels will appear only if the fields contain user data. The first column shows the fieldx 1 to 4, while in the second fieldx 5-8.

The recall button infobox appears only if at least one selected user to infobox field contains the value and if the forum is part of those selected in the options.


Install:


Upload images/buttons
Import product_infobox.xml
Configure in vBulletin Options -> CT Info box

This plugin adds:

2 template
ct_info_box
ct_info_button

3 plugin

40 phrase

Changelog

17.08.2010 add option automatic/no automatic label fieldx
10.07.2011 Version 4.1.0 (beta) released [before proceeding with the installation read here]
14.07.2011 Version 4.1.1 (beta) (Add option show guest or only member; Add option move button infobox)
29.07.2011 Version 4.1.2 change status from beta to stable
06.08.2011 Version 4.1.3 rewrite code button show/hide
26.11.2011 Version 4.1.4 add fourth column

Translations for version 4.0.2

Italian language: Collectiontricks
Arabic language: Dr.osamA

from version 4.1 has changed the structure of the plugin read this before you proceed

Attention: the plugin adds to the bottom of the page a link to the site author

Download Now

File Type: zip CT_infobox.zip (5.4 KB, 78 views)
File Type: zip CT_infobox 402.zip (5.7 KB, 138 views)
File Type: zip CT_infobox 412.zip (13.2 KB, 34 views)
File Type: zip CT_infobox 413.zip (13.2 KB, 72 views)
File Type: zip CT_infobox 414.zip (13.5 KB, 160 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
danswano, Khriz, Taurus1

Comments
  #52  
Old 07-13-2011, 02:19 PM
Asterix_ita's Avatar
Asterix_ita Asterix_ita is offline
 
Join Date: Aug 2009
Location: Italy
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Taurus1

This change should be sufficient

Go to admincp -> Plugin & Products -> Plugin Manager -> Product : CT Info box

Edit plugin Info Box

find:
Code:
	if ($ctinfo['button'])
			{
				$templater = vB_Template::create('ct_info_button');
				$templater->register('post', $post);
				$templater->register('ctinfo', $ctinfo); 
				$template_hook['postbit_controls'] .= $templater->render();
			}
replace
Code:
					if ($ctinfo['button'])
			{
				$templater = vB_Template::create('ct_info_button');
				$templater->register('post', $post);
				$templater->register('ctinfo', $ctinfo); 
				$ctinfo['pbutton']= $templater->render();
			}

add this variable {vb:raw ctinfo.pbutton} in the templates postbit or postbit_legacy to the desired position

regards
Reply With Quote
Благодарность от:
Taurus1
  #53  
Old 07-13-2011, 03:47 PM
reddyink reddyink is offline
 
Join Date: Aug 2007
Posts: 236
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like a good MOD but doesn't display Multi-select Checkbox information.

Here is the out put of multi-check box: 121379053 (instead of reading, writing, soccer etc).

Appreciate help!
Reply With Quote
  #54  
Old 07-13-2011, 04:02 PM
Asterix_ita's Avatar
Asterix_ita Asterix_ita is offline
 
Join Date: Aug 2009
Location: Italy
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unfortunately, the multi-value fields is a limitation of this plugin

https://vborg.vbsupport.ru/showpost....0&postcount=34


Regards
Reply With Quote
  #55  
Old 07-14-2011, 03:14 AM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Asterix_ita View Post
@Taurus1

This change should be sufficient

Go to admincp -> Plugin & Products -> Plugin Manager -> Product : CT Info box

Edit plugin Info Box

find:
Code:
    if ($ctinfo['button'])
            {
                $templater = vB_Template::create('ct_info_button');
                $templater->register('post', $post);
                $templater->register('ctinfo', $ctinfo); 
                $template_hook['postbit_controls'] .= $templater->render();
            }
replace
Code:
                    if ($ctinfo['button'])
            {
                $templater = vB_Template::create('ct_info_button');
                $templater->register('post', $post);
                $templater->register('ctinfo', $ctinfo); 
                $ctinfo['pbutton']= $templater->render();
            }

add this variable {vb:raw ctinfo.pbutton} in the templates postbit or postbit_legacy to the desired position

regards
Thank you very much. However it does not work. Does not matter where I insert this:

Code:
{vb:raw ctinfo.pbutton}
It does not show up.
Reply With Quote
  #56  
Old 07-14-2011, 11:16 AM
Asterix_ita's Avatar
Asterix_ita Asterix_ita is offline
 
Join Date: Aug 2009
Location: Italy
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

released version 4.1.1 beta

Add option show guest or only member
Add option move button infobox

Quote:
Suggestion: when some users fill only the B column fields only the box will leave the whole A column area empty, can you modify the code for next release so the column B area replaces column A area when fields of column A are empty.

Activated


Regards
Reply With Quote
  #57  
Old 07-14-2011, 12:14 PM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you so much for the update. I can now insert the button anywhere, but if I insert it let's say to the left of the 'promote to article' link, then the text is there, but the button is missing. Why would that be?
Reply With Quote
  #58  
Old 07-14-2011, 12:45 PM
Asterix_ita's Avatar
Asterix_ita Asterix_ita is offline
 
Join Date: Aug 2009
Location: Italy
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

problems with css, in your case you need to change the template ct_info_button

find:
Code:
	<style type="text/css">
	<vb:if condition="$vboptions['ct_infobox_autobutton']">
	.postbitlegacy .postfoot .textcontrols a.post_info_button, .postbit .postfoot .textcontrols a.post_info_button  {
		background: url({vb:stylevar imgdir_button}/post_infobox.png) no-repeat transparent {vb:stylevar left};
		padding-{vb:stylevar left}: 20px;
	}
	.postbitlegacy .postfoot .textcontrols a.post_info_button:hover, .postbit .postfoot .textcontrols a.post_info_button:hover  {
		background: url({vb:stylevar imgdir_button}/post_infobox-hover.png) no-repeat transparent {vb:stylevar left};
		}
	
	<vb:else />
	
	a.post_info_button{
		background: url({vb:stylevar imgdir_button}/post_infobox.png) no-repeat transparent {vb:stylevar left};
		padding-{vb:stylevar left}: 20px;
	}
	a.post_info_button:hover  {background: url({vb:stylevar imgdir_button}/post_infobox-hover.png) no-repeat transparent {vb:stylevar left};}
	
	</vb:if>
</style>
replace:

Code:
	<style type="text/css">

	.postbitlegacy .postfoot .textcontrols a.post_info_button, .postbit .postfoot .textcontrols a.post_info_button  {
		background: url({vb:stylevar imgdir_button}/post_infobox.png) no-repeat transparent {vb:stylevar left};
		padding-{vb:stylevar left}: 20px;
	}
	.postbitlegacy .postfoot .textcontrols a.post_info_button:hover, .postbit .postfoot .textcontrols a.post_info_button:hover  {
		background: url({vb:stylevar imgdir_button}/post_infobox-hover.png) no-repeat transparent {vb:stylevar left};
		}
	
</style>
regards
Reply With Quote
  #59  
Old 07-14-2011, 01:44 PM
danswano danswano is offline
 
Join Date: Jan 2009
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bugs discovered:
1. When "Show infobox button" set to no and guests set to no they can still see the box. (not the button only box)
2. When "Show infobox button" set to no and user have no input a little empty box appears under each post.
3. In case number 1 i mentioned above column B still in place while column A empty when user has no column A inputs (guest mode) but it's working fine for registered users mode.
Reply With Quote
  #60  
Old 07-14-2011, 02:04 PM
Asterix_ita's Avatar
Asterix_ita Asterix_ita is offline
 
Join Date: Aug 2009
Location: Italy
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry

Are you sure you have installed the 4.1.1?
as were the bugs 4.1.0, which is not reflected in 4.1.1 installed in the test

Thanks


PS. on 4.1.1 I have this as the first instruction

Code:
if ($this->registry->options['ct_infobox_guest'] OR $show['member'])
    {
then the other options are not analyzed, tonight at home control with more calm, thanks
Reply With Quote
  #61  
Old 07-14-2011, 02:07 PM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Asterix_ita View Post
problems with css, in your case you need to change the template ct_info_button

find:
Code:
    <style type="text/css">
    <vb:if condition="$vboptions['ct_infobox_autobutton']">
    .postbitlegacy .postfoot .textcontrols a.post_info_button, .postbit .postfoot .textcontrols a.post_info_button  {
        background: url({vb:stylevar imgdir_button}/post_infobox.png) no-repeat transparent {vb:stylevar left};
        padding-{vb:stylevar left}: 20px;
    }
    .postbitlegacy .postfoot .textcontrols a.post_info_button:hover, .postbit .postfoot .textcontrols a.post_info_button:hover  {
        background: url({vb:stylevar imgdir_button}/post_infobox-hover.png) no-repeat transparent {vb:stylevar left};
        }
    
    <vb:else />
    
    a.post_info_button{
        background: url({vb:stylevar imgdir_button}/post_infobox.png) no-repeat transparent {vb:stylevar left};
        padding-{vb:stylevar left}: 20px;
    }
    a.post_info_button:hover  {background: url({vb:stylevar imgdir_button}/post_infobox-hover.png) no-repeat transparent {vb:stylevar left};}
    
    </vb:if>
</style>
replace:

Code:
    <style type="text/css">

    .postbitlegacy .postfoot .textcontrols a.post_info_button, .postbit .postfoot .textcontrols a.post_info_button  {
        background: url({vb:stylevar imgdir_button}/post_infobox.png) no-repeat transparent {vb:stylevar left};
        padding-{vb:stylevar left}: 20px;
    }
    .postbitlegacy .postfoot .textcontrols a.post_info_button:hover, .postbit .postfoot .textcontrols a.post_info_button:hover  {
        background: url({vb:stylevar imgdir_button}/post_infobox-hover.png) no-repeat transparent {vb:stylevar left};
        }
    
</style>
regards

Thank you very very much! It now works and looks great!! :up:
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 03:44 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.13785 seconds
  • Memory Usage 2,372KB
  • Queries Executed 28 (?)
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
  • (12)bbcode_code
  • (3)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_postinfo_query
  • fetch_postinfo
  • 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
  • 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
  • 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