1
gruessle
WF-Channel & Weight problem
  • 2003/10/31 7:02

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


In WF-Channel Weight doesn't seam to work has anybody else experienced that or do I have to turn some option on somewhere?

2
Catzwolf
Re: WF-Channel & Weight problem
  • 2003/10/31 13:59

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


in xoops_version.php line 64 change it to this:

$result = $xoopsDB -> query("SELECT submenuitem FROM " . $xoopsDB -> prefix("wfslinktous") . " Order by weight");

And in Index.php change line 81 to this:

$result2 = $xoopsDB -> query("SELECT * FROM " . $xoopsDB -> prefix("wfschannel") . " WHERE CID = '$pagenum' ORDER BY weight");

3
Ace_Armstrong
Re: WF-Channel & Weight problem

Hey, this is a great module!

Quick question: is there a way to have the submenus display all of the time, instead of just when the module is selected?

4
Catzwolf
Re: WF-Channel & Weight problem
  • 2003/10/31 14:18

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


I will have a look to see what can be done

5
gruessle
Re: WF-Channel & Weight problem
  • 2003/10/31 16:24

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


Thank you for the fast responce.
I did what you asked.

Now the submenu "Link To Us" is gone and it still does not list thhe submenus by weight.

(Add 'Link to us' as a submenu item in the Mainmenu? Is checked Yes)

Thankx

6
gruessle
Re: WF-Channel & Weight problem
  • 2003/10/31 16:27

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


Did I change the right line?

Quote:

$articletag = array();
$chanlink = array();
$total = array();
$mainp = array();

$result = $xoopsDB -> query("SELECT CID FROM " . $xoopsDB -> prefix("wfschannel") . " WHERE defaultpage = '1'");
list($CID) = $xoopsDB -> fetchrow($result);

$pagenum = isset($HTTP_GET_VARS['pagenum']) ? intval($HTTP_GET_VARS['pagenum']) : $CID;

$result2 = $xoopsDB -> query("SELECT * FROM " . $xoopsDB -> prefix("wfschannel") . " WHERE CID = '$pagenum' ORDER BY weight");
list($CID, $pagetitle, $pageheadline, $maintext, $weight, $html, $smiley, $xcodes, $breaks, $defaultpage, $indeximage, $htmlfile) = $xoopsDB -> fetchrow($result2);

7
Catzwolf
Re: WF-Channel & Weight problem
  • 2003/10/31 16:39

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Whooops, sorry about that. wrong changes!

Here is the correct one.

Replace those changed files back to the original versions and modify xoops_version.php at line 38:

replace that line with

$result2 = $xoopsDB->query( "SELECT CID, pagetitle, defaultpage FROM " . $xoopsDB->prefix( "wfschannel" ) . " WHERE defaultpage = '0' AND submenu = 1 ORDER BY weight" );

And it should work as expected

8
mcancell
Re: WF-Channel & Weight problem
  • 2003/11/1 20:39

  • mcancell

  • Just popping in

  • Posts: 5

  • Since: 2003/10/28


I cannot seem to get the "channel topic" to expand for anonymous users. Does the "fix" reffered to in
this->thread have to do with that problem? We want to use the module, but we need to have anonymous users see the sub-topics. It seems that sub-topics are only displayed for "registered" users. Please help. I am nervous about altering the code unless we know that
this->wieght_problem problem has to do with the expansion issue that I am describing. Thanks.[quote]

9
mcancell
Re: WF-Channel & Weight problem
  • 2003/11/1 20:51

  • mcancell

  • Just popping in

  • Posts: 5

  • Since: 2003/10/28


Update - The following did not fix the "expansion" issue in my previous post.

$result2 = $xoopsDB->query( "SELECT CID, pagetitle, defaultpage FROM " . $xoopsDB->prefix( "wfschannel" ) . " WHERE defaultpage = '0' AND submenu = 1 ORDER BY weight" );

So...Does anyone else see that sub-topics are not expanded unless the user is logged in?

Login

Who's Online

199 user(s) are online (156 user(s) are browsing Support Forums)


Members: 0


Guests: 199


more...

Donat-O-Meter

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

Latest GitHub Commits