Support Forum

Add Identities – Template function

MA Mac
Mac
Member

Hey,

I’ve installed the Add Identities plugin and created some new identities.

I’m not sure though how to add the function call to the template. It would be nice if you could give me an example, where and how to add it, maybe with the line where I have to add it and so on.

function sp_PostIndexIdentityDisplay($args=”, $toolTip=”, $identity)

That doesn’t seem to be correct, does it? In my case the new identity name would be “Raptr”.

Thanks in advance!

 

Mac

6 Answers

New Answer

MP Mr Papa
Mr Papa
Member

well, without knowing what you added, or where you want it to display, kind of hard.. but will try…  a template function is something you call… so you cannot put a function in like you did… instead, where you want it to display, add

sp_PostIndexIdentityDisplay(”, ‘tooltip text’, ‘pinterst’);

so the first argument, which is empty in my example, would be any args you want to set in the arg list…  second element is the text you want to see in the tooltip, in this case ‘tooltip text’…  and third argument is the name you gave the identity you created…

YS Yellow Swordfish
Yellow Swordfish
Member

Great. Just shout if you need more help with it.

AD adedip
adedip
Member

I apologies using this topic for a larger question… but since I can’t make identities work as well I use this as a sample question too.

The question is: Where did “Mac” find the function to show identities, where is such plugins documentation? I really can’t understand it just reading the function it self.

Sorry for the silly question, but it’s being a real problem to me.

Thanks,

Andrea

YS Yellow Swordfish
Yellow Swordfish
Member

Good to hear and sorry I could not get back to you earlier.
Just shout of you need anything else or help with this.