Jump to the post that solved this thread.
Not Solved How to expand all article instead of "..."?
#1
Not Solved
I want to show the whole article, not just the 1st 4-5 letters. 

not ... but the whole title.

Can someone help?


Attached Files Thumbnail(s)
   
Reply
#2
Not Solved
If it comes from a plugin, then you need to edit the plugin (if the plugin doesn't provide a setting to change it).
XThreads App For MyBB: Link Directory, YouTube Gallery & etc - Full List
My Demo Site
Reply
#3
Not Solved
(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.
Reply
#4
Not Solved
You need to post the jQuery code.
XThreads App For MyBB: Link Directory, YouTube Gallery & etc - Full List
My Demo Site
Reply
#5
Not Solved
<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>
Reply
#6
Not Solved
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) . "...";
		}
XThreads App For MyBB: Link Directory, YouTube Gallery & etc - Full List
My Demo Site
Reply
#7
Not Solved
(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.
Reply
#8
Not Solved
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).
Reply
#9
Not Solved
(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.
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)