41
Burning
Re: HTML Editor
  • 2010/10/14 18:59

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi' ghia,

I have to explain a little more (sorry for bad english)

There is a ""bug"" with News Submit form when you use a Rich text editor (in my case CKeditor).

I fill all the fields, included The Scoop. But when I click on Submit button, a js alert appears :
"Pleaser enter the scoop"

That makes non sense, because of course The scoop already contains text !

---

It is not a real bug :
• I remember that Hervet has explained the reason of this alert (if I well remember it is because there are two rich forms, heavy developments would be necessary)
• if you close alert popup (just to click on OK button) and you submit news form one more time, news is published. No more alert.

---

It is just annoying for people who are not warned. So I prefer to disable alerts by changing true to false... no more alert.
Still learning CSS and... english



42
Burning
Re: News 1.66 - How to hide Approve checkbox ?
  • 2010/10/14 18:36

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

... sorry to bump it, but I have another question about News submit form.

I would like to hide list wich permits to choice subjects (because I have only one) :

include_once XOOPS_ROOT_PATH."/class/tree.php";
$allTopics $xt->getAllTopics($xoopsModuleConfig['restrictindex'],'news_submit');
$topic_tree = new XoopsObjectTree($allTopics'topic_id''topic_pid');
$topic_select $topic_tree->makeSelBox('topic_id''topic_title''-- '$topicidfalse);

$sform->addElement(new XoopsFormLabel(_NW_TOPIC$topic_select));


This kind of instruction does not work
Quote:
$sform->addElement(new XoopsFormHidden(_NW_TOPIC, $topic_select));
Still learning CSS and... english



43
Burning
Re: HTML Editor
  • 2010/10/14 18:23

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

JS Popup / Message "Please Enter The scoope" still appears (Xoops 2.4.5, News 1.66).

A true solution seems to be very difficult to find. For my particular use, I have replaced :
$editor news_getWysiwygForm(_NW_THESCOOP'hometext'$hometext1560'hometext_hidden');
$sform->addElement($editortrue);

... by :
$editor news_getWysiwygForm(_NW_THESCOOP'hometext'$hometext1560'hometext_hidden');
$sform->addElement($editorfalse);


The scoop is no more required, so no more JS popup...

---

Does someone know :
• a better solution ?
• if xNews module resolves this trouble with wysiwyg editors ?

Thanks
Still learning CSS and... english



44
Burning
Re: xLanguage bug and fix -- language tags not being escaped inside textareas containing HTML
  • 2010/10/13 19:58

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


Thanks, very useful correction

(it seems that it not has been corrected in the last release, xLanguage 3.02)
Still learning CSS and... english



45
Burning
Re: a "xoSearchForModule" plugin to display an advanced search form (Oledrion) ?
  • 2010/10/11 18:03

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi' Mariane,

It sounds very interesting... I would never think about this kind of trick !

I would be very happy if you were able to catch your hack !
Still learning CSS and... english



46
Burning
Re: AM Events - make a feature request
  • 2010/10/11 0:03

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi' AndyM,

To test it, wich version would you suggest : Xoops 2.4.5 or 2.5 ?

Thanks :)
Still learning CSS and... english



47
Burning
Re: Isearch module and 2.0181RC1
  • 2010/10/10 11:18

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

Shame on me ! I had forgot to update module in system after modification

So, it works fine.
Still learning CSS and... english



48
Burning
a "xoSearchForModule" plugin to display an advanced search form (Oledrion) ?
  • 2010/10/10 10:56

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

I'm still fighting against Xoops search forms

Now I would like to adapt a plugin coded by Dugris and called {xoSearchForModule}.

function smarty_function_xoSearchForModule$params, &$smarty ) {
    global 
$xoopsModule$xoopsConfig;
    if ( 
is_object($xoopsModule) && $xoopsModule->getVar('hassearch') == ) {
        include_once(
XOOPS_ROOT_PATH "/language/"$xoopsConfig['language'] . "/search.php");

        
$config_handler =& xoops_gethandler('config');
        
$xoopsConfigSearch =& $config_handler->getConfigsByCat(XOOPS_CONF_SEARCH);

        
$mid $xoopsModule->getVar('mid');
        
$modules[$mid] = $xoopsModule;
        
$queries = array();
        include_once 
XOOPS_ROOT_PATH "/include/searchform.php";

        
$new_search_form = new XoopsThemeForm(_SR_SEARCH"search"XOOPS_URL "/search.php"'get');

        foreach ( 
$search_form->getElements() as $key => $ele ) {
            if ( 
$ele->getCaption() != _SR_SEARCHIN ) {
                
$new_search_form->addElement$search_form->_elements[$key] );
            }
        }
       
$new_search_form->addElement(new XoopsFormHidden("mids[]"$mid ));
        
$new_search_form->display();
        
$GLOBALS['xoopsLogger']->addExtra("plugin smarty for xoops => xoSearchForModule""Loaded");
    }
}
?>


What it does ? With this plugin you can add Xoops search form where you want on your page, just adding this smarty {xoSearchForModule}

What I would like it do ? Instead of Xoops global search form, I would like to display into my theme the Oledrion search form.

Is it possible using this kind of smarty plugin ?

Thanks in advance
Still learning CSS and... english



49
Burning
Re: Isearch module and 2.0181RC1
  • 2010/10/9 22:56

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

Same trouble with two modules :
• Tag
• Content (MusS version)

$modversion["hasSearch"] = 0; ... checkbox are still displayed in search form even if search function is actually desactived

(PHP 5.2)
Still learning CSS and... english



50
Burning
Re: How to customize a form created with XoopsThemeForm class ?
  • 2010/10/9 20:05

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

It works now (4 months later ).
As Ghia said (thanks again !), no use to hack Xoops.

So to be able to customize Oledrion search form :

1 • create a file called themeform.php
2 • put it into www/modules/oledrion/class/
3 • copy inside all the code given by Ghia (post : 2010/6/14 8:19:57)
4 • copy this line into www/modules/oledrion/include/product_search_form.php
Quote:

require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
// addition
require_once OLEDRION_PATH.'class/themeform.php';
// end
require_once OLEDRION_PATH.'class/tree.php';
Still learning CSS and... english




TopTop
« 1 2 3 4 (5) 6 7 8 ... 74 »



Login

Who's Online

257 user(s) are online (177 user(s) are browsing Support Forums)


Members: 0


Guests: 257


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