11
fosterm
Re: WF Links 1.03b Sort not working
  • 2007/6/2 20:20

  • fosterm

  • Just popping in

  • Posts: 93

  • Since: 2005/8/7 2


Quote:

McDonald wrote:
Quote:
I am running XOOPS 2.2.5 rc2 ...


Where are you getting XOOPS 2.2.5 rc5 from?
I can only find the rc1 version.


Sourceforge

PHP version 4.4.3
MySQL version 4.1.21-standard

Click here for output from debug on the sort page.

Hope that answers all your questions

12
McDonald
Re: WF Links 1.03b Sort not working
  • 2007/6/2 23:49

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


I've downloaded XOOPS 2.2.5 RC2 and upgraded rc1 to rc2 on my testserver.
The sort options still work correctly.
I don't have a clue what can cause it not to work on your site.

You can take the following steps to get rid of some errors but I'm sure this won't make a difference to sorting issue:

In the file viewcat.php remove the following lines:
/*
* get moderator items
*/
if ( checkgroups$cid'WFLinkAppPerm' ) )
{
    
$sql2 "SELECT * FROM " $xoopsDB -> prefix'wflinks_links' )
     . 
" WHERE published = 0 "
     
" ORDER BY "
     
$orderby;
    
$result2 $xoopsDB -> query$sql2 );

    
$link = array();
    
$xoopsTpl -> assign'moderate'false );
    if ( 
$result )
    {
        
$xoopsTpl -> assign'moderate'true );
        
$moderate 1;
        while ( 
$link_arr $xoopsDB -> fetchArray$result2 ) )
        {
            include 
XOOPS_ROOT_PATH '/modules/' $xoopsModule -> getVar'dirname' ) . '/include/linkloadinfo.php';
            
$xoopsTpl -> append'mod_arr'$link );
        } 
    } 
}


In /templates/wflinks_viewcat.html remove the following lines:
<{if $moderate == true}>
<
div><b><{$smarty.const._MD_WFL_MODERATOR_OPTIONS}></b></div><br />
<
table width="100%" cellspacing="0" cellpadding="10" border="0">
 <
tr>
  <
td width="100%">
   <!-- 
Start link loop -->
   <{
section name=a loop=$mod_arr}>
     <{include 
file="db:wflinks_linkload.html" link=$mod_arr[a]}>
   <{/
section}>
   <!-- 
End link loop -->
  </
td>
 </
tr>
</
table>
<{/if}>


These 2 changes remove the text 'moderator options' from the bottom of the screen when logged in as administrator.

In installscript.php remove the following lines to get rid of the error when updating the module:
function xoops_module_update_wflinks$module )
{
    return ( 
check_wf_resources_types() && check_wf_resources() ) ? true false;
}


Save these files after adding the changes, upload them to your server, update WF-Links and remove all files except index.html from the folder template_c.

13
fosterm
Re: WF Links 1.03b Sort not working
  • 2007/6/9 22:01

  • fosterm

  • Just popping in

  • Posts: 93

  • Since: 2005/8/7 2


Hiya

I made the changes you suggested McDonald, but unfortunately you were correct. They did not solve the issue.

BTW I did not have an index.html file in my template_c folder. Is that unusual?

In summary:

Running - PHP version 4.4.3, MySQL version 4.1.21-standard, XOOPS 2.2.5 rc2 and Wflinks 1.03b.


Completely uninstalling the wflinks module and reinstalling a freshly downloaded version (1.03b)and including new links in the newly loaded version of wflinks did not fix the issue.

I also am running wfdownloads and even though they are very similar if not identical in the sorting functions, my sorting functions of wfdownloads (v. 2.05)work just fine.

Maybe I should try to load an older version of wflinks? For example the version that was included in the XOOPS packages for the 2.2.x line of the XOOPS site?

Thanks for all your time and help on this issue. If anyone has any other ideas please post. If I eventually solve the issue I will post it here.

Login

Who's Online

196 user(s) are online (114 user(s) are browsing Support Forums)


Members: 0


Guests: 196


more...

Donat-O-Meter

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

Latest GitHub Commits