272331
Catzwolf
Re: Best for articles management
  • 2004/2/15 4:32

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Hi Ohwada,

I am sorry to say that I never received your email or I would have acted on it. Makes me wonder if many of the other programmers I contacted had the same problem?

I have finally downloaded your hacked version of WF-Sections I will try to include many (if not all, as I have already added some of these anyay) of your additions. Some good ones there that I like (esp the Wiki)

Hope this clears this up for you and everyone else

ATB

Catz

PS: Please thank Ohwada now for putting back the release date of WF-Sections



272332
Beast
Re: Add spaw WISIWYG editor to newbb
  • 2004/2/15 4:29

  • Beast

  • Just popping in

  • Posts: 26

  • Since: 2003/9/7 2


I'd like to try this hack, can you please make it available again?

I am having trouble putting a table in a forum post... it adds a heap of blank lines before the table. I know that Tiny Content can get around this, but I don't know how it does it.



272333
Paddock
Need Help with Avatar Table in mySQL
  • 2004/2/15 4:26

  • Paddock

  • Just popping in

  • Posts: 7

  • Since: 2004/2/15


I accidently dropped the avatar table in mySQL. I need to know what what fields and information to include in order to create a new table. Any help would be appreciated.



272334
Catzwolf
Re: Wfsection - each section link jump to most recent post?
  • 2004/2/15 4:23

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Ok I think I understand what you are looking for here.

You have four sections (in this case four different 'houses' within your school) and what you want is to take the most recent articles from each house and display them within an block? yes?

There are two ways you can do this:

First, you will have to modify the new articles block and create a loop around something like this:

function b_wfs_new_show($options)
{
global $xoopsDB;
$myts = &MyTextSanitizer :: getInstance();
$block = array();
$sql = "SELECT id, title FROM " . $xoopsDB -> prefix("wfs_category") . "";
list($category_id, $title) = $xoopsDB -> fetchrow($result);
$categorycount = $xoopsDB -> getRowsNum($result2);

for ($i = 0; $i < count($categorycount); $i++) {
$sql2 = "SELECT articleid, title, published, expired, counter, groupid FROM " . $xoopsDB -> prefix("wfs_article") . " WHERE published < " . time() . " AND published > 0 AND (expired = 0 OR expired > " . time() . ") AND noshowart = 0 AND offline = 0 ORDER BY " . $options[0] . " AND categoryid = " . $category_id . " DESC";
$result2 = $xoopsDB -> query($sql2, $options[1], 0);
while ($myrow = $xoopsDB -> fetchArray($result)) {
if (checkAccess($myrow["groupid"])) {
$wfs = array();
$title = $myts -> makeTboxData4Show($myrow["title"]);
if (!XOOPS_USE_MULTIBYTES) {
if (strlen($myrow['title']) >= $options[2]) {
$title = $myts -> makeTboxData4Show(substr($myrow['title'], 0, ($options[2] -1))) . "...";
}
}
$wfs['title'][$i] = $title;
$wfs['id'][$i] = $myrow['articleid'];
if ($options[0] == "published") {
$wfs['new'][$i] = formatTimestamp($myrow['published'], "s");
} elseif ($options[0] == "counter") {
$wfs['new'][$i] = $myrow['counter'];
}
$block['new'][$i][] = $wfs;
}
}
}
return $block;
}

(Not tested this but it should give you a few pointers on what should be done.

The other way would be to clone the wfs_new.php block for each category and change this line:

$sql = "SELECT articleid, title, published, expired, counter, groupid FROM " . $xoopsDB -> prefix("wfs_article") . " WHERE published < " . time() . " AND published > 0 AND (expired = 0 OR expired > " . time() . ") AND noshowart = 0 AND offline = 0 ORDER BY " . $options[0] . " DESC";

to

$sql = "SELECT articleid, title, published, expired, counter, groupid FROM " . $xoopsDB -> prefix("wfs_article") . " WHERE published < " . time() . " AND published > 0 AND (expired = 0 OR expired > " . time() . ") AND noshowart = 0 AND offline = 0 ORDER BY " . $options[0] . " AND categoryid = " . whatever categoryid you wish to use. " DESC";

Hope that helps in some way.




272335
GIJOE
Re: EMERGENCY: security hole of Agenda-X
  • 2004/2/15 4:20

  • GIJOE

  • Quite a regular

  • Posts: 265

  • Since: 2003/8/13


hi wjue.

If you have free time to write such a meaningless article,
you should release 1.2.3 that is patched by Onokazu immediately.

Though I never refer your human nature like you,
you have to express gratitude to Japanese XOOPS team - Onokazu & SUM -.
(your thanks of me are unnessary.)

The most important skill for module developpers is not that he never makes holes,
but that he repairs the holes immediately when it is reported by another well skilled programmer.



272336
reynaldo
New Version 0.2 :-)
  • 2004/2/15 4:04

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


I just added a new version: 0.2
This version adds support for gzip compression for browsers that support it.

In theory your pages should transfer faster from your server
to your browser.

It was already supported by Xoops, but got disabled with the original version of this hack.

Enjoy it and post your results!

The url for download is:
http://www.wtmmail.com/XoopsShortUrls/ShortURLs_0.2_for_Xoops.zip



272337
Catzwolf
Re: MyDownloads RC1 and XOOPS 2.0.6
  • 2004/2/15 4:02

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


As herko has mentioned, this version is an RC and just for testing.

I am currently working on new version of the Downloads module that has many new features, bug fixes and I have had to change a few things due to XOOPS 2.0.6 works.

Yes I have addressed the issues found in the previous version and due to the updates I am in the process of doing I cannot release MyDownloads version 2 as yet.

Unlike the last few releases of my modules, I will not be rushed into releasing then until I am sure I have fixed as many issues and bugs as I can find.

The next version of the Downloads module has many new features that I believe will be welcomed by many user, esp those who want to charge for allowing users to download etc



272338
reynaldo
Re: ShortURLs hack
  • 2004/2/15 3:25

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


Quote:

script_fu wrote:
Hi Reynaldo,
Very nice hack should be part of the core. Tell me i've been trying to pull of many sites at once. What do you use for a multisite cms?


The best thing I've found until now for a multisite cms is PostNuke. I tried to modify the core of Xoops, but after so many modifications, I stopped as I would have to do the same for each new release



272339
reynaldo
Re: ShortURLs hack
  • 2004/2/15 3:22

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


Quote:

script_fu wrote:
Can you break that down a lil? Sure everyone knows about .htaccess but what in the **** is a rewrite fuction?


To test if RewriteEngine is available in your server add the following lines to your .htaccess file:

RewriteEngine on
RewriteRule testrewrite
.html / [L]


After that point your browser tohttp://www.yourdomain.com/testrewrite.html

You should get your index page.



272340
philroy
Re: Wfsection - each section link jump to most recent post?
  • 2004/2/15 3:16

  • philroy

  • Friend of XOOPS

  • Posts: 107

  • Since: 2003/8/23


Final bump (I promise)....anyone got a solution? Sorry for the bump, I'd just really like to solve this.

Phil







Login

Who's Online

102 user(s) are online (61 user(s) are browsing Support Forums)


Members: 0


Guests: 102


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