[RC] Prime Topic Move - add a reason & link to move it back

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Ideas Centre
Abera
Registered User
Posts: 674
Joined: Mon Jan 15, 2007 1:26 am

Re: [RC] Prime Topic Move - add a reason & link to move it back

Post by Abera »

I may be speaking out of turn here, but I don't like leaving shadow copies. It seems to be redundant and not serving the purpose of moving the topic. Is there anyway you could just leave an icon where it was and where it was moved to, or am I missing something? I see in the phpbb forum that posts are moved all of the time.
Thanks
User avatar
primehalo
Former Team Member
Posts: 2992
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA

Re: [RC] Prime Topic Move - add a reason & link to move it back

Post by primehalo »

This MOD doesn't create shadow topics. The board creates shadow topics (if you select the option to do so). This MOD adds information about the move and allows the topic to be quickly moved back.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
cisco007
Translator
Posts: 129
Joined: Mon Jul 14, 2008 1:49 am

Re: [RC] Prime Topic Move - add a reason & link to move it back

Post by cisco007 »

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/prime_topic_move.php on line 176: Undefined index: topic_moved_from
[phpBB Debug] PHP Notice: in file /includes/prime_topic_move.php on line 176: Undefined index: topic_moved_from
I have this mod installed, and i never notice it before, but when i have config.php debug set that's the error i get on the header when i look at a topic, and i have never deleted or moved a topic!
Image
User avatar
primehalo
Former Team Member
Posts: 2992
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA

Re: [RC] Prime Topic Move - add a reason & link to move it back

Post by primehalo »

Just uploaded the fix.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
cisco007
Translator
Posts: 129
Joined: Mon Jul 14, 2008 1:49 am

Re: [RC] Prime Topic Move - add a reason & link to move it back

Post by cisco007 »

excelent work my friend that fixed up i just uploaded and overwrote the other files! :D
Image
User avatar
Stitch625
Registered User
Posts: 683
Joined: Wed Jun 20, 2007 3:38 pm
Location: Michigan

Re: [BETA] Prime Topic Moved Info (0.1.2)

Post by Stitch625 »

primehalo wrote:Version 0.1.2 now has the ability to display the moved information on the topic list near the shadow link. This only works if a shadow was left behind when the topic was moved. Also, phpbb3 only shows shadow topics if the user viewing the topic list has permission to view the forum that the topic was moved to.
First of all thank you very much for this useful mod. It is going to make my life a lot easier. One thing I am not sure I understand though. Is there supposed to be a reason in the shadow link in viewforum? Because I am not seeing it and I do have Show with shadow link in forum list checked

Thanks
User avatar
primehalo
Former Team Member
Posts: 2992
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA

Re: [RC] Prime Topic Move - add a reason & link to move it back

Post by primehalo »

Yes, it should display the reason for the move underneath the shadow link to the topic in viewforum, assuming a reason was entered when the topic was moved.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
Stitch625
Registered User
Posts: 683
Joined: Wed Jun 20, 2007 3:38 pm
Location: Michigan

Re: [RC] Prime Topic Move - add a reason & link to move it back

Post by Stitch625 »

Thank you for your reply but I am not seeing anything but the "Moved" message:
Here is a screen shot:
Image

What could be wrong. The reason is showing in viewtopic. I have double checked my edits but I will check them a 3rd time.

EDIT:
I just now noticed something. In the install instructions for subsilver2 it says there are supposed to be 2 template files to upload but there is only one with the download package:
Included Files
root/styles/subsilver2/template/prime_topic_moved_msg.html,
root/styles/subsilver2/template/prime_topic_moved_to.html
I only have this:
prime_topic_move.html
What I find strange is the this file isn't even listed above.
User avatar
primehalo
Former Team Member
Posts: 2992
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA

Re: [RC] Prime Topic Move - add a reason & link to move it back

Post by primehalo »

The instructions are incorrect, as prime_topic_move.html is now the only HTML file. Must have just forgotten to update the subsilver2 instructions, but this would have no effect on your issue.

Check the subsilver2 edit instruction for this file: styles/subsilver2/template/viewforum_body.html
The edit for that file is what puts the move info and reason underneath the shadow link.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
Stitch625
Registered User
Posts: 683
Joined: Wed Jun 20, 2007 3:38 pm
Location: Michigan

Re: [RC] Prime Topic Move - add a reason & link to move it back

Post by Stitch625 »

Ahh ok I got it figured out. I should have remembered this from a few mods I have written:

In the viewforum_body.html file you have to do this twice:
Find
Tip: This may be a partial find and not the whole line.

<!-- IF topicrow.PAGINATION -->
<p class="gensmall"> [ {GOTO_PAGE_IMG}{L_GOTO_PAGE}: {topicrow.PAGINATION} ] </p>
<!-- ENDIF -->
Add after
<!-- IF topicrow.TOPIC_MOVED_MESSAGE -->{topicrow.TOPIC_MOVED_MESSAGE}<!-- ENDIF -->
There is one instance near the top of the file and one near the end: Thanks again for a great outstanding mod. :)
Lord Phobos
Registered User
Posts: 937
Joined: Tue May 18, 2004 11:41 pm

Re: [RC] Prime Topic Move - add a reason & link to move it back

Post by Lord Phobos »

I have 1.0.1 version installed of your mod and I want to upgrade, but in the contrib folder there is no file to upgrade 1.0.1 to 1.0.2.

Maybe you forgot that?

Thanks.
wolfman24
Registered User
Posts: 387
Joined: Tue Mar 07, 2006 12:07 pm

Re: [RC] Prime Topic Move - add a reason & link to move it back

Post by wolfman24 »

If you look into the install.xml, it says
2008-06-07 - Version1.0.2
Forgot to include two global variables in the get_msg_moved_topic_to() function.
This function is in one of the files, so there is no upgrade instruction as you replace the included files nonetheless.
Lord Phobos
Registered User
Posts: 937
Joined: Tue May 18, 2004 11:41 pm

Re: [RC] Prime Topic Move - add a reason & link to move it back

Post by Lord Phobos »

Ok, updated the mod to the last version, deleted the db, and made the last db edits.

But... when I click to move a topic, there isn't any field in which to insert a message.
What is wrong?
User avatar
primehalo
Former Team Member
Posts: 2992
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA

Re: [RC] Prime Topic Move - add a reason & link to move it back

Post by primehalo »

No idea, it's working fine for me.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
Lord Phobos
Registered User
Posts: 937
Joined: Tue May 18, 2004 11:41 pm

Re: [RC] Prime Topic Move - add a reason & link to move it back

Post by Lord Phobos »

Err... ok, what should I look at?

Return to “[3.0.x] MODs in Development”