MyBB Community Forums

Full Version: Recent Threads On Index [Updated 02-09-21]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
How can i create a single link from Last Poster Profile? Without name. I'll use the link on 'Avatar Last Poster'

#edit

I'm using this
$lastposterprofile = "member.php?action=profile&uid=".$lastposteruid;
<a href="member.php?action=profile&uid={$thread['lastposteruid']}">Text or image</a>

I'm not 100% sure if I grab the avatar field or not. The next build I'll have it grab the thread starter and last poster's avatar so it can be used if desired.
(2014-10-02, 08:13 AM)dragonexpert Wrote: [ -> ]
<a href="member.php?action=profile&uid={$thread['lastposteruid']}">Text or image</a>

I'm not 100% sure if I grab the avatar field or not.  The next build I'll have it grab the thread starter and last poster's avatar so it can be used if desired.

My way is working, but, isn't a Function where automatically do it?

i forget to say, my recentthread_thread :

<a href="{$lastposterprofile}"><img src="{$lastposteravatar}" height="30px" /></a>
The function you want is format_avatar. Later today I'll update to be able to use avatars easily.
Thanks, probably is this function, but, I need to see how it works, cause here're appearing "Array"

$lastposteravatar = format_avatar($thread['avatar'], $max_dimensions = "x|30");

I'll wait for you update Smile

#edit

Just a suggestion

Why not "Posted x hours/minutes ago"?
I updated the build on the mod site.
http://community.mybb.com/thread-160765-...pid1108715

(2014-10-07, 01:14 PM)dragonexpert Wrote: [ -> ]Right now I have a Recent Threads on Index Plugin on the mods site.  I could have ajax refreshes be a new feature in the next release of it.

Thanks @dragonexpert,

I'm waiting impatiently.
I am going on vacation on Friday and won't be back until Tuesday so I'll get the upgrade done when I come back.
I've been extremely busy and I might be able to push the next release out tomorrow.

Here's what is new:
  • A new variable that gives the relative time. ( ex. 5 minutes ago )
  • Row colors alternate
  • The replies column is now clickable just like on forumdisplay.php
  • Ajax refreshes. Default will be 30 seconds and it will stop after 15 minutes.
I updated the plugin on the mods site now.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42