MyBB Community Forums

Full Version: Porblem template & variables
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Because you're using the " " syntax, which interpolates the empty variables.. If you used the ' ' syntax with escaped $, the variables wouldn't work either because {\$example} would be inserted. Once again: http://php.net/manual/en/language.types.string.php
(2015-01-23, 12:47 AM)Destroy666 Wrote: [ -> ]Because you're using the " " syntax, which interpolates the empty variables.. If you used the ' ' syntax with escaped $, the variables wouldn't work either because {\$example} would be inserted. Once again: http://php.net/manual/en/language.types.string.php

Therefore ...?


What do I do?
Up!

What do I do?

I would that my plugin works...
Your plugin would work if you just had a few PHP basic knowledges. @Destroy666 asked you the fundamental question: have you declared those variables as global? You don't know how to do it. This is one of the first things you've got to learn before even thinking about developing MyBB plugins.

global $var1, $var2;

This is an example. Ref: http://php.net/manual/it/language.variables.scope.php

Also, you've got to learn the usage of both double quote (") and single quote (') string declaration. This is crucial when you want to interpolate a variable into a string. Once again, Destroy666 referenced you to http://php.net/manual/it/language.types.string.php

Seriously, I'm quite confident this kind of questions should not be posted here on MyBB. We all respect each other and this is not meant to be an offensive post but please, if you don't know how to write in PHP, learn its basics first.
To Shade in Italian:

Rieccolo.
Se non sapessi scrivere in PHP non farei plugin, non credi?
Shade smettila via.

Come Global si può intendere sia globalizzare una variabile sia richiamarla in una funzione con 'global' accanto.
Non avevo infatti capito cosa intendesse.
Gradirei tu non rispondessi più alle mie discussioni, se vuoi dare una mano bene, altrimenti non rispondere , veramente .
Non sono venuto a scrivere per essere giudicato da te, forse sei più bravo, ma quanto hai o avevi a Italiamo?
Io ho sempre avuto 10, forse tu di meno. (É un esempio)
Tu sai meglio programmare, io di meno. (Dato di fatto)

Ognuno eccelle in qualcosa più di un altro per l'esperienza, l'attitudine o altro.

Ma questo non autorizza me a venire a dirti: "Non sai l'Italiano!" come non autorizza te a dirmi "Non sai scrivere in PHP"

Quindi, nella più totale amicizia e rispetto nei tuoi confronti, anche perché sicuramente sei più grande di me e altresì maggiorenne, ti invito a non risponderr più alle mie discussioni, potrai farlo solo per aiutarmi, altrimenti ignora la mia discussione.

Ho scitto in italiano proprio per capirci meglio.

Per qualsiasi cosa PM.

Ciao Shade!


To Mybb staff:

Close this thread, please
Closed by request.
Pages: 1 2