[MOD] Colored link if new post
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
De meest voorkomende kleuren staan hier: http://nl.wikipedia.org/wiki/Lijst_van_HTML-kleuren
... Maar ik modereer (nog) niet.
thats it, what i'm searching for!
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!
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!
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>
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>
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.
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.
dan maar helemaal goed
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.
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.
- DaMnNaTiOn
- Berichten: 2555
- Lid geworden op: 11 dec 2002, 18:29
- Locatie: localhost
- Contacteer:
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.
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.
.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.
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.
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
##############################################################
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.
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.