Page 1 of 2

[ABD] Viewforum Locked Topic Strikethrough 0.1.0

Posted: Thu Sep 15, 2005 3:50 am
by afterlife_69
Download: http://www.meetthe1337.com/scripts/gv_u ... 4L8M3E.txt
Demo: http://www.meetthe1337.com/phpBB/viewforum.php?f=5

Code: Select all

##############################################################
## MOD Title: Strike locked topics
## MOD Author: Afterlife_69 < afterlife69[at]gmail[dot]com > (Dean Newman) http://www.meetthe1337.com
## MOD Description: Small cosmetics tweak that will put a strike through all locked topics that are not stickys or announcements.
## MOD Version: 0.1.0
## 
## Installation Level: Easy
## Installation Time: 2 minutes
## Files To Edit: viewforum.php
## Included Files: 
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes: inspired by the one at phpbb-adr.com
##############################################################
## MOD History:
## 
##	2005-09-15 - Version 0.1.0
##	- Released
## 
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################

Posted: Thu Sep 15, 2005 4:11 am
by phantomk
For Cat Hierarchy

OPEN
includes/class_topics.php

FIND

Code: Select all

		// send to template
		$template->assign_block_vars('topicrow', array(
			'L_HEADER_TITLE' => $user->lang($header_title),
BEFORE ADD

Code: Select all

//-- mod : Strike Locked Topics ------------------------------------------------
//-- add
		if( $row['topic_status'] == TOPIC_LOCKED && $row['topic_type'] == POST_NORMAL )
		{
			$topic_title = '<s>&nbsp;' . _censor($row['topic_title']) . '&nbsp;</s>';
		}
		else
		{
			$topic_title = _censor($row['topic_title']);
		}
//-- fin mod : Strike Locked Topics --------------------------------------------
FIND

Code: Select all

			'TOPIC_TITLE' => _censor($row['topic_title']),
REPLACE WITH

Code: Select all

			'TOPIC_TITLE' => $topic_title,

Posted: Thu Sep 15, 2005 4:17 am
by afterlife_69
actuly im using CH 2.0.4 and its working fine as-is.
or did you mean the CH 2.1.X series?

Posted: Thu Sep 15, 2005 4:24 am
by phantomk
2.1.X series of course :) You should update the latest version, alot more powerfull and lighter on the server load.

Posted: Thu Sep 15, 2005 4:26 am
by afterlife_69
well i would... but frankly i hate it lol, the classic series was alot more user-friendly.

last time i tryed 2.1.X i spent like 3hours trying to figure out permissions :|

Posted: Thu Sep 15, 2005 4:38 am
by phantomk
It does take some getting used to, but you should update ;)

Posted: Thu Sep 15, 2005 4:53 am
by afterlife_69
meh, don't really care about server-load :P im running ADR so it wouldnt make a diff. :|

Posted: Thu Sep 15, 2005 9:22 am
by Paul
phantomk wrote: It does take some getting used to, but you should update ;)
I run it three months on my site, and after that, I am crazy, becasue I must everytime search a hour for a function ;)

Posted: Thu Sep 15, 2005 5:01 pm
by afterlife_69
lol, thats the reason not many people use it... its wayyy overdone.

Posted: Thu Sep 15, 2005 5:08 pm
by phantomk
Let's not turn this into a disscussion about CH ;)

Posted: Thu Sep 15, 2005 9:01 pm
by stickerboy
not sure why, but this MOD doesn't seem to work on my forums.
I noticed that in your MOD file,

Code: Select all

 '' . $topic_title . ''
is striked out - but if i transfer that text into my FTP prog (Flash FXP 3), it looses the strike :?

Posted: Thu Sep 15, 2005 10:13 pm
by Rapid Dr3am
Didn't Acecool already do this a few years back?

Posted: Thu Sep 15, 2005 10:33 pm
by stickerboy
Rapid Dr3am wrote: Didn't Acecool already do this a few years back?

yup :) >> http://www.phpbb.com/phpBB/viewtopic.ph ... highlight=
*edit* acecool's works btw :? but not for stickies or announcements though

Posted: Fri Sep 16, 2005 12:18 am
by phantomk
You don't want it to work for stickies or annoucments. Because you usually have information as a sticky or annoucement that you want ppl to read, if you have a strickthough in the title it makes it hard to read and ppl aren't as interested in "IMPORTANT *Readme Before Posting*" ;)

Posted: Fri Sep 16, 2005 3:01 pm
by afterlife_69
:| oh well... now theres 2 :D