1
astronaute
Re: Notifications Checkbox
  • 2006/10/11 18:53

  • astronaute

  • Just popping in

  • Posts: 12

  • Since: 2006/8/23


Ok FINAL fix is this one :

system_notification_list.html

replace :
[
color=FF0000]<input name="allbox" id="allbox" onclick="xoopsCheckGroup('notificationlist', 'allbox', 'del_mod[]');" type="checkbox" value="<{$lang_checkall}>" />[/color]
by :
[
color=009900]<input name="allbox" id="allbox" onclick="xoopsCheckAll('notificationlist', 'allbox');" type="checkbox" value="<{$lang_checkall}>" />[/color]


replace :
[
color=FF0000]<input name="del_mod[<{$module.id}>]" id="del_mod[]" onclick="xoopsCheckGroup('notificationlist', 'del_mod[<{$module.id}>]', 'del_not[<{$module.id}>][]');" type="checkbox" value="<{$module.id}>" />[/color]
by :
[
color=009900]<input name="del_mod_<{$module.id}>" id="del_mod_<{$module.id}>" onclick="xoopsCheckGroup('notificationlist', 'del_mod_<{$module.id}>', 'del_not_<{$module.id}>__');" type="checkbox" value="<{$module.id}>" />[/color]


replace :
[
color=FF0000]<input type="checkbox" name="del_not[<{$module.id}>[]" id="del_not[<{$module.id}>][]" value="<{$notification.id}>" />[/color]
by :
[
color=009900]<input type="checkbox" name="del_not_<{$module.id}>__" id="del_not_<{$module.id}>__" value="<{$notification.id}>" />[/color]


bug : using square brackets [] in "id" and "name" selectors is not valid.

Enjoy



2
astronaute
Re: Notifications Checkbox
  • 2006/10/11 18:29

  • astronaute

  • Just popping in

  • Posts: 12

  • Since: 2006/8/23


Your Fix works only for "check All" checkbox, not for "check All per module" checkbox :)



3
astronaute
How to test smarty variable ?
  • 2006/9/21 0:53

  • astronaute

  • Just popping in

  • Posts: 12

  • Since: 2006/8/23


Hello,

If in my php code I have something like this :

this->template->assign"some_variable_here""sometext" );


how can I test that the variable $some_variable_here is set ?

for exemple :

if (isset($some_variable_here) &&  $some_variable_here != '') {
     
this->template->assign"some_variable_here""someOtherText" );
}


I need to test it in php code and not in template.

Thank you a lot



4
astronaute
Re: Meta description lame code
  • 2006/9/20 21:30

  • astronaute

  • Just popping in

  • Posts: 12

  • Since: 2006/8/23


Ok more news on lame code :)

class/theme.php line 196 :

// Meta tags
        
$config_handler =& xoops_gethandler('config');
        
$criteria = new CriteriaCompo(new Criteria('conf_modid'0));
        
$criteria->add(new Criteria('conf_catid'XOOPS_CONF_METAFOOTER));
        
$config $config_handler->getConfigs($criteriatrue);
        foreach ( 
array_keys($config) as $i ) {
            
$name $config[$i]->getVar'conf_name''n' );
            
$value $config[$i]->getVar'conf_value''n' );
            if ( 
substr$name0) == 'meta_' ) {
                
$this->addMeta'meta'substr$name), $value );
                
//echo "- $name : $value <br />";
            
} else {
                
// prefix each tag with 'xoops_'
                
$this->template->assign"xoops_$name"$value );
            }
        }


This is the code that takes default values for meta tags from DB.

and this line on Lame code overwrite GOOD values :

$this->template->assign"xoops_meta_$name"htmlspecialchars$valueENT_QUOTES ) );



So actually i'm XOOPS beginner but I can't understand such coding errors in such a good CMS as Xoops.

Is there someone who can explain me what to do to debug Meta tags please ?

Is there some kind of bug tracker or such ?

Thank you very much.



5
astronaute
Meta description lame code
  • 2006/9/20 18:35

  • astronaute

  • Just popping in

  • Posts: 12

  • Since: 2006/8/23


Hi all,

If I set a different meta description for each page in some module, depending on page name and such, XOOPS engine reset it and put the default one.

I found this in class/theme.php line (272):

// @internal: Lame fix to ensure the metas specified in the XOOPS config page don't appear twice
$old = array( 'robots''keywords''description''rating''author''copyright' );
foreach ( 
$this->metas['meta'] as $name => $value ) {
    if ( 
in_array$name$old ) ) {
        
$this->template->assign"xoops_meta_$name"htmlspecialchars$valueENT_QUOTES ) );
        unset( 
$this->metas['meta'][$name] );
    }
}


I tried removing "description" from $old array, and it works, BUT there is second META DESCRIPTION generated just below with DEFAULT value.

So in comments it says that its "Lame fix to ensure the metas specified in the XOOPS config page don't appear twice"
They forgot to put that because of this "lame" fix, all pages shows same description ...

Is there a way to fix this to show only one META DESCRIPTION (and keywords), the good one specified in modules ?

Thank you very much for your help.



6
astronaute
Re: Xoops very slow for LOGGED users
  • 2006/9/15 11:54

  • astronaute

  • Just popping in

  • Posts: 12

  • Since: 2006/8/23


If there is someone who can test & see it would be very nice =)

Please try this page logged and anonymous :

http://www.extradelire.com/videos.clip.31.2/reaction-chimique.html

login : azerty
pass : azerty

Another page without comments :

http://www.extradelire.com/videos.clip.30.2/breakdance-de-l-handicape.html

Thank you very much for your help !



7
astronaute
Re: Xoops very slow for LOGGED users
  • 2006/9/15 11:03

  • astronaute

  • Just popping in

  • Posts: 12

  • Since: 2006/8/23


I Just said that problem is only on commented pages, with comments. Those pages load for 30+ seconds.

Others pages are not slow for logged users. So I don't know if there is some issue maybe with comments or such.

Im on 2.0.15

And no, I jhave not special blocks for logged users only.



8
astronaute
Xoops very slow for LOGGED users
  • 2006/9/15 10:57

  • astronaute

  • Just popping in

  • Posts: 12

  • Since: 2006/8/23


Hello all,

(sry for my bad english)

I noticed that if I add 30 comments on pages, logged users wait 30-40 seconds for page to load. More comments i add, more users wait so page times out sometimes.

For not logged users, the page is very fast.

I tried to put PHP debug on, but after waiting 40 seconds for the page to load, all timers are less then 0.2 seconds...

Can someone tell me how to find problem please ?

If there is someone who can test & see it would be very nice =)

Please try this page logged and anonymous :

http://www.extradelire.com/videos.clip.31.2/reaction-chimique.html

login : azerty
pass : azerty

Another page without comments :

http://www.extradelire.com/videos.clip.30.2/breakdance-de-l-handicape.html

Thank you very much for your help !



9
astronaute
Re: Home page module showing its real URL
  • 2006/8/29 18:40

  • astronaute

  • Just popping in

  • Posts: 12

  • Since: 2006/8/23


Quote:

davidl2 wrote:
If you don't want your page to show as "www.mysite.com/modules/blabla" then do not select a start module, and instead put blocks for the front of your site - as we do here.


Ok, I have brand new block, everything is ok except I cant activate it for alll user, only registered and webmasters =)

I'll post a new message and put this resolved.

Thank you.



10
astronaute
Re: Home page module showing its real URL
  • 2006/8/29 11:11

  • astronaute

  • Just popping in

  • Posts: 12

  • Since: 2006/8/23


Thank you,

So I have to develop a block for my module and select it in admin/blocks ?

Its better to make a block under System module or in my own module ? (my own module will be only on home page so in fact its only a block if I understand what are you talking about)




TopTop
(1) 2 »



Login

Who's Online

138 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 138


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