101
blackrx
Re: Review & Bugs - Xoops 2.5 Alpha
  • 2010/3/28 12:22

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


i have this problem too

https://xoops.org/modules/newbb/viewtopic.php?topic_id=71159&forum=74&post_id=325941#forumpost325941

https://xoops.org/modules/newbb/viewtopic.php?topic_id=71202&forum=72



102
blackrx
Where can I Get Latest XMSpotlight which works with news 1.6*
  • 2010/3/28 12:02

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


where ?



103
blackrx
Re: Problem when try to show all content from an user
  • 2010/3/24 22:37

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


Turn on the debug from preferences and and see what messages comes up

maybe some module is causing this




104
blackrx
Re: How do i redirect an old xoops page to main page ?
  • 2010/3/16 6:22

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


thank you peekay

but its not working



105
blackrx
How do i redirect an old xoops page to main page ?
  • 2010/3/16 1:24

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


this old link of my site is still exist in search engine
and when you go to this url you will see blank page
what is worse is

it appears on top of the search result


i don't use the content module anymore


mysite.com/modules/content/print.php?id=32
mysite.com/modules/content/print.php?id=34
mysite.com/modules/content/print.php?id=38


how do i redirect the url above to my main page with htaccess ?

or maybe there is other way



106
blackrx
Re: submenu view for certain user only
  • 2010/3/7 8:28

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


ok i figure this out by looking at similar threads...thanks

group
// group
$groupes 0;
if (
is_object($xoopsUser))
{
$groupes $xoopsUser->getGroups();
}
else {
$groupes = array(XOOPS_GROUP_ANONYMOUS);
}

switch(
$groupes)
{

case (
in_array(1$groupes)): //admin
echo "admin group";


break 
1;

case (
in_array(2$groupes)): //registered
echo "registered group";


break 
1;

case (
in_array(3$groupes)): //anonymous
echo "guest group";


break 
1;

case (
in_array(4$groupes)): //customized
echo "custom group";
break 
1;
}


show user uid 76
//user
$uid is_object($xoopsUser) ? $xoopsUser->getVar("uid") : 0

if ( 
is_object($xoopsUser) )
{
 if ( 
$xoopsUser->getVar("uid")==76 )
 {
echo 
"User76";
 }
else
 {
echo 
"x user76";
 }


}



107
blackrx
Re: submenu view for certain user only
  • 2010/3/7 3:10

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


Quote:

ghia wrote:
I assume you have to configure that group or that user first and then you can compare these settings with
$groups is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS;
$uid is_object($xoopsUser) ? $xoopsUser->getVar("uid") : 0;



Ghia or anyone...

can you show if else example like in the previous post ?

i want a certain user (by id) or a group member (moderator ?) to access the submenu...

the if else admin works perfectly

thanks



108
blackrx
Re: Xoops FAQ V1.15 Beta Released
  • 2010/2/21 3:36

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


searching is not working...xoopsfaq is not listed in profile and also searching FAQ using search.php don't have any results



search.inc.php
<?php
/**
 * Name: search.inc.php
 * Description: Search function for XOOPS FAQ Module
 *
 * You may not change or alter any portion of this comment or credits
 * of supporting developers from this source code or any supporting source code
 * which is considered copyrighted (c) material of the original comment or credit authors.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
 * @license http://www.fsf.org/copyleft/gpl.html GNU public license
 * @package : XOOPS
 * @Module : XOOPS FAQ
 * @subpackage : Search Functions
 * @since 2.3.0
 * @author John Neill
 * @version $Id: search.inc.php 0000 10/04/2009 09:04:24 John Neill $
 */
defined'XOOPS_ROOT_PATH' ) or die( 'Restricted access' );

/**
 * xoopsfaq_search()
 *
 * @param mixed $queryarray
 * @param mixed $andor
 * @param mixed $limit
 * @param mixed $offset
 * @param mixed $userid
 * @return
 */
function xoopsfaq_search$queryarray$andor$limit$offset$userid ) {
    global 
$xoopsDB;
    
$ret = array();
    if ( 
$userid != ) {
        return 
$ret;
    }
    
$sql "SELECT contents_id, category_id, contents_title, contents_contents, contents_time FROM " $xoopsDB->prefix"xoopsfaq_contents" ) . " WHERE contents_visible=1 ";
    
// because count() returns 1 even if a supplied variable
    // is not an array, we must check if $querryarray is really an array
    
$count count$queryarray );
    if ( 
$count && is_array$queryarray ) ) {
        
$sql .= "AND ((contents_title LIKE '%$queryarray[0]%' OR contents_contents LIKE '%$queryarray[0]%')";
        for ( 
$i 1$i $count$i++ ) {
            
$sql .= $andor ";
            
$sql .= "(contents_title LIKE '%$queryarray[$i]%' OR contents_contents LIKE '%$queryarray[$i]%')";
        }
        
$sql .= ") ";
    }
    
$sql .= "ORDER BY contents_id DESC";
    
$result $xoopsDB->query$sql$limit$offset );
    
$i 0;
    while ( 
$myrow $xoopsDB->fetchArray$result ) ) {
        
$ret[$i]['image'] = "images/question2.gif";
        
$ret[$i]['link'] = "index.php?cat_id=" $myrow['category_id'] . "#" $myrow['contents_id'];
        
$ret[$i]['title'] = $myrow['contents_title'];
        
$ret[$i]['time'] = $myrow['contents_time'];
        
$i++;
    }
    return 
$ret;
}

?>



109
blackrx
Re: Credits module
  • 2010/2/7 14:44

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


i think another same credit module exist before this...


but for me i really think that displaying version of module is dangerous

hackers will know how to exploit ur site..if any of your module has vulnerability



110
blackrx
Re: compatable modules list?
  • 2010/2/7 14:38

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


btw any update on new module repository ?




TopTop
« 1 ... 8 9 10 (11) 12 13 14 ... 20 »



Login

Who's Online

212 user(s) are online (146 user(s) are browsing Support Forums)


Members: 0


Guests: 212


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