1
sskhalid
Re: Auto-Login hack for 2.2.4 ?
  • 2006/5/14 12:05

  • sskhalid

  • Just popping in

  • Posts: 24

  • Since: 2006/4/18


yes, I downloaded it but it does not work for me. The cookie is not being set.

How do I debug it ?

The module works on my local machine, but install to the server it stops working (I have my own box/host so I can do anything e.g. php setting etc).

Thanks



2
sskhalid
Auto-Login hack for 2.2.4 ?
  • 2006/5/13 10:27

  • sskhalid

  • Just popping in

  • Posts: 24

  • Since: 2006/4/18


Hi,

I can see a thread for 2.0.x xoops, but I've got 2.2.4 . Can anyone tell me if this hack will work with my installation - if yes, were to download the hack from ?

Thanks



3
sskhalid
Re: BBCodes/Xoops Codes ?
  • 2006/5/8 23:42

  • sskhalid

  • Just popping in

  • Posts: 24

  • Since: 2006/4/18


Quote:

mooshoo wrote:

-Update-
As soon as I add the ...

// -- START HACK
$text = itemstats_parse($text);
// -- END HACK

into the module.textsanitizer.php file the pages just show up blank. My error log reads...





whoops - sorry , add statement (check your path):

include('C:/Apache/Apache2/htdocs/xoops/modules/newbb/itemstats/phpbb_itemstats.php');

at top of file, e.g.

....
....
// ------------------------------------------------------------------------ //
// Author: Kazumi Ono (http://www.myweb.ne.jp/,http://www.xoopscube.jp/) //
// Goghs Cheng (http://www.eqiao.com,http://www.devbeez.com/) //
// Project: The XOOPS Project (https://xoops.org/) //
// ------------------------------------------------------------------------- //

include('C:/Apache/Apache2/htdocs/xoops/modules/newbb/itemstats/phpbb_itemstats.php');

/**
* Class to "clean up" text for various uses
*
* <b>Singleton</b>
....
....*/



4
sskhalid
Re: BBCodes/Xoops Codes ?
  • 2006/5/8 23:36

  • sskhalid

  • Just popping in

  • Posts: 24

  • Since: 2006/4/18


no its not working correctly for u - u need cbb 3.01 from

http://xoopsforge.com/

also, u need itemstats 1.3 , think u are using itemstats 1.0 as I had the same problem. check the images i posted :

The problem is its displaying a space between the icon and the item description. depending upon where the mouse is (left side of link or right) the space increases.

left

right



5
sskhalid
Re: BBCodes/Xoops Codes ?
  • 2006/5/7 23:39

  • sskhalid

  • Just popping in

  • Posts: 24

  • Since: 2006/4/18


i did get it to work with the latest version of itemstats - but it prints a space between the icon and the item description. maybe one of the XOOPS themes is causing problems. download the latest version from

http://forums.eqdkp.com/index.php?showtopic=3331

use the base version.

copy itemstats to modules/newbb/

in itemstats/include/sqlhelper.php , there will be an undefined variable called DEBUG.

at top of file do

$DEBUG = 0;


in your theme.html do

<link rel="stylesheet" type="text/css" media="all" href="<{$xoops_url}>/xoops.css" />
<link rel="stylesheet" type="text/css" media="all" href="<{$xoops_themecss}>" />
<link rel="stylesheet" type="text/css" media="all" href="<{$xoops_url}>/modules/newbb/itemstats/templates/itemstats.css">
<script type="text/javascript" src="<{$xoops_url}>/modules/newbb/itemstats/overlib/overlib.js"><!-- overLIB (c) Erik Bosrup --></script>


in xoops/class/module.textsanitizer.php do the thing I did (check the previous post I made)

in config.php of itemstats update location of your database

when u have done this, check the functionality by making new post and entering someting like

[item]Eye of Divinity[/item]



6
sskhalid
Re: BBCodes/Xoops Codes ?
  • 2006/5/2 11:08

  • sskhalid

  • Just popping in

  • Posts: 24

  • Since: 2006/4/18


I've installed the hack, or rather, the call to the itemstats function like this:

// [/rhl]
$patterns[] = "/\[\quote]/sU";
$replacements[] = _QUOTEC.'<div class="xoopsQuote"><blockquote>';
//$replacements[] = 'Quote: <div class="xoopsQuote"><blockquote>';
$patterns[] = "/\[\/quote]/sU";
$replacements[] = '</blockquote></div>';

// -- START HACK
$text = itemstats_parse($text);
// -- END HACK

$text = str_replace( "\x00", "", $text );
$c = "[\x01-\x1f]*";
$patterns[] = "/j{$c}a{$c}v{$c}a{$c}s{$c}c{$c}r{$c}i{$c}p{$c}t{$c}:/si";
$replacements[] = "(tammairanslip)";
$patterns[] = "/a{$c}b{$c}o{$c}u{$c}t{$c}:/si";
$replacements[] = "about :";
return preg_replace($patterns, $replacements, $text);

I've got the itemstats directory under C:\Apache\Apache2\htdocs\xoops\modules\newbb\itemstats


Lets say I am using the xmt theme from xoops. I've added the stylesheets as per itemstats instructions (in theme.html)

<title><{$xoops_sitename}> - <{$xoops_slogan}> - <{$xoops_pagetitle}></title>
<link href="<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" />
<link rel="stylesheet" type="text/css" media="all" href="<{$xoops_url}>/xoops.css" />
<link rel="stylesheet" type="text/css" media="all" href="<{$xoops_themecss}>" />
<link rel="stylesheet" type="text/css" media="all" href="<{$xoops_url}>/modules/newbb/itemstats/templates/itemstats.css">
<script type="text/javascript" src="<{$xoops_url}>/modules/newbb/itemstats/overlib/overlib.js"><!-- overLIB (c) Erik Bosrup --></script>

<script type="text/javascript">
<!--
<{$xoops_js}>
//-->
</script>
<script type="text/javascript" src="<{$xoops_imageurl}>js/adminmenu.js"></script>
<script type="text/javascript" src="<{$xoops_imageurl}>js/ie5.js"></script>
<script type="text/javascript">


The item tag is rendered but the popup is not working correctly. I can't seem to figure out whats wrong. If I enter an item which is not on wow.allakhazam.com (where itemstats picksup items from) it prints the correct popup (e.g. item not found)


correct: Correct

incorrect: incorrect

Might be some conflict with the overlib js library or CBB(newbb) css. It works in a phpBB forum.



7
sskhalid
Re: BBCodes/Xoops Codes ?
  • 2006/4/30 17:36

  • sskhalid

  • Just popping in

  • Posts: 24

  • Since: 2006/4/18


You da man bender - thanks !!!



8
sskhalid
BBCodes/Xoops Codes ?
  • 2006/4/30 16:39

  • sskhalid

  • Just popping in

  • Posts: 24

  • Since: 2006/4/18


Lo All,

I am trying to integrate Itemstats modulehttp://sourceforge.net/project/showfiles.php?group_id=69529&package_id=70632&release_id=381547 with CBB (newbb). This module can display items from wow.allakhazam.com etc.

Itemstats only works with PHPBB by inserting a custom bbcode tag and then rendering the custom tag with a function call. The whole set of instructions is as follows :

----------------------------------------------
OPEN
{forum_root}/include/bbcode.php

FIND
define("BBCODE_UID_LEN", 10);

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

FIND
function bbencode_second_pass($text, $uid)
{
global $lang, $bbcode_tpl;

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

SAVE AND CLOSE
{forum_root}/include/bbcode.php

OPEN
{forum_root}/templates/subSilver/overall_header.tpl

FIND
<!-- link rel="stylesheet" href="templates/subSilver/{T_HEAD_STYLESHEET}" type="text/css" -->

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

SAVE AND CLOSE
{forum_root}/templates/subSilver/overall_header.tpl
----------------------------------------------------

So, the question is, is there a place in CBB code (or XOOPS code) where I can

1. Intercept/Retrieve the text of the post (before it is rendered).
2. inject the 'itemstats_parse($text)' function where 'text' is the content I got from 1. above, and modify it before handing it back to the forum renderer.

Since CBB does not support BBCodes, I don't know how to do this. Also I don't know what XOOPS codes are, or if I can add custom XOOPS codes etc

Any help would be appreciated.

Cheers



9
sskhalid
Re: 2.2.4 "Module for your Start Page" error Pls help before I go nuts!!!
  • 2006/4/28 20:02

  • sskhalid

  • Just popping in

  • Posts: 24

  • Since: 2006/4/18


Jen,

Excellent info - will look into it :)


JD,

Ok, I think it's my local Dev environment that is buggered (if you say that the normal behaviour is that if I set a module to be the start page of the site, I cannot see any blocks which are Visible in->System->Top Page, unless I make them Visible in a block of the module in question).



10
sskhalid
Re: Disappointed with the lack of responses
  • 2006/4/27 20:04

  • sskhalid

  • Just popping in

  • Posts: 24

  • Since: 2006/4/18


Thats what I have now discovered - trying to get my head around this 2.2.4 < > 2.0.x version naming convention :(

Any suggestions on how to get back to previous version without any headaches (exporting data etc)




TopTop
(1) 2 3 »



Login

Who's Online

217 user(s) are online (129 user(s) are browsing Support Forums)


Members: 0


Guests: 217


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits