PDA

View Full Version : How to make the input field of the new forums NAMES accept row phrases ?


egysc
01-03-2012, 01:03 AM
when i'm trying to creat a new forum it accept no rowphrases So ,How to make the input field of the new forums NAMES accept row phrases ??
please ..

--------------- Added 1325604739 at 1325604739 ---------------

No one Knows ?

egysc
01-14-2012, 02:35 PM
؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟

Lynne
01-14-2012, 05:39 PM
I don't understand what you mean about accepting no rowphrases. What is that?

egysc
02-01-2012, 12:12 AM
Thanks for your time ,
And i mean something like

{vb:rawphrase forum_id_1236587436}

and show the values i entered in the phrases manager , How can i do that ?
is it even possible?

Lynne
02-01-2012, 02:57 AM
Well, you would have to define the field forum_id_1235487436 first in your code. Are you writing php code to define the variable?

egysc
02-03-2012, 02:06 PM
yes , that's right

kh99
02-03-2012, 03:29 PM
Are you talking about parameters? Like maybe your phrase is:

Hello {1} {2}


Then somewhere you'd need to register variables to your template for those parameters, like maybe:

$templater = vB_Template::create('mytemplate');
$templater->register('first_name', $fname);
$templater->register('last_name', $lname);


(or maybe use preRegister() instead). Then in your template:

{vb:rawphrase phrasevarname, {vb:raw first_name}, {vb:raw last_name}}

egysc
02-04-2012, 08:56 AM
please read the title again

kh99
02-04-2012, 09:13 AM
Sorry, I guess I completely misunderstood.

egysc
02-05-2012, 02:43 PM
Nearly , And thank you anyway for your time.

kh99
02-06-2012, 08:04 PM
Are you trying to use phrases in forum titles so that you can translate them for different languages? In that case you might be interested in this mod: https://vborg.vbsupport.ru/showthread.php?t=100589

It seems to work in vb4 but there is one post (on the next to the last page) about a couple of possible problems.

egysc
02-07-2012, 05:57 PM
Great thanks for you kh. , this is exactly what i want.