[MOD] Colored link if new post

Zelf bezig aan een modificatie? Wij kijken graag mee..
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gebruikersavatar
Paul
Beheerder
Beheerder
Berichten: 20206
Lid geworden op: 23 okt 2003, 11:38
Locatie: Utrecht
Contacteer:

Bericht door Paul » 20 nov 2005, 14:25


Gebruikersavatar
Bee
Berichten: 13403
Lid geworden op: 29 aug 2004, 10:30

Bericht door Bee » 20 nov 2005, 14:46

De meest voorkomende kleuren staan hier: http://nl.wikipedia.org/wiki/Lijst_van_HTML-kleuren
... Maar ik modereer (nog) niet.

miccom
Berichten: 1
Lid geworden op: 09 feb 2006, 12:17
Contacteer:

Bericht door miccom » 09 feb 2006, 12:18

thats it, what i'm searching for! :D

only a suggestion for this mod:
there are allready classes for this links, the are called "forumlink" and "topictitle" and maybe it is a better way to add a prefix/suffix to this classname like "forumlink-new" and "topictitle-new". instead of putting a class-definition into a php-file. and u can use different color on different styles.

i think, that is also the way the realised it here:
http://www.phpbbxs.com (a premodded phpbb)

pls keep up the work on this mod!

Gebruikersavatar
Mickroz
Berichten: 307
Lid geworden op: 05 nov 2005, 06:28
Locatie: Hoogvliet
Contacteer:

Bericht door Mickroz » 10 feb 2006, 21:15

nice deze zocht ik kon em alleen niet vinden!!
Als het niet gaat zoals het moet, dan moet het zoals het gaat!
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Forumer (n). 1) One who runs a forum or is an active member of one or more web forums.

Gebruikersavatar
Mickroz
Berichten: 307
Lid geworden op: 05 nov 2005, 06:28
Locatie: Hoogvliet
Contacteer:

Bericht door Mickroz » 15 feb 2006, 01:56

Code: Selecteer alles

# 
#-----[ OPEN ]------------------------------------------ 
# 

templates/subSilver/index_body.tpl 

# 
#-----[ FIND ]------------------------------------------ 
# 

<td class="row1" width="100%" height="50"> 

# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 

<span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a> 

# 
#-----[ IN-LINE REPLACE WITH ]------------------------------------------ 
# 

<span{catrow.forumrow.NEW_POSTS_LINK} class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a>
moet zijn:

Code: Selecteer alles

# 
#-----[ OPEN ]------------------------------------------ 
# 

templates/subSilver/index_body.tpl 

# 
#-----[ FIND ]------------------------------------------ 
# 

<td class="row1" width="100%" height="50"> 

# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 

<span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a> 

# 
#-----[ IN-LINE REPLACE WITH ]------------------------------------------ 
# 

<span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}"{catrow.forumrow.NEW_POSTS_LINK}>{catrow.forumrow.FORUM_NAME}</a>
en als er een nieuwe post is in een forum worden alle topics de kleur van een nieuw topic ipv alleen de nieuwe topics
Als het niet gaat zoals het moet, dan moet het zoals het gaat!
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Forumer (n). 1) One who runs a forum or is an active member of one or more web forums.

Gebruikersavatar
Mickroz
Berichten: 307
Lid geworden op: 05 nov 2005, 06:28
Locatie: Hoogvliet
Contacteer:

Bericht door Mickroz » 15 feb 2006, 02:45

dan maar helemaal goed :D

Code: Selecteer alles

##############################################################
## MOD Title: Colored link if new post
## MOD Author: DaMnNaTiOn < fy [at] frankyang [dot] net > (Frank Yang) http://www.frankyang.net
## MOD Author: Mickroz < mickroz [at] mickroz [dot] nl > (Mike Kros) http://www.mickroz.nl
## MOD Description: Changes the color of the links if there are new posts
## MOD Version: 0.2.1
## 
## Installation Level: Easy
## Installation Time: 10 minutes
## Files To Edit: index.php
##                viewforum.php
##                templates/subSilver/index_body.tpl
##                templates/subSilver/viewforum_body.tpl
##                language/lang_english/lang_main.php
## Included Files: 
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
## Generator: MOD Studio [ ModTemplateTools 1.0.2232.38226 ]
##############################################################
## 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: Nothing :) 
##############################################################
## MOD History:
##
## 2006-02-15 - Version 0.2.1
## - Fixed link colors not working.
##   Added $lang['Link_color'] for easy color change.
## 
## 2005-11-20 - Version 0.2.0
## - Added the link highlighting in viewforum.php 
## 
## 2005-11-19 - Version 0.1.1
## - Simplified the install, the color is now hardcoded in the php file instead of the css file 
## 
## 2004-11-26 - Version 0.1.0
## - Initial Release 
## 
## 
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################

#
#-----[ OPEN ]------------------------------------------
#

index.php 

#
#-----[ FIND ]------------------------------------------
#

$folder_alt = ( $unread_topics ) ? $lang['New_posts'] : $lang['No_new_posts']; 

#
#-----[ AFTER, ADD ]------------------------------------------
#

$new_posts_link = ( $unread_topics ) ? ' style="color: ' . $lang['Link_color'] . ';"' : ''; 

#
#-----[ FIND ]------------------------------------------
#

'ROW_CLASS' => $row_class, 

#
#-----[ AFTER, ADD ]------------------------------------------
#

'NEW_POSTS_LINK' => $new_posts_link, 

#
#-----[ OPEN ]------------------------------------------
#

viewforum.php 

#
#-----[ FIND ]------------------------------------------
#

$folder_image = $folder_new; 

#
#-----[ AFTER, ADD ]------------------------------------------
#

$new_posts_link = ' style="color: ' . $lang['Link_color'] . ';"';

#
#-----[ FIND ]------------------------------------------
#

$folder_image = $folder;

#
#-----[ AFTER, ADD ]------------------------------------------
#

$new_posts_link = '';

#
#-----[ FIND ]------------------------------------------
#

$folder_image = $folder_new; 

#
#-----[ AFTER, ADD ]------------------------------------------
#

$new_posts_link = ' style="color: ' . $lang['Link_color'] . ';"';

#
#-----[ FIND ]------------------------------------------
#

$folder_image = $folder;

#
#-----[ AFTER, ADD ]------------------------------------------
#

$newest_post_img = '';

#
#-----[ FIND ]------------------------------------------
#

$folder_image = $folder;

#
#-----[ AFTER, ADD ]------------------------------------------
#

$new_posts_link = '';

#
#-----[ FIND ]------------------------------------------
#

'ROW_CLASS' => $row_class, 

#
#-----[ AFTER, ADD ]------------------------------------------
#

'NEW_POSTS_LINK' => $new_posts_link, 

#
#-----[ OPEN ]------------------------------------------
#

templates/subSilver/index_body.tpl 

#
#-----[ FIND ]------------------------------------------
#

<td class="row1" width="100%" height="50"> 

#
#-----[ IN-LINE FIND ]------------------------------------------
#

<span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a> 

#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#

<span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}"{catrow.forumrow.NEW_POSTS_LINK}>{catrow.forumrow.FORUM_NAME}</a>

#
#-----[ OPEN ]------------------------------------------
#

templates/subSilver/viewforum_body.tpl 

#
#-----[ FIND ]------------------------------------------
#

<span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href=" 

#
#-----[ IN-LINE FIND ]------------------------------------------
#

{topicrow.U_VIEW_TOPIC}" 

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#

{topicrow.NEW_POSTS_LINK} 

#
#-----[ OPEN ]------------------------------------------
#

language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#

//
// That's all Folks!
// -------------------------------------------------

#
#-----[ BEFORE, ADD ]------------------------------------------
#
# Change #d82929 to any color you like

//Colored Link if new post MOD
$lang['Link_color'] = '#d82929';

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Als het niet gaat zoals het moet, dan moet het zoals het gaat!
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Forumer (n). 1) One who runs a forum or is an active member of one or more web forums.

Gebruikersavatar
DaMnNaTiOn
Berichten: 2555
Lid geworden op: 11 dec 2002, 18:29
Locatie: localhost
Contacteer:

Bericht door DaMnNaTiOn » 15 feb 2006, 10:03

Nee, waarom zou je een extra span zetten als het al in de a tag staat?

-edit-
Ow, je hebt de verwijzing naar de kleuren gezet in de language files?
Mwah, dat kan best.
lastmodified.net

Gebruikersavatar
Mickroz
Berichten: 307
Lid geworden op: 05 nov 2005, 06:28
Locatie: Hoogvliet
Contacteer:

Bericht door Mickroz » 15 feb 2006, 15:45

heb em juist in de a gezet,in de span worden alle links in het forum die kleur van nieuw bericht als er in 1 topic een nieuw bericht is.
Als het niet gaat zoals het moet, dan moet het zoals het gaat!
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Forumer (n). 1) One who runs a forum or is an active member of one or more web forums.

Salomon
Berichten: 3878
Lid geworden op: 14 feb 2006, 16:15

Bericht door Salomon » 15 feb 2006, 15:53

ga hem op m'n website zetten! install.txt.
voor downloaden, zie dit maar eens.
helaas, downloaden doet 'ie niet. Iemand enig idee hoe dit wel kan?

Gebruikersavatar
Bee
Berichten: 13403
Lid geworden op: 29 aug 2004, 10:30

Bericht door Bee » 15 feb 2006, 18:00

Rechtermuisknop en dan Save Target As... (Doel opslaan als...)
... Maar ik modereer (nog) niet.

Salomon
Berichten: 3878
Lid geworden op: 14 feb 2006, 16:15

Bericht door Salomon » 15 feb 2006, 18:02

nee, hij opent gelijk!

Gebruikersavatar
Mickroz
Berichten: 307
Lid geworden op: 05 nov 2005, 06:28
Locatie: Hoogvliet
Contacteer:

Bericht door Mickroz » 15 feb 2006, 18:31

.txt bestanden worden volgens mij altijd gelijk geopend,dus zoals Bee zei
Bee schreef:Rechtermuisknop en dan Save Target As... (Doel opslaan als...)
Als het niet gaat zoals het moet, dan moet het zoals het gaat!
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Forumer (n). 1) One who runs a forum or is an active member of one or more web forums.

Gebruikersavatar
Mickroz
Berichten: 307
Lid geworden op: 05 nov 2005, 06:28
Locatie: Hoogvliet
Contacteer:

Bericht door Mickroz » 23 jan 2007, 17:53

Code: Selecteer alles

##############################################################
## MOD Title: Colored link if new post
## MOD Author: DaMnNaTiOn < fy [at] frankyang [dot] net > (Frank Yang) http://www.frankyang.net
## MOD Author: Mickroz < mickroz [at] mickroz [dot] nl > (Mike Kros) http://www.mickroz.nl
## MOD Description: Changes the color of the links if there are new posts
## MOD Version: 0.2.2
## 
## Installation Level: Easy
## Installation Time: 10 minutes
## Files To Edit: admin/admin_board.php
##		  index.php
##                viewforum.php
##		  templates/subSilver/admin/board_config_body.tpl
##                templates/subSilver/index_body.tpl
##                templates/subSilver/viewforum_body.tpl
##                language/lang_english/lang_admin.php
## Included Files: N/A
## 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:
##		You can run db_update.php or do the sql
##		commands manually. 
##############################################################
## MOD History:
##
## 2007-01-23 - Version 0.2.2
## - Fixed typo in install file.
##   Added ACP field for easy color change.
##   Created update file and db_update.php.
##
## 2006-02-15 - Version 0.2.1
## - Fixed link colors not working.
##   Added $lang['Link_color'] for easy color change.
## 
## 2005-11-20 - Version 0.2.0
## - Added the link highlighting in viewforum.php 
## 
## 2005-11-19 - Version 0.1.1
## - Simplified the install, the color is now hardcoded in the php file instead of the css file 
## 
## 2004-11-26 - Version 0.1.0
## - Initial Release 
## 
## 
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
download hier

als je de versie van mij geinstalleerd heb (0.2.1) zit er een update bestand bij.
Als het niet gaat zoals het moet, dan moet het zoals het gaat!
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Forumer (n). 1) One who runs a forum or is an active member of one or more web forums.

Gesloten