Go Back   vb.org Archive > News and Announcements > vBulletin Pre-Sales Questions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 06-04-2020, 07:04 PM
Tatta Tatta is offline
 
Join Date: May 2020
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snakes1100 View Post
If the phrase for the plugin exists, you need to call it, i used "custom_status" only as an example, if not you will need to create your own phrase.

You will need to find out which field it is as well, as "fieldX" isnt valid, as an example of line 3 uses field2.

You dont need a plugin to do this anyways.
Quote:
Originally Posted by Seven Skins View Post
In the postbit template of you style

find


Replace


PS. if someother hack is using this hook it may not display properly.

Try and See .. you can always revert back.

Thank you both for your help , but I dont see the [/code] .

https://prnt.sc/stymr0

Can you please this post in a normal post without [/code] ?

Thanks
Reply With Quote
  #12  
Old 06-04-2020, 07:16 PM
PinkMilk PinkMilk is offline
 
Join Date: May 2010
Location: Earth
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tatta View Post
Thank you both for your help , but I dont see the [/code] .

https://prnt.sc/stymr0

Can you please this post in a normal post without [/code] ?

Thanks
In that case your either logged out (it happens this place seems to have a timeout) or you dont have a licence hense posting in the presales forums.
Reply With Quote
  #13  
Old 06-04-2020, 07:28 PM
Tatta Tatta is offline
 
Join Date: May 2020
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PinkMilk View Post
In that case your either logged out (it happens this place seems to have a timeout) or you dont have a licence hense posting in the presales forums.
I have a licence but I can not remember my Custmer ID and Pass ...

I wrote to the support but I have not received an answer so far .
Reply With Quote
  #14  
Old 06-04-2020, 08:57 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

my post updated
Reply With Quote
  #15  
Old 06-05-2020, 09:48 AM
Tatta Tatta is offline
 
Join Date: May 2020
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snakes1100 View Post
<vb:if condition="$post['fieldX']"><dt>{vb:rawphrase custom_status}</dt> <dd>{vb:raw post.fieldX}</dd></vb:if>
<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if>
<vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if>
<vb:if condition="$post['age']"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></vb:if>
<dt>{vb:rawphrase posts}</dt> <dd>{vb:raw post.posts}</dd>

If the phrase for the plugin exists, you need to call it, i used "custom_status" only as an example, if not you will need to create your own phrase.

You will need to find out which field it is as well, as "fieldX" isnt valid, as an example of line 3 uses field2.

You dont need a plugin to do this anyways.
Thanks for you help ( :up: ) , but it must be a plugin in my case .

Do you know how to do it whit a plugin ?

The plugin is : {vb:raw template_hook.postbit_userinfo_left}
Reply With Quote
  #16  
Old 06-05-2020, 10:24 AM
shka shka is offline
 
Join Date: Mar 2016
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

{vb:raw template_hook.postbit_userinfo_left} isn't a plugin, it is the hook the plugin/addon is using.

I found a site where you are using vB4.2.5 and the status is generated by this addon
https://vborg.vbsupport.ru/showthrea...ghlight=dbtech
So you have to find the template, where "<div id="dbtech_status_status">..." is generated.
Reply With Quote
  #17  
Old 06-05-2020, 10:39 AM
Tatta Tatta is offline
 
Join Date: May 2020
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by shka View Post
{vb:raw template_hook.postbit_userinfo_left} isn't a plugin, it is the hook the plugin/addon is using.

I found a site where you are using vB4.2.5 and the status is generated by this addon
https://vborg.vbsupport.ru/showthrea...ghlight=dbtech
So you have to find the template, where "<div id="dbtech_status_status">..." is generated.
<vb:if condition="!empty($post['dbtech_status_status']) || !empty($vboptions[dbtech_status_default])">
<span class="rank">
<div id="dbtech_status_status{vb:var post.postid}">
<div id="dbtech_status_statustext{vb:var post.postid}" style="display:inline;">
<vb:if condition="$post['dbtech_status_status']">
{vb:raw vboptions.dbtech_status_prefix} {vb:raw post.dbtech_status_status}
<vb:else />
{vb:raw vboptions.dbtech_status_default}
</vb:if>
</div>
&nbsp;
<vb:if condition="$show['dbtech_status_change']">
<a style="cursor: pointer;" href="javascript://" onclick="return FBStatus{vb:var post.postid}.init_edit_status();">
<img src="{vb:stylevar imgdir_button}/edit_40b.png" alt="{vb:rawphrase edit}" />
</a>
</vb:if>
</div>

<div style="display:none;" id="dbtech_status_controls{vb:var post.postid}">
<input type="text" tabindex="1" value="" id="dbtech_status_input{vb:var post.postid}" name="status" class="primary textbox" style="width:95%; margin: 1px;" /><br />

<input type="button" class="button" value="{vb:rawphrase save}" onclick="return FBStatus{vb:var post.postid}.save_edit_status();" />
<input type="button" class="button" value="{vb:rawphrase cancel}" onclick="return FBStatus{vb:var post.postid}.cancel_edit_status();" />
</div>
</span>

<vb:if condition="$vboptions['dbtech_status_moodenabled'] == 0">
<script type="text/javascript">
<!--
// Initialise the object
var FBStatus{vb:var post.postid} = new FBStatus_Obj();

// Set the userid
FBStatus{vb:var post.postid}.set_userid('{vb:raw post.userid}', '{vb:var post.postid}');

// Init editors
<vb:if condition="$vboptions['dbtech_status_moodenabled'] == 1">FBStatus{vb:var post.postid}.set_mood_editors();</vb:if>
<vb:if condition="$vboptions['dbtech_status_enabled'] == 1">FBStatus{vb:var post.postid}.set_status_editors();</vb:if>
// -->
</script>
</vb:if>
</vb:if>

Here is the tamplate ... what now ?
Reply With Quote
  #18  
Old 06-05-2020, 10:49 AM
In Omnibus's Avatar
In Omnibus In Omnibus is offline
 
Join Date: Apr 2010
Location: Inside A Blade Server
Posts: 840
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tatta View Post
I have a licence but I can not remember my Custmer ID and Pass ...

I wrote to the support but I have not received an answer so far .
That's not our problem. No one should be posting code in the pre-sales forums. It's a violation of our licensing agreement and could us to lose our own licenses if vBulletin wanted to press the issue.

You need to contact sales@vbulletin.com and wait for their response.

I'm glad people are willing to help you but it should not be at their own risk.
Reply With Quote
  #19  
Old 06-06-2020, 10:42 AM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you're using dbtech's addon, then you need to get support from his site.

If that addon has a feature to enable a status in the page/template & it dont work, then again you need to get support from them.
Reply With Quote
  #20  
Old 06-07-2020, 09:16 AM
Tatta Tatta is offline
 
Join Date: May 2020
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snakes1100 View Post
If you're using dbtech's addon, then you need to get support from his site.

If that addon has a feature to enable a status in the page/template & it dont work, then again you need to get support from them.
This is the answer I get from the support :

"These kinds of customisations are beyond the scope of support, sorry."


That's why I asked you for help ...
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 04:51 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.05220 seconds
  • Memory Usage 2,270KB
  • Queries Executed 13 (?)
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
  • (8)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
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (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_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
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete