Skip to content
forked from XoopsX/waiting

📦 Module utility with a block of pending content for Package XCL

Notifications You must be signed in to change notification settings

xoopscube/waiting

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

UTD powered-by-electricity UTD

Project Status: Active – The project has reached a stable, usable state and is being actively developed. License GPL X-Updare Store

///// — Waiting :: Module Utility Block

alt text

MODULE Module Waiting
Description Block to show pending content
Render Engine Smarty v2 and XCube Layout
Version 2.30
Author GIJOE (https://peak.ne.jp/)
Author @RyujiAMANO Ryuji Amano (https://ryus.co.jp/)
Update Update by @nao-pon Naoki Sawada, @gigamaster Nuno Luciano (XCL7)
Copyright 2005-2022 Authors
License XCL module distributed under a GPL 2.0 License.
💻 The Minimum Requirements
      Apache, Nginx, etc. PHP 7.2.x
      MySQL 5.6, MariaDB  InnoDB utf8 / utf8mb4
      XCL version 2.3.+

///// — Module Waiting

This module features an extensible Block of waiting content in a single view.

The original XOOPS2 block of "Waiting Contents" works only for official modules,
and is no longer extensible. It is nonsense to hack it for XCL when using 3rd party modules.

By installing this module and adding the proper plug-ins only,
webmasters can approve and confirm pending content from any module.

      PEAK XOOPS --Support & Experiment  
      A module that displays plugin-extensible content blocks awaiting approval
      The module distributed by xoops.peak.ne.jp  
      maintained by XOOPS X (ten) distribution.

Below, the README that came with the original package


NEW FEATURE in 0.8

  • plug-ins for waiting can be placed inside module's directory

If a module developper place the plug-in in modules/(moduleName)/include/waiting.plugin.php
the Module Waiting will automaticall find it. The plugin in module's directory has higher prioriy
than the plugin in Module waiting's directory.

  • return multiple waiting items with a single function

Return multiple items still waiting approval with the following array: [code] array( array("adminlink"=>URL", "pendingnum"=>NUM, "lang_linkname"=>LINKNAME), array("adminlink"=>URL", "pendingnum"=>NUM, "lang_linkname"=>LINKNAME), array("adminlink"=>URL", "pendingnum"=>NUM, "lang_linkname"=>LINKNAME) ) [/code]

If you return just one item waiting, still using an array is also ok. [code] array("adminlink"=>URL", "pendingnum"=>NUM, "lang_linkname"=>LINKNAME) [/code]

Deprecated functions named b_waiting_(dirname)_X

  • modify the template for module waiting

This modification won't require the plug-in to return any information of the module.
It is enough to display a short message like "submitted".

Module made by Ryuji (https://ryus.co.jp/) If you can read Japanese, visit Ryuji's site!

[/xlang:en] [xlang:ja]

waitingモジュール

元はRyujiさん作のモジュールでしたが、いつの間にかメンテナンスを引き受けたような形になってます。 https://ryus.co.jp/

*概要 プラグインで拡張可能な承認待ちコンテンツブロック

モジュールを追加するたびに、本体の承認待ちコンテンツブロックに手を入れるのは、あまりにも非効率だと思い始めたので作成しました。

● waiting 0.8 からの新機能

・モジュール内にプラグインを置けるようにした

各モジュール作者さんが、waitingモジュールのプラグインも作成してくれることが多いのと、複製可能モジュールに対応するために、各モジュール内にプラグインを置けるようにしました。

各モジュールのinclude/waiting.plugin.php にプラグインを置き、言語ファイルは、language/LANG/waiting.phpにおきます。

読み込み優先順位は 1.各モジュール内にあるプラグイン 2.waitingモジュール内にあるプラグイン となってます。

・1つのモジュールで複数の承認待ちを返せるようにした

GIJOEさんのHackにより、b_waiting_MOD_NUMを複数用意することで、複数の承認待ちに対応していましたが、ひとつのfunctionで対応できるようにしました。

プラグインから返すときに、 [code] array( array("adminlink"=>URL", "pendingnum"=>NUM, "lang_linkname"=>LINKNAME), array("adminlink"=>URL", "pendingnum"=>NUM, "lang_linkname"=>LINKNAME), array("adminlink"=>URL", "pendingnum"=>NUM,a "lang_linkname"=>LINKNAME) ) [/code] という形で返ってきたら複数あると判断します。 ひとつしかない場合は、今まで通り [code] array("adminlink"=>URL", "pendingnum"=>NUM, "lang_linkname"=>LINKNAME) [/code] で、OKです。

・ モジュール名の下に各承認待ちが表示されるようにテンプレートを変更した

この改良により、各承認待ちのテキストに、モジュールの情報を含まなくて良くなりました。 例えば、「ダウンロード新規投稿」は「新規投稿」だけでOKです。

[/xlang:ja]

PLUGINS:

-addresses (by gruessle) -Agenda-X (by GIJOE) -AMS (by karedokx) -articles (by twilo) -catads (by Alain01) -CBB (by gravies) -extcal (by alain01) -MyAds (by Tom_G3X) -myAlbum-P (by GIJOE) multiple -mydownloads (by GIJOE) -mylinks(by GIJOE) -newbb2 (by gravies) -news (by GIJOE) -PDlinks (by flying.tux) -PDdownloads (by flying.tux) -piCal (by GIJOE) (>=0.8 has the module side plugin) -pico (by GIJOE) (D3 module side plugin) -popnupblog (by dashboard) -simpleblog (by kousuke) -smartfaq (by mariuss) -smartpartner (by mariuss) -smartsection (by flying.tux) -system -- comments (by GIJOE) -tutorials (by GIJOE) -weblinks (by Tom_G3X) -WF-downloads (by coldfire, flying.tux) -WF-links (by flying.tux) -WF-Sections (by GIJOE) -WordBook (by AgD) -WordPress ME (by nobunobu) multiple (>=0.5 has the module side plugin) -xcGallery (by nao-pon) -xDirectory (by GIJOE) -xfguestbook (by karedokx) -xfsection (by Bezoops) -xyp4all (by flying.tux) -yomi search (by nao-pon) -eguide (by tes)

CHANGES:

ver 0.95|

  • added D3 module ready
  • added french (thx marco)
  • added portuguesebr (thx Izzy)
  • added persian (thx stranger) 0.95a
  • a plugin added -- eguide (by tes) 0.95b
  • languge files added -- ja_utf8 0.95c

ver 0.94b|

  • modified the module icon (thx Argon)
  • 2 pugins added -- extcal (thx alain01) -- articles (thx twilo)

ver 0.94a|

  • fixed a typo in plugins/yomi.php (thx yshima)

:ver 0.94|

  • removed CRs in some php files
  • a plugin added -- XFSection (thx Bezoops)

:ver 0.93|

  • updated Italian (thx flying.tux)
  • a plugin added -- SmartPartner (thx mariuss)

:ver 0.92|

  • add SQL cache
  • fixed some typos (thx karedokx)
  • 2 plugin modified -- WF-Section (thx karedokx) -- catads (thx Alain01)
  • 2 plugins added -- WordBook (thx AgD) -- recette (thx karedokx)

:ver 0.91|

  • updated Italian (thx flying.tux)

:ver 0.90|

  • modified the structure of the directory for plugins
  • modified system plugin (thx gravies)
  • 3 plugins added -- newbb2 or CBB (thx gravies) -- catads (thx Alain01) -- WF-links (thx flying.tux)

:ver 0.86| by flying.tux

  • Italian updated
  • 2 plug-ins added -- PDlinks (thx flying.tux) -- PDdownloads (thx flying.tux)

:ver 0.85| by GIJOE

  • modified the dependencies of language files and constants radically

:ver 0.84| by GIJOE

  • fixed a typo in the form for block's options (thx flying.tux)
  • fixed some Notices in "not always" mode
  • 2 plug-ins added -- xfguestbook (thx karedokx) (0.84a) -- AMS (thx karedokx) (0.84a)
  • a plug-in modified -- weblinks (thx Tom_G3X) (0.84b)

:ver 0.83| by GIJOE

  • fixed missing a Creteria in getList()

:ver 0.82| by flying.tux

  • few modifications in English
  • few modifications in Italian
  • 1 plug-in added -- smartsection(thx flying.tux)

:ver 0.81| by GIJOE

  • changed the route to admin (from block's option edit)
  • modified English
  • added some protections against direct accessing
  • Italian added(thx flying.tux)
  • 1 plug-in added -- xyp4all(thx flying.tux)

:ver 0.8| -- modified as reading plug-in from module's directory if it exists -- multiple waitings can be returned from single function --- almost plug-ins are modified along this new spec by GIJOE -- modified the template as watings belonging modules --- English and Japanese text are shorten by GIJOE

  • 1 plug-in added -- Weblinks(by Ryuji)

:ver 0.7c| -- 1 plug-in added --- WordPress ME(by nobunobu) multiple

:ver 0.7b| -- 1 plug-in added --- SmartFAQ (by mariuss)

:ver 0.7a| -- 1 plug-in added --- WF-Downloads (by coldfire)

:ver 0.7| -- 2 language files added --- spanish (by ColdBeer) --- swedish (by Leif Madsen) -- 1 plug-in added --- xcGallery (by nao-pon)

:ver 0.6| -- An option added whether it is displayed when no wating exists -- 3 plug-ins added --- Addresses (by gruessle) --- MyAds (by Tom_G3X) --- Tutorials (by GIJOE)

:ver 0.5| -- some plug-ins added -- English document file - is this - added.

Releases

No releases published

Packages

No packages published

Languages

  • PHP 98.7%
  • HTML 1.3%