11
datamile
Function request for new wfsection.
  • 2004/2/3 9:11

  • datamile

  • Just popping in

  • Posts: 22

  • Since: 2002/11/24


I keep flipping between wiki and article modules as I would like some wiki type linking functions in wfsections.

I would like someway of linking articles together , and keywords for indexing and linking.

ie tables

xoops_keyword_link

keyword
Article_id

xoops_article_link

parent_article_id
child_article_id

Functions Required
------------------

- Create New keyword.
- Associate/delete Keyword with Article (many keywords to many articles)
- Associate Article with this article.

article_link could be maintained automatically by generating from keyword_link , or user could link documents together.

Output Sections
---------------

Template function, or section within article output which could be wiki type function drive ie show_keywords

i.e.

keyword-index - keyword and list of article for whole site
keyword_linked - keyword links for this article
article_linked - linked articles (parent+child)
parent_linked - parent article
child_linked - child article
sibling_linked - articles sharing same parent

Perhaps keep these functions in a separate php so that they could be easily added to.

Thoughts ?



12
datamile
hack to add search to phpwiki released...
  • 2004/1/30 23:42

  • datamile

  • Just popping in

  • Posts: 22

  • Since: 2002/11/24


Not sure who reads the module hack forum, so if you're interested in phpwiki module being search general XOOPS search check this

https://xoops.org/modules/newbb/viewtopic.php?viewmode=flat&topic_id=16208&forum=15



13
datamile
phpwiki - search function added
  • 2004/1/30 23:39

  • datamile

  • Just popping in

  • Posts: 22

  • Since: 2002/11/24


All,

I've released a basic search.inc.php to allow phpwiki data to be searched by the general search process.

Download at :-

http://www.go-share.com/modules/mydownloads/singlefile.php?cid=1&lid=1

Demo

http://www.go-share.com/

Will be adding Preferences in module config for what to search and display.

Comments ?

-----------------------------------------------------
Xoops Search For phpwiki Module. Verson 1.0 (30/01/04)

History
-------

Author - Ian White (Datamile Computers Ltd)
Demonstration -http://www.go-share.com/

Function
--------

To add search of the wiki database to the standard XOOPS search.

Full text search of database, outputting link and paragraph of match.


Install
-------

1) added to end of modules/phpwiki/xoops_verson.php just before the closing ?>

// Search
$modversion['hasSearch'] = 1;
$modversion['search']['file']="search.inc.php";
$modversion['search']['func']="phpwiki_xoops_search";

2) install file search.inc.php in modules/phpwiki

3) Go to Adminstration Menu->System Admin->modules

Find the phpwiki row , and click the module update button to load the search function into the system.
---------------------------------------------



14
datamile
help with module search and includes ?
  • 2004/1/30 9:09

  • datamile

  • Just popping in

  • Posts: 22

  • Since: 2002/11/24


hi,

I'm trying to develop a module search process for an existing module , but are having problems with paths etc.

when xoops/search.php calls my function , the php path is still xoopshome so thing like include(../../mainfile.php) fail.

While I can get around the direct calls , some of my calls then include files of there own etc.

Is there a recommend way to change the cwd to the that of module while in the call that the includes all work ?

i.e. myseach.php
function xoops_search()
{
include('../../mainfile.php');
include ('lib/func.php');
}

func.php
{
include ('lib/morefunc.php');
}

Also where are all the global XOOPS variables such as XOOPSDB etc. I presume I get get the module path from this , if I knew which module was running etc

Thx

Ian




15
datamile
Is phpwiki development dead ? Anyone done permissions etc
  • 2004/1/27 14:41

  • datamile

  • Just popping in

  • Posts: 22

  • Since: 2002/11/24


Has the development/intergration of phpwiki died ?

Anyone done groups and/or got rid of the anony user edit and login prompt ?

I'd like to create an 'wikieditor' group and assign edit/lock to it , and remove it from general users etc



16
datamile
Re: Blank page with WFSnippets???
  • 2004/1/26 10:44

  • datamile

  • Just popping in

  • Posts: 22

  • Since: 2002/11/24


Had this too if you are running wfsections and snippets. Doesn't appear to like blocks from both or you get the already loaded messages....

Never got around to fixing my code to only load it once



17
datamile
Re: Did wf modules replace old sections/faq in v2
  • 2004/1/16 15:22

  • datamile

  • Just popping in

  • Posts: 22

  • Since: 2002/11/24


Any eta on v2.1......

This time last year was v2



18
datamile
Did wf modules replace old sections/faq in v2
  • 2004/1/16 15:12

  • datamile

  • Just popping in

  • Posts: 22

  • Since: 2002/11/24


I saw some chat about it , but did wfsections replace sections, wffaq->faw in v2 ? If not , is it planned to ?

What's people's perference for the various modules of this type sections/wfsections/tiny... etc




TopTop
« 1 (2)



Login

Who's Online

119 user(s) are online (53 user(s) are browsing Support Forums)


Members: 0


Guests: 119


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