(2015-08-11, 03:52 PM)Ad Bakker Wrote: Which information is in $post['fid5']?
This is custom, nation's link.
(I'm doing this for a game.)
I'm new to MyBB, has been using WordPress and only know HTML/CSS.
![]() |
(2015-08-11, 03:52 PM)Ad Bakker Wrote: Which information is in $post['fid5']? This is custom, nation's link. (I'm doing this for a game.)
I'm new to MyBB, has been using WordPress and only know HTML/CSS.
(2015-08-11, 04:12 PM)XP Mai Wrote: This is custom, nation's link. 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:
Directly before that add the following 2 lines:
Try this out together with $thread['username']. When these work fine we can go to the avatar.
Regards, Ad Bakker (NL)
Is it the same pattern for all other variables I want to make?
I'm new to MyBB, has been using WordPress and only know HTML/CSS.
(2015-08-11, 05:16 PM)XP Mai Wrote: Is it the same pattern for all other variables I want to make? That's a matter of choice. The variable name you define in the php script is the one you must use in the template. So you can choose any name, as long as it is not an existing one. But if you mean by "pattern": the way it works, yes. Only for the avatar it is perhaps more complex, I don't know yet. OK, I finished it with the avatar, add the lines below to furumdisplay.php below the 2 lines that were added before:
When you add {$thread['avatar']} to the proper place in template forumdisplay_thread the avatar will appear there linking to the thread starter's profile. Now the variables that you mentioned in your opening post are treated. I am curious whether you get it working. I am sure it will work, because I tested it.
Regards, Ad Bakker (NL)
It gets logged in avatar, not thread OP's.
I'm new to MyBB, has been using WordPress and only know HTML/CSS.
(2015-08-15, 07:29 PM)XP Mai Wrote: It gets logged in avatar, not thread OP's. Can you be some more specific with what you try to say here?
Regards, Ad Bakker (NL)
The avatar shows my avatar, not OP's avatar.
I'm new to MyBB, has been using WordPress and only know HTML/CSS.
(2015-08-15, 08:45 PM)XP Mai Wrote: The avatar shows my avatar, not OP's avatar. Sure you used this query and you are not the opening poster?
I checked and ran the code once again, and here it does exactly what it should be.
Regards, Ad Bakker (NL)
(2015-08-11, 04:52 PM)Ad Bakker Wrote:(2015-08-11, 04:12 PM)XP Mai Wrote: This is custom, nation's link. The forum becomes white until I remove the code.
I'm new to MyBB, has been using WordPress and only know HTML/CSS.
|
« Next Oldest | Next Newest »
|