Home arrow Forum jsmf and wow itemstats
  Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 05:44:44 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 2.0.x (Moderators: -Wolverine, kai920)
| | | |-+  jsmf and wow itemstats
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: jsmf and wow itemstats  (Read 1417 times)
mmaura
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
jsmf and wow itemstats
« on: February 10, 2007, 10:24:39 AM »

hi, good job Smiley

i use lastet version of bridge, an CB, an SMF 1.1.1 and itemstats 1.5

I dont know how realy work the bridge, but i think is cutting the javascript who normaly insersed by itemstat.

look :

here access directly whithout jsmf all look fine


here same post but whith jsmf

do you think jsmf is in cause ? how to arrange it ?

thank.
Logged
Livebox
Guest
Re: jsmf and wow itemstats
« Reply #1 on: February 10, 2007, 10:34:17 AM »

I think that your problem is the duplicate Classes and ID’s. This is messing up your template. There are several solutions posted on this forum

When you use your forum in Wrapped mode both Css files are getting loaded. And this can be a problem when there are duplicate Classes in your Template

Download the Webdeveloper Toolbar for Firefox to find the dublicated classes.
Logged
mmaura
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Re: jsmf and wow itemstats
« Reply #2 on: February 10, 2007, 12:39:43 PM »

I have web developer, but  if who look in the source you can see :

broker version (with jsmf)

Code:
<td colspan=3 style="width:auto; vertical-align:top; border: none ; padding: 0px; margin: 0px ;">
<div class=\'wowitem wowitemlive\'><span class=\'iname\'><span class=\'purplename\'>Pendentif de domination ......

working version (without jsmf)
Code:
<hr width="100%" size="1" class="hrcolor" />
<div class="post" id="msg_2749">
<a class='forumitemlink' target='_blank' href='http://wow.allakhazam.com/db/item.html?witem=28245&locale=frFR'>
<span onmouseover="return overlib('<table cellpadding=\'0\' border=\'0\' class=\'borderless\'>
<tr>
<td valign=\'top\' class=\'itemicon\'>
<img class=\'itemicon\' src=\'http://wow.allakhazam.com/images/icons/INV_Jewelry_Necklace_36.png\'>
</td>
<td>
<body>
<div class=\'wowitem wowitemlive\'><span class=\'iname\'><span class=\'purplename\'>Pendentif de domination


Lot of code is missing
« Last Edit: February 10, 2007, 12:41:22 PM by mmaura » Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: jsmf and wow itemstats
« Reply #3 on: February 10, 2007, 05:14:45 PM »

Install 2.0.2a patch
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
mmaura
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Re: jsmf and wow itemstats
« Reply #4 on: February 11, 2007, 07:46:47 AM »

I have do it, this do the same thing
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: jsmf and wow itemstats
« Reply #5 on: February 11, 2007, 10:54:01 AM »

I confused on what the problem is.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
mmaura
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Re: jsmf and wow itemstats
« Reply #6 on: February 12, 2007, 08:23:49 AM »

The pb is than: jsmf cut the onmouseover code (added by itemstats), i don't know why, if using script balise then jsmf not cutting.

But, i have found a another way to what i want.

i configure jsmf to not wrapped, and i configure menu link to wrapped (using joomla wrapper) and now work fine. then, i think the problem is in jsmf wrapper.

thank for helping.
Logged
mmaura
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Re: jsmf and wow itemstats
« Reply #7 on: February 12, 2007, 09:13:15 AM »

I answer too fast, now my problem is with recent_post module, he link direct (normal i configure to do that).

in smf.class.php line 467:
Code:
            $mainframe->addCustomHeadTag($headers);
            $regex = array('/<!DOCTYPE.*<body>/smi', '/<\/body>/i', '/<\/html>/i');
            $buffer = preg_replace($regex, array('', '', ''), $buffer);
            unset($matches, $keywords, $css, $search, $replace, $headers, $regex);

the is to remplace, the beggining of the code ? and this from the beggining to the body tag ? but itemstats add a body tag, this is the reason why all the beggin of the genrated code is missing ?
« Last Edit: February 12, 2007, 09:20:00 AM by mmaura » Logged
mmaura
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Re: jsmf and wow itemstats
« Reply #8 on: February 12, 2007, 09:31:29 AM »

Ok this really that (i tested to put comment), i try to rewrite this 2 lines to remplace only the first occurence, but pcre is not my best qualitie Smiley
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: jsmf and wow itemstats
« Reply #9 on: February 12, 2007, 11:07:48 AM »

if you have 2.0.2a it will not remove any code but SMF.  It does a non-greedy replacement.  You said you applied 2.0.2a patch however the code you just posted IS NOT 2.0.2a.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
mmaura
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Re: jsmf and wow itemstats
« Reply #10 on: February 12, 2007, 01:24:16 PM »

ha, think bizare, i take the 2.0.2a archive in the forum and i remplace smf.class.php whith the content of the archive. i must retry.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Joomla Comment
Search Contact About Advertise Blogs Topsites Submit News Register Login