2018-03-24, 04:46 AM
2018-03-24, 05:29 PM
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-25, 02:20 PM
(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.
2018-03-26, 10:49 AM
You need to post the jQuery code.
2018-03-27, 12:58 AM
<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>
<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>
<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>
2018-03-27, 01:57 PM
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:
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, 07:27 PM
(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.
2018-03-27, 07:45 PM
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).
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-28, 10:34 AM
(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.