231
mjoel
space between checkbox and text
  • 2007/12/15 13:31

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


how do i make a space between a checkbox and text

example in my site

Resized Image

in xoops.org

Resized Image



232
mjoel
Re: module for a magazine
  • 2007/12/15 13:18

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


tadbook

http://translate.google.com/translate?hl=en&sl=zh-TW&u=http://xoops.tnc.edu.tw/modules/newbb/viewtopic.php%3Ftopic_id%3D1083%26forum%3D7&sa=X&oi=translate&resnum=1&ct=result&prev=/search%3Fq%3Dtadbook%26hl%3Den%26client%3Dfirefox-a%26channel%3Ds%26rls%3Dorg.mozilla:en-US:official%26hs%3DBoW%26sa%3DG

magazine
https://xoops.org/modules/repository/singlefile.php?cid=95&lid=1617



233
mjoel
Re: Redirection in case user does not have permission
  • 2007/12/12 20:01

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


in all the modules check the submit.php file

you will find a line something like this,

redirect_header("index.php", 1, _NOPERM);

edit:
change the "index.php" to XOOPS_URL."/user.php"

redirect_header(XOOPS_URL."/user.php", 1, _NOPERM);



234
mjoel
Re: Test system module needed
  • 2007/12/12 19:57

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


try this
http://www.xoopsaddons.org/modules/wfdownloads/singlefile.php?lid=872



235
mjoel
Re: MyLinks module
  • 2007/12/12 19:54

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


mylinks php4
http://downloads.sourceforge.net/xoops/xoops-2.0.13.2.zip?modtime=1130660536&big_mirror=0
look inside the modules folder

mylinks php5
http://www.xoopsaddons.org/modules/wfdownloads/singlefile.php?cid=24&lid=1225



236
mjoel
Re: Random links
  • 2007/12/8 3:43

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


topic bump..i got this working...!!

in macdonald previous post ...update the mylinks_top.php
with this

<?php
// $Id: mylinks_top.php,v 1.11 2004/12/26 19:11:56 Onokazu Exp $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
//                       <https://xoops.org/>                             //
//  ------------------------------------------------------------------------ //
//  This program is free software; you can redistribute it and/or modify     //
//  it under the terms of the GNU General Public License as published by     //
//  the Free Software Foundation; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  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.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //
/******************************************************************************
 * Function: b_mylinks_top_show
 * Input   : $options[0] = date for the most recent links
 *                    hits for the most popular links
 *           $block['content'] = The optional above content
 *           $options[1]   = How many reviews are displayes
 * Output  : Returns the desired most recent or most popular links
 ******************************************************************************/
function b_mylinks_top_show($options) {
    global 
$xoopsDB;
    
$block = array();
    
$myts =& MyTextSanitizer::getInstance();
    
$result $xoopsDB->query("SELECT lid, cid, title, date, hits FROM ".$xoopsDB->prefix('mylinks_links')." WHERE status>0 ORDER BY ".$options[0]." DESC",$options[1],0);
    while(
$myrow $xoopsDB->fetchArray($result)){
        
$link = 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)))."...";
            }
        }
        
$link['id'] = $myrow['lid'];
        
$link['cid'] = $myrow['cid'];
        
$link['title'] = $title;
        if(
$options[0] == "date"){
            
$link['date'] = formatTimestamp($myrow['date'],'s');
        }elseif(
$options[0] == "hits"){
            
$link['hits'] = $myrow['hits'];
        }
        
$block['links'][] = $link;
    }
    return 
$block;
}

function 
b_mylinks_random$options )
{
         global 
$xoopsDB;
     
$block = array();
     
$myts =& MyTextSanitizer::getInstance();
     
$result $xoopsDB -> query("SELECT lid, cid, title, url, logourl, date FROM " $xoopsDB -> prefix('mylinks_links') . " WHERE status>0 ORDER BY RAND()");
     while(
$myrow $xoopsDB->fetchArray($result)){
                
$link = 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)))."...";
            }
        }
        
$link['id'] = $myrow['lid'];
        
$link['cid'] = $myrow['cid'];
        
$link['title'] = $title;
        
$link['url'] = $myrow['url'];
        
$link['logourl'] = $myrow['logourl'];
        
$link['date'] = formatTimestamp($myrow['date'],'s');
        
$block['links'][] = $link;
    }
    return 
$block;
}

function 
b_mylinks_top_edit($options) {
    
$form ""._MB_MYLINKS_DISP."&nbsp;";
    
$form .= "<input type='hidden' name='options[]' value='";
    if(
$options[0] == "date"){
        
$form .= "date'";
    }else {
        
$form .= "hits'";
    }
    
$form .= " />";
    
$form .= "<input type='text' name='options[]' value='".$options[1]."' />&nbsp;"._MB_MYLINKS_LINKS."";
    
$form .= "&nbsp;<br>"._MB_MYLINKS_CHARS."&nbsp;<input type='text' name='options[]' value='".$options[2]."' />&nbsp;"._MB_MYLINKS_LENGTH."";

    return 
$form;
}

function 
b_mylinks_random_edit$options )
{
    
$form =  "" _MB_MYLINKS_DISP "&nbsp;";
    
$form .= "<input type='hidden' name='options[]' value='";
    
$form .= "random'";
    
$form .= " />";
    
$form .= "<input type='text' name='options[]' value='" $options[1] . "' />&nbsp;" _MB_MYLINKS_LINKS "";
    
$form .= "&nbsp;<br />" _MB_MYLINKS_CHARS "&nbsp;<input type='text' name='options[]' value='" $options[2] . "' />&nbsp;" _MB_MYLINKS_LENGTH "";
    return 
$form;
}
?>



237
mjoel
Re: Yogurt Social Network Service
  • 2007/11/16 19:06

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


nice thanks for the updates suico...

-- any expected date of release ?

-- is search member feature will be included in this version ?

-- how do the upgrade from yogurt (user's photos) to yogurt social networks works ?

--my2cents: the tabs feature will be much more nicer if ajax tab is used http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/



238
mjoel
Re: Can xoops modules do this?
  • 2007/11/15 13:39

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Quote:
For instance can non registered users see the userpages or is it locked to only members.


you can set this in your admin panel - groups


See Example - sites using userpage



239
mjoel
Re: <{$user_lastlogin}>
  • 2007/11/15 4:03

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


what about displaying x users who were online today or from past x minutes using the info from last_login....

does anyone how to do this ?



240
mjoel
Re: Random Member ... ?
  • 2007/11/15 3:22

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Bingo !!

global $xoopsDB;
$sql "SELECT uid, uname, user_avatar  FROM ".$xoopsDB->prefix("users")." WHERE level > 0 AND uid NOT IN (1) AND user_avatar <> 'blank.gif' ORDER BY RAND() LIMIT 10";
$result $xoopsDB->query($sql);
while (list(
$uid$uname,$user_avatar) = $xoopsDB->fetchRow($result) )
{
echo 
"<img src='./uploads/".$user_avatar."'alt='Avatar'></a><br />";
echo 
"<a href='".XOOPS_URL."/userinfo.php?uid=".$uid."'>".$uname."</a><br />";
}


admin is not included - uid NOT IN (1)
user with no avatar not included - user_avatar <> 'blank.gif'
show 10 random user RAND() LIMIT 10




TopTop
« 1 ... 21 22 23 (24) 25 26 27 28 »



Login

Who's Online

189 user(s) are online (107 user(s) are browsing Support Forums)


Members: 0


Guests: 189


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