Jump to content

sbr

Clients
  • Posts

    32
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by sbr

  1. Before 4.6.x the ACP timeout respected the session.gc_maxlifetime value in the PHP configuration, mine is set to 28800 seconds.

    image.png.0d6198f9fd307f1eab5ba54f862c5fdb.png

    But after I upgraded to 4.6.2 last year the timeout has been 60 minutes, is there any way of increasing this now?

    All I can find is the DEV_DISABLE_ACP_SESSION_TIMEOUT option for constants.php, but I want this for a production environment.

    (Not entirely sure this happened exactly when going to 4.6.2, but it was around that time)

  2. Re-downloading 4.5.3 did not solve the issue for me, but here's a workaround I used to get my community back online. Do at your own risk, I don't know if this has any consequences!

    • Download 4.5.2 and copy the files to your community root as usual when manually upgrading.
    • Go to your invision database and fint the table called "ipbupgrade_temp".
    • Delete the content in the "upgrade_data" column. 
    • Go to /admin/upgrade (or your equivalent) and log in. It should say "nothing to upgrade" and make the community available again.

    Again be careful if you try this, don't do it if you're not comfortable with potential errors and maybe making the situation worse!

  3. On 9/6/2020 at 12:04 PM, TAMAN said:

    When you switch to dark/light... Etc) some unique css class names are added to Body tab

    For example the palette light scheme class is named

    . taP_lightMode

    So you can use this to manually switch a custom element color to light if you wanted.

    Or simply connect your custom page color to a theme color setting so it works with the palette switch  🙂

     

    I'll try that, thanks! 👍

  4. 2 hours ago, TAMAN said:

    No this has nothing to do with header or adding a class to header, i also cant provide support for any kind of template modifications.

    I don't think you understand, this is my workaround to solve the issue. I just mentioned it as it probably is a necessity for a lot of people.

    2 hours ago, TAMAN said:

    I cant understand what you trying to accomplish.

    When you have two different themes for light and dark you can add a different custom.css to each one of them:

    img1.jpg.e4cab1158218e2d4b046fd0480bbe074.jpg

    The reason you'd want to do this is because you have elements on your page that is custom made in Pages.

    Say you have a dark page that looks like this:

    img2.thumb.jpg.ebee08b898b9f9ea1df58c3cd20c970d.jpg

    Now without a custom CSS if you switch to Light it might look like this:

    img3.thumb.jpg.5b754ebfaf34cba3c561bd50d0921c02.jpg

    But since you now run a light theme you also want your custom elements to be light and look something like this (some color differences here, it's just a mockup):

    img4.thumb.jpg.b22786b451c65c78d601c2eeda4987bd.jpg

    So ideally there should be a way to load a custom CSS with the palette switch, else you can't have any custom elements on your page as they won't switch.

    As I said I've done a workaround to this, but it would be more streamlined if this was a part of the theme 🙂

     

  5. 10 hours ago, TAMAN said:

    You also do not need to install two copies of the theme to make light and dark version 

    you have palette options which was recently added in IPS 4.5 version of Dreadnought theme.

    I need to load a different custom.css with light and dark to change a lot of elements from light to dark in a quite complex Pages frontpage.

    With the new switch (which is indeed a better solution than a theme) I can no longer load a different custom.css for light and dark directly. I've solved this by making a javascript that checks for

    $("#ta_colorizer").hasClass("taP_dark")

    and

    $("#ta_colorizer").hasClass("taP_light")

    and disables/enables a css link in the header based on this.

    This feels like a bit of hack though, any other way to load a different css based on the palette?

  6. 1 hour ago, TAMAN said:

    Hi,

    Its not possible to download I think only for older versions of ips. you need to click the CHANGELOG in marketplace to see the older versions and download

    Do you have any issues I can help with?

    It worked to updated it through Marketplace after I upgraded to 4.5.1 (from 4.5.0), but it only updated one of themes as I had one for light and one for dark. And I can't see a way to update the other one since the Marketplace now says it's already updated. I guess it's better to use the new switch between dark and light though, but it's a bit weird we no longer have any manual control over this.

    image.png.748ce63f5ed67a86fdedee1df59586e2.png

  7. 1 hour ago, TAMAN said:

    Where is that exactly? 

    A topic widget or topics list?

    and have you checked if the same thing happens on default ips theme? 🙂 

    This is on the topic feed on the right side of your demo site (same place as I have it).

    With the default theme it doesn't break until 100000 posts, which is probably a lot rarer to reach 😄

    image.thumb.png.c2f30c1be77ee4291f5797a78691938f.png

  8. 19 minutes ago, TAMAN said:

    Please delete that duplicated block template and then recreate the block

     07_26_17_pages_footer_articles

    in the same page expand the "Database Templates" and check for any duplicated templates and delete.

    Duplicated templates always starts with a date numbers just like this 07_26_17_

     

    then recreate the block and let me know of the result

    That helped a bit! I now get the slider without the error and the articles are shown.

    However if I disable Slider 1, the whole slider disappears. Is this intentional?

    Edit: So I can enable Slider 1 and just remove all sliders from the slider sorting, and it works like I want. Is this a workaround or the way it is supposed to work? :)

  9. 1 minute ago, TAMAN said:

    Can you take a screenshot of this place please

    ACP > Pages > Templates > Block Plugin Templates

     

    also did you use the latest version from marketplace right?

    Yes, the version that was uploaded 17 hours ago. Here's the screenshot:

    blockss.thumb.JPG.17d4ea538cd63786892fd7282984602a.JPG

  10. Thanks for keeping the theme up to date!

    I have a problem with the Swiper Slider on 4.2.1 however. The theme is installed as a new fresh theme, and I have imported the Pages_Slider_Articles template, created a new block that uses template key Pages_Slider_Articles and selected the imported template under Content of the block. The preview looks fine. But when I enable Page Articles with Slider 1 active, I get an error 500 on the entire site.

    The system logs says:

    UnexpectedValueException:  (0)
    #0 /var/www/html/forum/applications/cms/sources/Blocks/Block.php(270): IPS\cms\_Theme->getTemplate('recordfeed', 'cms', 'block')
    #1 [internal function]: IPS\cms\Blocks\_Block->getTemplate(Array, '33ec0c39a0fc947...', NULL)
    #2 /var/www/html/forum/system/Widget/Widget.php(233): call_user_func_array(Array, Array)
    #3 /var/www/html/forum/system/Content/Widget.php(388): IPS\_Widget->output(Array, '33ec0c39a0fc947...')
    #4 /var/www/html/forum/applications/cms/widgets/RecordFeed.php(309): IPS\Content\_Widget->render()
    #5 /var/www/html/forum/applications/cms/sources/Blocks/Block.php(234): IPS\cms\widgets\_RecordFeed->render()
    #6 /var/www/html/forum/system/Theme/Theme.php(809) : eval()'d code(563): IPS\cms\Blocks\_Block::display(Object(IPS\cms\Blocks\Block))
    #7 /var/www/html/forum/system/Theme/SandboxedTemplate.php(56): IPS\Theme\class_core_front_ta_templates->sliderBase()
    #8 /var/www/html/forum/system/Theme/Theme.php(809) : eval()'d code(5609): IPS\Theme\_SandboxedTemplate->__call('sliderBase', Array)
    #9 /var/www/html/forum/system/Theme/SandboxedTemplate.php(56): IPS\Theme\class_core_front_global->globalTemplate('Community...', '\n<div id="elCms...', Array)
    #10 /var/www/html/forum/system/Dispatcher/Dispatcher.php(166): IPS\Theme\_SandboxedTemplate->__call('globalTemplate', Array)
    #11 /var/www/html/forum/system/Dispatcher/Standard.php(103): IPS\_Dispatcher->finish()
    #12 /var/www/html/forum/system/Dispatcher/Front.php(556): IPS\Dispatcher\_Standard->finish()
    #13 /var/www/html/forum/system/Dispatcher/Dispatcher.php(148): IPS\Dispatcher\_Front->finish()
    #14 /var/www/html/index.php(28): IPS\_Dispatcher->run()
    #15 {main}

    And backtrace:

    #0 /var/www/html/forum/init.php(522): IPS\_Log::log('UnexpectedValue...', 'uncaught_except...')
    #1 [internal function]: IPS\IPS::exceptionHandler(Object(UnexpectedValueException))
    #2 {main}

    If I disable Slider 1 and leave Swiper Slider active, there is no slider at at all, and no errors. Any ideas?

×
×
  • Create New...