forums.eqdkp.com: Instructions for Using itemstats in Mambo - forums.eqdkp.com

Jump to content

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

Instructions for Using itemstats in Mambo Rate Topic: -----

#1 Guest_slain_*

  • Group: Guests

Posted 02 November 2005 - 05:31 AM

NOTE: I have received a number of messages about people getting errors complaining about DEBUG being undefined in itemstats. I am using the patched itemstats from a couple of months back that fixed the 'allakhazam xml change causing bad mouseover formatting' bug. I have not tried newer versions if they exist. I would hazard to say that the DEBUG variable problem is some new code in itemstats causig a problem. Perhaps setting DEBUG = 0; or similar in the itemstats file causing the problem (sqlsomething?)?


EDITED TO FIX MISSING OVERLIB:

The goal of this is to use [item]Netherwind Pant[/item] to describe items in mambo content as it does in phpbb.


Mambo Installation
==========================================

1. Configuration

Make sure you complete the instructions in 'config.txt' before doing this part.


2. Copying it over

Copy the 'itemstats' folder to the root of your mambo installation.


3. Mambo modifications

Follow the instructions below to modify the mambo files with data specific to your environment. This can vary from version to version. The goal is to inject a call to 'itemstats_parse()' in the location where the content generation is handled. In my installation, the main entry point for this is the components/com_content/content.php module, so I added the call in this component.

OPEN
{mambo_root}/components/com_content/content.php

FIND
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );


ADD-AFTER
include('itemstats/phpbb_itemstats.php');

[Note you may need to try '../itemstats/phpbb_itemstats.php' or '../../itemstats/phpbb_itemstats.php' etc depending on your installation]


FIND
if ( $params->get( 'introtext' ) ) {

ADD-BEFORE
$row->fulltext = itemstats_parse($row->fulltext);

ADD-AFTER
// Parse text for ItemStats mod
$row->introtext = itemstats_parse($row->introtext);

SAVE AND CLOSE
{mambo_root}/components/com_content/content.php


OPEN
{mambo_root}/templates/[your template]/index.php

FIND
</head>
<body....>

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


[Note you may need to try '../itemstats/phpbb_itemstats.php' or '../../itemstats/phpbb_itemstats.php' etc depending on your installation]


SAVE AND CLOSE
{mambo_root}/templates/[your template]/index.php


DONE



================================================

Enjoy :P

This post has been edited by slain: 27 March 2006 - 04:32 AM


#2 Guest_sirtech_*

  • Group: Guests

Posted 03 November 2005 - 03:47 AM

after i have done this exactly as you described it, where exactly within my mambo site is the [item]-tag available?

#3 Guest_slain_*

  • Group: Guests

Posted 05 November 2005 - 10:13 AM

View Postsirtech, on Nov 3 2005, 06:47 AM, said:

after i have done this exactly as you described it, where exactly within my mambo site is the [item]-tag available?


You will be able to use it in anything that uses the content component to display, most notably the News section.

For an example see:
http://www.hellguild.com

and hover on the item links. Those links were created in the articles by
[item]Spinal Reaper[/item] etc.


I am not completely familiar with Mambo, so I am not sure if, for example, the Blog feature is a separate component that would need a patch as well, to use the bbcode in a blog.

This post has been edited by slain: 05 November 2005 - 10:16 AM


#4 Guest_Panda_*

  • Group: Guests

Posted 06 November 2005 - 12:46 PM

I did exactly what you said, but this came up:

Warning: main(/newsite/itemstats/phpbb_itemstats.php): failed to open stream: No such file or directory in /home/eminence/public_html/newsite/components/com_content/content.php on line 13

Warning: main(): Failed opening '/newsite/itemstats/phpbb_itemstats.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/eminence/public_html/newsite/components/com_content/content.php on line 13

Fatal error: Call to undefined function: itemstats_parse() in /home/eminence/public_html/newsite/components/com_content/content.php on line 1125


#5 Guest_slain_*

  • Group: Guests

Posted 06 November 2005 - 10:21 PM

View PostPanda, on Nov 6 2005, 03:46 PM, said:

I did exactly what you said, but this came up:

Warning: main(/newsite/itemstats/phpbb_itemstats.php): failed to open stream: No such file or directory in /home/eminence/public_html/newsite/components/com_content/content.php on line 13

Warning: main(): Failed opening '/newsite/itemstats/phpbb_itemstats.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/eminence/public_html/newsite/components/com_content/content.php on line 13

Fatal error: Call to undefined function: itemstats_parse() in /home/eminence/public_html/newsite/components/com_content/content.php on line 1125



That was my fault... I re-edited the instructions... You need to add the overlib stuff to the index.php of your template.

#6 Guest_Fool_*

  • Group: Guests

Posted 01 December 2005 - 01:58 PM

nvm fixed my error

This post has been edited by Fool: 03 December 2005 - 08:13 AM


#7 Guest_Raducanu_*

  • Group: Guests

Posted 19 December 2005 - 06:38 AM

Thanks for this great guide.
This works for me as you can see here
http://www.delibrium...&id=10&Itemid=1

But is there a way to also make this toy avaiable in custom modules?
I want to publish a "Loot of the week" box.

#8 Guest_husuris_*

  • Group: Guests

Posted 14 January 2006 - 03:23 PM

I cant make the mouseover to work.... I get the item to show and its linked to allakhazam but no mouseover


any tips.... also i have the same problem with phpbb mouseover

but in eqdkp mouseover works perfectly

the site can be found at www.wow-astra.net/cms

Thank You

#9 Guest_dkmva_*

  • Group: Guests

Posted 15 January 2006 - 02:14 AM

View Posthusuris, on Jan 15 2006, 12:23 AM, said:

I cant make the mouseover to work.... I get the item to show and its linked to allakhazam but no mouseover


any tips.... also i have the same problem with phpbb mouseover

but in eqdkp mouseover works perfectly

the site can be found at www.wow-astra.net/cms

Thank You

sounds to me like your missing
OPEN
{mambo_root}/templates/[your template]/index.php

FIND
</head>
<body....>

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


[Note you may need to try '../itemstats/phpbb_itemstats.php' or '../../itemstats/phpbb_itemstats.php' etc depending on your installation]


SAVE AND CLOSE
{mambo_root}/templates/[your template]/index.php


#10 Guest_husuris_*

  • Group: Guests

Posted 15 January 2006 - 03:21 AM

Thank You dkmva

With you help I took it a step further but still when the mouseover window does not appear correctly. Any ideas on what might going on??

Click site link to see what i mean

#11 Guest_dkmva_*

  • Group: Guests

Posted 15 January 2006 - 08:55 AM

i think your using an old version of itemstats, i remember something like that happening sometime ago, cos allakhazam changed the xml files or something like that

#12 Guest_Xeodus_*

  • Group: Guests

Posted 29 January 2006 - 06:35 AM

I'm just getting an error when I try to run this:

Fatal error: Call to undefined function: itemstats_parse() in /home/eminence/public_html/newsite/components/com_content/content.php on line 1216


That line looks like this:
// show/hides the intro text
	$row->fulltext = itemstats_parse($row->fulltext);
	if ( $params->get( 'introtext'  ) ) {
	// Parse text for ItemStats mod
	$row->introtext = itemstats_parse($row->introtext);
		$row->text = $row->introtext . ( $params->get( 'intro_only' ) ? '' : chr(13) . chr(13) . $row->fulltext);
	} else {
		$row->text = $row->fulltext;
	}


Anyone know what's happening?

#13 Guest_Kloonike_*

  • Group: Guests

Posted 29 January 2006 - 04:13 PM

Xeodus, i had the same problem, try to edit content.php again, maybe you made a mistake somewhere :) Helped for me...
ANyway, i have another problem. On mouseover the text inside the box is on one line (in the box limits ofcourse, it will go to other line if it doesn't fit). I have the newest itemstats and ive been trying to fix it for quite a few hours now. Tried without my template's css and with it, doesn't help :( If anyone has ideas why it is so, please give me some advice (using AkoDarkGem template if it helps).
-e- got rid of my problem, cya!.

#14 Guest_Icibus_*

  • Group: Guests

Posted 10 February 2006 - 01:23 PM

I did everything exactly, but I only get a link to the item on allakhazam. I've tried removing and inserting the code multiple times on a new version from the backup copies of index.php and content.php, but I cannot seem to get around this issue.

Anyone know a soluation to this problem please?

- Icibus

#15 Guest_kl9470spin_*

  • Group: Guests

Posted 01 March 2006 - 12:08 AM

This will not work for me w/ joomla/mambo, All it does is links me to the website, ive read everything sill not working, i have it working on my phpbb forums.. =?

Check here http://enigmaguild.us/home/

Much help would be appriciated

  • (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