MyBB Community Forums

Full Version: How i make full title for {$thread['subject']}?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi. 

I use Square theme on my forum. I have "Lastest Activity" widget on sidebar.

<strong><a href="{$mybb->settings['bburl']}/{$thread['threadlink']}&amp;action=lastpost">{$thread['subject']}</a></strong>

On this sidebar, full topic title's is not seems. I want to add full topic title with "title=" value. How i make that? 
<strong><a href="{$mybb->settings['bburl']}/{$thread['threadlink']}&amp;action=lastpost" title="FULLTITLECODE????">{$thread['subject']}</a></strong>
have you tried with title="{$thread['subject']}" itself... Big Grin
I assume this is one of the themes which wastes several queries to load the whole portal.php to copy the latest threads blocks. If that's the case, you need to open portal.php and add here: https://github.com/mybb/mybb/blob/featur...l.php#L367 this code:
$thread['subjectfull'] = htmlspecialchars_uni($parser->parse_badwords($thread['subject']));
Then add title="{$thread['subjectfull']}"

EDIT: added it to here BTW: https://github.com/mybb/mybb/issues/1583
(2015-08-07, 02:52 PM)Destroy666 Wrote: [ -> ]I assume this is one of the themes which wastes several queries to load the whole portal.php to copy the latest threads blocks. If that's the case, you need to open portal.php and add here: https://github.com/mybb/mybb/blob/featur...l.php#L367 this code:
$thread['subjectfull'] = htmlspecialchars_uni($parser->parse_badwords($thread['subject']));
Then add title="{$thread['subjectfull']}"

EDIT: added it to here BTW: https://github.com/mybb/mybb/issues/1583

Thank you, it works perfect now!
HI that is fine very nice Thanks but how I include latest threads content of post
Example
Latest Threads
Tittle : More People Have Died From Selfies Than Sharks This Year — Really
Content: Sharks have a pretty bad rep for being sharp-toothed sea creatures with stalker-like tendencies who, OK yeah, sometimes munch on people’s limbs.
But at least they have one thing going for them: they’re not as deadly as an insidious thing we’re all guilty of doing from time-to-time: flipping our phones around to take selfies galore.
Believe it or not, 12 people have died from selfie-related incidents so far in 2015. ......

Forum: Sharks Smile)
Last Post: Market
2 hours ago
» Replies: 0
» Views: 1