MyBB Community Forums

Full Version: How to expand all article instead of "..."?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to show the whole article, not just the 1st 4-5 letters. 

not ... but the whole title.

Can someone help?
If it comes from a plugin, then you need to edit the plugin (if the plugin doesn't provide a setting to change it).
(2018-03-24, 05:29 PM)RateU Wrote: [ -> ]If it comes from a plugin, then you need to edit the plugin (if the plugin doesn't provide a setting to change it).

It didn't come with Plugin, I just added jQuery to take it out.
You need to post the jQuery code.
<div class="side" style="float: right; width:25%;">

<script type="text/javascript">
jQuery(function(){
jQuery(".latestthreads").load("{$mybb->settings['bburl']}/portal.php .latestthreads_portal");
}); </script>

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse.gif" id="ths_img" class="expander" alt="[-]" title="[-]" /></div>
★ Latest Posts
</td>
</tr>
<tr>
<td class="trow3" style="{$collapsed['ths_e']}" id="ths_e">

<div class="latestthreads float_left" >
</div>

</td>
</tr>
</table>

(2018-03-26, 10:49 AM)RateU Wrote: [ -> ]You need to post the jQuery code.


<div class="side" style="float: right; width:25%;">

<script type="text/javascript">
jQuery(function(){
jQuery(".latestthreads").load("{$mybb->settings['bburl']}/portal.php .latestthreads_portal");
}); </script>

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse.gif" id="ths_img" class="expander" alt="[-]" title="[-]" /></div>
★  Latest Posts
</td>
</tr>
<tr>
<td class="trow3" style="{$collapsed['ths_e']}" id="ths_e">

<div class="latestthreads float_left" >
</div>

</td>
</tr>
</table>
What you did is just including the portal to your index page.
So you need to change your portal.php code.
Remove line #390 - #393 from your portal.php:
		if(my_strlen($thread['subject']) > 25)
		{
			$thread['subject'] = my_substr($thread['subject'], 0, 25) . "...";
		}
(2018-03-27, 01:57 PM)RateU Wrote: [ -> ]What you did is just including the portal to your index page.
So you need to change your portal.php code.
Remove line #390 - #393 from your portal.php:
		if(my_strlen($thread['subject']) > 25)
		{
			$thread['subject'] = my_substr($thread['subject'], 0, 25) . "...";
		}

Should I go to FieZilla to change the code, or can I change from Admin Panel?

Totally worked!

Awesome.
Thank you so much.
Download the portal.php file from server using FileZilla (or any FTP client), if you don't have a local copy of MyBB files already.
Commit edits using an editor (like notepad++ / vscode / sublime etc) and save.
Reupload and replace the file with the edited one to your web server using FTP Client (Filezilla).
(2018-03-27, 07:27 PM)xiaolong Wrote: [ -> ]
(2018-03-27, 01:57 PM)RateU Wrote: [ -> ]What you did is just including the portal to your index page.
So you need to change your portal.php code.
Remove line #390 - #393 from your portal.php:
		if(my_strlen($thread['subject']) > 25)
		{
			$thread['subject'] = my_substr($thread['subject'], 0, 25) . "...";
		}

Should I go to FieZilla to change the code, or can I change from Admin Panel?

Totally worked!

Awesome.
Thank you so much.

Works! Thanks.