274371
Dave_L
Re: Stupid question... please answer :)
  • 2004/1/31 4:11

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


$text '[info1][info2][info3][info4]';
preg_match_all('/[(.*?)]/'$text$matches);
$foo $matches[1];


$foo (or $matches[1]) is the desired array.



274372
wrtbooks
Short Urls for Xoops 1.3
  • 2004/1/31 3:55

  • wrtbooks

  • Just popping in

  • Posts: 77

  • Since: 2003/3/8 1


Does anyone know how to make urls more simpler for google.com indexing?

so urls like:
http://www.sermonindex.net/modules/newbb/viewforum.php?forum=21&71

can be made simplier? does anyone have any information or ideas on this? I am running the v1 of xoops.



274373
comegona
Re: Glossary module
  • 2004/1/31 3:50

  • comegona

  • Not too shy to talk

  • Posts: 165

  • Since: 2003/11/9


Keep me/the list updated. I an interested in it.



274374
Anonymous
Stupid question... please answer :)
  • 2004/1/31 3:50

  • Anonymous

  • Posts: 0

  • Since:


Hey i've got a stupid PHP question.
I'm trying to figure out how I can tokenize a string to array that's set up like this... the string will look like...

[info1][info2][info3][info4]...

I want to extract each data item between the [,] brackets into seperate members of the array. so the array would like like..
array[0] = info1
array[1] = info2
array[2] = info3
array[3] = info4
...

I know you can do this with ereg() but I am unfamiliar with it and having stared at a book for past 15 minutes I still can't seem to understand how to get it to do what I want. Thanks to whoever can help.



274375
BradM
Re: News Module Cloning
  • 2004/1/31 3:43

  • BradM

  • Just popping in

  • Posts: 78

  • Since: 2003/8/14


Off the top of my head:

Copy all the module files into a new directory, for example "mynews".

Edit "mynews/xoops_version.php", and change the $modversion['dirname'] line to reflect the new directory (you might also have to edit/rename the block and template names too).

Edit "mynews/sql/mysql.sql", and change the name of the two tables (edit the CREATE TABLE names).

Edit "mynews/admin/index.php", and change this line to reflect the new directory:
include_once XOOPS_ROOT_PATH."/modules/news/class/class.newsstory.php";

There might be a number of references to the directory name within any module files. These will all have to be changed.

No guarantee the above will work, but it's a start.


Brad



274376
tl
Re: Mozilla display bug?
  • 2004/1/31 3:41

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


So far, I have not had any problems with Xoops-based sites. One of daily non-xoops sites I go to has this weird problem and usually refreshing would fix the problem.

Browser particulars:
Mozilla 1.6, resolution 800x600




274377
BradM
Re: xoops chat module issue
  • 2004/1/31 3:36

  • BradM

  • Just popping in

  • Posts: 78

  • Since: 2003/8/14


This probably isn't an answer, but in the perl/html world, I've had strange display problems when certain files were uploaded in binary mode rather than ascii.

When you look at the table for the chat, is the message stored in the same way? Can you view the source to see if it's doing something strange like adding line break tags after each character?


Brad



274378
BradM
Mozilla display bug?
  • 2004/1/31 3:31

  • BradM

  • Just popping in

  • Posts: 78

  • Since: 2003/8/14


Has anyone using Mozilla found that sometimes when viewing Xoops-based sites, the left column isn't displayed properly, and ends up taking up most of the display area?

I'm using Firebird and found that this happens occasionally on my site, but all I have to do is refresh the screen and then it's fine. However I've never seen this happen at the xoops.org site.

I've been working on my own theme, so I just want to make sure that I haven't messed up somewhere.


Brad



274379
BradM
Re: Module Installation
  • 2004/1/31 3:21

  • BradM

  • Just popping in

  • Posts: 78

  • Since: 2003/8/14


Actually it should be that straightforward. All you have to do is upload the module files into a subdirectory within the XOOPS modules directory. The module should then first appear at the bottom of the module admin page.

For example, if the module is "foo", the files should be found under "modules/foo", provided that "foo" is the directory as set up by the author of the module (this can be found in xoops_version.php, look for the line $modversion['dirname']).


Brad



274380
BradM
Re: Glossary module
  • 2004/1/31 3:09

  • BradM

  • Just popping in

  • Posts: 78

  • Since: 2003/8/14


I've been hacking away at a new version, which I'm calling "Lexicon", only because I'm making it more of an encyclopedia-style interface.

It includes a few changes and general cleanup of the code, although it's still missing templates and the option for notifications (I haven't yet figured out how to add this). The database structure is different, so it will have to be a new install and not an upgrade to those using the existing Glossary/Glossaire module.

I'm still in the middle of testing it, and I just had a look at the files and they are a bit of a mess, so I can't see releasing it anytime soon, but hopefully I'll have something available in a few weeks, if anyone wants it.


Brad







Login

Who's Online

145 user(s) are online (85 user(s) are browsing Support Forums)


Members: 0


Guests: 145


more...

Donat-O-Meter

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

Latest GitHub Commits