![]() |
[SOLVED]vb4 phrases in custom php. how to?
Hello
I have created 1 phrase with following settings : Product : testAbc Varname : testXxx Text : This is a test message. Now, when i try to access above phrase in my php file with following syntax, it doesn't give me any output (blank) : PHP Code:
PHP Code:
PHP Code:
How do i access phrase text in php file? |
are your phrases in global or in a group, if in a group you need to register them
// get special phrase groups $phrasegroups = array(); And i call phrases in templates like this {vb:raw vbphrase:phrasename} |
Quote:
And no i dont want to call them in template. It works when i call 'em in template. But here is the situation : test/test.php contains : PHP Code:
It also includes call for include("test/test.php") In template "custom_test" i'm rendering data as : {vb:raw ab} Now what i want is : PHP Code:
--------------- Added [DATE]1261483354[/DATE] at [TIME]1261483354[/TIME] --------------- somebody please help :( --------------- Added [DATE]1261484666[/DATE] at [TIME]1261484666[/TIME] --------------- I just got it sorted out.. Posting solution for future troubles : PHP Code:
|
All times are GMT. The time now is 11:49 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|