91
jimmyx
Re: Scripts in blocks Xoops 2.4.4 ?
  • 2010/3/12 14:26

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


bump



92
jimmyx
Re: How to disable center left & center right blocks in custom page ?
  • 2010/3/12 14:24

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


columns of blocks



93
jimmyx
Re: How to disable center left & center right blocks in custom page ?
  • 2010/3/11 11:57

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


bump



94
jimmyx
Re: Scripts in blocks Xoops 2.4.4 ?
  • 2010/3/11 11:55

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


anyone else have the problem #2 ?

or it is just me



95
jimmyx
Re: XOOPS Check Boxes
  • 2010/3/11 11:52

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


ok i try to add check all/uncheckall in groups

based on this code
http://www.hscripts.com/scripts/JavaScript/select-all-checkbox.php

in include/xoops.js, add this at end of the file

checked=false;
function 
checkedAll (groupform) {
    var 
aadocument.getElementById('groupform');
     if (
checked == false)
          {
           
checked true
          
}
        else
          {
          
checked false
          
}
    for (var 
=0aa.elements.lengthi++) 
    {
     
aa.elements[i].checked checked;
    }
      }




in class/xoopsform/formcheckboxes.php


somewhere in line 237

replace this
$ret .= '</table>';



with
$ret .= '<tr><td><input type=checkbox name=checkall onclick=checkedAll(groupform);>Check/Uncheck All</td></tr></table>';


result: it is working.....but when i select the check all checkbox in group setting all the checkboxes are selected...

supposed only the checkboxes in each row are selected
system admin rights
module admin rights
module access rights

etc and so on

help

this is almost working perfectly

demo:
http://img268.imageshack.us/img268/939/demoaa.png



96
jimmyx
Re: How to resize size of avatar picture automatically
  • 2010/3/11 11:18

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


the XOOPS core does not have this feature

but the yogurt module have a feature where you can
upload as many picture allowed...the picture is resize automatically by imagemagick and then you can set any of the uploaded picture as avatar

btw trabis is working on a picture gallery based on yogurt where you can do exactly the same thing..

still not working properly though
http://www.xuups.com/modules/publisher/item.php?itemid=23


avatar auto resize should be in core...not all of user is tech savy...many don;t know how to resize their pics

BUT

if you mean just resize it when display as example in user info just change the user info template and change the width and height of avatar to 50 , 50



97
jimmyx
Re: How to disable center left & center right blocks in custom page ?
  • 2010/3/10 13:18

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


I am using the 'ghost' module (trabis version)

it is now i want to customize the block..show or hide it

i can hide all blocks except center left and center right blocks

this is the index page


<?php


include "../../mainfile.php";
include 
"../../header.php";

redirect_header('../../index.php');

$meta_keywords "------------";
$meta_description "------";
$pagetitle "------";

if(isset(
$xoTheme) && is_object($xoTheme)) {
    
$xoTheme->addMeta'meta''keywords'$meta_keywords);
    
$xoTheme->addMeta'meta''description'$meta_description);
} else {    
// Compatibility for old XOOPS versions
    
$xoopsTpl->assign('xoops_meta_keywords'$meta_keywords);
    
$xoopsTpl->assign('xoops_meta_description'$meta_description);
}

$xoopsTpl->assign('xoops_pagetitle'$pagetitle);

//this will only work if your theme is using this smarty variables
$xoopsTpl->assign'xoops_showlblock'1); //set to 0 to hide left blocks
$xoopsTpl->assign'xoops_showrblock'1); //set to 0 to hide right blocks
$xoopsTpl->assign'xoops_showcblock'1); //set to 0 to hide center blocks


?>





<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>



98
jimmyx
How to disable center left & center right blocks in custom page ?
  • 2010/3/10 12:08

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


i use this to hide left, right, and center blocks in custom page


$xoopsTpl->assign('xoops_showrblock'0); // 1 display right blocks
$xoopsTpl->assign('xoops_showlblock'0); // 1 display right blocks
$xoopsTpl->assign('xoops_showcblock'0); // 1 display center blocks




what about center left and center right ?


tried this..it does not work



$xoopsTpl->assign('xoops_showlcblock'0); 
$xoopsTpl->assign('xoops_showrcblock'0); 

$xoopsTpl->assign('xoops_showclblock'0); 
$xoopsTpl->assign('xoops_showcrblock'0);



99
jimmyx
Re: XOOPS Check Boxes
  • 2010/3/10 12:04

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


+1



100
jimmyx
Scripts in blocks Xoops 2.4.4 ?
  • 2010/3/10 12:01

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


i just made some upgrade some of my XOOPS 2.3 website to XOOPS 2.4.4 ...successful upgrade process

just two issue

1. the upgrading package should be set so the final step is upgrade
to 2.4.4 and not 2.40

also reported by burning

Resized Image


2. i'm having problem saving blocks with javascripts call in 2.4.4
it is not saving .....


<script src="xxxxxxxxxxxxxxxx" type="text/javascript"></script>

in XOOPS 2.3 i don't have this problem....

i have to manually edit the block in phpmyadmin so i can do modifications


help...




TopTop
« 1 ... 7 8 9 (10) 11 12 13 ... 28 »



Login

Who's Online

235 user(s) are online (165 user(s) are browsing Support Forums)


Members: 0


Guests: 235


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