2015-03-29, 12:12 PM
Hi,
Using Centos 7 on a VPS with MyBB 1.84.
My site is in development and due to go live in April. One of my last jobs was to go through all forum permissions as I had previously added several user groups and changed the default registered group to limited permissions.
While manually creating sitemap.xml I noticed the search-friendly forum numbers are all over the place. I realized the forum IDs are not in any sort of order due to me adding and deleting forums. Would this affect SEO?
I tried to kill two birds with one stone ie Reset my forum IDs and create group permissions at the same time. I deleted all my forums (over 100) with the intention of re-creating the category/forums and setting all the correct permissions in the first category and then using the copy forum function. I optimized the database then created the first category and the ID was 193 not 1.
After searching on-line I found this MyBB post which stated to uses the following command.
I thought this would reset the first category to ID 1 then all following categories/forums would auto-increment.
When using the sql command I received the following message -
Failed to execute SQL : SQL UPDATE
A look in the tables shows my-prefix_forums not forums so ran the mysql command
The command ran but with no output. When I tried to access the category it had disappeared from my website although it remains in the admin panel. I have now deleted it from the admin menu.
I have a snapshot before I started and also a snapshot with all my forums untouched so I can restore. As I currently have no categories or forums is there a sql command I can run to reset the forum IDs back to starting at ID 1?
Thanks for any help.
Philip
Using Centos 7 on a VPS with MyBB 1.84.
My site is in development and due to go live in April. One of my last jobs was to go through all forum permissions as I had previously added several user groups and changed the default registered group to limited permissions.
While manually creating sitemap.xml I noticed the search-friendly forum numbers are all over the place. I realized the forum IDs are not in any sort of order due to me adding and deleting forums. Would this affect SEO?
I tried to kill two birds with one stone ie Reset my forum IDs and create group permissions at the same time. I deleted all my forums (over 100) with the intention of re-creating the category/forums and setting all the correct permissions in the first category and then using the copy forum function. I optimized the database then created the first category and the ID was 193 not 1.
After searching on-line I found this MyBB post which stated to uses the following command.
UPDATE `forums` SET `fid` = '1' WHERE `fid` =193;
I thought this would reset the first category to ID 1 then all following categories/forums would auto-increment.
When using the sql command I received the following message -
Failed to execute SQL : SQL UPDATE
forums
SET fid
= '1' WHERE fid
=193; failed : Table 'table name.forums' doesn't existA look in the tables shows my-prefix_forums not forums so ran the mysql command
[code]UPDATE `myprefix_forums` SET `fid` = '1' WHERE `fid` =193;
[/code]The command ran but with no output. When I tried to access the category it had disappeared from my website although it remains in the admin panel. I have now deleted it from the admin menu.
I have a snapshot before I started and also a snapshot with all my forums untouched so I can restore. As I currently have no categories or forums is there a sql command I can run to reset the forum IDs back to starting at ID 1?
Thanks for any help.
Philip