Jump to content

maddog107_merged

Clients
  • Posts

    310
  • 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 maddog107_merged

  1. @Michael.J

    Since I paid for the custom development/creation of "Topic Attach Thumbnails" by any chance could you send me an updated version that works with 4.5? I see it on the marketplace but I haven't been able to get in touch via PMs. Thanks.

  2. Mine is 

    713G ibf_core_output_cache.ibd

     

    Just in case someone is wondering how to fix. If you are using Innodb and a file per tablespace is turned on  you can do

     

    MariaDB [bellazon_v4]> optimize table ibf_core_output_cache;
    +-----------------------------------+----------+----------+-------------------------------------------------------------------+
    | Table                             | Op       | Msg_type | Msg_text                                                          |
    +-----------------------------------+----------+----------+-------------------------------------------------------------------+
    | abc_v4.ibf_core_output_cache | optimize | note     | Table does not support optimize, doing recreate + analyze instead |
    | abc_v4.ibf_core_output_cache | optimize | status   | OK                                                                |
    +-----------------------------------+----------+----------+-------------------------------------------------------------------+
    2 rows in set (12.177 sec)

     

    It dropped down to 340 MB!!!!!

    340M Dec  8 10:57 ibf_core_output_cache.ibd

     

     

     

  3. Essentially sometimes our content is NSFW and Google Adsense does not like it when we show ads when there is that content.

    What I think I need is a DB query (or flag of some kind) which will not put this in the HTML (GlobalTemplate - <body> section).

    <script data-ad-client="ca-pub-6991445029332292" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

     

    So how I *think* it should work, is grab the URL, figure out what posts would be included on this particular page and then just search for the NSFW column we have in a table, and if adult<=3  on all of them it would print the code above in the <head> otherwise don't print anything. 

     

    Here is a rough query I wrote that would accomplish this

    SELECT adult FROM zzz_ibf_core_attachments WHERE attach_id IN (SELECT attachment_id FROM `ibf_core_attachments_map` WHERE `id2` IN (SELECT * FROM (SELECT pid FROM `ibf_forums_posts` WHERE `topic_id` = 60196 and pid>=4518005 limit 20) temp_tab) )

    Essentially its grabbing the first 20 posts from the topic 60196 starting from post 4518005 and then figuring out all the attachments associated with those posts and then joining to zzz_ibf_core_attachments which is where i have the "adult" column which is 1-5 where 4 or 5 is NSFW. Here is the result from the query above. 

    adult
    1
    1
    1
    1
    1
    1
    1
    1
    2
    2
    1
    2
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1

     

    So in that case its OK to show ads, if any one of those is >=4 then we should not show the code.

     

    Please let me know if you think you could be of assistance and how much it would cost. Thank you.

     

    James

  4. On 11/3/2019 at 3:50 PM, stoo2000 said:

    To be honest, I'm a little disappointed that only one person contacted me for access to test SNS integration. I'd have liked to test it and tweak it more, but that's not possible without any feedback.

    The main code behind the app is getting some major changes at the moment which, but I think I may just end up releasing a minor update with the SNS code in it, it'll be exactly the same as what you could have had on request. You'd need to figure out how to make SNS/SES work though, that's not something I can help you with.

    I sent you a PM but I would like to test as well. Thanks

  5. I am moving to SES in the next day or two. Finally go the email from Sparkpost. Going from ~80/mo -> $170/mo if I stuck around. SES should be ~$30. 

    They requested I setup Simple Notification Service (SNS) in order to increase my limit to the 20k/day emails. Not sure if your app would have some sort of API that could suck in the SNS messages and process them. 

    Im willing to chip in some $ if that would make the project move faster. Feel free to PM me. Thanks!

  6. 15 hours ago, Joel R said:

    It was primarily a cost reduction move for storage + bandwidth compared to AWA.  I'm saving ~$80 mo, which comes out to a thousand dollars per year.  That's not an insignificant amount of money.  Amazon S3 is very expensive on egress bandwidth (the storage is cheap, the bandwidth is where they get you); Wasabi is free egress.  

    If you're already on Cloudflare, you probably won't see a performance improvement.  

    (On a further note, if anyone is considering Wasabi, I highly do not recommend US-EAST-1.  There experiencing considerable growth pains on that server).  They don't have enough throughput capacity, so their get and put are both degraded. Their other locations are probably fine.  

     

    Ok thanks for the info. I guess if we ever decide to not own our own servers we can look into this solution, at this point it would not make a difference in our costs. Thanks. 

  7. On 6/24/2019 at 8:35 AM, Joel R said:

    As an update to this topic:

    • If you are changing your CDN URL (and you most likely are, since one of the biggest benefits is to switch away from a paid service like Amazon Cloudfront and move to free Cloudflare), you may need to revert "attachImages" template.  Mine contained the prior CDN URL hardcoded into the template; reverting it will update the URL.  
    • I still haven't passed one full billing cycle, but I'm projected to lower my storage + cdn costs from $92/ mo to $6 / mo.  For reference purposes, my community contains 400 GB of storage and 1400 GB / mo of bandwidth.  

       

    Joel, was this mostly to save cost or have you seen any performance difference? 

    We have our own server and some 7TB of images. We are on the cloudflare business plan so a lot of our content is already cached. The only benefit I could see would be that say europe based user hitting some "old" content which is not cached in Cloudflare would have to get the content from west coast USA. Would there be any additional benefit I am missing? 

  8. @onlyME the guys here at IPS support were helping me with another issue and they believe it may be caused by this plugin.  I have a ton of errors in the system logs:

    Quote

    Looking at your system logs, you have many many errors, all coming from the (BIM41) Topic Thumbnail application, on topics. Its highly likely this is causing your issues, and I would advise contacting the author of that application to resolve the issues there, or disabling it, to see if this resolved your posting problems. This is very likely to be what is causing the problem.

    Kind Regards,
    Marc Stridgen

    Error: Call to a member function html() on null (0)
    #0 /var/www/html/bellazon.com/main/applications/forums/modules/front/forums/topic.php(119): IPS\Content\_Item->commentForm()
    #1 /var/www/html/bellazon.com/main/init.php(448) : eval()'d code(18): IPS\forums\modules\front\forums\_topic->manage()
    #2 /var/www/html/bellazon.com/main/system/Dispatcher/Controller.php(97): IPS\forums\modules\front\forums\hook211->manage()
    #3 /var/www/html/bellazon.com/main/system/Content/Controller.php(51): IPS\Dispatcher\_Controller->execute()
    #4 /var/www/html/bellazon.com/main/applications/forums/modules/front/forums/topic.php(40): IPS\Content\_Controller->execute()
    #5 /var/www/html/bellazon.com/main/system/Dispatcher/Dispatcher.php(129): IPS\forums\modules\front\forums\_topic->execute()
    #6 /var/www/html/bellazon.com/main/index.php(13): IPS\_Dispatcher->run()
    #7 {main}
    #0 /var/www/html/bellazon.com/main/init.php(512): IPS\_Log::log('Error: Call to ...', 'uncaught_except...')
    #1 [internal function]: IPS\IPS::exceptionHandler(Object(Error))
    #2 {main}

    This is on 4.1.19

    The URL of page the error occurred on was https://www.bellazon.com/main/topic/29353-sara-sampaio/?page=719

     

  9. 8 minutes ago, onlyME said:

    @maddog107_merged that is the reason I crop the images. If you want to use the original images, you have to crop them manually to fit your thumbnail's size.

    Ok, I got it working now. 

    Ill put this here in case anyone has similar needs in the future, simply remove the "width and height" attributes and replace them with some CSS. 

    <img src='{$topic->tthumb_show()}' id='tthumb_{$topic->tid}' class='tthumbimg' style='max-width:{$w}px; max-height:{$h}px;'>

     

    non-streched.png

  10. 15 minutes ago, onlyME said:

    You can force it uses the original images by going to ACP and edit your theme > core > global > plugins > bim_tthumb_showThumb

    Find

    
    {$topic->tthumb_show()}

    Replace by

    
    {$topic->tthumb_show(1)}

     

    I added that to both the if / else statement and they still show up smushed. 

    				{{endif}}
    					<img src='{$topic->tthumb_show(1)}' id='tthumb_{$topic->tid}' class='tthumbimg' width='{$w}px' height='{$h}px'>
    				</a>
    			</div>
    		{{else}}
    			<div class="bim_tthumb_wrap">
    				<a {{if $topic->canChangeThumbnail() || member.member_id}}href='#tthumb{$topic->tid}_menu' data-ipsMenu id='tthumb{$topic->tid}'{{else}}href='{$topic->url()}'{{endif}} {{if settings.bim_tthumb_onhover == 1}}data-ipstpopup data-ipstpopup-width='280' data-ipstpopup-target="{$topic->url('tthumbGetImage')}"{{endif}}>
    					<img src='{$topic->tthumb_show(1)}' {{if $topic->upload_thumbnail}}data-full="{file="$topic->upload_thumbnail" extension="forums_topicThumbnail"}"{{endif}} id="tthumb_{$topic->tid}" class='tthumbimg' width='{$w}px' height='{$h}px'>
    				</a>

     

    Did I do something wrong? Any guidance is appreciated. Thanks. 

    thumbs_smushed.png

  11. @onlyME

    So I like the Gallery Mode (see attachment) but I would like for that to be a user option, so just like the show/hide button, there should be like a "gallery view" or "regular view" button to switch between the Masonry layout and the "regular" layout with thumbnails in a list. 

    gallerymode.png

×
×
  • Create New...