Advertisement:

Variables

Aloittaja John., helmikuu 25, 2014, 03:30:24 IP

« edellinen - seuraava »

John.

Hello,

I work dynamic signatures.
Now I have a variable for:
Forum name ($context['membername'] = $item_comm['lbuser']['name'];)
Posts ($context['posts'] = $item_comm['lbuser']['posts'];)
Karma ($context['karmaBad'] = $item_comm['lbuser']['karma']['bad/good'];)
sex ($context['gender'] = $item_comm['lbuser']['gender']['image'];)

How do I add to:
date of Registration
own title
Rank  with image

tnx

IchBin™

print_r($context) and print_r($user_info) are your friends. You'll likely find what you need in $user_info.
IchBin™        TinyPortal

margarett

Do note that $user_info isn't usually available in templates (but it can easily be globalized)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

LainaaOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

John.

Problem:

For User own title:

$context['usertitle'] = $item_comm['lbuser']['usertitle'];

....

$usertitle = $context['usertitle'];

for show:

ImageString($image, 4, 20, 90, "Own Title: $usertitle", $blue);

and this not working. why?




For posts working normally.

$context['posts'] = $item_comm['lbuser']['posts'];

...

$posts = $context['posts'];

For show:
ImageString($image, 4, 20, 35, "Posts: $posts", $red);

margarett

You say is not working. What exactly shows up?
Do an echo on your variables to check their values
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

LainaaOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

John.

#5
Noting show.

solved

margarett

So it's just the user title missing?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

LainaaOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

John.

#7
Lainaus käyttäjältä: margarett - helmikuu 28, 2014, 04:20:53 IP
So it's just the user title missing?
Yes. Maybe I wrote the wrong variable name (for user title) or what?

solved


margarett

You should print_r($context['item_comms']);

After this code here:

$context['item_comms'][] = array(
    'lbuser' => $memberContext[$id_mem]
);
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

LainaaOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

John.

Lainaus käyttäjältä: margarett - helmikuu 28, 2014, 05:37:30 IP
You should print_r($context['item_comms']);

After this code here:

$context['item_comms'][] = array(
    'lbuser' => $memberContext[$id_mem]
);

When add this, don't show me signature.

margarett

That's just a debug code, it is supposed to be removed after (but it's not supposed to stop current content from being displayed)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

LainaaOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Advertisement: