Thank you so much for the great code!!
Its not working on 3315, but the main idea is awesome, i bit modified it and added new functions,
Accepts forum name and auto-creates it if missing
Automatically inserts missing forum into phpbb_forums
Includes all required fields like forum_rules, forum_parents, etc.
Adds correct left_id and right_id for forum nesting
Automatically clones permissions from working forum ID "7"
Copies both phpbb_acl_groups and phpbb_acl_users
Calls $auth->acl_clear_prefetch() to ensure frontend visibility
Replaced with raw SQL for full compatibility with phpBB 3.3+
Fully functional and visible immediately after script runs
Helpful echo outputs confirming every step
now working as charm i was able to generate hundreds of topics posts replies and so on, pure gold!
Processing: User ID=72, Date=1622476800, Forum=test-1-Topics, Post Type=topic, Topic Ref ID=101, Title=First Topic Title
Copied permissions from forum ID 7 to forum ID 30 Created topic ID 31 for reference ID 101 Processing: User ID=72, Date=1622480400, Forum=test-1-Topics, Post Type=reply, Topic Ref ID=101, Title=Re: First Topic Title Added reply to topic ID 31 Processing: User ID=72, Date=1622484000, Forum=test-1-Topics, Post Type=reply, Topic Ref ID=101, Title=Re: First Topic Title Added reply to topic ID 31 Processing: User ID=72, Date=1622487600, Forum=test-1-Topics, Post Type=topic, Topic Ref ID=102, Title=Second Topic Title Created topic ID 32 for reference ID 102 Processing: User ID=72, Date=1622491200, Forum=test-1-Topics, Post Type=reply, Topic Ref ID=102, Title=Re: Second Topic Title Added reply to topic ID 32 Processing: User ID=72, Date=1622494800, Forum=test-1-Topics, Post Type=reply, Topic Ref ID=102, Title=Re: Second Topic Title Added reply to topic ID 32
Its not working on 3315, but the main idea is awesome, i bit modified it and added new functions,
Accepts forum name and auto-creates it if missing
Automatically inserts missing forum into phpbb_forums
Includes all required fields like forum_rules, forum_parents, etc.
Adds correct left_id and right_id for forum nesting
Automatically clones permissions from working forum ID "7"
Copies both phpbb_acl_groups and phpbb_acl_users
Calls $auth->acl_clear_prefetch() to ensure frontend visibility
Replaced with raw SQL for full compatibility with phpBB 3.3+
Fully functional and visible immediately after script runs
Helpful echo outputs confirming every step
now working as charm i was able to generate hundreds of topics posts replies and so on, pure gold!
Processing: User ID=72, Date=1622476800, Forum=test-1-Topics, Post Type=topic, Topic Ref ID=101, Title=First Topic Title
Statistics: Posted by hgu6xopxirir4 — Tue Jun 24, 2025 6:48 pm