11
rplima2004
Re: Testing Xoops Total 2.0.18 Package.
  • 2007/10/11 1:28

  • rplima2004

  • Just popping in

  • Posts: 70

  • Since: 2004/10/8


Quote:

script_fu wrote:
You still cannot do easy stuff from the (frontend) like edit blocks?

Example:http://www.xgarage.org/edit_blocks.zip

Then once in the block edit mode (backend) you edit what you need hit save and it returns you to the (frontend). Just like dotnetnuke...

This would save a huge amount of time alone.


Excellent suggestion script_fu!

It facilitates very much the life of the administrator and is really simple to implement.

I Already wrote down in mine wish list

Quote:


How do we use these?
public_html/jseffects
public_html/common/jscalendar


The public_html/jseffects have functions used in zetagenesis theme including the png bahavior support to ie.
The other folder i realy don't remember now, but i will see and later answer here.

Quote:

Can anyone else confirm features that have
changed for the better as opposed to xoops?



Now of head what I remember it is:

Block Positions Admin - You can create new areas/sides toshow blocks in theme. See img here

Password Security Level in Register - You can define the minimum level of security of the used passwords at the moment to register a new user see img here another img here

Google Meta Tag - Field to put the code generated by google to confirme the ownership of the site. see img here

Google Analytics - Field to put the script informed by Google Analytics for your site. see img here


multilogin prohibition - With this option enabled, if a user is already logged in at the site he won't be able to log in twice until the current login is finished. This is useful to prevent that someone conects himself/herself at the site with the same username. see img here

Protect Emails against SPAM - Convert all email in the content of the site to an image to prevent spam. see img here another img here



12
rplima2004
Re: Restaurant theme
  • 2007/6/19 12:26

  • rplima2004

  • Just popping in

  • Posts: 70

  • Since: 2004/10/8


Hi Dave,

If you desire you can use one of these images below.

Resized Image


Resized Image

I went to make a theme for a customer who gave up the project.

The images are not thus fantastic but it can serve of base for its creations.

If you desire sends me a PM that I send the originals in photoshop to you.

Cheers



13
rplima2004
Re: is_home ==1 and is_module=="modulename"
  • 2007/6/14 12:16

  • rplima2004

  • Just popping in

  • Posts: 70

  • Since: 2004/10/8


hi Kumar

I make this placing the code below in the end of the file header.php

if (!strstr$_SERVER['PHP_SELF'],'/modules/') || strstr$_SERVER['PHP_SELF'],'/modules/') == ''){
  if (
$_SERVER['PHP_SELF'] == '/index.php' /*|| $_SERVER['PHP_SELF'] == '/sub_dir/index.php'*/){ //If your site is in a subdomain, uncomment the code to the side and changes the word "sub_dir" for the name of the directory where its site is
    #You are in home
      
$xoopsTpl->assign'xoops_ishome'true );
  }else{
    
#You aren't in home however isn't in no module
      
$xoopsTpl->assign'xoops_ishome'false );
  }    
}else{
  
#You are in some module
  
$xoopsTpl->assign'xoops_ishome'false );
  
$xoopsTpl->assign'xoops_ismodule'true );
}


Make tests and sees if this helps you

[]s



14
rplima2004
Re: system_block_comments.html change
  • 2007/6/13 13:46

  • rplima2004

  • Just popping in

  • Posts: 70

  • Since: 2004/10/8


René,

The original code of the function is:
function b_system_comments_show($options)
{
    
$block = array();
    include_once 
XOOPS_ROOT_PATH.'/include/comment_constants.php';
    
$comment_handler =& xoops_gethandler('comment');
    
$criteria = new CriteriaCompo(new Criteria('com_status'XOOPS_COMMENT_ACTIVE));
    
$criteria->setLimit(intval($options[0]));
    
$criteria->setSort('com_created');
    
$criteria->setOrder('DESC');
    
$comments $comment_handler->getObjects($criteriatrue);
    
$member_handler =& xoops_gethandler('member');
    
$module_handler =& xoops_gethandler('module');
    
$modules $module_handler->getObjects(new Criteria('hascomments'1), true);
    
$comment_config = array();
    foreach (
array_keys($comments) as $i) {
        
$mid $comments[$i]->getVar('com_modid');
        
$com['module'] = '<a href="'.XOOPS_URL.'/modules/'.$modules[$mid]->getVar('dirname').'/">'.$modules[$mid]->getVar('name').'</a>';
        if (!isset(
$comment_config[$mid])) {
            
$comment_config[$mid] = $modules[$mid]->getInfo('comments');
        }
        
$com['id'] = $i;
        
$com['title'] = '<a href="'.XOOPS_URL.'/modules/'.$modules[$mid]->getVar('dirname').'/'.$comment_config[$mid]['pageName'].'?'.$comment_config[$mid]['itemName'].'='.$comments[$i]->getVar('com_itemid').'&amp;com_id='.$i.'&amp;com_rootid='.$comments[$i]->getVar('com_rootid').'&amp;'.htmlspecialchars($comments[$i]->getVar('com_exparams')).'#comment'.$i.'">'.$comments[$i]->getVar('com_title').'</a>';
        
$com['icon'] = htmlspecialchars$comments[$i]->getVar('com_icon'), ENT_QUOTES );
        
$com['icon'] = ($com['icon'] != '') ? $com['icon'] : 'icon1.gif';
        
$com['time'] = formatTimestamp($comments[$i]->getVar('com_created'),'m');
        if (
$comments[$i]->getVar('com_uid') > 0) {
            
$poster =& $member_handler->getUser($comments[$i]->getVar('com_uid'));
            if (
is_object($poster)) {
                
$com['poster'] = '<a href="'.XOOPS_URL.'/userinfo.php?uid='.$comments[$i]->getVar('com_uid').'">'.$poster->getVar('uname').'</a>';
            } else {
                
$com['poster'] = $GLOBALS['xoopsConfig']['anonymous'];
            }
        } else {
            
$com['poster'] = $GLOBALS['xoopsConfig']['anonymous'];
        }
        
$block['comments'][] =& $com;
        unset(
$com);
    }
    return 
$block;
}


Change to this:
function b_system_comments_show($options)
{
    
$block = array();
    include_once 
XOOPS_ROOT_PATH.'/include/comment_constants.php';
    
$comment_handler =& xoops_gethandler('comment');
    
$criteria = new CriteriaCompo(new Criteria('com_status'XOOPS_COMMENT_ACTIVE));
    
$criteria->setLimit(intval($options[0]));
    
$criteria->setSort('com_created');
    
$criteria->setOrder('DESC');
    
$comments $comment_handler->getObjects($criteriatrue);
    
$member_handler =& xoops_gethandler('member');
    
$module_handler =& xoops_gethandler('module');
    
$modules $module_handler->getObjects(new Criteria('hascomments'1), true);
    
$comment_config = array();
    foreach (
array_keys($comments) as $i) {
        
$mid $comments[$i]->getVar('com_modid');
        
$com['module'] = '<a href="'.XOOPS_URL.'/modules/'.$modules[$mid]->getVar('dirname').'/">'.$modules[$mid]->getVar('name').'</a>';
        if (!isset(
$comment_config[$mid])) {
            
$comment_config[$mid] = $modules[$mid]->getInfo('comments');
        }
        
$com['id'] = $i;
        
$com['title'] = '<a href="'.XOOPS_URL.'/modules/'.$modules[$mid]->getVar('dirname').'/'.$comment_config[$mid]['pageName'].'?'.$comment_config[$mid]['itemName'].'='.$comments[$i]->getVar('com_itemid').'&amp;com_id='.$i.'&amp;com_rootid='.$comments[$i]->getVar('com_rootid').'&amp;'.htmlspecialchars($comments[$i]->getVar('com_exparams')).'#comment'.$i.'">'.$comments[$i]->getVar('com_title').'</a>';
        
$com['text'] = $comments[$i]->getVar('com_text');
        
$com['icon'] = htmlspecialchars$comments[$i]->getVar('com_icon'), ENT_QUOTES );
        
$com['icon'] = ($com['icon'] != '') ? $com['icon'] : 'icon1.gif';
        
$com['time'] = formatTimestamp($comments[$i]->getVar('com_created'),'m');
        if (
$comments[$i]->getVar('com_uid') > 0) {
            
$com['poster'] = array();
            
$poster =& $member_handler->getUser($comments[$i]->getVar('com_uid'));
            if (
is_object($poster)) {
                
$com['poster']['link'] = '<a href="'.XOOPS_URL.'/userinfo.php?uid='.$comments[$i]->getVar('com_uid').'">'.$poster->getVar('uname').'</a>';
                
$com['poster']['id'] = $comments[$i]->getVar('com_uid');
                
$com['poster']['uname'] = $poster->getVar('uname');
                
$com['poster']['avatar'] = '<img src="'.XOOPS_URL.'/uploads/'.$poster->getVar('user_avatar').'" />';  
            } else {
                
$com['poster']['link'] = $GLOBALS['xoopsConfig']['anonymous'];
            }
        } else {
            
$com['poster']['link'] = $GLOBALS['xoopsConfig']['anonymous'];
        }
        
$block['comments'][] =& $com;
        unset(
$com);
    }
    return 
$block;
}


Now it's only to use in templates the new variables.

< {$comment.poster.link}>
< {$comment.poster.uid}>
< {$comment.poster.uname}>
< {$comment.poster.avatar}>
< {$comment.text}>

I hope that it helps you

Rodrigo



15
rplima2004
Re: system_block_comments.html change
  • 2007/6/13 13:27

  • rplima2004

  • Just popping in

  • Posts: 70

  • Since: 2004/10/8


Hi René,

Looking at the php code (modules/system/blocks/system_blocks.php) of the block (xoops 2016) I noticed that in the construction of the block only exist the poster name, uid, comment title, icon and time.

To show the other information that you desires would be necessary to include them in the function (b_system_comments_show).



16
rplima2004
Re: Could this be the future of Web based CMS?
  • 2007/6/12 11:46

  • rplima2004

  • Just popping in

  • Posts: 70

  • Since: 2004/10/8


Yes its really very cool.

Quote:

JimLunsford says:
I don't think that it will replace a CMS but it might just replace my desktop.


Certainly this is not a CMS and nor has the intention of being, this, and some others that already exist for there are the calls webOS. Softwares baseb on Web 2.0, that counts on much AJAX and that came to the world, lol, to allow to the users access to the main tools of its desktop of any place.

Moreover, for if dealing with softwares for web, they are multiplatform and easily can be adapted for access saw palmtop or celphones.

Other examples of webOS:

GOOWY - www.goowy.com (made in Flash)
FOLD - www.fold.com (made in Flash too)(does not exist more)
YOUOS - www.youos.com

Here you can find a list of webOS available



17
rplima2004
Re: X_movie v1.7 - loosing blocks configs
  • 2007/6/11 20:34

  • rplima2004

  • Just popping in

  • Posts: 70

  • Since: 2004/10/8


thanks to reply the error.

I alredy edit the older post and now its correct.

[]s



18
rplima2004
Re: X_movie v1.7 - loosing blocks configs
  • 2007/6/11 20:00

  • rplima2004

  • Just popping in

  • Posts: 70

  • Since: 2004/10/8


Hi wilson,

Its simple to correct this.

Open the xoops_version.php of the module in a text editor and include the code below on the end of the file, just before the ?>

// On Update (Preserva as configurações dos blocos ao atualizar o módulo)
if( ! empty( $_POST['fct'] ) && ! empty( $_POST['op'] ) && $_POST['fct'] == 'modulesadmin' && $_POST['op'] == 'update_ok' && $_POST['dirname'] == $modversion['dirname'] ) {
    include 
dirname__FILE__ ) . "/includes/updateblock.inc.php" ;
}


After this, download, unzip and paste this file on the includes folder of the module and voialá. lol

Rodrigo



19
rplima2004
Re: [XoopsTeam] rplima2004 - Core Development
  • 2007/6/11 16:17

  • rplima2004

  • Just popping in

  • Posts: 70

  • Since: 2004/10/8


hi,

I would like to be thankful all for the beautiful words and the support that had given to me.

Sincerely I am very happy therefore.

Rodrigo



20
rplima2004
Re: Multiple instances of a block with different settings in 2.0.16?
  • 2007/6/11 16:06

  • rplima2004

  • Just popping in

  • Posts: 70

  • Since: 2004/10/8


hi dargosch,

You can download a 2016 version hacked with my modifications to create a clone block function here.

This package can only be used to a fresh install of xoop, dont use this to update your old site, ok.

This download contain a oficial version of XOOPS 2016 with my hack to clone blocks and create new block positions (areas).

bye




TopTop
« 1 (2) 3 4 5 6 »



Login

Who's Online

155 user(s) are online (101 user(s) are browsing Support Forums)


Members: 0


Guests: 155


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