Premium
Developer
Jun 11, 2020
541
405
63
021 submitted a new resource:

[021] ChatGPT Title Corrector - Helps to make the better title for a thread based on a first post.

Improve thread titles with ChatGPT ✏️​

Finally! FINALLY! You will be able to get thread titles from users that reflect the essence of the thread.
And you can do it thanks to ChatGPT and this add-on.
This will help improve the SEO of your forum and make it more friendly.

User view 👀​

When publishing a thread, next to the "Post thread" button, there will be a "Title suggestions" button.
Clicking this button will open a form with suggested titles based on...

Read more about this resource...
 
Apr 19, 2023
3
1
3
Hi, I don't why but I get this error message when I try to install it:

ParseError: syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ',' or ')' in src/addons/BS/ChatGPTTitleCorrector/Setup.php at line 37
  1. Composer\Autoload\includeFile() in src/vendor/composer/ClassLoader.php at line 428
  2. Composer\Autoload\ClassLoader->loadClass()
  3. spl_autoload_call() in src/XF/AddOn/AddOn.php at line 455
  4. XF\AddOn\AddOn->checkRequirements() in src/XF/Admin/Controller/AddOn.php at line 841
  5. XF\Admin\Controller\AddOn->getAddOnWarningsAndErrors() in src/XF/Admin/Controller/AddOn.php at line 387
  6. XF\Admin\Controller\AddOn->actionInstall() in src/XF/Mvc/Dispatcher.php at line 352
  7. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 263
  8. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
  9. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
  10. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2483
  11. XF\App->run() in src/XF.php at line 524
  12. XF::runApp() in admin.php at line 13
 
Premium
Developer
Jun 11, 2020
541
405
63
Hi, I don't why but I get this error message when I try to install it:

ParseError: syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ',' or ')' in src/addons/BS/ChatGPTTitleCorrector/Setup.php at line 37
  1. Composer\Autoload\includeFile() in src/vendor/composer/ClassLoader.php at line 428
  2. Composer\Autoload\ClassLoader->loadClass()
  3. spl_autoload_call() in src/XF/AddOn/AddOn.php at line 455
  4. XF\AddOn\AddOn->checkRequirements() in src/XF/Admin/Controller/AddOn.php at line 841
  5. XF\Admin\Controller\AddOn->getAddOnWarningsAndErrors() in src/XF/Admin/Controller/AddOn.php at line 387
  6. XF\Admin\Controller\AddOn->actionInstall() in src/XF/Mvc/Dispatcher.php at line 352
  7. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 263
  8. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
  9. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
  10. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2483
  11. XF\App->run() in src/XF.php at line 524
  12. XF::runApp() in admin.php at line 13
Hello. The minimum PHP version for the add-on to work is 7.4
 
Apr 19, 2023
3
1
3
Hi, it works fine with PHP 7.4. However, we encounter issues when there are a lot of threads or discussions (more than 300) for a batch upgrade. We experience a 'Time out 504' error or a server problem because the process takes too long. As a result, we have to start over again. Perhaps, in the next upgrade, this issue can be fixed.
 
Premium
Developer
Jun 11, 2020
541
405
63
Hi, it works fine with PHP 7.4. However, we encounter issues when there are a lot of threads or discussions (more than 300) for a batch upgrade. We experience a 'Time out 504' error or a server problem because the process takes too long. As a result, we have to start over again. Perhaps, in the next upgrade, this issue can be fixed.
Hello,

There are two solutions for this:
1. Increase the max_execution_time setting in php.ini
2. Decrease jobMaxRunTime in the forum config (https://xenforo.com/docs/xf2/config/#other-variables)

Regards,
021
 
Mar 11, 2023
9
2
3
Code:
[LIST]
[*]XF\Db\DuplicateKeyException: MySQL query error [1062]: Duplicate entry '6-1212315' for key 'xf_bs_ctc_thread_batch_correct.PRIMARY'
[*]src/XF/Db/AbstractStatement.php:230
[*]Generated by: X
[*]Apr 26, 2023 at 8:46 PM
[/LIST]
[HEADING=2]Stack trace[/HEADING]
INSERT  INTO `xf_bs_ctc_thread_batch_correct` (`batch_id`, `thread_id`, `suggestions`, `created_at`) VALUES (?, ?, ?, ?)
------------


One of my conversions crapped out as I closed it on mistake, page refreshed and yeah. I would rather not truncate the offending row.

Code:
#0 src/XF/Db/Mysqli/Statement.php(198): XF\Db\AbstractStatement->getException('MySQL query err...', 1062, '23000')
#1 src/XF/Db/Mysqli/Statement.php(79): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1062, '23000')
#2 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(220): XF\Db\AbstractAdapter->query('INSERT  INTO `x...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1521): XF\Db\AbstractAdapter->insert('xf_bs_ctc_threa...', Array, false)
#5 src/XF/Mvc/Entity/Entity.php(1253): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/addons/BS/ChatGPTTitleCorrector/Service/ThreadBatchCorrect.php(78): XF\Mvc\Entity\Entity->save()
#7 src/addons/BS/ChatGPTTitleCorrector/Service/ThreadBatchCorrect.php(48): BS\ChatGPTTitleCorrector\Service\ThreadBatchCorrect->createSuggestionsForThread(6, Object(SV\SearchImprovements\XF\Entity\ThreadCollab), 1)
#8 src/addons/BS/ChatGPTTitleCorrector/Admin/Controller/ThreadBatchCorrect.php(154): BS\ChatGPTTitleCorrector\Service\ThreadBatchCorrect->createSuggestionsForThreads(6, Array, NULL, 1212315, 51, 1)
#9 src/XF/Mvc/Dispatcher.php(352): BS\ChatGPTTitleCorrector\Admin\Controller\ThreadBatchCorrect->actionAction(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('BS\\ChatGPTTitle...', 'Action', Object(XF\Mvc\RouteMatch), Object(BS\ChatGPTTitleCorrector\Admin\Controller\ThreadBatchCorrect), NULL)
#11 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(BS\ChatGPTTitleCorrector\Admin\Controller\ThreadBatchCorrect), NULL)
#12 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2483): XF\Mvc\Dispatcher->run()
#14 src/XF.php(524): XF\App->run()
#15 admin.php(13): XF::runApp('XF\\Admin\\App')
#16 {main}

Code:
array(4) {
  ["url"] => string(50) "/admin.php?threads/chat-gpt-title-corrector/action"
  ["referrer"] => string(76) "https://forum.domain.com/admin.php?threads/chat-gpt-title-corrector/action"
  ["_GET"] => array(1) {
    ["threads/chat-gpt-title-corrector/action"] => string(0) ""
  }
  ["_POST"] => array(7) {
    ["action"] => string(4) "auto"
    ["batch_id"] => string(1) "6"
    ["start"] => string(7) "1212283"
    ["count"] => string(2) "50"
    ["params"] => string(25) "{"suggestions_count":"1"}"
    ["thread_ids"] => string(4001) "[1213199,1213210,1213152,1212908,1213209,1209775,1213179,1212951,1213186,1213194,1213206,1213207,1213205,1213203,1213202,1213201,1213198,1213197,1213190,1213170,1213192,1213191,1213189,1213188,1208154,1213187,1213185,1213180,1213184,1213181,1209818,1213168,1213171,1212228,1213177,1213172,1213176,1209285,1212940,1206150,1213166,1213165,1213163,1213162,1213118,1213159,1213022,1213158,1213157,1213156,1213155,1213153,1213151,1211028,1213112,1213146,1213026,1213141,1213140,1213138,1213137,1213134,1213133,1213132,1212945,1213131,1213130,1213129,1213127,1213126,1213124,1212877,1213122,1212983,1213120,1213050,1213119,1213116,1213114,1213113,1213111,1213109,1213106,1213104,1213102,1211635,1213101,1213100,1211265,1213096,1212040,1213094,1213093,1213090,1213088,1213086,1213079,1213085,1212338,1213084,1213082,1213080,1213066,1213078,1213077,1213076,1213075,1213074,1213073,1212915,1211173,1213071,1213068,1213065,1213064,1213062,1213061,1213060,1213059,1212993,1212948,1212960,1212549,1213058,1212784,1213010,1211038,1213053,1213052,1213051,1213049,1213047,1213046,1212924,1213045,1213041,1212457,1213040,1213039,1213038,1213020,1213037,1208104,1213036,1213035,1213034,1211958,1212928,1213032,1212472,1213030,1211683,1213029,1213028,1212538,1210266,1213025,1213023,1213021,1208728,1213017,1212968,1213016,1212863,1213015,1213014,1206092,1213013,1212999,1207925,1212977,1213005,1213004,1213003,1213002,1212918,1213001,1212935,1211270,1212998,1212997,1212995,1212994,1212818,1212628,1212992,1212991,1212990,1212989,1212988,1212984,1212982,1212980,1212933,1212979,1212978,1212975,1212974,1212973,1212970,1212967,1212775,1212964,1212793,1211235,1212963,1212962,1212961,1212958,1212957,1212955,1212920,1212954,1212953,1212950,1212949,1212946,1212942,1212923,1212941,1212642,1212939,1212936,1212932,1212807,1212931,1212930,1212929,1212927,1212926,1212925,1212922,1212921,1212919,1211857,1212136,1212909,1209955,1212907,1212906,1212904,1212903,1212902,1212900,1212899,1212898,1212897,1212896,1212819,1212895,1212894,1212893,1212890,1212882,1212830,1212888,1212887,1212886,1212885,1212849,1212881,1212878,1212858,1212782,1212620,1212870,1212872,1212811,1212869,1212868,1212867,1212865,1212866,1212825,1212864,1212862,1212855,1212854,1212853,1212851,1212848,1212847,1212845,1212844,1212841,1212843,1212842,1212839,1212832,1212834,1212833,1212836,1212829,1212704,1212828,1212824,1212683,1212823,1212820,1212813,1212816,1212817,1212526,1211648,1212632,1211883,1212316,1212283,1212749,1212812,1212444,1212797,1212805,1212804,1208105,1212233,1212796,1212798,1212693,1212440,1207323,1212787,1212783,1212785,1212786,1212746,1212781,1212779,1212696,1212692,1212711,1212774,1212772,1212771,1212770,1212650,1212750,1211686,1212751,1212753,1212765,1211295,1211937,1212764,1212763,1212754,1212762,1210302,1212761,1212760,1212759,1212130,1212758,1212755,1212720,1212752,1212062,1212718,1212690,1212695,1212694,1212697,1212707,1212709,1212710,1212714,1212722,1212731,1212735,1212737,1212738,1212739,1212740,1212742,1212743,1212745,1212651,1212421,1210993,1212734,1211545,1212728,1212732,1212729,1211974,1212725,1206898,1212723,1212705,1212083,1212706,1212698,1212691,1212381,1212689,1212687,1212688,1212615,1212686,1212682,1212649,1212639,1212641,1212652,1212654,1212660,1212667,1212668,1212669,1212670,1212675,1212681,1212673,1211983,1212666,1212662,1212661,1212655,1212517,1212647,1212644,1212643,1212625,1212626,1212631,1212584,1212633,1212630,1212595,1212629,1212315,1212627,1212624,1212500,1212622,1212623,1212613,1212619,1212617,1212611,1212199,1212608,1212528,1212604,1212603,1212602,1212600,1212556,1212598,1212596,1212057,1212594,1212593,1212591,1210761,1212588,1212589,1212344,1212568,1212555,1210952,1212574,1212576,1212575,1207474,1212571,1212569,1212570,1212567,1207510,1212566,1212565,1212564,1212561,1212560,1212557,1212553,1212552,1212390,1212551,1212542,1212459,1212544,1212543,1212540,1212317,1212251,1212539,1212537,1212536,1212534,1212532,1212515,1212530,1212531,1212529,1212524,1212520,1210978,1212513]"
    ["_xfToken"] => string(8) "********"
  }
}

Thank you.
 
  • Like
Reactions: 021
Mar 4, 2023
6
6
3
It could be great if this addon could search for threads with less than x words in the title. For example, I want to run this against all threads with 2 words or less in the title, as these are the low-quality ones. Is that possible somehow?
 
Premium
Developer
Jun 11, 2020
541
405
63
It could be great if this addon could search for threads with less than x words in the title. For example, I want to run this against all threads with 2 words or less in the title, as these are the low-quality ones. Is that possible somehow?
At the moment, unfortunately, this is not possible. But you can leave your suggestion in this section.

Best regards,
021
 
  • Like
Reactions: nrep
Mar 23, 2023
19
7
3
Can I fix the prompt in the BotHelper.php file? And then the bot gives out titles in the wrong language.
 
Mar 23, 2023
19
7
3
After installing the mod, I discovered an error. The extended menu of the [Xen-Soluce] SEO Optimization mod disappears when creating a theme, and only the standard menu is available.
If you disable the ChatGPT Title Corrector, everything works perfectly.
 
Premium
Developer
Jun 11, 2020
541
405
63
Can I fix the prompt in the BotHelper.php file?
I do not recommend doing this, the functionality of the add-on can be completely broken.

And then the bot gives out titles in the wrong language.
Could you please show an example of a post on which the add-on does not work correctly?

After installing the mod, I discovered an error. The extended menu of the [Xen-Soluce] SEO Optimization mod disappears when creating a theme, and only the standard menu is available.
If you disable the ChatGPT Title Corrector, everything works perfectly.
Sorry, I don't have access to this add-on to test it.
 
Mar 23, 2023
19
7
3
Okay, how does one come across. So far, a common feature of all topics is the rather meager content of the 1st post.
 
Jun 19, 2024
4
0
1
@021 does this add-on supports other language like Turkish? And do you plan to continue developing the add-on for XenForo 2.3 as well?