Pagina 2 van 2

Geplaatst: 20 nov 2005, 14:25
door Paul

Geplaatst: 20 nov 2005, 14:46
door Bee
De meest voorkomende kleuren staan hier: http://nl.wikipedia.org/wiki/Lijst_van_HTML-kleuren

Geplaatst: 09 feb 2006, 12:18
door miccom
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!

Geplaatst: 10 feb 2006, 21:15
door Mickroz
nice deze zocht ik kon em alleen niet vinden!!

Geplaatst: 15 feb 2006, 01:56
door Mickroz

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

Geplaatst: 15 feb 2006, 02:45
door Mickroz
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

Geplaatst: 15 feb 2006, 10:03
door DaMnNaTiOn
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.

Geplaatst: 15 feb 2006, 15:45
door Mickroz
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.

Geplaatst: 15 feb 2006, 15:53
door Salomon
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?

Geplaatst: 15 feb 2006, 18:00
door Bee
Rechtermuisknop en dan Save Target As... (Doel opslaan als...)

Geplaatst: 15 feb 2006, 18:02
door Salomon
nee, hij opent gelijk!

Geplaatst: 15 feb 2006, 18:31
door Mickroz
.txt bestanden worden volgens mij altijd gelijk geopend,dus zoals Bee zei
Bee schreef:Rechtermuisknop en dan Save Target As... (Doel opslaan als...)

Geplaatst: 23 jan 2007, 17:53
door Mickroz

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.