[BETA]Move Topic to the top

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! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply
User avatar
hawk
Registered User
Posts: 44
Joined: Wed Nov 14, 2001 7:09 pm

[BETA]Move Topic to the top

Post by hawk » Wed Oct 01, 2003 4:52 pm

I made this mod as i had many unrelevant posts in a topic, and as i wanted to get topics to the top without having to make a "bump-post" i made this.

You can download the mod here

Code: Select all

#############################################################
## MOD Title:          Move Topics to the top
## MOD Author:         Hawk @ http://www.oddsen.nu
## MOD Description:    This Mod allows admins to move a topic
##                     to the top of the forum, without being
##                     sticky. 
##
##                     Usefull for those how'd like to bump up
##                     a old topic in refrence to later discussions
##                     
## Mod Version:        1.0.3
## Compatibility:      2.0.4 ->
##
## Installation Level: Easy
## Installation Time:  5 minutes
## Files To Edit:      1
##                     ./viewtopic.php
##
## Included Files:     1
##
##############################################################
Last edited by hawk on Thu Oct 02, 2003 7:58 pm, edited 2 times in total.

User avatar
morpheus2matrix
Former Team Member
Posts: 9171
Joined: Wed Apr 10, 2002 7:31 pm
Location: France
Contact:

Post by morpheus2matrix » Wed Oct 01, 2003 5:42 pm

just a little help :

- in the file top.txt, you forgot to explain that we need to upload the file top.php :wink:
- in top.php, you are not using the phpBB DBAL . Also, you are using $_GET : for PHP compatibilities, use $HTTP_GET_VARS instead
Former phpBB MOD-Team Member -

Forgive my bad English :(

No support by PM/Email - Thanks - You can thanks me here :) - Pay me for installing MOD's :lol:

User avatar
hawk
Registered User
Posts: 44
Joined: Wed Nov 14, 2001 7:09 pm

Post by hawk » Wed Oct 01, 2003 5:57 pm

Thank you for pointing that out. I have edited the files on the site

User avatar
hawk
Registered User
Posts: 44
Joined: Wed Nov 14, 2001 7:09 pm

Post by hawk » Wed Oct 01, 2003 9:03 pm

Found an error if someone for some reason should move the latest topic to the top.

The field forum_last_post_id would not be correct as it doesn't exist anymore, and it will be displayed as blank in the forum index. I've fixed this in the latest version. (1.0.2) which is available to download from the link above

hartlijn
Registered User
Posts: 36
Joined: Sat Oct 20, 2001 11:32 pm

Post by hartlijn » Thu Oct 02, 2003 7:38 pm

nice mod!
I like to use it.

the txt file says find $topic mod .=
it has to be $topic_mod .= (with underscore)

also top.php says some specific things for your site:
header("Location: http://forum.oddsen.nu");

this script does not work if people have not the standard name for the phpbb tables.

User avatar
hawk
Registered User
Posts: 44
Joined: Wed Nov 14, 2001 7:09 pm

Post by hawk » Thu Oct 02, 2003 7:44 pm

Thank you.

I will definately fix these unfortunate errors right now. Update will be available within 5 minutes.

User avatar
hawk
Registered User
Posts: 44
Joined: Wed Nov 14, 2001 7:09 pm

Post by hawk » Thu Oct 02, 2003 8:00 pm

Update is available now, and should support all versions from 2.0.4 and up.

Regards,
Thomas

Post Reply

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