mishelk wrote:Rafael, I'm afraid it is not true.
You are right in that after a forum deletion links to it still present in database.
However, I used only standard JForum admins's possibilities.
I repeated this situation: as admin I created new forum, then created some new topics in it, then removed this new forum.
Result: I still see these new topics in database.
mishelk wrote:
I have the next question: how can I create new forum programmatically ?
For example, if my application has description info for some companies and it is desirable to create company's forum or category with forum automatically after new company creation.
Is it possible ?
mishelk wrote:Rafael, let me describe my temporary solution to avoid this bug
1. I added the next snippet of code:
FOREIGN KEY (forum_id)
REFERENCES jforum_forums (forum_id)
ON DELETE CASCADE
into all tables using forum_id field, i.e. jforum_posts,
jforum_topics, jforum_search_topics. This step ensures deletion
suitable topics from database after forum deletion
mishelk wrote:
Draw attention, please, forum_id field in mysql_db_struct.sql
has smallint(5) type in jforum_forums and jforum_posts tables, but
smallint(8) type in jforum_topics and jforum_search_topics tables.
Is it correct ?
mishelk wrote:
The next my note about hyperlinks. If I install forum at address
http://www.mycompany.com:8080/forum, when I point mouse pointer to logo I see "http://www.mycompany.com:8080/forum/forums/list.page" link, i.e. link to forum's homepage. However, when I point to "Back to home page" link I see "http://localhost:8080/forum" link. If I press this link I get "HTTP Status 503 - This application is not currently available" error.
I suppose it is a bug.
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |