1
soconfused
Re: Help needed with xphpbb module
  • 2005/9/15 14:58

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


This is line 299 in auth.php

$auth_user[$f_forum_id]['auth_mod'] = ( $userdata['session_logged_in'] ) ? auth_check_user(AUTH_MOD, 'auth_mod', $u_access[$f_forum_id], $is_admin) : 0;



2
soconfused
Help needed with xphpbb module
  • 2005/9/15 14:25

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


Hi,
Xoops version 2.0.9.2 xphpbb 1.23b
Having some weird problems with occaisional whole page error messages (which I should have copied but panicked & refreshed the page instead) most of the error said unable to read moderator details or something similar. Today someone managed to register twice with the same username & email address, and people are saying that the auto login isn't working today.

Nothing in MySQL debug, php debug reveals:

Notice [PHP]: Undefined index: 1 in file modules/pbboard/includes/auth.php line 299
Notice [PHP]: Undefined index: 2 in file modules/pbboard/includes/auth.php line 299
Notice [PHP]: Undefined index: 3 in file modules/pbboard/includes/auth.php line 299
Notice [PHP]: Undefined index: 16 in file modules/pbboard/includes/auth.php line 299
Notice [PHP]: Undefined index: 10 in file modules/pbboard/includes/auth.php line 299
Notice [PHP]: Undefined index: 17 in file modules/pbboard/includes/auth.php line 299
Notice [PHP]: Undefined index: 4 in file modules/pbboard/includes/auth.php line 299
Notice [PHP]: Undefined index: 8 in file modules/pbboard/includes/auth.php line 299
Notice [PHP]: Undefined index: 15 in file modules/pbboard/includes/auth.php line 299
Notice [PHP]: Undefined index: 21 in file modules/pbboard/includes/auth.php line 299
Notice [PHP]: Undefined index: 5 in file modules/pbboard/includes/auth.php line 299
Notice [PHP]: Undefined index: 22 in file modules/pbboard/includes/auth.php line 299
Notice [PHP]: Undefined index: 6 in file modules/pbboard/includes/auth.php line 299
Notice [PHP]: Undefined index: 24 in file modules/pbboard/includes/auth.php line 299
Notice [PHP]: Undefined index: 7 in file modules/pbboard/includes/auth.php line 299
Notice [PHP]: Undefined index: 25 in file modules/pbboard/includes/auth.php line 299
Notice [PHP]: Undefined index: 9 in file modules/pbboard/includes/auth.php line 299
Notice [PHP]: Undefined index: 26 in file modules/pbboard/includes/auth.php line 299
Notice [PHP]: Undefined index: 12 in file modules/pbboard/includes/auth.php line 299
Notice [PHP]: Undefined index: 23 in file modules/pbboard/includes/auth.php line 299
Notice [PHP]: Undefined index: 20 in file modules/pbboard/includes/auth.php line 299
Notice [PHP]: Undefined index: 27 in file modules/pbboard/includes/auth.php line 299



3
soconfused
Re: Title Tag Hack
  • 2005/9/15 6:56

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


How to do it for weblog is here:
http://xoops-tips.com/modules/news/article.php?storyid=69&com_id=195&com_rootid=185&#comment195



4
soconfused
Re: problem with search after cloning module
  • 2005/9/9 11:14

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


Hi,
Thanks for replying, I've looked through the code & searched it but can't see anything.



5
soconfused
problem with search after cloning module
  • 2005/9/9 10:36

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


Hi,
I made a clone of the smart section module (xoops 2.0.9.2)
Everything works fine except there is a format/style sheet problem with the XOOPS search, for some reason if you search for anything the resuts are outputted with no header, footer or stylesheet just the results, it still returns results ok. It's probably something quite simple to fix (I hope) Any clues as to how I might fix it?

I've saved the search results page so you can see what I mean - this is all the html the search page generates:

<html>

<head>
</head>

<body>

<h3>Search Results</h3>
Keyword(s): <b>ghtyth</b><br>
<h4>Message Board</h4>
<p>No Match Found for your Query</p>
<h4>xcGallery</h4>
<p>No Match Found for your Query</p>
<h4>SmartSection</h4>
<p>No Match Found for your Query</p>
<h4>Edito</h4>
<p>No Match Found for your Query</p>
<h4>Articles</h4>
<p>No Match Found for your Query</p>
<h4>Articles</h4>
<p>No Match Found for your Query</p>
<h4>WF-Channel</h4>
<p>No Match Found for your Query</p>
<h4>wfsection</h4>
<p>No Match Found for your Query</p>
<h4>SmartClone</h4>
<p>No Match Found for your Query</p>
<h4>AM Events</h4>
<p>No Match Found for your Query</p>
<h4>weBLog</h4>
<p>No Match Found for your Query</p>
<h4>myMedia</h4>
<p>No Match Found for your Query</p>
<h4>Small ads</h4>
<p>No Match Found for your Query</p>

</body>

</html>

Once the cloned module is disabled the results return to normal.



6
soconfused
Re: Smartsection mod cloning? Is possible?
  • 2005/9/8 0:05

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


Yes and it works nicely
Instructions from the SmartFactory:

/**
* $Id: clone.txt,v 1.2 2005/09/06 18:52:34 malanciault Exp $
* Module: SmartNews
* Author: The SmartFactory <www.smartfactory.ca>
* Licence: GNU
*/

Cloning SmartSection is possible with a little extra work . Here are the steps you need to carefully follow in order to acheive this. In this example, we will perform a cloning from SmartSection to an identical module called SmartNews.

- Rename the module directory from 'smartsection' to 'smartnews'

- With a tool that let you perform find and replace (case sensitively !) in all files of a directory (Advanced Find and Replace is a good example), perform the following changes in all the files of the module :
- SmartSection => SmartNews
- smartsection => smartnews
- SMARTSECTION => SMARTNEWS
- Smartsection => Smartnews
- SSECTION => SNEWS

- In smartnews/templates rename all files by changing the prefix from smartsection_ to smartnews_

- Install the module. You are ready to go !



7
soconfused
Re: Auth Module for wrapping HTML, PHP, CGI web site
  • 2005/9/7 19:00

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


Hello,

Could someone help me with the search function please, I'm really struggling to understand what needs to be edited, I've got it to show up in the search results but it's not picking up anything just showing 0 results so I must be missing something:

I've called Author 'Business Directory'
and the directory is named 'BusinessDirectory'
and the XOOPS url is 'http://www.mysite.co.uk/xoops2/'


search.php
<?php

// XOOPS2 - Auth version 1 - Search function
// Presented by ADMIN @ ROUTE286, 2004.

function auth_search ( $queryarray , $andor , $limit , $offset , $userid )
{

// ¤³¤³¤«¤éÊѹ¹¹àÌܤǤ¹¡£

// ¡ü ǧ¾Ú¥Ç¥£¥ì¥¯¥È¥ê(¥Õ¥©¥ë¥À)
// config.php ¤Ëµ­ºÜ¤·¤Æ¤¤¤ë¤â¤Î¤ÈƱ¤¸¤Ç¤¹¤¬¡¢
// ´ÖÀÜ»ØÄê¤Ï "/home/(¥â¥¸¥å¡¼¥ë̾)/(¥Ç¥£¥ì¥¯¥È¥ê̾)" ¤Ç¤¹¡£
// $auth_dir = "modules/auth/sample";
// ľÀÜ»ØÄê¤Ç¤âµ­ºÜ²Äǽ¤Ç¤¹¡£
// $auth_dir = "/home/username/htdocs/xoops/modules/auth/sample";

$auth_dir = "modules/auth/sample";

// ¡ü ½ÐÎÏ¥µ¥¤¥º
// ɽ¼¨¤¹¤ë¥µ¥¤¥º(Ⱦ³Ñʸ»ú¿ô)¡£
// ¥Õ¥¡¥¤¥ë¤ÎƬÉôʬ¤¬½ÐÎϤµ¤ì¤Þ¤¹¡£

$auth_size = 77;

// ¡ü ¶èÀÚ¤ê(¥Ç¥ê¥ß¥¿)
// config.php ¤Îµ­ºÜ¤Ë¹ç¤ï¤»¤ÆÊѹ¹¤·¤Þ¤¹¡£Æ¬¤Ë index.php ¤ò´Þ¤á¤Æ²¼¤µ¤¤¡£
// "index.php/" "index.php?" ¤È¤·¤Þ¤¹¡£
// Apache ¤Ë¤è¤ë index.php ¤Î¾Êά¤ò¹Ô¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï "" ¤È¤Ç¤­¤Þ¤¹¡£

$auth_delimiter = "index.php/";

// ¤³¤³¤Þ¤ÇÊѹ¹¹àÌܤǤ¹¡£°Ê²¼¤ÏÊѹ¹¤¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£

if ( isset ( $queryarray ) )
{
return "";
}

$auth_searchcount = 0;

$auth_handle = opendir ( $auth_dir );

while ( FALSE !== ( $auth_filename = readdir ( $auth_handle ) ) )
{
if ( FALSE !== strstr ( $auth_filename , ".htm" ) )
{
$auth_filelist = file ( "$auth_dir/$auth_filename" );
$auth_file = implode ( "" , $auth_filelist );
$auth_file = strip_tags ( $auth_file );

$auth_title = mb_strimwidth ( $auth_file , 0 , $auth_size , "..." );
// $auth_title = $auth_filename;

if ( $andor == "and" || $andor == "AND" )
{
$auth_ok = 1;

foreach ( $queryarray as $auth_query )
{
if ( FALSE === ( strpos ( $auth_file , $auth_query ) ) )
{
$auth_ok = 0;

break;
}
}
}
else
{
foreach ( $queryarray as $auth_query )
{
$auth_ok = 0;

if ( FALSE !== ( strpos ( $auth_file , $auth_query ) ) )
{
$auth_ok = 1;

break;
}
}
}

if ( $auth_ok == 1 )
{
if ( ( $offset <= $auth_searchcount )
&& ( ( $offset + $limit ) > $auth_searchcount ) )
{
$ret[] = array(
"link" => "$auth_delimiter"."$auth_filename" ,
"image" => "search.gif" ,
"title" => "$auth_title" ,
"uid" => "0" ,
"time" => ""
);
}

$auth_searchcount ++;
}
}
}

return $ret;
}

?>


xoops_version.php


<?php
// $Id: xoops_version.php,v 1.4 2003/09/21 07:40:10 kousuke Exp $

// XOOPS2 - Auth version 1
// Presented by ADMIN @ ROUTE286, 2004.

// ¡ü ¥â¥¸¥å¡¼¥ë̾
// ¥á¥¤¥ó¥á¥Ë¥å¡¼¤Ëɽ¼¨¤µ¤ì¤ë̾¾Î¤Ç¤¹¡£
$modversion['name'] = 'Auth ¥â¥¸¥å¡¼¥ë';

// ¡ü ÊÝ´ÉÀè¥Ç¥£¥ì¥¯¥È¥ê
// ¥Ç¥£¥ì¥¯¥È¥ê auth ¤«¤éÊ̤Î̾Á°¤Ë¤·¤¿¾ì¹ç¤ÏÊѹ¹¤·¤Æ²¼¤µ¤¤¡£
$modversion['dirname'] = "auth";

// ¡ü ¥µ¥Ö¥á¥Ë¥å¡¼
// ¥µ¥Ö¥á¥Ë¥å¡¼¤òÄɲä·¤¿¤¤¾ì¹ç¤Ï°Ê²¼¤Îµ­ºÜ¤òÄɲä·¤Þ¤¹¡£
// $modversion['sub'][1]['name'] = "¥á¥Ë¥å¡¼Ì¾";
// $modversion['sub'][1]['url'] = 'index.php/¥Õ¥¡¥¤¥ë̾';
// ¸À¸ìÊ̤˥á¥Ë¥å¡¼Ì¾¤òʬ¤±¤¿¤¤¾ì¹ç¤Ï
// $modversion['sub'][1]['name'] = _AT_MENU_1;
// $modversion['sub'][1]['url'] = 'index.php/¥Õ¥¡¥¤¥ë̾';
// ¤È¤·¡¢lunguage/(¸À¸ì)/main.php ¤Ë°Ê²¼¤òÄɲä·¤Þ¤¹¡£
// define ( "_AT_MENU_1" , "¥á¥Ë¥å¡¼Ì¾");

// ¡ü ¸¡º÷µ¡Ç½
// ¸¡º÷µ¡Ç½¤òÄɲ乤ë¾ì¹ç¤Ï°Ê²¼¤Î¤È¤³¤í¤òÄɲä·¤Þ¤¹¡£

$modversion['hasSearch'] = 1;
$modversion['search']['file'] = "search.php";
$modversion['search']['func'] = "auth_search";

// ¤³¤³¤Þ¤Ç¸¡º÷µ¡Ç½ÄɲÃ

$modversion['description'] = $modversion['name'];
$modversion['version'] = "1.13";
$modversion['credits'] = "";
$modversion['author'] = 'Presented by ADMIN @ ROUTE286.';
$modversion['help'] = "help.html";
$modversion['license'] = "GPL see LICENSE";
$modversion['official'] = 0;
$modversion['image'] = "files/authlogo.gif";

$modversion['hasMain'] = 1;
$modversion['hasAdmin'] = 0;

?>



8
soconfused
Making 'my page' searchable
  • 2005/9/7 12:30

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


Hi,
I want to wrap some static content into the 'my page' module how would I include it into XOOPS search?



9
soconfused
Re: Displaying different blocks in module subpages
  • 2005/9/6 22:34

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


Hi,
Did you manage to do this? I also want to display blocks just on individual pages rather than the whole module.



10
soconfused
Re: mxDirectory
  • 2005/9/2 8:24

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


Yes I can see that would be a problem Also from a legal point of view if someone gives a business a bad rating there might be repercussions. Another good feature - if it's possible - would be an expiry date set by the admin for each listing. This would be handy if you're charging for listings.

Small bug, I found that in IE every second click was throwing the screen out in 800 x 600 kept getting an overlap/sideways scroll but when I refreshed the page it was ok again.




TopTop
(1) 2 3 4 ... 10 »



Login

Who's Online

138 user(s) are online (87 user(s) are browsing Support Forums)


Members: 0


Guests: 138


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