Originally Posted by theshadow
This is from a thread on WoWAce i made:
How do i go about that even? Because I can't seem to do it like php. I hope I giving a good enough description... perhaps pictures are needed...
In the guide click link:
when link clicked get info like in chat:
|
Images aren't showing up in your post, nor do they show up when I copy/paste the links (they show up when you quote).
You'll have to pull the data before you assemble the string.
Code:
local function X_OnClick(linkdata)
local link = getlink(linkdata)
print("Blah blah blah ".. link.. " blah blah blah ".. link)
end
3 things to consider about this though:
1) Pseudo-code. I have doubts that copy/paste will actually work.
2) I know
NOTHING about PHP, so can't really make a good cross-reference. This is just how I do it in my projects.
3) It's 1:40a here and I'm quite tired.