Jump to the post that solved this thread.
Not Solved Most variables not working on forumdisplay_thread
#19
Not Solved
(2015-08-11, 04:52 PM)Ad Bakker Wrote:
(2015-08-11, 04:12 PM)XP Mai Wrote: This is custom, nation's link.
(I'm doing this for a game.)

OK, we are going to name it $thread['fid5'] (so that is the name to be used in the template).
In script forumdisplay.php gp to line 1315 which reads:

$plugins->run_hooks("forumdisplay_thread_end");

Directly before that add the following 2 lines:

$query = $db->simple_select("userfields", "fid5", "ufid = {$thread['uid']}");
$thread['fid5'] = $db->fetch_array($query)['fid5']; 

Try this out together with $thread['username']. When these work fine we can go to the avatar.

The forum becomes white until I remove the code.
I'm new to MyBB, has been using WordPress and only know HTML/CSS.
Reply
Jump to the post that solved this thread.


Messages In This Thread
RE: Most variables not working on forumdisplay_thread - by XP Mai - 2015-08-16, 01:38 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)