1
fishspon
Can wf-Sections and myAlbum-P contribute to "Waiting Contents"??
  • 2004/1/25 21:27

  • fishspon

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/11/23


Can either of these modules contribute to the "Waiting Contents" block that all webmasters see on my XOOPS site??

At the moment, i only know a new photo or article has been submitted when i get an email (from wf-Sections), or when i check the admin section (for myAlbum-P).

Any help is much appreciated

Thanks in advance!

2
JackJ
Re: Can wf-Sections and myAlbum-P contribute to "Waiting Contents"??
  • 2004/1/25 22:31

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


Yes, I managed to rustle up something that works on my site for wfsections. The new submissions are passed to the waiting contents block

Go to modules/system/blocks

and open system_blocks.php

Look for a line like this aound line 263 i.e.

$result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("xoopscomments")." WHERE com_status=1");
if ( $result ) {
$block['modules'][7]['adminlink'] = XOOPS_URL."/modules/system/admin.php?module=0&status=1&fct=comments";
list($block['modules'][7]['pendingnum']) = $xoopsDB->fetchRow($result);
$block['modules'][7]['lang_linkname'] =_MB_SYSTEM_COMPEND;
}

Add this code below it: Edit changed it a bit

if ($module_handler->getCount(new Criteria('dirname', 'wfsection'))) {
$result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix ("wfs_article") ." WHERE published=0");
if ( $result ) {
$block['modules'][8]['adminlink'] = XOOPS_URL."/modules/wfsection/admin/allarticles.php?action=submitted";
list($block['modules'][8]['pendingnum']) = $xoopsDB->fetchRow($result);
$block['modules'][8]['lang_linkname'] = _MB_SYSTEM_SUBWF;
}
}


then go to modules/system/language/english

open blocks.php and add this define:

define("_MB_SYSTEM_SUBWF","Submitted Articles");


when you look at the structure you can position this in some sort of order. see the numbers in the code i.e. "8"

3
fishspon
Re: Can wf-Sections and myAlbum-P contribute to "Waiting Contents"??
  • 2004/1/25 23:30

  • fishspon

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/11/23


perfect... thanks dude!

4
madsen
Re: Can wf-Sections and myAlbum-P contribute to "Waiting Contents"??
  • 2004/1/25 23:57

  • madsen

  • Just popping in

  • Posts: 40

  • Since: 2004/1/24


Or you can try GIJOE's module at:

Extensible Waiting Module

****************************************
Description:

This module offers you an extensible waiting contents block into your XOOPS.

The original XOOPS block of "Waiting Contents" works only for official modules,
and is no longer extensible.
It is nonsense to have to do Hack for yourself when you use 3rd party modules.

By installing this module and adding proper plug-ins only,
you as webmaster can confirm any approval waitings of any modules at one view.

The original version is made by Ryuji (http://ryus.joetsu.info/)
This archive is a hacked version by GIJOE.

If you can read Japanese, let's visit Ryuji's site.


Included plug-ins:

system (comments)
news
mydownloads
mylinks
WF-Sections
piCal
myAlbum-P
Agenda-X
xDirectory
yomi-search
simpleblog
myAds
Tutorials
Addresses

************************************

//Madsen

5
JackJ
Re: Can wf-Sections and myAlbum-P contribute to "Waiting Contents"??
  • 2004/1/26 0:02

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


Sounds good, need to brush up on my chinese. This hack does works though..and its good fun doing little hacks that you can tell your mummy about..:)

Do you have a direct link to the download?

6
fishspon
Re: Can wf-Sections and myAlbum-P contribute to "Waiting Contents"??
  • 2004/1/26 0:44

  • fishspon

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/11/23


madsen already posted a direct link, but here it is: http://www.peak.ne.jp/xoops/modules/mydownloads/visit.php?cid=1&lid=9

I've now installed the module on my site, and it looks great!

Login

Who's Online

919 user(s) are online (58 user(s) are browsing Support Forums)


Members: 0


Guests: 919


more...

Donat-O-Meter

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

Latest GitHub Commits