111
Mazar
Re: New Theme for Xoops.org Site!!
  • 2009/7/28 12:19

  • Mazar

  • Not too shy to talk

  • Posts: 191

  • Since: 2009/1/4 0


Ready to join the team



112
Mazar
Re: how can i upload more then one image with the class uploader
  • 2009/7/24 9:49

  • Mazar

  • Not too shy to talk

  • Posts: 191

  • Since: 2009/1/4 0


anyone here to help me with the above code to upload more then one picture



113
Mazar
how can i upload more then one image with the class uploader
  • 2009/7/23 20:00

  • Mazar

  • Not too shy to talk

  • Posts: 191

  • Since: 2009/1/4 0


here is my single upload it is working i got the snippet from XOOPS snippets in developer section

how can upload more then one image

$thumb $_POST['thumb'];
    include_once 
XOOPS_ROOT_PATH '/class/uploader.php';
    
$allowed_mimetypes = array('image/gif''image/jpeg''image/pjpeg''image/x-png''image/png');
    
$maxfilesize '200000';
    
$maxfilewidth '500';
    
$maxfileheight '500';
    
$uploader = new XoopsMediaUploader(XOOPS_ROOT_PATH "/modules/news/uploads"$allowed_mimetypes$maxfilesize,         $maxfilewidth$maxfileheight);
    if (
$uploader->fetchMedia($_POST["xoops_upload_file"][0])) {
    if (!
$uploader->upload()) {
        echo 
$uploader->getErrors(); 
    } else {
        echo 
'<h4>File uploaded successfully!</h4>';
        echo 
'Saved as: ' $uploader->getSavedFileName() . '<br />';
        echo 
'Full path: ' $uploader->getSavedDestination();
    }
    } else {
    echo 
$uploader->getErrors(); 
    }

with this code
please help



114
Mazar
Re: I started learning xoops but having problems
  • 2009/7/23 17:36

  • Mazar

  • Not too shy to talk

  • Posts: 191

  • Since: 2009/1/4 0


Thanks both of you for the help. it worked



115
Mazar
Re: I started learning xoops but having problems
  • 2009/7/23 14:14

  • Mazar

  • Not too shy to talk

  • Posts: 191

  • Since: 2009/1/4 0


I see one guy Trabis here very helpfull, and i am hoping some help from him and other members here to learn some module developing and help the project.



116
Mazar
I started learning xoops but having problems
  • 2009/7/23 14:10

  • Mazar

  • Not too shy to talk

  • Posts: 191

  • Since: 2009/1/4 0


I dont know if i am posting on the right fourm. I recently began to XOOPS module developing i having problem with XOOPS pagenav
here is the error code
Fatal error: Call to a member function renderNav() on a non-object

My code
include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
global $xoopsDB, $xoopModuleConfig;
echo "<table border='0' cellpadding='5' cellspacing='0'>";
echo "<tr><td colspan=2' align='left'>";
$start = isset( $HTTP_GET_VARS['start'] ) ? intval( $HTTP_GET_VARS['start'] ) : 0;
$result = $xoopsDB->queryF("SELECT * FROM ".$xoopsDB->prefix('mymod')."");
$recordtotal = mysql_num_rows($result);
$recordsperpage = 5;
if (!$start) $start = 0;
if ($recordtotal) $nav = new XoopsPageNav($recordtotal, $recordsperpage, $start, 'start', '');
echo $nav->renderNav($offset = 4);



117
Mazar
I need a small hack for news module here is the code
  • 2009/7/22 8:36

  • Mazar

  • Not too shy to talk

  • Posts: 191

  • Since: 2009/1/4 0


$scount count($sarray);     $xoopsTpl->assign('story_count'$scount);     
$k 0;     
$columns = array();     
if(
$scount>0)     {         $soccer_storieslist=array();         
foreach (
$sarray as $storyid => $thisstory) {             $soccer_storieslist[]=$thisstory->storyid();         }         
$filesperstory $sfiles->getCountbyStories($soccer_storieslist);          foreach ($sarray as $storyid => $thisstory) {             $filescount array_key_exists($thisstory->storyid(),$filesperstory) ? $filesperstory[$thisstory->storyid()] : 0;             $story $thisstory->prepare2show($filescount);             // The line below can be used to display a Permanent Link image             // $story['title'] .= "&nbsp;&nbsp;<a href='".XOOPS_URL."/modules/soccer/article.php?storyid=".$sarray[$i]->storyid()."'><img src='".XOOPS_URL."/modules/soccer/images/x.gif' alt='Permanent Link' /></a>";             $story['soccer_title'] = $story['title'];             $story['title'] = $thisstory->textlink().'&nbsp;:&nbsp;'.$story['title'];             $story['topic_title'] = $thisstory->textlink();             
$story['topic_color'] = '#'.$myts->displayTarea($thisstory->topic_color);                if($firsttitle=='') {                    $firsttitle=$myts->htmlSpecialChars($thisstory->topic_title()) . ' - ' .  $myts->htmlSpecialChars($thisstory->title());                }             
$columns[$k][] = $story;             
$k++;             
if (
$k == $column_count) {                 
$k 1;


I am using two columsn layout for news but i want first story in one column and the rest in two columsns. how can i do that



118
Mazar
Re: I want to add a new block in xoopscore blocks
  • 2009/7/21 14:49

  • Mazar

  • Not too shy to talk

  • Posts: 191

  • Since: 2009/1/4 0


I think XOOPS developer team should really consider adding some more block type into the system
left block,
left middle block,
left bottom, block.

and same for center blocks and right blocks.

It would be good i think.
or maybe i am in need ;)



119
Mazar
Re: I want to add a new block in xoopscore blocks
  • 2009/7/21 14:46

  • Mazar

  • Not too shy to talk

  • Posts: 191

  • Since: 2009/1/4 0


I did move center bottom left block but now the client needs that block for something else.
so i decided to add a new block type.but it seems not working properly.



120
Mazar
I want to add a new block in xoopscore blocks
  • 2009/7/21 10:46

  • Mazar

  • Not too shy to talk

  • Posts: 191

  • Since: 2009/1/4 0


I am trying to add a new block type as side block left bottom.
i added it in admin system section. but i cannot find and figuoure out where i can define it for theme something like
sideleftbottom.html. anyone here to help me?
Resized Image

This is what i am trying to do see the above image. Need help doing it for client he wants some blocks at the bottom have to have a different layout and style




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



Login

Who's Online

266 user(s) are online (161 user(s) are browsing Support Forums)


Members: 0


Guests: 266


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