Recent content by shqawe

  1. shqawe

    Upgrade from 2.3.4 too 2.3.6

    I think you can alter the table by convert the type of oauth_request_id column from varchar to text then after finish the upgrade return it back to varchar i did that for many customers. special who migrate from vBulletin to Xenforo.
  2. shqawe

    XF 2.3 Help to extends Account Controller

    @Siropu thanks for your reply i found the problem it was from the route once i delete it every things work fine. That's what happen when coding without a cup of coffee 😁.
  3. shqawe

    XF 2.3 Help to extends Account Controller

    I tried to extends MemberController and it's work like a charm but when i extends AccountController it didn't work and i got above error i think maybe this is a bug or there is a special way to extends AccountController
  4. shqawe

    XF 2.3 Help to extends Account Controller

    I'm trying to extends Account controller for one of my addons but i'm facing problem with that This is how i extends the controller: namespace shqawe\myaddon\XF\Pub\Controller; class AccountController extends XFCP_AccountController { // some functions } Class extension configurations...
  5. shqawe

    XF 2.2 Explode in isMemberOf() in template?

    If you want to check if user belong to group use in_array i don't know what look like this option comma_delimited_groups_custom_mod_option but it should be user group callback and if it's you can check in template like this <xf:if is="in_array($xf.visitor.user_group_id...
  6. shqawe

    XF 2.3 Adding an option

    I think you need to add new enum column in note table with values ['private', 'member_only', 'public'], Then when the user create note he can select type of this note. Then you can show note based on this new column for example: <!-- when note is private --> <xf:if is="$note.note_type ==...
  7. shqawe

    XF 2.3 multiple upload button in form

    I want to add new resource type for purchasable resource and i want be able to upload addon for this new type. The problem is when i upload the file it came under uploaded files not under purchasable resource. So how i can add more than one upload button at the same form.
  8. shqawe

    Confirmed 2.3.2 Data too long for column 'embed_metadata

    No it's the default 10,000. I thinks the best one is to skip this with warning message for the posts which have this max data with post id and thread id. I am talking here spacial when we run rebuild cache.
  9. shqawe

    Confirmed 2.3.2 Data too long for column 'embed_metadata

    Unfortunately @Chris D i deleted it. Your are right after i modified many posts i found the problem is from some images it post it as binary and i think this is the actual problem.
  10. shqawe

    Confirmed 2.3.2 Data too long for column 'embed_metadata

    Yes post 274929 have a lot of bbcodes from vb like this code for example [30] Once i remove these code the rebuild process continue and stop again with same error with many posts which have same bbcodes. So what i did to continue the rebuild process is i have to change every post manually to...
  11. shqawe

    Confirmed 2.3.2 Data too long for column 'embed_metadata

    When i try to Rebuild post embed metadata i got this error UPDATE `xf_post` SET `embed_metadata` = ? WHERE `post_id` = 274929 ------------ #0 src/XF/Db/Mysqli/Statement.php(207): XF\Db\AbstractStatement->getException('MySQL query err...', 1406, '22001') #1 src/XF/Db/Mysqli/Statement.php(86)...
  12. shqawe

    Add-on Update a 2.2 add-on by XenBulletin to 2.3?

    If you are still need to upgrade this addon contact me on DM.
  13. shqawe

    Fixed Form not cleared after posting report

    After posting report successfully if you click the report button again you will see the message report still there and not cleared. Some quick solutions i was tested it: First solution: I change data-skip-overlay-redirect in report_create template to false to refresh the page and clear form...
  14. shqawe

    XF 2.2 Members and visitors in wordpress homepage

    Simply inject this code to your wp plugin: $dir = '/var/www/html/xf'; require($dir . '/src/XF.php'); \XF::start($dir); $visitor = \XF::visitor(); \XF::dump(\XF::app()->forumStatistics); Output will be array ["threads"]=> string(2) "20" ["messages"]=> string(2) "49" ["users"]=>...
  15. shqawe

    XF 2.3 Phrases and Javascript

    You need to listene to DOMContentLoaded event. What i'm doning in my addons usually i create a template or macro just for js phrases and config then i add my phrases like this: <xf:macro id="addon_js_macros"> <script> window.addEventListener('DOMContentLoaded', () => {...
Back
Top Bottom