MyBB Community Forums

Full Version: PortalReadMore
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have just installed this plugin. It is active but somehow nothing happened. My test forum is: http://arcicorc.vot.pl. Can somebody help me with it?

Test user: test
Test User password: test123
Hey,

the plugin CSS style is missing.

Please look into the headerinclude template of your them and check there is the entry
{$portalreadmore_css}

If not add {$portalreadmore_css} right below {$stylesheets}
Please find attached copy of my headerinclude template:


<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<link href='//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,200italic,400italic,600italic' rel='stylesheet' type='text/css'>
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.js?ver=1800"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1800"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1800"></script>
<script type="text/javascript" src="images/vienna/jquery-ui.js"></script>
<script type="text/javascript" src="images/vienna/jquery.tipsy.js"></script>



<script type='text/javascript'> 
$(function() {
$("a").tipsy({gravity: jQuery.fn.tipsy.autoNS});
$("title").tipsy({gravity: jQuery.fn.tipsy.autoNS});
$("img").tipsy({gravity: jQuery.fn.tipsy.autoNS});
$("i").tipsy({gravity: jQuery.fn.tipsy.autoNS});
$("span").tipsy({gravity: jQuery.fn.tipsy.autoNS});
$("div").tipsy({gravity: jQuery.fn.tipsy.autoNS});
  });
</script>

<script language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myadvertisements.js"></script>

{$stylesheets}
{$portalreadmore_css}
<!-- UNREADPOSTS_CSS -->
<script type="text/javascript">
<!--
	lang.unknown_error = "{$lang->unknown_error}";

	lang.select2_match = "{$lang->select2_match}";
	lang.select2_matches = "{$lang->select2_matches}";
	lang.select2_nomatches = "{$lang->select2_nomatches}";
	lang.select2_inputtooshort_single = "{$lang->select2_inputtooshort_single}";
	lang.select2_inputtooshort_plural = "{$lang->select2_inputtooshort_plural}";
	lang.select2_inputtoolong_single = "{$lang->select2_inputtoolong_single}";
	lang.select2_inputtoolong_plural = "{$lang->select2_inputtoolong_plural}";
	lang.select2_selectiontoobig_single = "{$lang->select2_selectiontoobig_single}";
	lang.select2_selectiontoobig_plural = "{$lang->select2_selectiontoobig_plural}";
	lang.select2_loadmore = "{$lang->select2_loadmore}";
	lang.select2_searching = "{$lang->select2_searching}";

	var cookieDomain = "{$mybb->settings['cookiedomain']}";
	var cookiePath = "{$mybb->settings['cookiepath']}";
	var cookiePrefix = "{$mybb->settings['cookieprefix']}";
	var deleteevent_confirm = "{$lang->deleteevent_confirm}";
	var removeattach_confirm = "{$lang->removeattach_confirm}";
	var loading_text = '{$lang->ajax_loading}';
	var saving_changes = '{$lang->saving_changes}';
	var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";
	var my_post_key = "{$mybb->post_code}";
	var rootpath = "{$mybb->settings['bburl']}";
	var imagepath = "{$theme['imgdir']}";
  	var yes_confirm = "{$lang->yes}";
	var no_confirm = "{$lang->no}";
	var MyBBEditor = null;
	var spinner_image = "{$theme['imgdir']}/spinner.gif";
	var spinner = "<img src='" + spinner_image +"' alt='' />";
// -->

<!-- kod do slidera w stopce-->

  function theRotator() {
    //Set the opacity of all images to 0
    $('div.rotator ul li').css({opacity: 0.0});
 
    //Get the first image and display it (gets set to full opacity)
    $('div.rotator ul li:first').css({opacity: 1.0});
 
    //Call the rotator function to run the slideshow, 6000 = change to next image after 6 seconds
 
    if ($('div.rotator ul li').length > 1) {
    setTimeout('rotate()', 6000);
}
}
 
function rotate() {
    //Get the first image
    var current = ($('div.rotator ul li.show')? $('div.rotator ul li.show') : $('div.rotator ul li:first'));
 
    if ( current.length == 0 ) current = $('div.rotator ul li:first');
 
    //Get next image, when it reaches the end, rotate it back to the first image
    var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('div.rotator ul li:first') :current.next()) : $('div.rotator ul li:first'));
 
    //Un-comment the 3 lines below to get the images in random order
 
    //var sibs = current.siblings();
    //var rndNum = Math.floor(Math.random() * sibs.length );
    //var next = $( sibs[ rndNum ] );
 
    //Set the fade in effect for the next image, the show class has higher z-index
    next.css({opacity: 0.0}).addClass('show').animate({opacity: 1.0}, 1000);
 
    //Hide the current image
    current.animate({opacity: 0.0}, 1000, function(){setTimeout('rotate()', 6000);}) .removeClass('show');
 
};
 
$(document).ready(function() {
    //Load the slideshow
    theRotator();
    $('div.rotator').fadeIn(1000);
    $('div.rotator ul li').fadeIn(1000); // tweek for IE
});
  <!-- kod do slidera w stopce--> 

</script>
 
I have included {$portalreadmore_css} below {$stylesheets} but still it is not working

I have found the reason. There was missing {\$prm_pa_start} in the portal_announcement template

<table cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>{$icon} <a href="{$mybb->settings['bburl']}/{$announcement['threadlink']}">{$announcement['subject']}</a></strong></td>
</tr>
<tr>
<td class="trow3" align="right">
<span class="smalltext">{$lang->posted_by} {$profilelink}  - {$anndate} - {$lang->forum} <a href="{$mybb->settings['bburl']}/{$announcement['forumlink']}">{$announcement['forumname']}</a> {$numcomments}</span>
</td>
</tr>
<tr>
<td class="trow3">
<table border="0" cellpadding="{$theme['tablespace']}" class="tfixed" style="width: 100%;">
	<tr>
		{$avatar}
		<td class="trow3 scaleimages">
			{$prm_pa_start}
			<p>
				{$message}
			</p>
			{$post['attachments']}
		{$prm_pa_end}
		</td>
	</tr>
	<tr>
		<td align="right" colspan="2" valign="bottom">
			<span class="smalltext">
				<a href="{$mybb->settings['bburl']}/printthread.php?tid={$announcement['tid']}"><i style="font-size: 14px;" class="fa fa-print fa-fw" title="Print this item" /></i></a>{$senditem}
			</span>
		</td>
	</tr>
</table>
</td>
</tr>
</table>
<br />
OK, I guess there were some differences between default theme portal template and the one of the custom theme. That's why the plugin script couldn't make the necessary changes in template file.