
02-17-2011, 01:37 PM
|
|
|
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by LoudBox
Great plugin, works very well, good job. I'm impressed.
Quick question. I've set the form to output to a thread. What I'd like is that when this thread is created by easyform, his signature is a link to that thread.
So user john submits form => thread is created yourforum.com/forum/john-thread/
Now user john has as signature a link to that thread
What's the best way to go about this?
Thanks!
|
- Title
Code:
Change Signature to Thread Link
- Hook
Code:
easy_forms_post_after_actions
- PHP Code - change 43 to appropriate form id
PHP Code:
if ($fid == 43) { if ($complete) { $userinfo = $vbulletin->userinfo; $threadinfo = fetch_threadinfo($threadid); $usersig = "[url]".$vbulletin->options['bburl']."/".fetch_seo_url('thread', $threadinfo)."[/url]";
$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD); $userdata->set_existing($userinfo); $userdata->set('signature', $usersig);
$userdata->save(); } }
- Active
|