Change language variable by plugin
#1
Hi,
Is there any way to change language variable (online_note in index) by plugin?
Szablonet.pl - Modern Themes Store

Job contact: 
Reply
#2
can you tell us how does it appear now & what exactly you want to change ? btw, what is your forum url ?
Reply
#3
(2017-08-21, 01:23 PM).m. Wrote: can you tell us how does it appear now & what exactly you want to change ? btw, what is your forum url ?

I want to edit online_note by a plugin, I know I can do that manually in ACP but I need to that by a plugin.
I'm writing plugin on localhost, so I can't give you forum url.
Szablonet.pl - Modern Themes Store

Job contact: 
Reply
#4
Could you not just hook in after it loads the variable and change it manually?
Something like
// hook
function myfunc()
{
        global $lang;

        if($lang->online_note) $lang->online_note = 'your special new text';
}
My Plugins: [1.8]|[1.6]

** Selling custom plugin that enables Bitcoin payments. PM me if interested in purchasing! **
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)