Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 03-23-2017, 04:45 PM
paonefx paonefx is offline
 
Join Date: Dec 2015
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Need help in Phrase

Hello Mates,

Everything fine with my Forum and settings. I need help from you on custom phrase.

My Forum (4.2.4) display only to Registered Users and not for Guests and I changed "Private" Phrase to "To Access Signup / Login".

But I have One section for my "VIP Members" and I want to change not same like Private Phrase.

Can you help me how to change that Text.

See Image below, you'll get Idea what i mean. Sorry little bit language problem for me.


Thank You

Reply With Quote
  #2  
Old 03-23-2017, 05:16 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you considered putting that information in the forum description instead? Otherwise it will require some custom coding.
Reply With Quote
Благодарность от:
RichieBoy67
  #3  
Old 03-23-2017, 07:04 PM
paonefx paonefx is offline
 
Join Date: Dec 2015
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
Have you considered putting that information in the forum description instead? Otherwise it will require some custom coding.
Yes we need custom coding or custom phrase for this particular section. Any Help ?

Thank You
Reply With Quote
  #4  
Old 03-23-2017, 07:09 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use the search in phrase manager, copy/paste that text into the search - see what phrases come up and the one you need to edit should show in the list .
Reply With Quote
Благодарность от:
RichieBoy67
  #5  
Old 03-24-2017, 06:02 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, here's what I would do...

Step 1: Create custom phrase as follows:


Click "Save" to save the new phrase.
Step 2: Create a new plugin as follows:
Product: vBulletin

Hook Location: forumbit_display

Title: Use Custom VIP Phrase As Applicable

Execution Order: 5

Plugin PHP Code:

PHP Code:
if ($forum['forumid'] == XX AND $forum['lastpostinfo'] == $vbphrase['private'])
{
    
$forum['lastpostinfo'] = $vbphrase['vip_private'];

Replace "XX" with the forumid of the private VIP forum.

Plugin is Active: Yes

Click "Save" to save the plugin.
This works on my local dev site...if you have any issues, let me know.
Attached Images
File Type: jpg vborg_privatephrase.jpg (59.1 KB, 0 views)
Reply With Quote
Благодарность от:
blind-eddie
  #6  
Old 03-24-2017, 05:58 PM
paonefx paonefx is offline
 
Join Date: Dec 2015
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
Okay, here's what I would do...

Step 1: Create custom phrase as follows:


Click "Save" to save the new phrase.
Step 2: Create a new plugin as follows:
Product: vBulletin

Hook Location: forumbit_display

Title: Use Custom VIP Phrase As Applicable

Execution Order: 5

Plugin PHP Code:

PHP Code:
if ($forum['forumid'] == XX AND $forum['lastpostinfo'] == $vbphrase['private'])
{
    
$forum['lastpostinfo'] = $vbphrase['vip_private'];

Replace "XX" with the forumid of the private VIP forum.

Plugin is Active: Yes

Click "Save" to save the plugin.
This works on my local dev site...if you have any issues, let me know.
Excellent...!!! Great Job Sir. :up::up::up:

Thank You
Reply With Quote
Благодарность от:
MarkFL
Reply

Thread Tools
Display Modes

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 11:15 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.04299 seconds
  • Memory Usage 2,238KB
  • Queries Executed 12 (?)
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
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (4)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (1)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • 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_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete