Jump to content

flashpoint

Members
  • Posts

    104
  • 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

Everything posted by flashpoint

  1. 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
  2. Is there any documentation for that? Can't seem to find it on the plugin docs
  3. 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; } } }
  4. 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 🙂
  5. 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 😅
  6. 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/
  7. 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
  8. 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.
  9. 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" ] } } } ] }
  10. 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! 🙂
  11. Hey I actually have another question. is it possible to auto-create topics/threads for each image/album creation?
  12. Hi there, I got a couple of questions for the official gallery plugin The sale page says that videos are supported however on the demo version it doesn't look like that you can? Can we actually upload videos and if so what formats are supported? While we are at it what image formats are supported? If I were to use Amazons S3 can the links be disabled from being accessed from outside the forum? My renewal date is coming up next month (for forums, commerce, etc) will I be charged the full amount again for a renewal or will it be a prorated amount? Thanks for your time and help!
  13. I think resorting the database worked (wonder why it didn't do anything the first 2 times) just tried to do it again on a separate subdomain (dev) and it seemed to fix the issues. I'll try again on the live forum and let you know if it worked. Thanks! 🙂 Edit: Looks like that fixed it. Thank you so much! 🙂
  14. Hi there, I recently changed servers for my forum and I've been having a lot of issues afterwards. I made sure to use the exact same software builds and versions as the 1st server to exactly avoid this. I've ran and everything is checked (green) Few of the errors: located on the support utility logs: Array ( [error] => invalid_grant [error_description] => Missing code verifier. ) OutOfRangeException: (0) #0 /var/www/vhosts/myforum.com/httpdocs/system/Theme/Theme.php(396): IPS\Patterns\_ActiveRecord::load() #1 /var/www/vhosts/myforum.com/httpdocs/system/Dispatcher/Standard.php(54): IPS\_Theme::i() #2 /var/www/vhosts/myforum.com/httpdocs/init.php(902) : eval()'d code(40): IPS\Dispatcher\_Standard::baseCss() #3 /var/www/vhosts/myforum.com/httpdocs/init.php(902) : eval()'d code(15): IPS\Dispatcher\videobox_hook_includeJSandCSS::baseCss() #4 /var/www/vhosts/myforum.com/httpdocs/system/Dispatcher/Front.php(751): IPS\Dispatcher\axenserverlist_hook_loadJSandCSS::baseCss() #5 /var/www/vhosts/myforum.com/httpdocs/init.php(902) : eval()'d code(39): IPS\Dispatcher\_Front::baseCss() #6 /var/www/vhosts/myforum.com/httpdocs/system/Dispatcher/Front.php(79): IPS\Dispatcher\bimchatbox_hook_includeJSandCSS::baseCss() #7 /var/www/vhosts/myforum.com/httpdocs/system/Dispatcher/Dispatcher.php(110): IPS\Dispatcher\_Front->init() #8 /var/www/vhosts/myforum.com/httpdocs/index.php(13): IPS\_Dispatcher::i() #9 {main} Lock wait timeout exceeded; try restarting transaction : I've increased my innodb_lock_wait_timeout to 300 so I think this issue has been fixed. UPDATE `core_widgets` core_widgets SET `caches`='{"widget_Wysiwyg_0aefufigi_0cabed4a03098fde5800197c948baf52":1633015011,"widget_Wysiwyg_9frecvisj_98140581c39cea83ce989445fbbc0481":1633015137}' WHERE `key`='Wysiwyg' AND app='cms' IPS\Db\Exception: Lock wait timeout exceeded; try restarting transaction (1205) #0 /var/www/vhosts/myforum.com/httpdocs/system/Db/Db.php(1154): IPS\_Db->preparedQuery() #1 /var/www/vhosts/myforum.com/httpdocs/system/Widget/Widget.php(914): IPS\_Db->update() #2 /var/www/vhosts/myforum.com/httpdocs/system/Theme/Theme.php(860) : eval()'d code(17997): IPS\_Widget->__toString() #3 /var/www/vhosts/myforum.com/httpdocs/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->widgetContainer() #4 /var/www/vhosts/myforum.com/httpdocs/system/Theme/Theme.php(860) : eval()'d code(15322): IPS\Theme\_SandboxedTemplate->__call() #5 /var/www/vhosts/myforum.com/httpdocs/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->sidebar() #6 /var/www/vhosts/myforum.com/httpdocs/system/Theme/Theme.php(860) : eval()'d code(6628): IPS\Theme\_SandboxedTemplate->__call() #7 /var/www/vhosts/myforum.com/httpdocs/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->globalTemplate() #8 /var/www/vhosts/myforum.com/httpdocs/system/Dispatcher/Dispatcher.php(173): IPS\Theme\_SandboxedTemplate->__call() #9 /var/www/vhosts/myforum.com/httpdocs/system/Dispatcher/Standard.php(113): IPS\_Dispatcher->finish() #10 /var/www/vhosts/myforum.com/httpdocs/system/Dispatcher/Front.php(674): IPS\Dispatcher\_Standard->finish() #11 /var/www/vhosts/myforum.com/httpdocs/system/Dispatcher/Dispatcher.php(155): IPS\Dispatcher\_Front->finish() #12 /var/www/vhosts/myforum.com/httpdocs/index.php(13): IPS\_Dispatcher->run() #13 {main} None of the WYSIWYG Editor blocks are showing up on the "public" side but I can edit them as normal with 0 issues. These are located in uploads/logs Mon, 18 Oct 2021 18:58:06 +0000 IPS\Db\Exception::1053 Server shutdown in progress #0 /var/www/vhosts/myforum.com/httpdocs/system/Db/Db.php(1156): IPS\_Db->preparedQuery() #1 /var/www/vhosts/myforum.com/httpdocs/system/Task/Task.php(257): IPS\_Db->update() #2 /var/www/vhosts/myforum.com/httpdocs/system/Task/Task.php(229): IPS\_Task->run() #3 /var/www/vhosts/myforum.com/httpdocs/applications/core/interface/task/task.php(58): IPS\_Task->runAndLog() #4 {main} ------------- Mon, 18 Oct 2021 18:58:13 +0000 Error: Call to undefined method stdClass::language() (0) #0 /var/www/vhosts/myforum.com/httpdocs/init.php(902) : eval()'d code(15): IPS\Dispatcher\_Standard::baseJs() #1 /var/www/vhosts/myforum.com/httpdocs/init.php(902) : eval()'d code(43): IPS\Dispatcher\videobox_hook_includeJSandCSS::baseJs() #2 /var/www/vhosts/myforum.com/httpdocs/system/Dispatcher/Front.php(713): IPS\Dispatcher\axenserverlist_hook_loadJSandCSS::baseJs() #3 /var/www/vhosts/myforum.com/httpdocs/init.php(902) : eval()'d code(16): IPS\Dispatcher\_Front::baseJs() #4 /var/www/vhosts/myforum.com/httpdocs/init.php(902) : eval()'d code(18): IPS\Dispatcher\bimchatbox_hook_includeJSandCSS::baseJs() #5 /var/www/vhosts/myforum.com/httpdocs/system/Dispatcher/Front.php(82): IPS\Dispatcher\nexus_hook_frontDispatcher::baseJs() #6 /var/www/vhosts/myforum.com/httpdocs/system/Dispatcher/Dispatcher.php(110): IPS\Dispatcher\_Front->init() #7 /var/www/vhosts/myforum.com/httpdocs/index.php(13): IPS\_Dispatcher::i() #8 {main} #0 /var/www/vhosts/myforum.com/httpdocs/init.php(1004): IPS\_Log::log() #1 [internal function]: IPS\IPS::exceptionHandler() #2 {main} When I try to access the bulk mail feature, everything works as normal TILL I get to the email preview section then I get these errors: OutOfRangeException: (0) #0 /var/www/vhosts/myforum.com/httpdocs/applications/core/sources/Promote/Promote.php(239): IPS\Patterns\_ActiveRecord::load() #1 /var/www/vhosts/myforum.com/httpdocs/system/Email/Email.php(922) : eval()'d code(530): IPS\core\_Promote->object() #2 /var/www/vhosts/myforum.com/httpdocs/system/Email/Email.php(925): IPS\Theme\email_html_core_emailWrapper() #3 /var/www/vhosts/myforum.com/httpdocs/system/Email/Email.php(371): IPS\_Email::template() #4 /var/www/vhosts/myforum.com/httpdocs/applications/core/modules/admin/bulkmail/bulkmail.php(308): IPS\_Email->compileContent() #5 /var/www/vhosts/myforum.com/httpdocs/system/Dispatcher/Controller.php(90): IPS\core\modules\admin\bulkmail\_bulkmail->iframePreview() #6 /var/www/vhosts/myforum.com/httpdocs/applications/core/modules/admin/bulkmail/bulkmail.php(45): IPS\Dispatcher\_Controller->execute() #7 /var/www/vhosts/myforum.com/httpdocs/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\admin\bulkmail\_bulkmail->execute() #8 /var/www/vhosts/myforum.com/httpdocs/admin/index.php(13): IPS\_Dispatcher->run() #9 {main} anddd there is LOTS of errors in the system logs section. I've double checked and made sure that all the files have been restored, double checked and made sure that the database has been properly restored. I've upgraded my IPS, restored old files, no luck, I am out of ideas and hopefully someone else will be able to come up with something. Thanks for your time and help! 🙂
  15. Anyone know how long it takes for Wasabi to covert trail accounts to non trail. Paid for an account but still getting the "Public use of objects is not allowed by default for trial accounts" message. Edit: approx an hour 🙂
  16. flashpoint

    Videobox

    Don't remember if I suggested or someone else suggested this but would also be nice to have limit amount of views for specific usergroups and maybe also minimum post requirement to watch videos. Thank you 😍
  17. flashpoint

    Videobox

    I got another suggestion. Have a direct link to the generated topic for each video (maybe somewhere in the bottom?) and/or have the comments section and review section linked to the topic (makes a posts on the users behalf on the specific topic for that video) Thanks! 🙂
  18. flashpoint

    Videobox

    Hey there is a code snippet here: https://appcropolis.com/blog/web-technology/using-html5-canvas-to-capture-frames-from-a-video/ edit: Another idea, ability to change category in the "Edit Video Details" section. Slightly inconvenient to go back one page, select the video and then move the video to another category.
  19. flashpoint

    Videobox

    Shame 😞. What about using HTML5's canvas feature? That should be supported on all modern browsers. Edit: Also another idea, limited amount of views for specific user groups? Didn't seem to see that anywhere in the options unless I am blind 😄
  20. flashpoint

    Videobox

    Most hosting providers will install it upon request. You could have a off/on option on the admin panel. It'd be very helpful for people to have 🥰
  21. Managed to figure it out. My host doesn't allow snapshots 😐
  22. Hey, I can't seem to create snapshots keep getting the following error: "An error occured while creating the snapshot."
  23. Hi there, I am trying to use the serial key API that comes with commerce but I am having some issues. At first I tried to use the one that is in the reference library under the licenses section but I was unable to use it to mark a key as used (the GET/POST - /api/nexus/lkey/). Then I found this guide: but the problem is that I am unable to get any of it to work. I keep getting a "{"errorCode":0,"errorMessage":"BAD_METHOD"}" error. The way I am using it is: mydomain.com/applications/nexus/interface/licenses/?info?key=0788-IMOJ-3J17-UBUN-MY1X I did not use an identifier with the product so I am assuming one is not needed? I'd appreciate if someone could show me an example. Thanks for your time and help! Edit: I did it, I think I misspelled something, or something...
×
×
  • Create New...