Top Stats

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

Top Stats Ticker

Post by doktornotor »

Hmmm, with this script, you would basically have to duplicate the recent active topics edits in the template and make another slightly altered query which selects the other half of the top X recent topics. Would be a bit messy.

Problem in IE8

Post by Makis »

FYI
Removing the fist line problem shifted to IE9
so both IE8 & 9 displaying it properly with that
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
Thank all for your time.


Edit: I think this is the solution

Problem in IE8

Post by doktornotor »

Makis wrote:FYI
Removing the fist line problem shifted to IE9
so both IE8 & 9 displaying it properly with that
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
Thank all for your time.
This does not make any sense, IE9 is the latest, plus there is no such problem on your or any other site with IE9, checked that yesterday. He must have the "compatibility" mode hard-enabled in his IE9 or something.

@Stoker: tell him to damn upgrade his browser. Even on XP there is IE8 available, absolutely no reason anyone would use such outdated junk.

Problem in IE8

Post by Makis »

doktornotor with respect I believe the meaning of that is not our browser

Problem in IE8

Post by doktornotor »

Do not understand you last comment, sorry... If

Code: Select all

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
"fixes" the page in IE9 then the browser was not running in the IE9 mode and there is absolutely no reason why it would not do so on a page with pretty damn standard doctype - that is, no reason beyond user messing with the "compatibility" view settings for that page. From the doc I linked before:
When Internet Explorer encounters a webpage that does not contain an X-UA-Compatible header, it uses the <!doctype> directive to determine how to display the page. If the <!doctype> directive specifies a standards-based document type, Internet Explorer displays the page in IE9 mode.

Problem in IE8

Post by Theriddler »

i know both IE6 and IE7 has a bug with overflow

as read here http://remysharp.com/2008/01/21/fixing- ... w-problem/

Problem in IE8

Post by Stoker »

Finally I found the fix.
Open styles/prosilver/theme/colours.css
Find: #vertical-ticker{
Add after: position:relative;
Upload and refresh theme.

Problem in IE8

Post by Stoker »

And if you add this to yout tweaks.css it will even work in ie6

Code: Select all

* html #vertical-ticker li{
	height: 38px;
}

Problem with Jquery?

Post by all4phone »

First of all thank you to Stoker, per Top Stats MOD :thumb:

In view of the problem which had smallbreeds (thanks for letting me know), I decided to check interoperability modifications Top Stats and Red Blinking PM and additionally mChat, which uses the jQuery library also.
    I installed all on a clean phpbb in the order:
  1. Top Stats
  2. mChat
  3. Red Blinking PM
    Then I checked operation:
  • TopStats - no scrolling Recent Active Topics
  • mChat - no sound, no slide BBCodes, smilies
  • rbpm - correct operation (maybe because of install as a last)
I opened styles/prosilver/template/overall_header.html and
I removed the phrase noConflict - nothing happened, it does not improve

I brought back noConflict and remove from Red Blinking PM script:

Code: Select all

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
    Then I checked operation:
  • TopStats - works correctly
  • mChat - works correctly
  • rbpm - works correctly
Conclusion: all three modifications using the jQuery library, from My experience shows that you must remove references to jQuery scripts of modifications that were installed later, as the next after the first mod wich uses jQuery.
After your conversation in this topic, I wonder about the use of noConflict and it probably would resign in the next version. I thank everyone for their voice heard in this discussion, it was very helpful for me.

Problem with Jquery?

Post by doktornotor »

all4phone wrote:After your conversation in this topic, I wonder about the use of noConflict and it probably would resign in the next version. I thank everyone for their voice heard in this discussion, it was very helpful for me.
Well, looking at your code, you seem to use it the other way round. In my jQuery Replace Broken Images mod, I am doing this in overall_footer.html:

Code: Select all

<script type="text/javascript">
	$(window).load(function() { 
		$("img").each(function(){
			var image = $(this);
			if(image.context.naturalWidth == 0 || image.readyState == 'uninitialized'){
				$(image).unbind("error").attr("src", "images/404.png");
			}
		});
	});
</script>
and it seems to work just fine without any jQuery.noConflict(); stuff. In my experience, the noConlict() API is only useful when you need to use some other JS lib in the same script like jQuery and you need to rescue $ as a function or variable name back from jQuery temporarily (since $ is just an alias for jQuery otherwise.)

If you do anything else with it, it seems you just flush jQuery down the drain and it never comes back. Hmmmm.