ItemStatsDF [v2.0beta]

This mod will allow any part of DragonFly that uses bbcode to be able to use ItemStats
No longer maintained

ItemStatsDF

Postby zanix » Sun Apr 08, 2007 3:26 am

You probably didn't insert the overlib code in the template/header.html file for your theme
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: ItemStatsDF

Postby zxaltan » Tue May 01, 2007 10:44 pm

ItemStatsDF is not working with Dragonfly (9.1.2.1)

did i put the javascript line in the right place in the header.html

Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="{S_TEXTDIR}" lang="{S_LANGCODE}">
<head>
{S_HEADER_TAGS}
<link rel="alternate stylesheet" type="text/css" href="{THEME_PATH}/style/bg1.css" title="Meadow 1" />
<link rel="stylesheet" type="text/css" href="{THEME_PATH}/style/style.css" media="screen" />
<link rel="stylesheet" href="modules/item_stats/templates/itemstats.css" type="text/css" />
<script type="text/javascript" src="modules/item_stats/overlib/overlib.js"><!-- overLIB © Erik Bosrup --></script>
<!-- IF S_MAIN_MENU or S_ADMIN_CSSMENU -->
<link rel="stylesheet" type="text/css" href="{THEME_PATH}/style/cpgmm.css" />
<!-- ENDIF -->
{CSS_IE}
</head>
<body>
<img id="backPic" src="{THEME_PATH}/images/meadow2.jpg" width="0" height="0" alt="" />
<div id="container">
<!-- IF S_ADMIN_CSSMENU -->
<div class="admincrumb">{PAGE_TITLE}</div>
<div id="breadcrumb">{G_LEFTIMAGE}{G_RIGHTIMAGE}
  <div id="menu">{S_MAIN_MENU}</div>
  <div id="head_username"></div>
</div>
<!-- ELSEIF S_ADMIN_MENU -->
<div class="admincrumb">{PAGE_TITLE}</div>
<div id="breadcrumb">{G_LEFTIMAGE}{G_RIGHTIMAGE}
  <div id="adminmenu"></div>
  <div id="head_username"></div>
</div>
<script type="text/javascript">/*<![CDATA[*/
{S_ADMIN_MENU}
cmDraw ('adminmenu', adminMenu, 'hbr', cmThemeOffice, 'ThemeOffice');
/*]]>*/</script>
<!-- ELSE -->
<!-- IF S_MAIN_MENU -->
<div id="header">
  <h1><a href="{U_MAININDEX}" title="Return to home page" accesskey="1">{S_SITENAME}</a></h1>
  <h2><a href="http://www.dedicatednow.com/" title="Our server sponsor" accesskey="0">DedicatedNow</a></h2>
  <img src="{THEME_PATH}/images/header_br.gif" class="hdrbr" alt="" />
</div>
<div id="menu">{S_MAIN_MENU}</div>
<!-- ELSE -->
<div id="header">
  <h1><a href="{U_MAININDEX}" title="Return to home page" accesskey="1">{S_SITENAME}</a></h1>
  <h2><a href="http://www.dedicatednow.com/" title="Our server sponsor" accesskey="0">DedicatedNow</a></h2>
  <ul>
  <!-- IF S_IS_ADMIN --><li id="administration"><a href="{U_ADMININDEX}">{S_ADMIN}</a></li><!-- ENDIF -->
  <li id="my_account"><a href="{U_MY_ACCOUNT}">{S_MY_ACCOUNT}</a></li>
  <li id="forums"><a href="{U_FORUMS}">{S_FORUMS}</a></li>
  <!-- IF S_DOWNLOADS --><li id="downloads"><a href="{U_DOWNLOADS}">{S_DOWNLOADS}</a></li><!-- ENDIF -->
  </ul>
</div>
<!-- ENDIF -->
<div id="breadcrumb">{G_LEFTIMAGE}{G_RIGHTIMAGE}
  <!-- IF PAGE_TITLE --><div id="pagetitle">{PAGE_TITLE}</div><!-- ENDIF -->
  <div id="head_username">{S_USER_INFO}</div>
</div>
<hr class="hide" />
<!-- ENDIF -->

<table class="maintable"><tr>
<!-- IF S_LEFTBLOCKS -->
 <td valign="top" class="mainside" id="pe600" {B_L_VISIBLE}>
 <!-- BEGIN leftblock -->
  <div class="blockheadl"><img class="blockimg" alt="[x]" title="Show/hide content" id="pic{leftblock.S_BID}" src="{leftblock.S_IMAGE}" onclick="blockswitch('{leftblock.S_BID}');" /> {leftblock.S_TITLE}</div>
  <div class="blockcontent" id="pe{leftblock.S_BID}" {leftblock.S_VISIBLE}>{leftblock.S_CONTENT}</div><br />
 <!-- END leftblock -->
 <div class="mainside"></div>
 </td>
<!-- ENDIF -->
<td valign="top" class="main">
<!-- IF IMPORTANT_MESSAGE -->
<div style="font-size: 12px; color: #FF0000; text-align: center;">{IMPORTANT_MESSAGE}</div><br />
<!-- ENDIF -->
<!-- BEGIN messageblock -->
<div class="fieldset">
  <div class="msgtitle" style="text-align: center;">{messageblock.S_TITLE}</div>
  <div class="content" >{messageblock.S_CONTENT}</div>
  <div align="right"><span class="storyfoot">
  <!-- IF S_IS_ADMIN -->
  {messageblock.S_OUTPUT} - {messageblock.S_REMAIN} - <a href="{messageblock.U_EDITMSG}">{messageblock.S_EDIT}</a>
  <!-- ELSE -->
  {messageblock.S_DATE}
  <!-- ENDIF -->
  </span></div>
</div><br/>
<!-- END messageblock -->
<!-- BEGIN centerblock -->
<div class="table1">
  <div class="option" align="center"><strong>{centerblock.S_TITLE}</strong></div>
  {centerblock.S_CONTENT}
</div><br />
<!-- END centerblock -->
User avatar
zxaltan
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 62
Joined: Mon Jul 10, 2006 1:09 am

ItemStatsDF

Postby robojerk » Tue May 01, 2007 11:36 pm

It looks right, but when I go to your website and click on view source I don't see it.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

ItemStatsDF

Postby robojerk » Tue May 01, 2007 11:50 pm

I opened up your
Code: Select all
{df_root}/themes/{theme_name}/templates/header.html
for the "default" theme and it's missing those lines.. It appears you modified your "dragonfly" theme though..
Last edited by robojerk on Tue May 01, 2007 11:58 pm, edited 3 times in total.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

Re: ItemStatsDF

Postby zxaltan » Wed May 02, 2007 2:19 am

all i did was add this line

<link rel="stylesheet" href="modules/item_stats/templates/itemstats.css" type="text/css" />
<script type="text/javascript" src="modules/item_stats/overlib/overlib.js"><!-- overLIB © Erik Bosrup --></script>

that is the new header file for the lates version 9.1.2.1
User avatar
zxaltan
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 62
Joined: Mon Jul 10, 2006 1:09 am

ItemStatsDF

Postby robojerk » Wed May 02, 2007 2:34 am

Try changing your theme, or adding those lines to the "default" theme.

You have to add those lines to every theme on your site. Currently the website is forcing non registered users to use the theme named "default". You need to make the changes to this theme as well.. I created an account on your site and went to the "My Account" area and under "My preferences" I changed the theme my account will use to the theme named "dragonfly" I am able to see the mouseovers just fine now. =) :compress:
Last edited by robojerk on Wed May 02, 2007 2:41 am, edited 1 time in total.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

Re: ItemStatsDF

Postby zxaltan » Wed May 02, 2007 4:06 am

Got it now i need to figure out why the Icons will not display

Also where did you get the program that makes the server info image
The one I have errors out on the $version = apache_get_version();
User avatar
zxaltan
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 62
Joined: Mon Jul 10, 2006 1:09 am

ItemStatsDF

Postby robojerk » Wed May 02, 2007 4:07 am

zxaltan wrote:Also where did you get the program that makes the server info image
The one I have errors out on the $version = apache_get_version();


I get errors too.. You can try commenting that line out, then uncomment the line blow and input the version #
Last edited by robojerk on Wed May 02, 2007 4:11 am, edited 1 time in total.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

Re: ItemStatsDF

Postby zxaltan » Wed May 02, 2007 4:22 am

i must need a newer version

thx for all the help
User avatar
zxaltan
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 62
Joined: Mon Jul 10, 2006 1:09 am

Re: ItemStatsDF

Postby robojerk » Wed May 02, 2007 4:31 am

zxaltan wrote:i must need a newer version

thx for all the help


Here's a code snippet from serverspecs.php..
Code: Select all
//
$version explode('/'apache_get_version());
$apachever explode(' '$version[1]);
//$apachever = ''; 


try this if your version of Apache is 2.0.0
Code: Select all
//
//$version = explode('/', apache_get_version());
//$apachever = explode(' ', $version[1]);
$apachever '2.0.0'
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

ItemStatsDF

Postby Unrest » Thu May 03, 2007 9:15 am

I have a really, really odd problem.

With the modified nbbcode.php file, a single extra right angle bracket > is placed at the top of any pages that include that file. I could probably live with that if it wasn't breaking the CSS formatting of my Main Menu block only when IE6 (or lesser) view a forum post. It doesn't happen in the topics; only in the post.

I have tried the packaged nbbcode.php file, and I have tried doing the manual edit version and both are identical and produce the exact same problem. I have narrowed it down to this code snippet actually introducing the issue, but I don't know if this code is causing the problem or if it's some redundancy in one of the includes.

Code: Select all
# [item] and [itemico] - Parse text for ItemStats mod
      
if( is_active('item_stats') )
      {
         require_once(
BASEDIR.'modules/item_stats/df_itemstats.php');
         
$text itemstats_parse($text);
      }

      
$text preg_replace($patterns$replacements$text); 


I'm using the latest version of ItemStatsDF (1.2), and 9.1.2.1 of Dragonfly. I imagine this is some obscure conflict with my theme, but I have spent weeks and weeks literally just locating what was causing this extra bracket in the first place.

Does anyone have any ideas whatsoever? Looking over the code, I can't see anything immediately wrong that would insert an extra bracket...

Check out the site if you'd like to witness it yourself:
http://www.mg-anathema.com

To see the IE6 issue in a forum post, visit the public forums and read a thread. Your main menu font will quadruple in size and push the center block frame out of position. This issue does not occur in IE7 or Firefox.

Any help would be really appreciated. I'd like to be able to have ItemStats enabled on the site, but I'm forced to cater to IE6 users as they're still most prevalent. :(

I took the liberty of creating a little screenshot showing the main page, and a forum post with the enlarged text. Items highlighted in red.
Image
Last edited by Unrest on Thu May 03, 2007 9:30 am, edited 4 times in total.
Unrest
WR.net Apprentice
WR.net Apprentice
 
Posts: 11
Joined: Mon Apr 23, 2007 11:10 am

Re: ItemStatsDF

Postby robojerk » Thu May 03, 2007 9:43 am

I get the ">" in my FireFox browser..

I think there is probably a > chilling somewhere in your code...

Is it still there when you disable the item_stats module?

I uploaded my working bbcode files.. They include all the embeded video stuff and item_stats..
Attachments
nems_forum_tags.zip
THESE FILES WILL ONLY WORK IN DRAGONFLY 9.1.X
(237.61 KiB) Downloaded 61 times
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

ItemStatsDF

Postby robojerk » Thu May 03, 2007 10:01 am

Did you try any other themes?
Last edited by robojerk on Thu May 03, 2007 10:18 am, edited 1 time in total.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

ItemStatsDF

Postby Unrest » Thu May 03, 2007 1:16 pm

Robo, you're awesome; thanks for responding so quickly. I have tried other themes, but it's late (for me) and I'm having trouble recalling if the extra bracket showed up--I'm fairly certain it did. I can test this again tomorrow...

The ">" shows up in any browser. I was trying to say that the enlarged text on the forum posts page is the only thing that shows up in IE6.

If I disable the item_stats mod, the bracket ">" disappears. I'm in the process of uploading the forum tags you so kindly included in your reply. I'll let you know if that takes care of the issue. If nothing else, I really appreciate the added functionality. :)
Unrest
WR.net Apprentice
WR.net Apprentice
 
Posts: 11
Joined: Mon Apr 23, 2007 11:10 am

ItemStatsDF

Postby Unrest » Thu May 03, 2007 1:26 pm

Confirmed: the ">" bracket still displays when using a different theme (tried two, including the default).

Your enhanced forum tags did not correct the issue, but I truly do appreciate the added functionality for embedded video, etc. I was planning on doing that anyway, so you really saved me some time. :)

Something in item_stats must be doing it; it's just so weird...

Thanks again for all your help so far. :)
Unrest
WR.net Apprentice
WR.net Apprentice
 
Posts: 11
Joined: Mon Apr 23, 2007 11:10 am

PreviousNext

Return to ItemStatsDF

Who is online

Users browsing this forum: No registered users and 0 guests

cron