aspose file tools*
The moose likes JForum and the fly likes Moved topics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "Moved topics" Watch "Moved topics" New topic
Author

Moved topics

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
When i move the topic then in forum stay the "shadow" of moved topic. What i need to do for delete this "shadow"?
[originally posted on jforum.net by Rotoz]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
The easier way is to change the sql query. Open the file WEB-INF/config/database/generic/generic_queries.sql (if you're using MySQL), search for "TopicModel.selectAllByForumByLimit" and change it to



Please note that the "\" is not optional, and there should be no blank space after it.

Rafael

[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I'm not sure to understand, what does your modification?

I don't really get the logic behind the move topic hint: The seem to be there forever? they apparently can't be deleted (checkbox is disabled). If the topic itself is deleted the link stay anyway.


[originally posted on jforum.net by pala]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Apparently, links are being deleted when the topic is deleted, it is just a cache bug.
[originally posted on jforum.net by pala]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Yes, the hint is there "forever". I'll make this optional in JForum3. What the modified query does is to not bring moved topics as well.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Moved topics
 
Similar Threads
Cutting Edge Technology!!!
What are the most important issues facing the US today?
List, ArrayList and Generics as UML
Signed Applet writing to file
How to continously key in elements of a String[ ]