forums.eqdkp.com: How to make a new page use Itemstats - forums.eqdkp.com

Jump to content

  • (3 Pages) +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

How to make a new page use Itemstats Rate Topic: ***** 1 Votes

#31 User is offline   psyker7

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 519
  • Joined: 07-October 05
  • Location:Victoria, Australia

Posted 16 May 2006 - 04:28 PM

Its odd, you're not the first one to have this problem...

Try reuploading viewnews.php from the itemstats package (or check that the correct modifications are there)

#32 Guest_SleazyC_*

  • Group: Guests

Posted 16 May 2006 - 05:51 PM

View Postpsyker7, on May 16 2006, 08:28 PM, said:

Its odd, you're not the first one to have this problem...

Try reuploading viewnews.php from the itemstats package (or check that the correct modifications are there)

viewnews.php looks fine but I'll take another look and see if I missed something.

EDIT

I think I found something. Was digging through some old code for some of the older itemstats version (mainly 1.0) and found this line of code causing people problems.

<iframe name=\"item_stats\" src=\"http://www.crusadersvalorous.org/items/index.php?linked=1&amp;news=true&amp;item=\\1\" width=\"450\" height=\"260\" scrolling=\"no\" frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\"></iframe>"


I have no idea where this piece of code is I have been digging through my files but haven't found anything yet.

EDIT #2 - The piece of code was in my function.php which apparently was never edited. I just grabbed the Full version of Itemstats 1.3 and replaced the file and it is now fixed.

#33 Guest_Greenwing_*

  • Group: Guests

Posted 17 May 2006 - 11:44 AM

View PostSleazyC, on May 16 2006, 05:51 PM, said:

viewnews.php looks fine but I'll take another look and see if I missed something.

EDIT

I think I found something. Was digging through some old code for some of the older itemstats version (mainly 1.0) and found this line of code causing people problems.

<iframe name=\"item_stats\" src=\"http://www.crusadersvalorous.org/items/index.php?linked=1&amp;news=true&amp;item=\\1\" width=\"450\" height=\"260\" scrolling=\"no\" frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\"></iframe>"


I have no idea where this piece of code is I have been digging through my files but haven't found anything yet.

EDIT #2 - The piece of code was in my function.php which apparently was never edited. I just grabbed the Full version of Itemstats 1.3 and replaced the file and it is now fixed.


Functions.php was overwritten with the latest eqdkp patch. You just helped me find this gremlin in my code too. Thank you. :)

#34 Guest_norg_*

  • Group: Guests

Posted 02 June 2006 - 01:14 AM

Hi.

I'm responsible for the updating of our DKP but I don't actually host the database or any of that. I asked the guy who does do that if he could add one of your price list pages, but he couldn't get the [itemicon] tags to work -- he seemed unfamiliar with itemstats/phpbb_itemstats.php, as if we didn't have one?

Here's the page we did end up doing for reference, but the tables are all messed up with names instead of icons. http://mrp.potentia....etpoints.php?s=

#35 User is offline   psyker7

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 519
  • Joined: 07-October 05
  • Location:Victoria, Australia

Posted 02 June 2006 - 03:34 AM

View Postnorg, on Jun 2 2006, 07:14 PM, said:

Hi.

I'm responsible for the updating of our DKP but I don't actually host the database or any of that. I asked the guy who does do that if he could add one of your price list pages, but he couldn't get the [itemicon] tags to work -- he seemed unfamiliar with itemstats/phpbb_itemstats.php, as if we didn't have one?

Here's the page we did end up doing for reference, but the tables are all messed up with names instead of icons. http://mrp.potentia....etpoints.php?s=


3rd post of this topic.
http://forums.eqdkp....indpost&p=17772

#36 Guest_norg_*

  • Group: Guests

Posted 02 June 2006 - 04:04 AM

Quote

For those trying to get the [itemicon][/itemicon] tags to work, I added a custom function to phpbb_itemstats.php

basically:

~~~~~~~~~
Open itemstats/phpbb_itemstats.php

Yeah I showed him this, but he was like "uh..PHPBB? We don't use that." Forgive my ignorance because as I said, I don't run EQDKP myself, but is this 'phpbb_itemstats.php' something all users of EQDKP/Itemstats should have?

#37 User is offline   psyker7

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 519
  • Joined: 07-October 05
  • Location:Victoria, Australia

Posted 02 June 2006 - 04:19 AM

Yes, you might not use phpBB, but the newsparser actually does use a sort of bbcode to parse its text.
You will find that the place where the [item] tags are parsed is actually in that file.
So for itemicon to work, it also needs ot be in this file.

#38 Guest_Neco_*

  • Group: Guests

Posted 02 June 2006 - 05:18 AM

View Postpsyker7, on Jun 2 2006, 01:19 PM, said:

Yes, you might not use phpBB, but the newsparser actually does use a sort of bbcode to parse its text.
You will find that the place where the [item] tags are parsed is actually in that file.
So for itemicon to work, it also needs ot be in this file.


Y HALLO THAR, im the guy Norg is refering to, and indeed we do not use phpBB, i've done the changes to phpbb_itemstats.php (for whatever reason I still don't really understand...) and http://mrp.potentia.org/setpoints.php isn't really working with [itemicon], it works fine with [item] and I've checked if phpbb_itemstats.php even gets accessed and doesn't seem to be the case.

itemstats/eqdkp_itemstats.php:include_once(dirname(__FILE__) . '/phpbb_itemstats.php');


Awesome, it is included, but not really since setpoints.php isn't picking up the changes...

Im shit in real life and apparently missed that the match for itemicon should PERHAPS BE INCLUDED IN THE FUNCTION.... so yeah, disregard all this and send me match to burn myself with or something.

#39 User is offline   psyker7

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 519
  • Joined: 07-October 05
  • Location:Victoria, Australia

Posted 02 June 2006 - 07:32 AM

Quote

Im shit in real life and apparently missed that the match for itemicon should PERHAPS BE INCLUDED IN THE FUNCTION.... so yeah, disregard all this and send me match to burn myself with or something.

/e bundles up Nefarian and sends him off to burn yo ass. ;)

#40 Guest_Rigure_*

  • Group: Guests

Posted 19 June 2006 - 06:19 PM

View PostNeco, on Jun 2 2006, 08:18 AM, said:

Y HALLO THAR, im the guy Norg is refering to, and indeed we do not use phpBB, i've done the changes to phpbb_itemstats.php (for whatever reason I still don't really understand...) and http://mrp.potentia.org/setpoints.php isn't really working with [itemicon], it works fine with [item] and I've checked if phpbb_itemstats.php even gets accessed and doesn't seem to be the case.

itemstats/eqdkp_itemstats.php:include_once(dirname(__FILE__) . '/phpbb_itemstats.php');
Awesome, it is included, but not really since setpoints.php isn't picking up the changes...

Im shit in real life and apparently missed that the match for itemicon should PERHAPS BE INCLUDED IN THE FUNCTION.... so yeah, disregard all this and send me match to burn myself with or something.



that post made me lol in rl...man..

#41 Guest_Khelben_*

  • Group: Guests

Posted 27 June 2006 - 04:37 AM

I kinda think this puts me on the track I'm looking for. However, I'm not certain. I'm wanting to add another page outside the DKP/PHP realm that references ItemStats information. It would be the same server as the DKP/PHP setups, just a different directory.

Basically, is it be as simple as a module of code I can add to an HTML page to pull the info? If so, what is that nugget of code?

#42 Guest_Rigure_*

  • Group: Guests

Posted 28 June 2006 - 11:42 AM

View PostKhelben, on Jun 27 2006, 07:37 AM, said:

I kinda think this puts me on the track I'm looking for. However, I'm not certain. I'm wanting to add another page outside the DKP/PHP realm that references ItemStats information. It would be the same server as the DKP/PHP setups, just a different directory.

Basically, is it be as simple as a module of code I can add to an HTML page to pull the info? If so, what is that nugget of code?



you might try looking at the setpoints.php code . search for it on the forums. Basicly it puts the html into a php format and goes from there..that MIGHT be what your looking for. Other than that you might try explaining a bit more of what your trying to do.

  • (3 Pages) +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users