Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
-
Ivoman
- Berichten: 214
- Lid geworden op: 24 feb 2006, 10:58
- Locatie: Oost-Vl
-
Contacteer:
Bericht
door Ivoman » 30 mar 2006, 13:08
Hallo iedereen,
Ik wil iets extra uit een mod halen. Kennen jullie '
Show Users Online Status in viewtopic.php' mod?
Via deze foto's

&

worden gebruikes on- of offline getoont tussen naam en avatar. (viewtopic.php & viewtopic_body.tpl)
Ik wil dit ook in gebruikers hun profiel stoppen. (in profile.php en profile_view_body.tpl)
Ik vermoed dat er maar kleine aanpassingen moeten gebeuren. Wie kan daarin helpen?
Als uitzondering wil ik de mod eens in deze post tussen Code tags zetten. Hopelijk mag ik eens.
Bedankt.
Code: Selecteer alles
########################################################
## Mod Title: Show Online In View Topic (with Icon Modifikation by Ghostraider)
## Mod Version: 2.0.1
## Author: AJ Quick, (http://www.ajquick.com/)
## Modifikations: Ghostraider (http://www.serienboard.com)
##
## Description:
## This mod will show the status of a user in viewtopic
## next to their post. Stating if they are online or not.
##
## This mod is for phpBB2 ver 2.0.X (Icon-Mod tested with 2.0.8)
##
## Portions of this script were inspired/written by
## other people. I can only claim partial credit.
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit: 3
## viewtopic.php
## /templates/SubSilver/Viewtopic_body.tpl
## /templates/SubSilver/SubSilver.cfg
## Included Files: 2 (online.gif offline.gif)
########################################################
#
#-----[ COPY ]------------------------------------------------
#
copy templates/subSilver/online.gif to templates/subSilver/online.gif
copy templates/subSilver/offline.gif to templates/subSilver/offline.gif
#
#-----[ OPEN ]------------------------------------------
#
Viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
u.user_allowavatar, u.user_allowsmile,
#
#-----[ ADD AFTER ]------------------------------------------
#
u.user_allow_viewonline, u.user_session_time,
#
#-----[ FIND ]------------------------------------------
#
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
//User Online Hack
//By AJ Quick (http://www.ajquick.com/)
//time()-60 sets the Refresh Time. If you want to be similar to the "Who is Online" view on First Page set time()-300
if($postrow[$i]['user_session_time'] >= (time()-60)){
if($postrow[$i]['user_allow_viewonline']){
$status = '<img src="' . $images['Online'] . '" alt="' . $lang['Online'] . '" title="' . $lang['Online'] . '" border="0" />';
}else{
$status = '<img src="' . $images['Offline'] . '" alt="' . $lang['Offline'] . '" title="' . $lang['Offline'] . '" border="0" />';
}
}else{
$status = '<img src="' . $images['Offline'] . '" alt="' . $lang['Offline'] . '" title="' . $lang['Offline'] . '" border="0" />';
}
#
#-----[ FIND ]------------------------------------------
#
'POSTER_JOINED' => $poster_joined,
'POSTER_POSTS' => $poster_posts,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'POSTER_STATUS' => $status,
#
#-----[ OPEN ]------------------------------------------
#
templates/SubSilver/Viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_AGE}<br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}</span><br />
#
#-----[ AFTER, ADD ]------------------------------------------
#
{postrow.POSTER_STATUS}</span><br />
#
#-----[ OPEN ]------------------------------------------
#
templates/SubSilver/SubSilver.cfg
#
#-----[ FIND ]------------------------------------------
#
$images['icon_newest_reply'] = "$current_template_images/icon_newest_reply.gif";
#
#-----[ AFTER, ADD ]------------------------------------------
#
$images['Online'] = "$current_template_images/online.gif";
$images['Offline'] = "$current_template_images/offline.gif";
# That's It!
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
-
brandsrus
- Berichten: 1966
- Lid geworden op: 01 jul 2005, 19:38
- Locatie: r. Лeувapдeн
-
Contacteer:
Bericht
door brandsrus » 30 mar 2006, 15:35
Een uitgebreide mod die dit regelt is Online/Offline/Hidden 2.2.7 van Kooky, maar dan moet je deze wel unstallen.
Code: Selecteer alles
##############################################################
## MOD Title: Online/Offline/Hidden
## MOD Author: kooky < [nospam]kooky@altern.org > (n/a) http://www.myphpbb.zaup.org
## MOD Description: This mod will show the Online status of a user, stating if
## he is Online, Offline or Hidden (with image or text) within
## viewtopic as well his profile, in memberlist, groupcp, ...
## Only Admin, Mod (and Group Mod) and the user himself can
## view hidden status.
## MOD Version: 2.2.7
##
## Installation Level: Easy
## Installation Time: 15-20 Minutes
## Files To Edit: 21
## groupcp.php
## memberlist.php
## privmsg.php
## viewtopic.php
## admin/admin_board.php
## admin/admin_styles.php
## includes/page_header.php
## includes/usercp_viewprofile.php
## language/lang_english/lang_admin.php
## language/lang_english/lang_main.php
## templates/subSilver/groupcp_info_body.tpl
## templates/subSilver/groupcp_pending_info.tpl
## templates/subSilver/memberlist_body.tpl
## templates/subSilver/overall_header.tpl
## templates/subSilver/privmsgs_read_body.tpl
## templates/subSilver/profile_view_body.tpl
## templates/subSilver/viewtopic_body.tpl
## templates/subSilver/subSilver.cfg
## templates/subSilver/subSilver.css
## templates/subSilver/admin/board_config_body.tpl
## templates/subSilver/admin/styles_edit_body.tpl
## Included Files: 3
## icon_online.png
## icon_offline.png
## icon_hidden.png
##
## 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:
##
## 1. Copyright and special thanks!
## -----------
## This program is free software, you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation.
##
## With the spirit of phpBB's GPL, i have attempted to give
## credit to past authors (almost inspired)
## Thanks to John B. Abela < http://www.johnabela.com > (Online/Offline Mod)
## and AJ Quick < http://www.ajquick.com > (Show Online Status In Viewtopic).
##
## All graphical gif included were designed and copyrighted by Daz
## http://www.forumimages.com
## You are not allowed to redistribute them without his copyright/agreement.
## I only exported the gif format to the png with PNGOptimizer.
##
## If you want to add this Mod to any database, please don't add
## my e-mail address to a topic, just point to my website (see above).
## (for spamming prevention)
##
## 2. Feature list
## -----------
## This MOD tries to fix and enhance the online status.
## - Linked to viewonline page
## - Hidden users can view their online status
## - Many languages supported (DU/EN/FR/GR/SP/IT/...)
## - 2 methods implemented: How to use them?
## In your xxx_body.tpl use:
## o image: {X_ONLINE_STATUS_IMG}
## o text: {X_ONLINE_STATUS} (remove "_IMG")
##
## 3. Compatibility / EasyMOD
## -----------
## This MOD is compatible with phpBB 2.0.18
##
## It is also compatible with EasyMOD of Nuttzy and can be
## installed by it but is not yet certified EMC (EasyMOD Compliant)!
## http://area51.phpbb.com/phpBB22/viewforum.php?sid=&f=15
##
## 3. Official last version link
## -----------
## Contact with email address quoted above without [nospam]
## Check this official link for latest updates...
## http://www.myphpbb.zaup.org/
##
##############################################################
## MOD History:
##
## 2005/11/07 - Version 2.2.7
## - Updated to be compliant with phpBB 2.0.18
## - Replace gif format with png (free format)
##
## 2005/02/14 - Version 2.2.6
## - Added admin setting for online status time (set your own time)
##
## 2005/01/13 - Version 2.2.5
## - Fixed missing variable for text version in viewtopic.php
## - Rewrote viewtopic.php
## - Added Dutch translation
##
## 2004/12/31 - Version 2.2.4
## - Mixed text version with image version
## (for those who want use both version with
## differents templates)
## - Updated to be 100% xHTML 1.1 compliant (welcome to the future)
## - Fixed session time in privmsg.php (text version 1.0.7)
## (thanks to StalkR for reported this)
## - Added Selection order Addon (memberlist)
## - Added German translation
##
## 2004/09/09 - Version 2.2.3
## - Updated how to (no change in files)
## - Added Italian translation
##
## 2004/06/04 - Version 2.2.2
## - Fixed issue with XML/XHTML
##
## 2004/05/15 - Version 2.2.1
## - Fixed a bug in privmsg.php
##
## 2004/04/03 - Version 2.2.0
## - Revised and improved the entire of the Mod
## - Fixed missing SQL field for groupcp pending
## - phpBB 2.0.8 compliant
##
## 2004/01/11 - Version 2.1.9
## - Added a link to viewonline
## - Improved viewtopic part
## - Added username, eg: "Nikname is online"
## - Added 3 new entries in lang_main.php
##
## 2003/12/23 - Version 2.1.8
## - Easy Mod compliant
## - Updated to phpBB 2.0.6
## - Added part for pivmsg
##
## 2003/11/02 - Version 2.1.6
## - Updated to phpBB 2.0.5
## - Fixed a typo in groupcp.php
##
## 2003/10/28 - Version 2.1.5
## - Fixed issue in groupcp.php and hidden user
##
## 2003/10/24 - Version 2.1.4
## - Added Online status in groupcp.php
## - Fixed an issue in viewtopic.php
##
## 2003/09/10 - Version 2.1.3
## - Added hidden users can view their status
## - Fixed and changed some lines in the how to
## - Renamed xxx.gif to icon_xxx.gif
##
## 2003/08/24 - Version 2.1.2
## - Fixed a line in the How to
##
## 2003/08/06 - Version 2.1.1
## - Fixed an error in usercp_viewprofile.php and memberlist.php
##
## 2003/07/18 - Version 2.1.0
## - Added hidden users only viewable by Admin
##
## 2003/05/12 - Version 2.0.2
## - Added icon in view profile
##
## 2003/05/06 - Version 2.0.1
## - Added Hidden and session duration if not log in
## - Added Online status in memberlist.php
##
## 2002/??/?? - Version 1.0.1
## - A little change :). Under guest no online offline.
## - Add multilinguage
##
## 2002/05/19 - Version 1.0.0
## - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
-
Diablo Gamer
- Berichten: 1394
- Lid geworden op: 02 jan 2004, 20:33
- Locatie: Dalen/Drenthe/Holland
-
Contacteer:
Bericht
door Diablo Gamer » 30 mar 2006, 16:12
ik gebruik zelf deze en ik ben er heel erg blij mee
Online/Offline Indicator
Code: Selecteer alles
################################################################################
##
## Mod Title: Another Online/Offline indicator
## Mod Author: AmigaLink < webmaster@amigalink.de > (Markus Schmidt) http://www.EssenMitFreude.info
## Mod Description: Displays the User-Online-Status in Topic, Memberlist, PM-Panel, GroupCP and the User-Profile.
## Hidden Users will alwais displayed as Offline.
## Only the Admin can see if a Hidden user is Online (via an extra Icon)!
## A Mouseover info shows the Admin alwais if the User will be hidden.
##
## Mod Version: 1.2.1
##
## Installation Level: Intermediate
## Installation Time: 10- 15 Minutes
##
## Files To Edit: 13
##
## groupcp.php
## privmsg.php
## memberlist.php
## viewtopic.php
##
## includes/usercp_viewprofile.php
##
## language/lang_english/lang_main.php
## language/lang_german/lang_main.php
##
## templates/subSilver/groupcp_info_body.tpl
## templates/subSilver/groupcp_pending_info.tpl
## templates/subSilver/memberlist_body.tpl
## templates/subSilver/profile_view_body.tpl
## templates/subSilver/subSilver.cfg
## templates/subSilver/viewtopic_body.tpl
##
## Included Files: 6
##
## templates/subSilver/images/online.gif
## templates/subSilver/images/offline.gif
## templates/subSilver/images/hidden_online.gif
## templates/subSilver/images/online_small.gif
## templates/subSilver/images/offline_small.gif
## templates/subSilver/images/hidden_online_small.gif
##
################################################################################
## The following site also contain the latest version of this MOD:
##
## http://www.AmigaLink.de
## http://www.phpBBhacks.com
## http://www.phpBB.de
##
## Full support for this MOD an addons can be obtained at:
##
## http://www.AmigaLink.de
##
################################################################################
## MOD History:
##
## 2005-02-16 - Version 1.2.1
## - Added a missing part in the installation guide
##
## 2005-02-13 - Version 1.2.0
## - Added the indicator to the GroupCP
## - Added the indicator to the PM-Panel
##
## 2005-01-22 - Version 1.0.2 (unreleased)
## - Don't display the indicator by postings from guests
##
## 2005-01-10 - Version 1.0.1
## - Little bugfix in the installation part of the memberlist
##
## 2005-01-05 - Version 1.0.0
## - Release
##
## 2005-01-02 - Version 0.0.9
## - First Version (unreleased)
##
################################################################################
##
## This hack is released under the GPL License.
## This hack can be freely used, but not distributed, without permission.
## Intellectual Property Rights are retained by the hack author(s)
## listed above.
##
################################################################################
##
## BEFORE ADDING THIS HACK TO YOUR FORUM, please be sure to backup ALL
## affected files.
##
################################################################################
#
#----------[ PLEASE NOTE ]------------------------------
It`s nice to be important, but it`s more important to be nice.
-
Ivoman
- Berichten: 214
- Lid geworden op: 24 feb 2006, 10:58
- Locatie: Oost-Vl
-
Contacteer:
Bericht
door Ivoman » 30 mar 2006, 16:57
Ben al zeker dat ik ga uninstallen, maar ik kan niet kiezen tussen jullie suggesties!

-
Raimon
- Berichten: 4397
- Lid geworden op: 27 aug 2005, 12:59
-
Contacteer:
Bericht
door Raimon » 30 mar 2006, 17:17
Lijkt me dat je er eentje moet nemen of even alle twee testen

-
Bee
- Berichten: 13403
- Lid geworden op: 29 aug 2004, 10:30
Bericht
door Bee » 30 mar 2006, 17:27
Die van kooky is gekeurd op phpBB.com en ik vind hem kwalitatief beter.
... Maar ik modereer (nog) niet.
-
Bee
- Berichten: 13403
- Lid geworden op: 29 aug 2004, 10:30
Bericht
door Bee » 30 mar 2006, 17:30
... Maar ik modereer (nog) niet.