[ABD] Viewforum Locked Topic Strikethrough 0.1.0

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.
afterlife_69
I've Been Banned!
Posts: 630
Joined: Tue Nov 30, 2004 10:35 am

[ABD] Viewforum Locked Topic Strikethrough 0.1.0

Post 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 
##############################################################

phantomk
Registered User
Posts: 1039
Joined: Wed Apr 14, 2004 5:32 am
Location: Canada Eh?
Name: Daniel Lee
Contact:

Post 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,

afterlife_69
I've Been Banned!
Posts: 630
Joined: Tue Nov 30, 2004 10:35 am

Post 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?

phantomk
Registered User
Posts: 1039
Joined: Wed Apr 14, 2004 5:32 am
Location: Canada Eh?
Name: Daniel Lee
Contact:

Post by phantomk »

2.1.X series of course :) You should update the latest version, alot more powerfull and lighter on the server load.

afterlife_69
I've Been Banned!
Posts: 630
Joined: Tue Nov 30, 2004 10:35 am

Post 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 :|

phantomk
Registered User
Posts: 1039
Joined: Wed Apr 14, 2004 5:32 am
Location: Canada Eh?
Name: Daniel Lee
Contact:

Post by phantomk »

It does take some getting used to, but you should update ;)

afterlife_69
I've Been Banned!
Posts: 630
Joined: Tue Nov 30, 2004 10:35 am

Post by afterlife_69 »

meh, don't really care about server-load :P im running ADR so it wouldnt make a diff. :|

Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 26132
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Post 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 ;)

afterlife_69
I've Been Banned!
Posts: 630
Joined: Tue Nov 30, 2004 10:35 am

Post by afterlife_69 »

lol, thats the reason not many people use it... its wayyy overdone.

phantomk
Registered User
Posts: 1039
Joined: Wed Apr 14, 2004 5:32 am
Location: Canada Eh?
Name: Daniel Lee
Contact:

Post by phantomk »

Let's not turn this into a disscussion about CH ;)

User avatar
stickerboy
Former Team Member
Posts: 7349
Joined: Mon Mar 29, 2004 2:27 pm
Location: Airdrie, UK (127.0.0.1)
Name: Kenny Cameron
Contact:

Post 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 :?
I'm a web-designing code-decrypting tech-support musician
|| Twitter || Flickr || phpBB Snippets ||
Formerly known as cherokee red

Rapid Dr3am
Registered User
Posts: 198
Joined: Sun Jul 13, 2003 4:14 pm
Location: Incommunicado
Contact:

Post by Rapid Dr3am »

Didn't Acecool already do this a few years back?

User avatar
stickerboy
Former Team Member
Posts: 7349
Joined: Mon Mar 29, 2004 2:27 pm
Location: Airdrie, UK (127.0.0.1)
Name: Kenny Cameron
Contact:

Post 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
I'm a web-designing code-decrypting tech-support musician
|| Twitter || Flickr || phpBB Snippets ||
Formerly known as cherokee red

phantomk
Registered User
Posts: 1039
Joined: Wed Apr 14, 2004 5:32 am
Location: Canada Eh?
Name: Daniel Lee
Contact:

Post 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*" ;)

afterlife_69
I've Been Banned!
Posts: 630
Joined: Tue Nov 30, 2004 10:35 am

Post by afterlife_69 »

:| oh well... now theres 2 :D

Locked

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