Jump to content

flashpoint

Clients
  • Posts

    107
  • Joined

  • Last visited

1 Follower

Recent Profile Visitors

1,666 profile views

flashpoint's Achievements

  1. Literally just drag and drop the contents of the ips_a0570 folder Drag all of that into here make sure you backup your files and database before you do that though.
  2. No problem, downgraded to 8.0.3. I am still getting the same issue.
  3. Hi all, I've been struggling to get my server to support auth headers for the API. I am using Plesk to manage everything and the forum is hosted on Apache with FPM. What I've tried so far Adding CGIPassAuth on to top of .htaccess for the /api/ subfolder Adding to top FcgidPassHeader Authorization of .htaccess I tried adding both to the apache directive I've tried adding FcgidPassHeader AUTHORIZATION to the primary fcgid.conf file and restarting the service I've also tried doing a combo of all the above I tried changing SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0 to SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$1 in .htaccess I've tried a few things that I can't remember but I think I've tried everything that I've found from Googling maybe I missed something else that I can try. I'll appreciate all the help that I can get. Thanks! 🙂 Quick edit: I am running PHP 8.2.17 with FPM/FastCGI Server version: Apache/2.4.37 (AlmaLinux) Server built: Oct 18 2023 12:00:09
  4. A bit late but it does not work with 4.7.1 at least not for me. Getting this error when doing any action with the TS plugin
  5. They sent out an email on the 14th of September.
  6. Is there any documentation for that? Can't seem to find it on the plugin docs
  7. Yes, data is inserted and updated correctly. I believe that the data is loaded but can't seem to find a way to confirm that using \ips\log protected static function constructLoadQuery( $id, $idField, $extraWhereClause ) { try { return parent::constructLoadQuery( $id, $idField, $extraWhereClause )->join( 'autothreadgen_gallery_addon', 'autothreadgen_gallery_addon.threadgen_gallery_category_id=gallery_categories.category_id' ); \IPS\Log::log( constructLoadQuery, 'constructLoadQuery' ); } catch ( \RuntimeException $e ) { \IPS\Log::log( $e, 'load query e' ); if ( method_exists( get_parent_class(), __FUNCTION__ ) ) { \IPS\Log::log( $e, 'load query e' ); return \call_user_func_array( 'parent::' . __FUNCTION__, \func_get_args() ); } else { \IPS\Log::log( $e, 'load query e' ); throw $e; } } }
  8. Will do! Still having issues loading the saved data from the database though public function save() { try { $data = $this->_data; \IPS\Log::log( $data, 'save function threadgen' ); $joinTableData = array(); \IPS\Log::log( $joinTableData, 'save function threadgen data' ); \IPS\Log::log( $databasePrefix, 'thread_gen_db_prefix' ); foreach ( ( $this->_new ? $this->_data : $this->changed ) as $k => $v ) { if ( \in_array( $k, array('threadgen_gallery_forum_on', 'gallery_forum_on', 'threadgen_gallery_category_id', 'threadgen_gallery_forum_id', 'threadgen_gallery_topic_prefix', 'threadgen_gallery_topic_suffix', 'threadgen_gallery_topic_delete' ) ) ) { \IPS\Log::log( $k . $v, 'save function threadgen foreach' ); $joinTableData[ static::$databasePrefix . $k ] = $v; unset( $this->_data[ $k ] ); unset( $this->changed[ $k ] ); } } parent::save(); $data['id'] = $this->_data['id']; $this->_data = $data; if ( \count( $joinTableData ) ) { $joinTableData['threadgen_gallery_category_id'] = $this->id; \IPS\Db::i()->insert( 'autothreadgen_gallery_addon', $joinTableData, TRUE ); } } catch ( \RuntimeException $e ) { if ( method_exists( get_parent_class(), __FUNCTION__ ) ) { return \call_user_func_array( 'parent::' . __FUNCTION__, \func_get_args() ); } else { throw $e; } } } It only appears to save the default data into $this array ( 'id' => 2, 'parent_id' => 0, 'name_seo' => 'test-321', 'count_imgs' => 0, 'count_comments' => 0, 'count_imgs_hidden' => 0, 'count_comments_hidden' => 0, 'cover_img_id' => 0, 'last_img_id' => 0, 'last_img_date' => 0, 'sort_options' => 'album_last_img_date', 'allow_comments' => true, 'allow_rating' => true, 'approve_img' => false, 'approve_com' => false, 'rating_aggregate' => 0, 'rating_count' => 0, 'rating_total' => 0, 'watermark' => 1, 'position' => 2, 'can_tag' => true, 'preset_tags' => '', 'public_albums' => 0, 'nonpublic_albums' => 0, 'tag_prefixes' => true, 'allow_albums' => '1', 'show_rules' => '0', 'rules_link' => NULL, 'allow_reviews' => false, 'review_moderate' => 0, 'club_id' => NULL, 'sort_options_img' => 'updated', 'allow_anonymous' => 0, 'last_poster_anon' => 0, ) I'll keep trying but hopefully someone can point me in the right direction 🙂
  9. Hi all, I've been trying to make my own plugin that creates threads automatically when a new gallery image or album is posted for the last few days but I am stuck on the form for each category. For whatever reason that data does not load the data back onto the form but it does save onto the database. This is what I have for formatFormValues: public function formatFormValues( $values ) { $values = parent::formatFormValues( $values ); if ( $this->id ) { $save = array( 'threadgen_gallery_forum_on' => (int)$values['threadgen_gallery_forum_on'], 'threadgen_gallery_category_id' => $this->id, 'threadgen_gallery_forum_id' => $values['threadgen_gallery_forum_id']->id, 'threadgen_gallery_topic_prefix' => (string)$values['threadgen_gallery_topic_prefix'], 'threadgen_gallery_topic_suffix' => (string)$values['threadgen_gallery_topic_suffix'], 'threadgen_gallery_topic_delete' => (int)$values['threadgen_gallery_topic_delete'] ); foreach ( $values as $k => $v ) { if ( \in_array( $k, array( 'threadgen_gallery_category_id', 'threadgen_gallery_forum_id', 'threadgen_gallery_topic_prefix', 'threadgen_gallery_topic_suffix', 'threadgen_gallery_topic_delete' ) ) ) { unset( $values[$k] ); } } if ( \count( $save ) ) { \IPS\Db::i()->insert( 'gallery_threadgen_addon', $save, TRUE ); } } return $values; } Basically the question is does formatFormValues load the values back or only save them? If it only saves them how would I load them back? Thanks for your time and help! 🙂 Second parameter for forms is default value whoops 😅
  10. Yup! They also have a image hosting with similar terms. You can upload like a 12k photo and have up to 10 different resolutions for no extra charge. Edit: Good news. Cloudflare is actually working on their own object storage: https://blog.cloudflare.com/introducing-r2-object-storage/
  11. flashpoint

    Videobox

    Hey, A few members have reported that they can't see videos after the recent update. They're getting the following message: "You don't have permission to play this video." I've double checked the usergroup and the category permissions they're both correct. Is there a debug mode for the application to see whats is going wrong? ' Edit: Looks like its just a text bug for videos that don't exist/were deleted. If a video is deleted it will show the no permissions error instead of missing video/video does not exist
  12. No restriction will work on subscriptions. I don't think there is a way to limit the coupons just for subs though. You could alternatively make a "Normal Product" expireable and then it can change members into a secondary group as well and then you can limit the coupons for those products.
  13. Bucket policy to only allow cloudflare IPs if anyone is interested: { "Id": "S3PolicyId1", "Version": "2012-10-17", "Statement": [ { "Sid": "AllowRead", "Effect": "Allow", "Principal": { "AWS": "*" }, "Action": "s3:GetObject", "Resource": [ "arn:aws:s3:::bucket-name", "arn:aws:s3:::bucket-name/*" ] }, { "Sid": "IPBasedNarrowFurther", "Effect": "Deny", "Principal": { "AWS": "*" }, "Action": "s3:GetObject", "Resource": [ "arn:aws:s3:::bucket-name", "arn:aws:s3:::bucket-name/*" ], "Condition": { "NotIpAddress": { "aws:SourceIp": [ "173.245.48.0/20", "103.21.244.0/22", "103.22.200.0/22", "103.31.4.0/22", "141.101.64.0/18", "108.162.192.0/18", "190.93.240.0/20", "188.114.96.0/20", "197.234.240.0/22", "198.41.128.0/17", "162.158.0.0/15", "104.16.0.0/13", "104.24.0.0/14", "172.64.0.0/13", "131.0.72.0/22", "2400:cb00::/32", "2606:4700::/32", "2803:f800::/32", "2405:b500::/32", "2405:8100::/32", "2a06:98c0::/29", "2c0f:f248::/32" ] } } } ] }
  14. Hi there, I am looking for someone to create a plugin that generates a new topic each time someone posts an image/video or a new album via the gallery plugin. The picture/video/album in question should also have a redirect button to the topic on the album/image page. Basically this: someone requested this before but doesn't look like anyone ever made it. Thank you! 🙂
  15. Hey I actually have another question. is it possible to auto-create topics/threads for each image/album creation?
×
×
  • Create New...