vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced Dynamics > vBa Dynamics v2.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 06-03-2012, 03:23 PM
iguanairs iguanairs is offline
Senior Member
 
Join Date: Mar 2004
Location: MA
Posts: 116
Default Default Message

I am using a secondary instance of my dynamics where I could populate everything I actually need into custom fields. This renders the message area useless and without purpose. as such, I would like to create some default text that automatically displays there since my members must have some sort of content there in order to post. How can this be achieved? I don't have any issue modifying files or creating plugins.
__________________
Herp Center | Reptile Forums
Reply With Quote
  #2  
Old 06-08-2012, 10:18 AM
iguanairs iguanairs is offline
Senior Member
 
Join Date: Mar 2004
Location: MA
Posts: 116
Default

I would also be willing to remove that field entirely in just that instance if this is possible. Does anyone know how to do that? I understand there are likely calls to see if something has been posted so removing that call should be possible I would assume.
__________________
Herp Center | Reptile Forums
Reply With Quote
  #3  
Old 06-08-2012, 05:25 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

You could add a new plugin to the 'vba_dyna_newentry_addentry' hook location with the following code:
PHP Code:
$newpost['message'] = 'Your message here'
__________________
Frequently Asked Questions
CMPS Users Manual

For vBadvanced software assistance, please use the support forums.
Unsolicted PMs, IMs, and email will not be responded to.
If you have a non-software related question or problem with your account, please submit a support ticket.
Reply With Quote
  #4  
Old 06-08-2012, 08:14 PM
iguanairs iguanairs is offline
Senior Member
 
Join Date: Mar 2004
Location: MA
Posts: 116
Default

Thanks Brian, that works fantastic except it displays in every instance of my dynamics (currently running 4) and I only need it to work in 1. I chose the instant as the product but it didn't work as i was hoping. Is there a conditional I can wrap around it to show it in just one instance?
__________________
Herp Center | Reptile Forums
Reply With Quote
  #5  
Old 06-13-2012, 12:00 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

Code:
if (ADV_DYNA_PREFIX == 'adv_dyna')
{

}
That's the condition for the primary vBa Dynamics instance. If you're using a secondary instance, you'd need to replace the red 'adv_dyna' part above with the instance prefix you used in your dyna_config.php file for that instance.
__________________
Frequently Asked Questions
CMPS Users Manual

For vBadvanced software assistance, please use the support forums.
Unsolicted PMs, IMs, and email will not be responded to.
If you have a non-software related question or problem with your account, please submit a support ticket.
Reply With Quote
  #6  
Old 06-13-2012, 01:13 PM
iguanairs iguanairs is offline
Senior Member
 
Join Date: Mar 2004
Location: MA
Posts: 116
Default

I tried a rendition of that, without the ADV_. I didn't even think to add that. Thank you, it worked as it should.
__________________
Herp Center | Reptile Forums
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use default postbit? angeljs "How Do I..." Questions 1 05-26-2011 10:11 AM
Where can I get the default file? pyd Language Packs / Translations 1 11-29-2007 01:19 PM
Collaps by default? mschvili "How Do I..." Questions 3 08-30-2007 10:59 AM
Error Message when attempting to access Default Settings texasasl Troubleshooting & Problems 12 10-23-2006 05:52 PM
Default CMPS meansun Troubleshooting / "How do I..." Questions 7 03-31-2005 11:30 PM


All times are GMT -4. The time now is 01:30 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.