Google+

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rezolvat Imagini pentru membri din chat?
#1
Cum aş putea să fac să îmi apară în chat, la fiecare membru avatarul lui? Folosesc MyShoutbox.
#2
Nu ştie nimeni?
#3
Da-mi te rog un cont de admin prin PM!
Users : collective term for those who use computers. Users are divided into three types : novice, intermediate and expert.
Novice users : people who are afraid that simply pressing a key might break their computer.
Intermediate users : people who don`t know how to fix their computer after they`ve just pressed a key that broke it.
Expert users : people who break other people`s computers.
#4
Cauta in fisierul myshoutbox.php din directorul root al forumului linia 1033 si 1066. Ambele incep cu :

PHP Code:
$messages .= "<span style=\"font-size: {$mybb->settings['mysb_text_size']}px\">

Tu va trebui sa inserezi intre ghilimele ceva de acest gen :

PHP Code:
<img src="{$row['avatar']}" width="30px" height="30px"/>

De exemplu :

PHP Code:
$messages .= "<img src=\"{$row['avatar']}\" width=\"30px\" height=\"30px\"/><span style=\"font-size: {$mybb->settings['mysb_text_size']}px\">

Joaca-te si tu si vezi ca imaginea va aparea in pozitii diferite!

Users : collective term for those who use computers. Users are divided into three types : novice, intermediate and expert.
Novice users : people who are afraid that simply pressing a key might break their computer.
Intermediate users : people who don`t know how to fix their computer after they`ve just pressed a key that broke it.
Expert users : people who break other people`s computers.
#5
Uh.. nu înţeleg fazele cu linile.

Eşti sigur că ar trebuii să am în root myshoutbox.php? Eu nu găsesc.
#6
Deci liniile alea sunt ceva de acest gen :

HTML Code
$messages .= "COD_HTML";

Tu va trebui sa introduci codul HTML <img src=\"{$row['avatar']}\" width=\"30px\" height=\"30px\"/> in cadrul COD_HTML.
COD_HTML este o portiune de cod HTML prin care se afiseaza un rand / mesaj al unui utilizator. Exista un format daca te uiti atent. Ia incearca sa il introduci inainte de

HTML Code
- {$date_time}

Users : collective term for those who use computers. Users are divided into three types : novice, intermediate and expert.
Novice users : people who are afraid that simply pressing a key might break their computer.
Intermediate users : people who don`t know how to fix their computer after they`ve just pressed a key that broke it.
Expert users : people who break other people`s computers.
#7
degeaba dacă nu găsesc Myshoutbox.php Smile)
#8
Scuze , dar nu e in directorul root, e in directorul plugins.
Users : collective term for those who use computers. Users are divided into three types : novice, intermediate and expert.
Novice users : people who are afraid that simply pressing a key might break their computer.
Intermediate users : people who don`t know how to fix their computer after they`ve just pressed a key that broke it.
Expert users : people who break other people`s computers.
#9
Linia 1033 este aşa

Code:
$message = str_replace("/pvt ".$userID." ", "", $messag

#10
Nu. Deci e vorba de blocurile :

PHP Code:
if (myshoutbox_can_delete() && $row['hidden'] == "yes") { 
					$messages .= "<span style=\"font-size: {$mybb->settings['mysb_text_size']}px\">&raquo; <strong><span style=\"color: #FF0000\";>{$lang->mysb_deleted_info}</span></strong> &raquo; {$remove}{$recover}{$report}<a href='#' onClick=\"javascript: ShoutBox.pvtAdd(".$row['uid']."); return false;\" {$extra}>{$username}</a> - {$date_time} -- {$message}</span><br />\r\n";
				}
				elseif ($row['hidden'] == "no") $messages .= "<span style=\"font-size: {$mybb->settings['mysb_text_size']}px\">&raquo; {$delete}{$recover}{$report}<span style=\"\"><a href='#' onClick=\"javascript: ShoutBox.pvtAdd(".$row['uid']."); return false;\" {$extra}>{$username}</a></span> - {$date_time} -- {$message}</span><br />\r\n";
	

si

PHP Code:
if (myshoutbox_can_delete() && $row['hidden'] == "yes") { 
				$messages .= "<span style=\"font-size: {$mybb->settings['mysb_text_size']}px\">&raquo; <strong><span style=\"color: #FF0000\";>{$lang->mysb_deleted_info}</span></strong> &raquo; {$remove}{$recover}{$report}<a href='#' onClick=\"javascript: ShoutBox.pvtAdd(".$row['uid']."); return false;\" {$extra}>{$username}</a> - {$date_time} -- {$message}</span><br />\r\n";
			}
			elseif ($row['hidden'] == "no") $messages .= "<span style=\"font-size: {$mybb->settings['mysb_text_size']}px\">&raquo; {$delete}{$recover}{$report}<a href='#' onClick=\"javascript: ShoutBox.pvtAdd(".$row['uid']."); return false;\" {$extra}>{$username}</a> - {$date_time} -- {$message}</span><br />\r\n";

De fapt sunt 4 randuri de modificat din cate observi.

Users : collective term for those who use computers. Users are divided into three types : novice, intermediate and expert.
Novice users : people who are afraid that simply pressing a key might break their computer.
Intermediate users : people who don`t know how to fix their computer after they`ve just pressed a key that broke it.
Expert users : people who break other people`s computers.


Forum Jump:


Users browsing this thread: 1 Guest(s)