11
spacejoee
Protector, how to make it run faster
  • 2007/7/31 12:32

  • spacejoee

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/7/25


Hi all.
Our website Casafree.com is using XOOPS since 2004. Recently we installed the XOOPS protector module.
This module is really great, but it takes too many MySQL queries not using index. Wich overload the server.

If you are having this same problem, you just have to edit /class/protector.php

$result = @mysql_query( "SELECT conf_name,conf_value FROM ".XOOPS_DB_PREFIX."_config WHERE conf_title like '".$constpref."%'" , $this->_conn ) ;


by

$result = @mysql_query( "SELECT conf_name,conf_value FROM ".XOOPS_DB_PREFIX."_config WHERE conf_modid = XXX" , $this->_conn ) ;

You can find the XXX conf_modid value of your XOOPS protector in you phpmyadmin panel, in the xoops_config table.


Wish this will help you taking the best of this module.



12
spacejoee
Re: About Casafree_nature theme
  • 2007/6/9 0:37

  • spacejoee

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/7/25


You can find more infos about the conversion of this theme to arabic (switching divs from left to right) in this page :
http://www.arabxoops.com/modules/newbb/viewtopic.php?topic_id=1426&forum=6&post_id=8205


Good luck.



13
spacejoee
Re: Trouble with View user
  • 2007/5/11 20:48

  • spacejoee

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/7/25


Go to admin menu, activate the Php debug, and past here what it tolds you once you try to open a user page.



14
spacejoee
Re: New Site -> moving existing users
  • 2007/5/2 13:52

  • spacejoee

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/7/25


The safest way is to copy those 3 tables :
_ranks
_users
_groups
_groups_users_link
_group_permission



15
spacejoee
Re: problem with news module
  • 2007/4/6 12:03

  • spacejoee

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/7/25


Use the debug, and post here what it says.
Admin -> Settings -> Inline Php Debug



16
spacejoee
Re: Rss feeds
  • 2007/4/5 0:20

  • spacejoee

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/7/25


1 Download this file :https://xoops.org.cn/modules/wfdownloads/visit.php?lid=471
2 unzip it
3 upload the folder Frameworks to your XOOPS folder.

That's all.



17
spacejoee
Re: theme code help needed.
  • 2006/12/18 15:14

  • spacejoee

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/7/25


It's because when you add <form > it always jumps to the next line.



18
spacejoee
Re: theme code help needed.
  • 2006/12/18 1:40

  • spacejoee

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/7/25


Hi,
it's because you have a link just before <form>, you had two solution :
1 , add a cell for your link, and a cell for you form.
2 , this one :
<tr>
    <
td  class="subLinks">
            <{if 
$xoops_isuser}>
            <
a href="<{$xoops_url}>/store">Store</a> | 
            <
a href="<{$xoops_url}>/user.php">Profile</a> |
            <
a href="<{$xoops_url}>/edituser.php">Edit Profile</a> |
            <
a href="<{$xoops_url}>/notifications.php">Notifications</a> |
            <{
php}>
            GLOBAL 
$xoopsUser;
            
$pm_handler =& xoops_gethandler('privmessage');
            
$uid $xoopsUser->getVar('uid');
            
$criteria = new CriteriaCompo(new Criteria('read_msg'0));
            
$criteria->add(new Criteria('to_userid'$uid));
            
$msgcount $pm_handler->getCount($criteria);
            
$GLOBALS['xoopsTpl']->assign('msgcount'$msgcount);
            <{/
php}>
                <{if 
$msgcount 0}>
                <
class="highlight" href="<{$xoops_url}>/viewpmsg.php">Inbox (<span style="color:#ffff00; font-weight: bold;"><{$msgcount}></span>)</a> |
                <{else}>
                <
a href="<{$xoops_url}>/viewpmsg.php">Inbox</a> |
                <{/if}>
            <{if 
$xoops_isadmin}>
            <
a href="<{$xoops_url}>/admin.php">Administration</a> |
            <{/if}>
        <
a href="<{$xoops_url}>/user.php?op=logout">Logout</a>
        <{else}>
<
form action="<{$xoops_url}>/user.php" method="post">
            <
a href="<{$xoops_url}>/store">Store</a> | 
    
Username
    
<input type="text" name="uname" size="12" value="<{$block.unamevalue}>" maxlength="25">
    
Password 
    
<input type="password" name="pass" size="12" maxlength="32">
    <!-- <
input type="checkbox" name="rememberme" value="On" class ="formButton" /><{$block.lang_rememberme}><br /> //-->
    
<input type="hidden" name="xoops_redirect" value="<{$xoops_requesturi}>">
    <
input type="hidden" name="op" value="login">
    <
input  id="UserFormBut" type="submit" value="ENTER">
    <{
$block.sslloginlink}><a href="<{$xoops_url}>/user.php#lost">Lost Password</a> |
    <
a href="<{$xoops_url}>/register.php">Become a Member</a>
</
form>        
        <{/if}> 
    </
td>
 </
tr>


Tell me if it works



19
spacejoee
Re: helo.. is xoops support still alive ?
  • 2006/12/10 16:27

  • spacejoee

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/7/25


Take a look at this :
https://xoops.org/modules/newbb/viewtopic.php?topic_id=53405&forum=1



20
spacejoee
Re: About comments : How to change the url ?
  • 2006/10/30 13:59

  • spacejoee

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/7/25


Some days later ...
any idea ?




TopTop
« 1 (2) 3 4 5 »



Login

Who's Online

164 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 164


more...

Donat-O-Meter

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

Latest GitHub Commits