Thread Rating:
  • 10 Vote(s) - 3.2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] Recent Threads On Index [Updated 02-12-19]
#11
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;
Reply
#12
<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.
Reply
#13
(10-02-2014, 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>
Reply
#14
The function you want is format_avatar. Later today I'll update to be able to use avatars easily.
Reply
#15
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"?
Reply
#16
I updated the build on the mod site.
Reply
#17
http://community.mybb.com/thread-160765-...pid1108715

(10-07-2014, 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.
Reply
#18
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.
Reply
#19
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.
Reply
#20
I updated the plugin on the mods site now.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)