News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Childboards as Dropdown

Started by Matthew K., March 12, 2009, 01:04:02 PM

Previous topic - Next topic

lord alibaski

Hi labradoodle

Not been on here for a while but I'm glad to see your still supporting this mod.

Got a little problem with it this has only happened last couple of days and I haven't installed any other mods since this one.



I put this problem here
http://www.simplemachines.org/community/index.php?topic=485611.msg3400074#msg3400074

Have you any idea!

Thanks

Lord Alibaski

Matthew K.

Hey there!

As Kays said on that other topic, if it doesn't work with this modification, it's just how this mod works. Although I do believe I added some sort of "new" compatibility.

phpshiva

i got little problem missing some till the end
how can i fix this ?
see pics

Matthew K.

What's your problem? The dropdown is too far down?

phpshiva

no as you can see its not as far as the rest of it its missing a part
it seems the bar is not long enough

Matthew K.

Doesn't look it's missing anything to me...what is it missing?

phpshiva

it needs to be as long as ware you see laatste berichten its only where the child part is its not looking good its not till the end of the rest of the board

br360

Quote from: lord alibaski on January 20, 2012, 07:56:00 PM
Quote from: Kreator on January 18, 2012, 01:24:43 PM
I have renamed them though to Sub-Boards

I renamed mine too but if you dont want it to say "select a childboard" then edit the main.english.php file in the resources/cad language folder.

Like this
// BoardIndex & MessageIndex Strings.
$txt['lab360_select_child'] = 'Select a Sub-Forum';


That worked, but when I scroll down, I still get "Board Children:"



How do I change that to sub board as well?

Matthew K.

I'd have to look at the other text strings...don't remember off the top of my head. Look in the language file for the modification.

br360

It was also in the  main.english.php file in the resources/cad language folder. (the line right underneath) The code below worked.

// BoardIndex & MessageIndex Strings.
$txt['lab360_select_child'] = 'Select a Sub-Forum';
$txt['lab360_board_children'] = 'Sub-Forum';
$txt['lab360_go'] = 'Go!';


The problem now, is that I'm getting these errors:

https://mysite.com/index.php?action=reminder.
8: Undefined index: lab360_goFile: /home/content/65/9385465/html/Themes/default/languages/SearchFocus.english.php (main sub template - eval?)
Line:240 or
Line:241 or
Line: 249

Matthew K.

Attach your main.english.php file.

br360

Here you go:

<?php
/**
 * Childboards as Dropdown
 *
 * @file ./cad_language/main.english.php
 * @author Labradoodle-360
 * @copyright Matthew Kerle 2012
 *
 * @version 2.0.3
 */

// BoardIndex & MessageIndex Strings.
$txt['lab360_select_child'] = 'Select a Sub-Forum';
$txt['lab360_board_children'] = 'Sub-Forum';
$txt['lab360_go'] = 'Go!';

// Admin Panel Strings.
global $modSettings;
$txt['lab360_childboard_header'] = 'Childboards as Dropdown';
$txt['lab360_childboard_desc'] = '<strong>Childboards as Dropdown</strong> allows you to replace the SMF-standardized childboard list, with an input dropdown to clean up the layout substantially.';
$txt['lab360_childboard_dropdown'] = 'Enable Childboards as Dropdown:';
$txt['lab360_childboard_limit'] = 'Boards Containing > <em>' . (isset($modSettings['lab360_childboard_limit']) ? $modSettings['lab360_childboard_limit'] : 0) . '</em> Children Become a Dropdown:';
$txt['lab360_childboard_limit_desc'] = '<em>0 = All Boards</em>';
$txt['lab360_copyright'] = '<a href="http://custom.simplemachines.org/mods/index.php?mod=1691" target="_self">Childboards as Dropdown</a> | Copyright ' date('Y') . ' - <a href="http://www.simplemachines.org/community/index.php?action=profile;u=182638" target="_blank">Matthew Kerle</a>';

Matthew K.

You shouldn't be having any issues on ?action=reminder...this mod isn't active on that page.

br360

It's weird. I  myself had a few errors right when I changed the name to sub-boards, but over the last hour, I haven't been able to duplicate it, and it is working like it should.

Strange though; I currently have about 200 members on line, yet I am still only getting the above error in my log from just one person ( oddly enough, like 40 errors from him though over the last 10 minutes.)

Matthew K.

Remove all the errors and see if it comes back or not.

br360

My apologies for not responding earlier. I had some corrupt files, so I've been manually deleting some mods.  Unfortunately this one was one of the newest I installed, so I had to delete it.

To answer your question though;  I did clear all errors, and then the error appeared again like 10 times by just one other person. Weird. I pm'd the person, let him know that I was getting some errors, and asked him what he had been doing, or if he was getting any errors at all. His response was that no errors were showing on his end;  just that he was on the forum with his phone, and he wasn't getting that good of a connection. Not sure if that helps at all, but I thought I would at least share that. lol

Anyway, even though it's not currently installed, it is a great mod. Thank You.


Matthew K.

Interesting...let me know if this comes up again eh? Thanks!

teos55

#217
SMF 2.0.2  Sp2.3.5  default theme

  Today my error log filled up with below message :

"http://111111.org/index.php?action=register+%5BPLM=0%5D%5BR%5D+GET+http://111111.org/index.php?action=register+%5B0,17822,20850%5D+-%3E+%5BR%5D+POST+http://1111111.org/index.php?action=register+%5B0,21225,2574%5D+-%3E+%5BR%5D+POST+http://111111.org/index.php?action=register2+%5B0,0,18038%5D+-%3E+%5BL%5D+GET+http://1111111.org/index.php?action=login+%5B0,16129,19032%5D+-%3E+%5BL%5D+POST+http://111111.org/index.php?action=login2+%5B13126,0,19131%5D

8: Undefined index: lab360_go
File: /home/1111/public_html/Themes/default/BoardIndex.template.php
Liner: 255"


also :

undefined index : lab360_board_children  line 247

undefined index: lab360_select_child  line 246

and so on ...


the lines around :  235-272

//-- Labradoodle-360; Childboards as Dropdown
global $modSettings;
if (!empty($modSettings['lab360_childboard_dropdown']) && (isset($modSettings['lab360_childboard_limit']) && ($modSettings['lab360_childboard_limit'] == 0 || count(array_keys($board['children'])) > $modSettings['lab360_childboard_limit']) || !isset($modSettings['lab360_childboard_limit'])))
{
unset($children);
echo '
<tr id="board_', $board['id'], '_children">
<td colspan="3" class="children windowbg">
<form action="', $scripturl, '?" method="get">
<strong>', $txt['parent_boards'], ':</strong>&nbsp;
<select name="board" id="board" onchange="javascript:jsRedirect(this);">
<option value="">', $txt['lab360_select_child'], '</option>
<optgroup label="', $txt['lab360_board_children'], ':">';
foreach ($board['children'] as $key => $value)
{
echo '<option value="', $key, '">', $value['name'], $value['new'] ? '&#42;' : '', '</option>';
}
echo '</optgroup>
</select>
<noscript>
<input type="submit" value="', $txt['lab360_go'], '" class="button_submit" />
</noscript>
</form>
</td>
</tr>
';
}
else
{
echo '
<tr id="board_', $board['id'], '_children">
<td colspan="3" class="children windowbg">
<strong>', $txt['parent_boards'], ':</strong> ', implode(', ', $children), '
</td>
</tr>
';
}
// End Labradoodle-360; Childboards as Dropdown --//



  Nothing chenged for months. Since this is guest request, I suspected somebody trying to force my site .

nb:  I copied main main.engligh.php to  main.mylanguage-utf8.php during th installation. But the premission was 644 wheres as
main.english.php was 666.

  I changed it to 666 today.

Any recommendations, what is wrong ?

Matthew K.

It looks like your website could have been hit by a spambot or something. I would suggest clearing the errors in your error log, and then see if those errors show up again or not. If they do, definitely let me know. Also, I apologize for the late reply here, been pretty busy with school and such.

teos55

No problem with the delay :-)

  I cleared the error log and waiting for the event to occur ?

nb. I only copied main.english.php to main.mylang-utf8.php  and not main.mylang.php  during the installation.

   Now I copied.  does this make any change ?  ( I' m using utf8 )

Advertisement: