CodingJungle

Members
  • Content count

    982
  • Joined

  • Last visited


About CodingJungle

  • Rank
    Spam Happy
  • Birthday 08/18/1981

IPS Marketplace

  • Resources Contributor Total file submissions: 19

Recent Profile Visitors


9,896 profile views

CodingJungle's Activity

  1. CodingJungle added a comment: [RC1] forums link   

    it does work now in RC2, but forms has a double forward slash, so the url looks like this:
    http://localhost/~michael/rc2/index.php?/forums//
     
  2. CodingJungle added a comment: [Beta 8] Theme Hook Location   

    been playing around, in \System\Theme\Theme.php on line 3483, altered the preg_replace that was there to this:
    $content = preg_replace( '/<(\/)?(!DOCTYPE|html|head\b|body)([^>]+)?>/m', '<$1temp$2$3>', $content ); it now successfully replaces <head></head> and does something with DOCTYPE as well, that phpQuery seems to have a problem with as well. Now on line 3570, i altered it to this:
    $return = preg_replace( '/<(\/)?temp(!DOCTYPE|html|head\b|body)([^>]+)?>/m', '<$1$2$3>', $return ); and then i had to add this, as i was having trouble getting DOCTYPE to put back in:
     
    $return = str_replace(array("<temp html>","</temp>"), array("<!DOCTYPE html>", ""),$return); it will add a </temp> tag after the </html> tag. regex isn't my strong suit, so there is probably a better way of doing things.
  3. CodingJungle added a comment: [Beta 8] Theme Hook Location   

    looked further into this problem today, it appears phpQuery has removed the <head></head> tags, moving a few tags around and </tempbody> and </temphtml> aren't getting replaced back with </body> and </html>. (in the screenshots, i sourced the index page. the one on the left is when a theme hook is used on "globalTemplate" and the one on the right is without the hook installed).




  4. CodingJungle added a comment: [Beta 8] Widgets   

    this can be closed, it was an error in my widget file.
    public function init(){}
    tries to set a default template to $this->template(), once i put in a override for it, it works now.
     
  5. CodingJungle added a bug in Bug Tracker   

    [RC1] forums link
    the front navigation link always returns the "homeurl" regardless, even if forums not set as the default application.
    • 6 replies
    • 107 views
  6. CodingJungle added a comment: [Beta 8] Theme Hook Location   


    hooking into this template also seems to mess with the share icons.
  7. CodingJungle added a comment: [Beta 8] Plugins/hooks badly broken (?)   


    this is where i hooked into.
     
    and this is the hook file:
      test.xml
    i've done a fresh install of beta 8, and install this hook to it, and it works like it should. do you have whoops enabled in_dev mode? what are your php error reporting settings? 
     
     
  8. CodingJungle added a comment: [Beta 8] Forms TogglesOn   

    ​put this before the group of form fields:
    $form->addTab('lang_key');
    i do believe their is a way to order them too, but i can't recall off the to of my head.
  9. CodingJungle added a post in a topic: What type of computer is your daily driver?   

    ​Tom what kind of case is that? that looks awesome!
     

    desktop died awhile back, been working from my laptop.
  10. CodingJungle added a file in IPS Community Suite 4   

    CJ Menu v1.0.0 RC 2
    If you have installed the previous "imenu" beta's, completely remove, as the packaged has been renamed to CJ Menu. Directions on how to use CJ Menu has been included in the zip, so the contents have to be extracted first before attempting a install.
    This is menu manager for IPS 4.0. Its in its beta stages ATM, so expect bugs. This menu manager is a replacement for ProMenu for IPS 3.x. Client who purchased Promenu Plus 3.x+ and are current with their renewals, will get a free copy of CJ Menu, if they agree to the renewal terms of iMenu. Clients of Proemnu Basic 3.x+, CJ Menu will be on sale from now till the launch of its Final Release version (once it it out of beta). The Release Price will be $60, with the renewal this item has. 
    If you have any questions or comments, please contact me here, on my sites contact us form ( http://codingjungle.com ).
    Features:
    Mega Menu style sub menus unlimited submens and children sub menus ability to add raw html or using IPS template logic (this will also allow the use of IPS template plugins). You can also use php with IPS template logic. wrapper pages: the ability to link to other sites, while keeping the user on your site, there are two modes to this with the IPS wrapper itself or without the IPS wrapper. IPS applications plugins, that will offer special features like attach categories, featured items and popular items. and much more... if you purchase this menu manager during its beta, please be vigilant and report the bugs to my bug tracker at http://codingjungle.com
    • 18 downloads
    • 1 review   
  11. CodingJungle added a bug in Bug Tracker   

    [Beta 8] Widgets
    When i install my application in beta 8, not in_dev, and i click on the widget manager, my widgets do not appear, if i take the board out of in_dev where they were developed, they no longer appear. They seem to only appear in_dev.
    • 3 replies
    • 86 views
  12. CodingJungle added a comment on a file: ProMenu Basic   

    @Ilia Goranov  please use our tracker for support,  http://codingjungle.com/tracker/_/promenu/.
  13. CodingJungle added a comment: [Beta 8] Forms TogglesOn   

    $form->add( new \IPS\Helpers\Form\Select( 'menu_type', 'app', TRUE, array( 'options' => array( "noclick" => "No Click", "url" => "URL", "app" => "Application", "magic" => "Magic Block" ), 'toggles' => array( 'app' => array('menu_app'), 'url' => array('menu_url'), 'magic' => array('magic_block') ) ), NULL, NULL, NULL, 'menu_type' ) ); $form->add( new \IPS\Helpers\Form\Select( 'menu_app', 'forums', FALSE, array( 'options' => array( "forums" => "forums", "cms" => "Pages" ), 'toggles' => array( "forums" => array("bw_menu_featured") ) ) ), NULL, NULL, NULL, 'menu_app' ); $form->add(new \IPS\Helpers\Form\Url('menu_url', '', FALSE, array('placeholder' => 'http://www.example.com/'), NULL, NULL, NULL, 'menu_url') ); $form->add(new \IPS\Helpers\Form\Codemirror( 'magic_block', NULL, FALSE, array(), NULL, NULL, NULL, 'magic_block' ) ); $form->add( new \IPS\Helpers\Form\YesNo( 'bw_menu_featured', 1, FALSE, array( 'togglesOn' => array( 'menu_quantity_featured', 'menu_featured_from_date', 'menu_shuffle_featured' ) ), NULL, NULL, NULL, 'menu_type') ); $t = time() - (7 * 24 * 60 * 60); $form->add( new \IPS\Helpers\Form\YesNo( 'bw_menu_featured', 1, FALSE, array( 'togglesOn' => array( 'menu_shuffle_featured', 'menu_quantity_featured', 'menu_featured_from_date' ) ), NULL, NULL, NULL, 'bw_menu_featured' ) ); $form->add( new \IPS\Helpers\Form\Text( 'menu_shuffle_featured', ( isset( $extra['menu_shuffle_featured'] ) ) ? $extra['menu_shuffle_featured'] : 4 , FALSE, array(), NULL, NULL, NULL, 'menu_shuffle_featured' ) ); $form->add( new \IPS\Helpers\Form\Text( 'menu_quantity_featured', ( isset( $extra['menu_quantity_featured'] ) ) ? $extra['menu_quantity_featured'] : 4 , FALSE, array(), NULL, NULL, NULL, 'menu_quantity_featured' ) ); okay so i have this code, I load it up in a controller, it works as intended. the fields that are to toggle on with bw_menu_featured, get displayed.
    however if i add this code:
    $form = new \IPS\Helpers\Form; $form->addTab("tab_1"); $form->add(new \IPS\Helpers\Form\Text('menu_width', 14)); $form->addTab("tab_2"); so the above code looks like this:
    $form = new \IPS\Helpers\Form; $form->addTab("tab_1"); $form->add(new \IPS\Helpers\Form\Text('menu_width', 14)); $form->addTab("tab_2"); $form->add( new \IPS\Helpers\Form\Select( 'menu_type', 'app', TRUE, array( 'options' => array( "noclick" => "No Click", "url" => "URL", "app" => "Application", "magic" => "Magic Block" ), 'toggles' => array( 'app' => array('menu_app'), 'url' => array('menu_url'), 'magic' => array('magic_block') ) ), NULL, NULL, NULL, 'menu_type' ) ); $form->add( new \IPS\Helpers\Form\Select( 'menu_app', 'forums', FALSE, array( 'options' => array( "forums" => "forums", "cms" => "Pages" ), 'toggles' => array( "forums" => array("bw_menu_featured") ) ) ), NULL, NULL, NULL, 'menu_app' ); $form->add(new \IPS\Helpers\Form\Url('menu_url', '', FALSE, array('placeholder' => 'http://www.example.com/'), NULL, NULL, NULL, 'menu_url') ); $form->add(new \IPS\Helpers\Form\Codemirror( 'magic_block', NULL, FALSE, array(), NULL, NULL, NULL, 'magic_block' ) ); $form->add( new \IPS\Helpers\Form\YesNo( 'bw_menu_featured', 1, FALSE, array( 'togglesOn' => array( 'menu_quantity_featured', 'menu_featured_from_date', 'menu_shuffle_featured' ) ), NULL, NULL, NULL, 'menu_type') ); $t = time() - (7 * 24 * 60 * 60); $form->add( new \IPS\Helpers\Form\YesNo( 'bw_menu_featured', 1, FALSE, array( 'togglesOn' => array( 'menu_shuffle_featured', 'menu_quantity_featured', 'menu_featured_from_date' ) ), NULL, NULL, NULL, 'bw_menu_featured' ) ); $form->add( new \IPS\Helpers\Form\Text( 'menu_shuffle_featured', ( isset( $extra['menu_shuffle_featured'] ) ) ? $extra['menu_shuffle_featured'] : 4 , FALSE, array(), NULL, NULL, NULL, 'menu_shuffle_featured' ) ); $form->add( new \IPS\Helpers\Form\Text( 'menu_quantity_featured', ( isset( $extra['menu_quantity_featured'] ) ) ? $extra['menu_quantity_featured'] : 4 , FALSE, array(), NULL, NULL, NULL, 'menu_quantity_featured' ) );  when i click on tab_2, the get toggled with  bw_menu_featured, are not displayed unless I toggle bw_menu_featured off and then back on. hope this helps.
  14. CodingJungle added a comment: [Beta 8] Forms TogglesOn   

    Okay, if they are on the first tab or no tabs at all, it works as intended, however if they are in a tab, then they don't work the same way, I'd imagine it has to do with the content of the tab being "hidden". Give me a bit, I will post two agnostic example code for you to test, right now they are still pretty heavily tied to my application.
  15. CodingJungle added a bug in Bug Tracker   

    [Beta 8] Pages Menu
    Pages Menu will not allow me to select a parent menu, since it does not let me select, and if i don't check "no parent", it will throw this error:
    IPS\Db\Exception thrown with message "Incorrect integer value: '' for column 'menu_parent_id' at row 1" Stacktrace: #12 IPS\Db\Exception in /home/michael/public_html/407/system/Db/Db.php:394 #11 IPS\_Db:preparedQuery in /home/michael/public_html/407/system/Db/Db.php:759 #10 IPS\_Db:update in /home/michael/public_html/407/system/Patterns/ActiveRecord.php:428 #9 IPS\Patterns\_ActiveRecord:save in /home/michael/public_html/407/system/Node/Model.php:1643 #8 IPS\Node\_Model:save in /home/michael/public_html/407/applications/cms/sources/Pages/Menu.php:432 #7 IPS\cms\Pages\_Menu:save in /home/michael/public_html/407/system/Node/Model.php:2018 #6 IPS\Node\_Model:saveForm in /home/michael/public_html/407/system/Node/Controller.php:341 #5 IPS\Node\_Controller:form in <#unknown>:0 #4 call_user_func in /home/michael/public_html/407/system/Dispatcher/Controller.php:85 #3 IPS\Dispatcher\_Controller:execute in /home/michael/public_html/407/system/Node/Controller.php:63 #2 IPS\Node\_Controller:execute in /home/michael/public_html/407/applications/cms/modules/admin/pages/menu.php:39 #1 IPS\cms\modules\admin\pages\_menu:execute in /home/michael/public_html/407/system/Dispatcher/Dispatcher.php:129 #0 IPS\_Dispatcher:run in /home/michael/public_html/407/admin/index.php:13  
    • 3 replies
    • 66 views

Status Feed

  1. CodingJungle

    as i walk thru the valley of the shadow of content, i will fear no variable, as my IDE is with me; your autocorrect and syntax error highlighting, they comfort me

  2. CodingJungle

    its terrible for the cow, but thats awesome!

  3. CodingJungle

    note:where I'm from when I tell some one to get me a "coke" its the brown sugar water that comes out of a gas stations fountain!