News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Childboards as Dropdown

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

Previous topic - Next topic

Matthew K.

As long as you're using UTF-8, the non-UTF-8 language file will not have any affect, as long as the UTF-8 exists, of course, otherwise it does use the non-UTF-8 twin.

teos55

Problem still exists.

From error log of today:

http://12345.org/index.php?action=tpmod;dl8: Undefined index: lab360_goFile: /home/12345/public_html/Themes/default/BoardIndex.template.php
Line: 255


http://12345.org/index.php?action=tpmod;dl8: Undefined index: lab360_board_childrenFile: /home/12345/public_html/Themes/default/BoardIndex.template.php
Line: 247
   
http://12345.org/index.php?action=tpmod;dl8: Undefined index: lab360_select_childFile: /home/12345/public_html/Themes/default/BoardIndex.template.php
Line: 246


and goes on.

Can you pls guide how to debug this ?

Matthew K.

Hey there, sorry to hear the issues are still showing up.

Are you willing to shoot me a PM with a link, administrative login and FTP details so I can debug it and then provide a new patch for this modification?

Matthew K.

Hello teos55. Thank you for allowing me to utilize your forum to look into the issue. As I have figured out the issue, please change the account password in addition to your FTP password so I no longer have access.

The issue is in regard to TinyPortal and a custom action that the modification uses that still defaults to the BoardIndex (when my mod loads), so the text-strings are being called when they "shouldn't" be in scope as far as my code is concerned, but in reality should be available.

I will push out an updated version today with the TinyPortal bugfix. Thank you once again.

Best Regards,
Labradoodle-360

teos55

Just to remind that it is Simple Portal not Tiny Portal.  Maybe doesnt make any difference.

Matthew K.

The portal you currently have installed is SimplePortal, however, you still have TinyPortal code on your forum.

You don't have to believe me...the error that's showing up comes from:
index.php?action=tpmod

I did a search in both SimplePortal and TinyPortal files, this comes from TinyPortal:
'forum' => array('BoardIndex.php', 'BoardIndex'),
'tpmod' => array('TPmodules.php', 'TPmodules'),

teos55

That is interesting,  I tried to uninstall Tinyportal (maybe months ago) manualy, maybe some artifacts remained. I'll clean them.
Thanks for the info.

nb.  by the way, which index file is it ?

Matthew K.

Not a problem. Be sure to look for an update shortly here.

teos55

#228
Maybe missed my modfication, which index.php is it ? 

Downloaded index.php from /public.html just now,   there is no referance to tpmod or tpmodule in it.

Did you do the cleaning on behalf of me ?  If so thanks ...

Matthew K.

Look for "tpmod", I did not uninstall the edit because I didn't know if you still wanted TinyPortal.

teos55

Sorry, it was typo ... it should read  "tpmod"

I searched both of them right now, and search gives "not found" . I'll attach my index.php

teos55

#231
Sorry for misunderstanding or quick reading.  Looking in the wrong php. It should be boardindex.php

I'll check immediately.


nb.  ftp'd all my source php files to my local disk.

searched with  fileseek V2.1.3  for string" tpmod" ...  Do not exist ...

Am I still missing something, or misunderstanding ?

Also checked with cpanel file manager search tool ... No "tpmod" in /public_html




Matthew K.

Childboards as Dropdown version 2.0.4 released! Addresses a bug reported by teos55 and makes many improvements. Upgrade is highly suggested if you're using TinyPortal, beyond that they're just under the hood changes.

Project is now hosted on GitHub (Childboards-as-Dropdown).

Link to Mod: http://custom.simplemachines.org/mods/index.php?mod=1691

teos55

Uninstalled 2.03 and installed 2.0.4

No errors so far, thanks ...

  Still the "tpmod" issue is unclear for me ..  Which php files to look ..  Can you pls clerify ...

Matthew K.

Not a problem. My guess is that tpmod really should be doing something else, but it's not because the action doesn't exist in $actionArray, which would mean something else is calling it. Try doing a search for "tpmod" in all of your forum directory.

If it's actually supposed to do something else (which I didn't think about) this patch would somewhat be inaccurate.

teos55

With fileseek v2.1.3  I searched  /sources   /themes  and /themes/default/languages 

NO match... 

I also gone through the DB search and only find below entry for "tpmod" in table smf_package_servers

search output attached.  May I delet this table entry ?

Matthew K.

That shouldn't affect anything. I'm going to contact IchBin about this and see what his thoughts are.

teos55

SMF 2.0.3  Default theme  curve  simple portal  2.3.5

  Some bot is trying to execute /index.php?action=sitemap;xml  and  I'm using "SEO sitemap and XML sitemap" mod which uses
kitseositemap.xml.

  So fails, which is normal ...

  But the strange thing is that I receive ;

h t t p://mysite . org/index.php?action=sitemap;xml
8: Undefined index: lab360_cad
File: /home/myuser/public_html/Themes/default/BoardIndex.template.php
Satır: 231


h t t p://mysite . org/index.php?action=sitemap;xm
l8: Undefined index: lab360_cad
File: /home/myuser/public_html/Themes/default/BoardIndex.template.php
Satır: 240

h t tp://mysite . org/index.php?action=sitemap;xml
8: Undefined index: lab360_cad
File: /home/myuser/public_html/Themes/default/BoardIndex.template.php
Satır: 232



Every sitemap request generates above message set.


My boardindex.template.php attached.   Seems there is something wrong in t it.

Can you pls help ?






Matthew K.

The piece that is failing is from Load.php, it seems like my last major version has a fairly big logical flaw, so I probably should shoot out an update fairly soon.

lord alibaski

Hi Labradoodle-360

Thanks for the last update though I just tested it via wamp and it coming up with these errors in some themes.



Also tried to edit the main.english.php to this

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

global $modSettings;
$txt['lab360_cad'] = array(
'select_child' => 'Select a Sub-Forum',
'board_children' => 'Sub-Forums',
'go' => 'Go!',
'childboard_limit_desc' => '<em>0 = All Boards</em>'
);

$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_copyright'] = '<a href="http://custom.simplemachines.org/mods/index.php?mod=1691">Childboards as Dropdown</a> | Copyright ' date('Y') . ' - <a href="http://matthewkerle.com/">Matthew Kerle</a>';


but it doesn't work like it did with this version.

<?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'] = 'Board Children';
$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>';

Advertisement: