vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Need help in Phrase (https://vborg.vbsupport.ru/showthread.php?t=324800)

paonefx 03-23-2017 04:45 PM

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

https://vborg.vbsupport.ru/external/2017/03/15.png

MarkFL 03-23-2017 05:16 PM

Have you considered putting that information in the forum description instead? Otherwise it will require some custom coding. :)

paonefx 03-23-2017 07:04 PM

Quote:

Originally Posted by MarkFL (Post 2584250)
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

TheLastSuperman 03-23-2017 07:09 PM

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 ;).

MarkFL 03-24-2017 06:02 AM

1 Attachment(s)
Okay, here's what I would do...

Step 1: Create custom phrase as follows:
https://vborg.vbsupport.ru/attachmen...1&d=1490338571

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. :)

paonefx 03-24-2017 05:58 PM

Quote:

Originally Posted by MarkFL (Post 2584277)
Okay, here's what I would do...

Step 1: Create custom phrase as follows:
https://vborg.vbsupport.ru/attachmen...1&d=1490338571

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


All times are GMT. The time now is 07:08 AM.

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.01037 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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