101
Burning
Re: Oledrion items' limit
  • 2010/6/15 21:24

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

--- A simple hypothesis.

Blank page appears only when we want to create a new product, the form does not work... sometimes.

If I look into xxx_oledrion_products table, I can see two "strange" things :
• 1 : product_id field contains illogical sequences of numbers (I mean 102 before 17 etc.)
• 2 : cloned products are easily recognizable because their thumb does not have thumb_ prefix (example : 53c666ab1a7c458f.jpg instead of thumb_53c666ab1a7c458f.jpg). This scenario occurs when we keep the same image

The second point is not important, except that most often cloned products seem to have an id "incoherent". Example :

Resized Image


Orange : cloned product / Green : product created from scratch


--- Questions 01

When we use clone feature, code called is :
// ****************************************************************************************************************
    
case 'copy':    // Copier un produit
    // ****************************************************************************************************************
        
xoops_cp_header();
        
$id = isset($_GET['id']) ? intval($_GET['id']) : 0;
        if(empty(
$id)) {
            
oledrion_utils::redirect(_AM_OLEDRION_ERROR_1$baseurl5);
        }
        
$opRedirect 'products';
        
$product null;
        
$product $h_oledrion_products->get($id);
        if(
is_object($product)) {
            
$newProduct $h_oledrion_products->cloneProduct($product);
            
$newProductId $newProduct->product_id;
            if(
$newProduct !== false) {
                
oledrion_utils::redirect(_AM_OLEDRION_SAVE_OK$baseurl.'?op='.$opRedirect."&action=edit&id=".$newProductId2);
            } else {
                
oledrion_utils::redirect(_AM_OLEDRION_SAVE_PB$baseurl.'?op='.$opRedirect5);
            }
        }
        break;

Do you see something wrong ?
(oledrion/admin/actions/products.php)


--- Questions 02

Can I clean my products table without danger ? I mean change product ID to obtain a logical sequence of number ...
Still learning CSS and... english



102
Burning
Re: Start page module
  • 2010/6/15 12:13

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


Thanks N°006 :) !
Still learning CSS and... english



103
Burning
Re: Sliders module - Bug report
  • 2010/6/15 11:51

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


Many thanks !

I will test new version on a clean xoops 2.4.5RC2 soon and post french translation here.
Still learning CSS and... english



104
Burning
Re: How to customize a form created with XoopsThemeForm class ?
  • 2010/6/15 11:10

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

This hack is too difficult for me, I'm not able to implement it (blank pages...)

What I have done :


1. Add a specific class for Oledrion in class/xoopsform/themeform.php

class OledrionThemeForm extends XoopsThemeForm
{

        function 
insertBreak($extra ''$class '')
        {
                  
                
$class = ($class != '') ? " class='" preg_replace('/[^A-Za-z0-9ss_-]/i'''$class) . "'" '';
                
                if (
$extra) {
                    
$extra '' $class '' $extra '';
                    
$this->addElement($extra);
                } else {
                    
$extra '' $class '';
                    
$this->addElement($extra);
                }          
        }


        function 
render()
        {
                
$ele_name $this->getName();
                
$ret '<form name="' $ele_name '" id="' $ele_name '" action="' $this->getAction() . '" method="' $this->getMethod() . '" onsubmit="return xoopsFormValidate_' $ele_name '();"' $this->getExtra() . '><div class="header-form">' $this->getTitle() . '</div>';  
                
$hidden '';
                
$class '';
                foreach (
$this->getElements() as $ele) {
                    if (!
is_object($ele)) {
                        
$ret .= $ele;
                    } else if (!
$ele->isHidden()) {
                        if (!
$ele->getNocolspan()) {
                            
$ret .= '';
                            if ((
$caption $ele->getCaption()) != '') {
                                
$ret .= '';
                                
$ret .= '' $caption '';
                                
$ret .= '';
                                
$ret .= '';
                            }
                            if ((
$desc $ele->getDescription()) != '') {
                                
$ret .= '' $desc '';
                            }
                            
$ret .= '' $ele->render() . '' NWLINE;
                        } else {
                            
$ret .= '';
                            if ((
$caption $ele->getCaption()) != '') {
                                
$ret .= '';
                                
$ret .= '' $caption '';
                                
$ret .= '';
                                
$ret .= '';
                            }
                            
$ret .= '' $ele->render() . '';
                        }
                    } else {
                        
$hidden .= $ele->render();
                    }
                }
                
$ret .= '' NWLINE ' ' $hidden '</form>' NWLINE;
                
$ret .= $this->renderValidationJS(true);
                return 
$ret;
        }
        
}



2. Modify call to form class in one single file oledrion/include/product_search_form.php

$sform = new XoopsThemeForm(adherents_utils::getModuleName().' - '._ADHERENTS_SEARCHFOR'productsSearchForm'ADHERENTS_URL.'search.php','post');

... replaced by
$sform = new OledrionThemeForm(adherents_utils::getModuleName().' - '._ADHERENTS_SEARCHFOR'productsSearchForm'ADHERENTS_URL.'search.php','post');



... not sure that's a great improvment for Xoops , but it works :
- oledrion search form is displayed as I want
- other oledrion forms are not modified

Still learning CSS and... english



105
Burning
Re: Sliders module - Bug report
  • 2010/6/15 10:16

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

Thanks :)


If someone encounters the same concern with short <? php tag (I use WampServer =):


1 • Replace <? by <?php in :

slider/admin/index.php
slider/admin/sliders_admin.php
slider/admin/slides_admin.php
slider/blocks/slider_block.php
slider/class/sliders.php
slider/includes/gd_functions.php
slider/index.php
slider/language/.../main.php
slider/language/.../modinfo.php


2 • modify icons path in :

- active.gif
slider/templates/admin/slider_admin_index.html - line 35

- inactive.gif
slider/templates/admin/slider_admin_index.html - line 38

- delete.gif
slider/templates/admin/slider_admin_index.html - line 31
slider/templates/admin/slides_admin_index.html - line 32

- edit.gif
slider/templates/admin/slider_admin_index.html - line 28
slider/templates/admin/slides_admin_index.html - line 29

- slides.png
slider/templates/admin/slider_admin_index.html - line 25


---

Now I'm able to manage diaporamas, add slides, ... all works fine in back office (however I believe a warning about GD library would be useful).

But I can not uninstall / install one more time :
Quote:
Table 'xxx_slider_content' already exists




Environment :
- XOOPS 2.4.5 Release Candidate
- PHP Version 5.2.13
- mySQL Version 5.0.51a-24-log
Still learning CSS and... english



106
Burning
Re: halloween_will-h
  • 2010/6/14 20:35

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


Still learning CSS and... english



107
Burning
Re: Sliders module - Bug report
  • 2010/6/14 20:14

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


... me again

It seems there is some trouble with /sliders/language/.../main.php

Original code :
Quote:

<?
//admin header

... I can see
• Defines (example : _AM_SLIDER_INDEX_TAB1)
• and blank spaces for icons (Admin, Edit, Delete, Set active)

If I add :
Quote:

<?php
//admin header

... I can see :
• translations :)
• but no more blank spaces for icons, nothing at all is displayed in last column


(that's the same with PHP5.2 and PHP5.3)
Still learning CSS and... english



108
Burning
Sliders module - Bug report
  • 2010/6/14 19:44

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

• "Incorrect" tag : those files start with <? tag instead of <?php

slider/admin/index.php
slider/admin/sliders_admin.php
slider/admin/slides_admin.php
slider/blocks/slider_block.php
slider/class/sliders.php
slider/includes/gd_functions.php
slider/index.php
slider/language/.../main.php
slider/language/.../modinfo.php


• No form displayed to upload images

Debug mode has nothing to declare in Back office. There is 1 error found on public side (Slider page and page where the block is displayed) :
Quote:
Message(s): Undefined variable: return_array dans le fichier /modules/slider/class/sliders.php - line 122



----

Environment :
- local
- PHP 5.2.11
- MySQL 5.1.36
- XOOPS 2.4.4
Still learning CSS and... english



109
Burning
Re: How to customize a form created with XoopsThemeForm class ?
  • 2010/6/14 7:27

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi Ghia,

This would be a real step forward for the module ! I test it as soon as possible :)
Still learning CSS and... english



110
Burning
Re: Problem viewing pages in different themes?
  • 2010/6/14 7:20

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

What are your needs / What will be the sections of your site ?

We could suggest better modules ...

For example :
• Smart Object Framework 0.8 is no more developed, do not use it
• smartmail 0.8 is no more developed and very old, prefer xForms
• same thing for extended profile, prefer Profile module included with Xoops
• last version of Classifieds is 2.50 and can be found here

And some advice :
• I would prefer TDMDownloads 1.5 instead of WF-Downloads 3.2
• I would prefer CBB 4.02 or Newbbex 1.80 instead of xForums
Still learning CSS and... english




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



Login

Who's Online

217 user(s) are online (148 user(s) are browsing Support Forums)


Members: 0


Guests: 217


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