Werbung nur für Gäste sichtbar - Nach der Registrierung sehen sie auch keine Werbung mehr

Posts: 13

ActivityPoints: 70

Date of registration: Mar 24th 2010

  • Send private message

21

Wednesday, March 24th 2010, 4:39pm

Hallo Jenso,

ich wollte mal Fragen ob das auch mit den Plugin "Who was Online" funktioniert?

Also ich hatte mir mal die wwo.tpl runtergeladen und mal rein geschaut und einfach das selbe wie beim "Wer ist Online?" eingefüngt. Er macht es farbig aber er gibt jeden immer die selbe Farbe und zwar die Farbe von den letzten der gerade Online gekommen ist. Mache ich irgend was falsch oder geht es einfach nicht?

Hier mal der Inhalt der wwo.tpl

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{if $usersWasOnline|isset && INDEX_ENABLE_WASONLINE_LIST}
	
<div class="container-2">

<div class="containerIcon" id="wwoIconContainer">
<a href="javascript:wwolist_togglesort();"><img src="icon/wasOnlineSortM.png" alt="" id="wwoIcon" /></a></div>

<div class="containerContent">

<h3>{if !INDEX_WASONLINE_LIST_SHOWPERMANENT}<a href="javascript:wwolist_togglehide();">
{/if}{lang}wbb.index.usersWasOnline{/lang}{if !INDEX_WASONLINE_LIST_SHOWPERMANENT}</a>{/if}</h3>

<div id="wwoStats">

<p class="smallFont">{lang}wbb.index.usersWasOnline.detail{/lang} {lang}wbb.index.usersWasOnline.record{/lang}</p>

{if $usersWasOnline|count}

{if INDEX_LIMIT_WASONLINE_LIST && INDEX_LIMIT_WASONLINE_LIST_AMOUNT > 0}
<p class="smallFont">{lang}wbb.index.usersWasOnline.limitedlist{/lang}</p>{/if}

<p class="smallFont" id="wwoNames">{implode from=$usersWasOnline item=userWasOnline}<a {if $user.rankID == 1} class = "admin" {elseif $user.rankID == 2} class="mod" {elseif $user.rankID == 3} class="smod" {elseif $user.rankID == 11} class="team1" {elseif $user.rankID == 12} class="team2" {elseif $user.rankID == 13} class="team3" {elseif $user.rankID == 14} class="team4" {elseif $user.rankID == 15} class="team5" {/if} href="index.php?page=User&amp;userID={@$userWasOnline.userID}{@SID_ARG_2ND}">{@$userWasOnline.username}</a>{if !INDEX_WASONLINE_LIST_HIDETIME}&nbsp;({@$userWasOnline.lastActivityTime|time:"%H:%M"}){/if}{/implode}</p>

{/if}

</div>

</div>


<script type="text/javascript">
		//<![CDATA[
		{if !INDEX_WASONLINE_LIST_SHOWPERMANENT}
		var wwolist_hidden = false;
		function wwolist_togglehide () {
			if (wwolist_hidden) {
				document.getElementById("wwoIcon").style.visibility = "visible";
				document.getElementById("wwoStats").className = "";
				wwolist_hidden = false;
			}
			else {
				document.getElementById("wwoIcon").style.visibility = "hidden";
				document.getElementById("wwoStats").className = "hidden";
				wwolist_hidden = true;
			}
		}
		wwolist_togglehide();
		{/if}
		var wwolist_sortbyname = false;
		var wwolist_byname = '{implode from=$usersWasOnlineByName item=userWasOnline}<a href="index.php?page=User&amp;userID={@$userWasOnline.userID}{@SID_ARG_2ND}">{@$userWasOnline.username|addcslashes:"'\\"}</a>{if !INDEX_WASONLINE_LIST_HIDETIME}&nbsp;({@$userWasOnline.lastActivityTime|time:"%H:%M"}){/if}{/implode}';
		var wwolist_bytime = '{implode from=$usersWasOnline item=userWasOnline}<a href="index.php?page=User&amp;userID={@$userWasOnline.userID}{@SID_ARG_2ND}">{@$userWasOnline.username|addcslashes:"'\\"}</a>{if !INDEX_WASONLINE_LIST_HIDETIME}&nbsp;({@$userWasOnline.lastActivityTime|time:"%H:%M"}){/if}{/implode}';
		function wwolist_togglesort () {
			if (wwolist_sortbyname) {
				document.getElementById("wwoNames").innerHTML = wwolist_bytime;
				document.getElementById("wwoIcon").title = "{lang}wbb.index.usersWasOnline.sortByName{/lang}";
				wwolist_sortbyname = false;
			}
			else {
				document.getElementById("wwoNames").innerHTML = wwolist_byname;
				document.getElementById("wwoIcon").title = "{lang}wbb.index.usersWasOnline.sortByTime{/lang}";
				wwolist_sortbyname = true;
			}
		}
		document.getElementById("wwoIcon").title = "{lang}wbb.index.usersWasOnline.sortByName{/lang}";
		//]]>
		</script>
	</div>
{/if}



Ich danke dir schon einmal ;)



Gruß MatHoffman

Jenso

Administrator

  • "Jenso" is male
  • "Jenso" started this thread

Posts: 2,324

ActivityPoints: 13,975

Date of registration: Aug 15th 2010

  • Send private message

22

Wednesday, March 24th 2010, 5:24pm

Sieh dazu hier:
Wer war online - Benutzergruppen farbig (WBB Lite 2)
Hab ich grade mal verfasst

Posts: 4

ActivityPoints: 25

Date of registration: May 26th 2010

  • Send private message

23

Wednesday, May 26th 2010, 6:00pm

Hey jenson kannste mir mal deine css sticken ich brauch das normal und ich finde es nirgens

Jenso

Administrator

  • "Jenso" is male
  • "Jenso" started this thread

Posts: 2,324

ActivityPoints: 13,975

Date of registration: Aug 15th 2010

  • Send private message

24

Wednesday, May 26th 2010, 6:03pm

Cascading style sheet

1
2
3
.admin, a:link.admin, a:visited.admin, a:hover.admin, .stickyNote { 
color: #ff0000 !important;
}

usw für die anderen Ränge^^

Posts: 4

ActivityPoints: 25

Date of registration: May 26th 2010

  • Send private message

25

Wednesday, May 26th 2010, 6:06pm

ok danke ^^ ach thzx für die wbblite online legende und dank mal alles mithelfer

schubbi

Ich bins doch nur...

  • "schubbi" is male

Posts: 214

ActivityPoints: 1,265

Date of registration: May 30th 2010

  • Send private message

26

Sunday, May 30th 2010, 5:46pm

Ich hab das alles gemacht und Funktioniert soweit auch alles prima, was mich jetzt noch ein wenig stört ist, dass die Usernamen neben den Themen nicht in der entsprechenden farbe angezeigt werden... was muss ich da machen..
"Man kann ein Problem nicht mit der selben Denkweise lösen, wie es entstanden ist" (Albert Einstein)
Zu beachten: Art.5 Abs.1 GG

Posts: 6

ActivityPoints: 30

Date of registration: Aug 6th 2010

  • Send private message

28

Friday, August 6th 2010, 2:23pm

Bei mir klappt das irgendwie nicht..

wio_index.php:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{if $this->user->getPermission('user.wio.canSeeWio') && WIO_ACTIVE}
            <div class="container-2" style="min-height: 22px; padding:6px">
                 <div class="containerIcon"> <img src="{@RELATIVE_WCF_DIR}icon/groupM.png" alt="" /></div>
                 <div class="containerContent">
                 {if WIO_OPEN_POPUP}
                    <h3><a href="javascript:;" onclick="window.open('index.php?page=wio{@SID_ARG_2ND}','WerIstOnline','width=800,height=450,toolbar=no,scrollbars=yes,left=50,top=50,resizable=yes');return false;"> {lang}wcf.wio.title{/lang}</a></h3>
                 {else}
                    <h3><a href="index.php?page=wio{@SID_ARG_2ND}">{lang}wcf.wio.title{/lang}</a></h3>
                 {/if}
{if $users|count > 0}
<div>
<p class="smallFont">{@$users|count} {if $users|count == 1}{lang}wcf.wio.member{/lang}{else}{lang}wcf.wio.members{/lang}{/if}</p>
<p class="smallFont">{implode from=$users item=user}<a {if $user.rankID == 4} class = "Admin" {elseif $user.rankID == 6} class="SAPD Leader"{/if} href="index.php?page=User&amp;userID={@$user.userID}{@SID_ARG_2ND}">{@$user.username}</a>{/implode}</p>
</div>
{else}
<div>
<p class="smallFont">{lang}wcf.wio.nobodyOnline{/lang}</p>
</div>
{/if}
<p class="smallFont">{lang}Legende{/lang}: <font color="red">{lang}wcf.user.rank.Admin{/lang}</font>, <font color="green">{lang}wcf.user.rank.SAPD Leader{/lang}</font>, <font color="black">{lang}Registrierte Benutzer{/lang}</font> </p>
                 </div>
            </div>
{/if}


An der wio.php habe ich nicht verändert

die wio.class ist bei mir so:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
require_once(WCF_DIR.'lib/data/user/User.class.php');

abstract class WhoIsOnline {
    	public $sqlSelects = 'user.rankID,';
    	public $sqlJoins = '';
    	public $sqlOrderBy = 'session.username';

    	public function getWiO() {
    	$sql = "SELECT             	".$this->sqlSelects."
         	user_option.userOption".User::getUserOptionID('invisible').", session.userID, session.ipAddress,
         	session.userAgent, session.lastActivityTime, user.username
         	FROM          	wcf".WCF_N."_session session
         	LEFT JOIN     	wcf".WCF_N."_user user
         	ON            	(user.userID = session.userID)
         	LEFT JOIN     	wcf".WCF_N."_user_option_value user_option
         	ON            	(user_option.userID = session.userID)
         	".$this->sqlJoins."
         	WHERE        	session.lastActivityTime > ".(TIME_NOW - USER_ONLINE_TIMEOUT)."
         	ORDER BY     	".$this->sqlOrderBy;
         	$result = WCF::getDB()->sendQuery($sql);
         	while ($row = WCF::getDB()->fetchArray($result)) {
         	$this->handleRow($row, new User(null, $row));
         	}
    	}

    	protected function isVisible($row, User $user) {
              	return (WCF::getUser()->userID == $user->userID || !$user->invisible || WCF::getUser()->getPermission('admin.general.canViewInvisible'));
    	}

    	public static function getUsername($row, User $user) {
           	$row['username'] = StringUtil::encodeHTML($row['username']);

            	if ($user->invisible) {
                    	$row['username'] .= WCF::getLanguage()->get('wcf.wio.invisible');
            	}

            	return $row['username'];
    	}
}
?>


burningboard.css

Source code

1
2
3
4
5
6
7
8
9
10
11
.Adminstrator, a:link.Adminstrator, a:visited.Adminstrator, a:hover.Adminstrator, .stickyNote { 
color: red !important;
}

.Leader, a:link.SAPD Leader, a:visited.SAPD Leader, a:hover.SAPD Leader, .stickyNote { 
color: green !important;
}

.Cops, a:link.Registrierte Benutzer, a:visited.Registrierte Benutzer, a:hover.Registrierte Benutzer, .stickyNote { 
color: black !important;
}



Kann mir einer helfen?

Danke..

Jenso

Administrator

  • "Jenso" is male
  • "Jenso" started this thread

Posts: 2,324

ActivityPoints: 13,975

Date of registration: Aug 15th 2010

  • Send private message

29

Friday, August 6th 2010, 2:26pm

Wenn du die class "Admin" nennst kannst du sie nicht mit ".Administrator" ansprechen.
.Admin wäre dann richtig, je nach Klassenname!

Posts: 6

ActivityPoints: 30

Date of registration: Aug 6th 2010

  • Send private message

30

Friday, August 6th 2010, 2:31pm

Okay, habe ich geändert. Die Legende wird unten angezeigt etc..
Leider wird in der wer ist online kein name farbig angezeigt..

Jenso

Administrator

  • "Jenso" is male
  • "Jenso" started this thread

Posts: 2,324

ActivityPoints: 13,975

Date of registration: Aug 15th 2010

  • Send private message

31

Friday, August 6th 2010, 2:49pm

Ist der Administrator Rang wirklich RankID4? normal ist das doch 1, oder?

Posts: 6

ActivityPoints: 30

Date of registration: Aug 6th 2010

  • Send private message

32

Friday, August 6th 2010, 2:51pm

Da habe ich das herbezogen:
4 Admin 3
2 Gäste 0
1 Jeder 5
3 Registrierte Benutzer 5
6 SAPD Leader


Müsste doch stimmen oder?

Jenso

Administrator

  • "Jenso" is male
  • "Jenso" started this thread

Posts: 2,324

ActivityPoints: 13,975

Date of registration: Aug 15th 2010

  • Send private message

33

Friday, August 6th 2010, 3:15pm

Ähm... ich rede von Rängen und nicht von Benutzergruppen
Kannst du aus meinem Rangverwaltungsplugin auslesen oder aus der Tabelle wcf1_user_ranks

Posts: 6

ActivityPoints: 30

Date of registration: Aug 6th 2010

  • Send private message

34

Friday, August 6th 2010, 3:37pm

Alles klar die Admin makierung klappt.. Die Gruppe "SAPD Leader klappt leider nicht.. ich hab kein schimmer wie ich das machen soll..

Posts: 6

ActivityPoints: 30

Date of registration: Aug 6th 2010

  • Send private message

35

Friday, August 6th 2010, 3:39pm

Jetzt klappt alles :-)

Kann ich die namen in Threads jetzt irgendwie mit der selben farbe makieren?

Jenso

Administrator

  • "Jenso" is male
  • "Jenso" started this thread

Posts: 2,324

ActivityPoints: 13,975

Date of registration: Aug 15th 2010

  • Send private message

36

Friday, August 6th 2010, 3:58pm

http://codequake.de/index.php?page=Thread&threadID=287 (WBBLite 2.0)
Beim Lite 2.1 hab ich noch nicht nachgeschaut

Posts: 6

ActivityPoints: 30

Date of registration: Aug 6th 2010

  • Send private message

37

Friday, August 6th 2010, 4:38pm

Klappt alles :D thx

Posts: 1

ActivityPoints: 5

Date of registration: Aug 14th 2010

  • Send private message

38

Saturday, August 14th 2010, 8:05am

Hallo

Nch dem ich den Code eingebaut habe bekomme ich folgende Fehlermeldung.

Information:


error message: PHP notice in file
/var/www/web3/html/lib/system/event/listener/WioIndexPageListener.class.php
(30): Undefined property: WioList::$guestCount

error code: 0

file: /var/www/web3/html/wcf/lib/system/WCF.class.php (281)

php version: 5.2.0-8+etch16

wcf version: 1.1.2 (Tempest)

date: Sat, 14 Aug 2010 05:57:59 +0000

request: /index.php?page=Index

Ich hoffe ihr könnt mir helfen?

Jenso

Administrator

  • "Jenso" is male
  • "Jenso" started this thread

Posts: 2,324

ActivityPoints: 13,975

Date of registration: Aug 15th 2010

  • Send private message

39

Saturday, August 14th 2010, 2:24pm

Hänge bitte mal die Dateien über die Attachment Funktion an, oder poste
die Quellcodes in die dafür vorgesehenen Code-BBCodes

Hacker2804

Syntax Error

Posts: 73

ActivityPoints: 480

Date of registration: Nov 3rd 2009

  • Send private message

40

Monday, January 3rd 2011, 2:06am

Fatal Error

Hier klicken für weitere Informationen
Information:


error message: Template compilation failed: unclosed tag {if} in template 'wio_index' on line 1

error code: 12002

file: /var/www/virtual/black-hacks.webdiggi.de/htdocs/wcf/lib/system/template/TemplateScriptingCompiler.class.php (117)

php version: 5.2.16-0.dotdeb.0

wcf version: 1.1.4 Beta 1 (Tempest)

date: Mon, 03 Jan 2011 01:02:56 +0000

request: /index.php?page=Index

referer: http://black-hacks.webdiggi.de/index.php?page=Portal




Stacktrace:

#0 /var/www/virtual/black-hacks.webdiggi.de/htdocs/wcf/lib/system/template/TemplateCompiler.class.php(31): TemplateScriptingCompiler->compileString('wio_index', '{if $this->user...')
#1 /var/www/virtual/black-hacks.webdiggi.de/htdocs/wcf/lib/system/template/Template.class.php(360): TemplateCompiler->compile('wio_index', '{if $this->user...', '/var/www/virtua...')
#2 /var/www/virtual/black-hacks.webdiggi.de/htdocs/wcf/lib/system/template/Template.class.php(264): Template->compileTemplate('wio_index', '/var/www/virtua...', '/var/www/virtua...')
#3 /var/www/virtual/black-hacks.webdiggi.de/htdocs/wcf/lib/system/template/Template.class.php(397): Template->display('wio_index', false)
#4 /var/www/virtual/black-hacks.webdiggi.de/htdocs/lib/system/event/listener/WioIndexPageListener.class.php(18): Template->fetch('wio_index')
#5 /var/www/virtual/black-hacks.webdiggi.de/htdocs/wcf/lib/system/event/EventHandler.class.php(207): WioIndexPageListener->execute(Object(IndexPage), 'IndexPage', 'readData')
#6 /var/www/virtual/black-hacks.webdiggi.de/htdocs/wcf/lib/page/AbstractPage.class.php(65): EventHandler::fireAction(Object(IndexPage), 'readData')
#7 /var/www/virtual/black-hacks.webdiggi.de/htdocs/wcf/lib/page/AbstractPage.class.php(90): AbstractPage->readData()
#8 /var/www/virtual/black-hacks.webdiggi.de/htdocs/wcf/lib/page/AbstractPage.class.php(46): AbstractPage->show()
#9 /var/www/virtual/black-hacks.webdiggi.de/htdocs/wcf/lib/util/RequestHandler.class.php(64): AbstractPage->__construct()
#10 /var/www/virtual/black-hacks.webdiggi.de/htdocs/wcf/lib/util/RequestHandler.class.php(92): RequestHandler->__construct('Index', Array, 'page')
#11 /var/www/virtual/black-hacks.webdiggi.de/htdocs/index.php(8): RequestHandler::handle(Array)
#12 {main}


Wio_Index
Hier klicken für weitere Informationen
{if $this->user->getPermission('user.wio.canSeeWio') && WIO_ACTIVE{/if}
<div class="container-2" style="min-height: 22px; padding:6px">
<div class="containerIcon"> <img src="{@RELATIVE_WCF_DIR}icon/groupM.png" alt="" /></div>
<div class="containerContent">
{if WIO_OPEN_POPUP}
<h3><a href="javascript:;" onclick="window.open('index.php?page=wio{@SID_ARG_2ND}','WerIstOnline','width=800,height=450,toolbar=no,scrollbars=yes,left=50,top=50,resizable=yes');return false;"> {lang}wcf.wio.title{/lang}</a></h3>
{else}
<h3><a href="index.php?page=wio{@SID_ARG_2ND}">{lang}wcf.wio.title{/lang}</a></h3>
{/if}
{if $users|count > 0}
<div>
<p class="smallFont">{@$users|count} {if $users|count == 1}{lang}wcf.wio.member{/lang}{else}{lang}wcf.wio.members{/lang}{/if}</p>
<p class="smallFont">{implode from=$users item=user}<a
{if $user.rankID == 1} class = "admin" {elseif $user.rankID == 2} class="mod" {if $user.rankID == 3} class = "vip"{if $user.rankID == 4} class = "Member" {elseif $user.rankID == 10} class="banned"{/if}

</div>
{else}
<div>
<p class="smallFont">{implode from=$users item=user}<a
{if $user.rankID == 1} class = "admin" {elseif $user.rankID == 2} class="mod" {elseif $user.rankID == 10} class="special"{elseif $user.rankID == 11} class="banned" {elseif $user.rankID == 3} class="smod"{elseif $user.rankID == 12} class="special"{/if}
href="index.php?page=User&amp;userID={@$user.userID}{@SID_ARG_2ND}">{@$user.username}</a>{/implode}</p> </div>
{/if}

</div>
</div>
{/if}


Was Ist daran falsch ?

Social Bookmarks


Werbung nur für Gäste sichtbar - Nach der Registrierung sehen sie auch keine Werbung mehr