Jump to content

GrooveOnBeat

Members
  • Posts

    861
  • Joined

 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 GrooveOnBeat

  1. No, I didn't prevent. Maybe the bug with your site. Try to edit other to test.

    It's the only template I ran into so far that does that. It happens on all of the themes too, including the default.

  2. Bug?

    Something in the code is preventing "videoInfo" template to be saved. *Even if I don't touch the template at all and click "save" it won't.

    If I remove the entire code it can be saved. If I remove roughly the latter half of the code it can be saved. Revert works.

  3.  Is that custom CSS? isn't there more to that snippet like { at the end or something in front of background?

    And wouldn't that affect other part of the theme if it's custom css?

    It's just an example to show the property and value. :lol:

     

  4. I haven't found a solution to crop image in center yet. You should change the thumbnail size so it can match the ratio. Eg if you use image 720 x 405, you should set thumbnail size is 250 x 141 (horizontal rectangular).

    In CSS one way is to set a background position to center/center like

    background-position: center center;

    For later browser support maybe background-size ("cover" to crop while "contain" to keep aspect ratio within container dimensions), and "object" properties, but I don't recommend using those just yet since they're not widely a standard.

  5. Reporting a Bug:

    When choosing a default prefix, there's no option to select whatever is the first prefix in the allowed list (and yes, I did already click Save to refresh the list of available prefixes).  See screenshot.

    Default Prefix 2.png

    I remember coming across this, and I'm not 100% sure if it was related to the bug I posted before, where if there was only 1 prefix it did not show while posting. In your case, if you add 2 prefixes or more in the forum setting are you able to select a default prefix?

  6. @GrooveOnBeat I can't reproduce your issue with prefix not showing in title. Works fine for me. Are you sure you have that enabled in settings?

    It occurs if tagging mode in System -> Setings -> Posting -> Tags is set to "Closed". When it's set to "Open it works.

    Open: Users can use whatever tags they like <- Works.
    Closed: Users must choose from a specified set of tags <- When set to "Closed" tags don't show or keep its setting in posts.

  7. Maybe another bug.

    Version: 3.0.5

    Prefix does not show in title.

    I re-added the forum prefixes in settings. I also used "fix it" and rebuild cache with no luck.

    I've a blank page when I want to create a new topic with 3.0.5

    I haven't experienced a blank page. :unsure:

  8. @GrooveOnBeat, all of your issues should be fixed. Thank you. #1 looks like an IPS core bug, but I found a workaround.

    What's New in Version 3.0.5

    • Fixed JS snippets not being loaded on some admin forms. (You can preview your formatting again! yay! I didn't realize it only worked on my dev site...)
    • Fixed prefix input showing up despite no prefixes being configured.
    • Fixed prefix being added to the tags input on edit.
    • Fixed being unable to save the prefix on a forum if only one prefix exists.
    • Changed 'lowercase' tool to be more exhaustive.

    Glad to be of help! :lol:

    Thanks for the quick update! I'll install 3.0.5 and if I find anything else I'll let you know. :smile:

  9. A few bugs...

    Advanced Tags & Prefixes version: 3.0.4
    Install type: Fresh install
    IPB version: 4.0.7

    1. When there is only 1 prefix created, it does not save when adding it into a forum.

    2. When a topic prefix is set, and you edit the post, the prefix automatically adds in the Tags. If I edit 3 times, the same prefix is added in Tags 3 times. It only can be removed manually. Even after the Tags are removed, if you edit the post again, the Prefix is added into Tags.

    3. Not sure if this is a bug or not, but forums that do not have Prefixes show the Prefix drop down. The drop down should not be shown if there are no prefixes. It occurs regardless of prefix setting open or closed.
     

  10. The URL to the script in setting should be:
    http://mysite.com/cimage/webroot/img.php?src={url}&w={width}&h={height}&cf&q=90

    That works! :thumbsup:

    I now realize why the pictures weren't coming out the way I wanted to. The "cf" is crop-to-fit. I changed it to "ff", which is fill-to-fit. It keeps the original aspect ratio and resizes to the set dimensions. I also set the "q" (or quality) to 70. While I'm playing around the settings here is what I have now. Notice I'm using "imgp.php".

    http://mysite.com/cimage/webroot/imgp.php?src={url}&w={width}&h={height}&ff=000000&q=70

    Thanks for your help and patience, onlyME. :smile:

  11. I've seen bugs like you, and I forgot what I edited the file img.php :rofl: So try to use cimage.zip that I use on my site. If it still doesn't work, please give me the FTP access.

    We're getting closer, I can feel it! :lol:

    img.php
    img_config.php

    Ok, so I got the resizer to work but it's a little different. I kept the image and cache path and autoloader as in the original file. I didn't edit it. Code is below.

       /**
         * Where are the sources for the classfiles.
         *
         * Default values:
         *  autoloader:  null     // used from v0.6.2
         *  cimage_class: null    // used until v0.6.1
         */
        'autoloader'   =>  __DIR__ . '/../autoload.php',
        //'cimage_class' =>  __DIR__ . '/../CImage.php',
    
        /**
         * Paths, where are the images stored and where is the cache.
         * End all paths with a slash.
         *
         * Default values:
         *  image_path: __DIR__ . '/img/'
         *  cache_path: __DIR__ . '/../cache/'
         *  alias_path: null
         */
        'image_path'   =>  __DIR__ . '/img/',
        'cache_path'   =>  __DIR__ . '/../cache/',
        //'alias_path'   =>  __DIR__ . '/img/alias/',
    

    When I add the image URL into the browser it resizes exactly how I want it to. Below works. :smile:

    http://mysite.com/cimage/webroot/img.php?src=car.jpg&w=200&h=200

    When I add the full URL as src no picture is shown. Below does not work. :unsure: I don't use this code below.

    http://mysite.com/cimage/webroot/img.php?src=http://mysite.com/cimage/img/car.jpg&w=200&h=200
    

    I added the URL to the script in the settings below. No picture in the slider is shown.

    http://mysite.com/cimage/webroot/img.php

    When I remove the URL to the script and leave it blank, the pictures in the slider is shown. The problem is that it resizes the pictures to the slider settings and does not use the resize script, which is an expected result.

     

  12. So try to use the file I sent on previous post.

    Yes, I did that too. :lol:

    I checked over the requirements and I have GD + PHP 5.5x. I also reuploaded all of the files.

    I wonder if I didn't configure it correctly in "img_config.php"? All I have to do is edit the image and cache paths, right?

    I set mode to "production". I got to be missing something. :rofl:

    Edit: I wonder if I downloaded the right files lol?

  13. Hi,

    This is an issue of cimage. Try to use this file \cimage\webroot\ img.php

    Or search comment out 2 lines (in \cimage\webroot\img.php)

     preg_match($validFilename, $srcImage)
         or errorPage('Filename contains invalid characters.');

     

    Hi! :lol:

    I commented out the 2 lines and now I get this

    HTTP/1.0 500 Internal Server Error
    

    I must be doing something wrong haha. :tongue:

  14. I know this isn't part of Featured Content support but...I seem to be using CImage wrong.

    1. Downloaded the zip at https://github.com/mosbth/cimage (zip file located in the right column)
    2. Uploaded the contents in the directory "cimage".
    3. Ran "check_system.php" and was fine.
    4. Set "cache" to 777.
    5. Using "img.php" and the default "img_config.php".
    6. Changed the image and cache paths in "img_config.php".

    • /home/mysite/public_html/cimage/img/
    • /home/mysite/public_html/cimage/cache/

    7. Set the script URL which points to "http://mysite.com/cimage/webroot/img.php".
    8. Image URL:

    http://mysite.com/cimage/webroot/img.php?src=http://mysite.com/cimage/img/test.jpg&w=100&h=100&cf&q=90
    

    No image output. Any ideas? :unsure:

    [img.php] Source image is not a valid file, check the filename and that a matching file exists on the filesystem.

     

  15. There is an option to use image rerize scripts to aspect ratio but I haven't updated my demo site yet. (go to acp featured content -> settings -> On-the-fly Image Resizing URL )

    About emoticons, I have a solution to ignore emoticons, I will update in the next version.

    Edit: Updated demo site, no stretching images

    I'll try CImage too...And see how it goes. :lol:

     

    Edit: I don't suppose I can use image sites like imgur with CImage? :unsure:

×
×
  • Create New...