Webboard

Pełna wersja: Podgląd działu - box
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
wersja skryptu MyBB: 1.6.15
adres forum: fungaming.xaa.pl
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu): [Obrazek: imZtAbm.png]
Jak mogę tutaj zrobić jakiś mały box lub coś podobnego aby było widoczne kto przegląda dział oraz to niżej nowe posty itp
Bardzo szybko zrobiłbyś to sam używając tego poradnika: https://webboard.pl/thread-45824.html

Poza tym nie możemy Ci więcej pomóc ponieważ twoje forum jest zamknięte...
Odpowiednio wystylizowany
Kod:
<div class="nazwa">ZAWARTOSC, KOD</div>
z paddingiem i backgroundem w sobie rozwiąże raczej problem, oraz CSS:
Kod PHP:
.nazwa {
background#CCC;
padding5px;
colorred;


Pomyśl trochę, własnego wkładu, nie same gotowce. Więcej się nauczysz.
Już otwarte.

Mam to dać do global.css?
i co co chodzi tutaj (zawartosc, kod)
Kod:
<div class="nazwa">ZAWARTOSC, KOD</div>
No to robisz w global.css taką klasę:

Kod PHP:
.userbrowsing_bg {
positionrelative;
displayinline-block;
margin-top5px;
background#F9F9F9;
padding8px;
border-radius2px;


Następnie przechodzisz do szablonu forumdisplay_usersbrowsing oraz widzisz coś w tym stylu:

Kod:
<span class="smalltext">FUNKCJA/KOD</span><br>

Oraz teraz obok klasy smalltext dodajesz userbrowsing_bg. Czyli całość będzie wyglądała mniej więcej tak:

Kod:
<span class="userbrowsing_bg smalltext">FUNKCJA/KOD</span><br>

A jak chcesz jeszcze przerobić tak tą legendę na dole to podaj mi zawartość szablonu forumdisplay (Widok działu).
dałby ktoś gotowca? xd
Przecież Ecosse właśnie to zrobił. :sciana:
FUNKCJA/KOD

co tu mam wpisac? x;
Naprawdę?

Pokaż mi ten szablon forumdisplay_usersbrowsing... I chyba prosiłem Cię abyś podał mi szablon forumdisplay...

Jak chcesz taki czarny przezroczysty kolor to zamień klasę którą Ci podałem na:

Kod PHP:
.userbrowsing_bg {
positionrelative;
displayinline-block;
background#303030;
backgroundrgba(3030300.9);
background: -moz-linear-gradient(toprgba(3030300.80%, rgba(3030300.9100%);
background: -webkit-gradient(linearleft topleft bottomcolor-stop(0%,rgba(3030300.8)), color-stop(100%,rgba(3030300.9)));
background: -webkit-linear-gradient(toprgba(3030300.80%,rgba(3030300.9100%);
background: -o-linear-gradient(toprgba(3030300.80%,rgba(3030300.9100%);
background: -ms-linear-gradient(toprgba(3030300.80%,rgba(3030300.9100%);
backgroundlinear-gradient(to bottomrgba(3030300.80%,rgba(3030300.9100%);
border1px solid #151515;
-webkit-border-radius4px;
-
moz-border-radius4px;
border-radius4px;
-
webkit-box-shadowrgba(0000.50px 1px 5pxinset rgba(2552552550.120px 1px 0px;
-
moz-box-shadowrgba(0,0,0,0.50px 1px 5pxinset rgba(255,255,255,0.120px 1px 0px;
box-shadowrgba(0000.50px 1px 5pxinset rgba(2552552550.120px 1px 0px;
colorwhite;
padding10px;


I OTWÓRZ FORUM!!! Po co nam adres jak forum jest ZAMKNIĘTE!?
userbrowsing:

Kod:
<span class="smalltext">{$lang->users_browsing_forum} {$onlinemembers}{$onlinesep}{$invisonline}{$onlinesep2}{$guestsonline}</span><br />

forumdipslay:

Kod:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$foruminfo['name']} </title>
{$headerinclude}
{$rssdiscovery}
<script type="text/javascript">
<!--
    lang.no_new_posts = "{$lang->no_new_posts}";
    lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}
{$moderatedby}
{$usersbrowsing}
{$rules}
{$subforums}
{$threadslist}
{$footer}
</body>
</html>

Forum otwarte
No i nie wiem gdzie ty miałeś problem...

Zamień userbrowsing na:

Kod PHP:
<span class="userbrowsing_bg smalltext">{$lang->users_browsing_forum} {$onlinemembers}{$onlinesep}{$invisonline}{$online​sep2}{$guestsonline}</span><br /> 

Oraz pokaż jeszcze zawartość szablonu forumdisplay_threadlist.
W tym szablonie została wykryta potencjalna luka bezpieczeństwa. Zweryfikuj szablon lub skontaktuj się z twórcami MyBB w celu uzyskania pomocy.

forumdisplay_threadlist :

Kod:
<div class="float_left">
    {$multipage}
</div>
<div class="float_right">
    {$newthread}
</div>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;">
    <tr>
        <td class="thead" colspan="{$colspan}">
            <div style="float: right;">
                <span class="smalltext"><strong><a href="misc.php?action=markread&amp;fid={$fid}{$post_code_string}">{$lang->markforum_read}</a> | <a href="usercp2.php?action={$add_remove_subscription}subscription&amp;type=forum&amp;fid={$fid}&amp;my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a>{$clearstoredpass}</strong></span>
            </div>
            <div>
                <strong>{$foruminfo['name']}</strong>
            </div>
        </td>
    </tr>
    <tr>
        <td class="tcat" colspan="3" width="66%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=subject&amp;order=asc">{$lang->thread}</a> {$orderarrow['subject']} / <a href="{$sorturl}&amp;sortby=starter&amp;order=asc">{$lang->author}</a> {$orderarrow['starter']}</strong></span></td>
        <td class="tcat" align="center" width="7%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=replies&amp;order=desc">{$lang->replies}</a> {$orderarrow['replies']}</strong></span></td>
        <td class="tcat" align="center" width="7%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=views&amp;order=desc">{$lang->views}</a> {$orderarrow['views']}</strong></span></td>
        {$ratingcol}
        <td class="tcat" align="right" width="20%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=lastpost&amp;order=desc">{$lang->lastpost}</a> {$orderarrow['lastpost']}</strong></span></td>
        {$inlinemodcol}
    </tr>
    {$selectall}
    {$announcementlist}
    {$threads}
    <tr>
        <td class="tfoot" align="right" colspan="{$colspan}">
            <form action="forumdisplay.php" method="get">
                <input type="hidden" name="selectall" value="" />
                <input type="hidden" name="fid" value="{$fid}" />
                <select name="sortby">
                    <option value="subject" {$sortsel['subject']}>{$lang->sort_by_subject}</option>
                    <option value="lastpost" {$sortsel['lastpost']}>{$lang->sort_by_lastpost}</option>
                    <option value="starter" {$sortsel['starter']}>{$lang->sort_by_starter}</option>
                    <option value="started" {$sortsel['started']}>{$lang->sort_by_started}</option>
                    {$ratingsort}
                    <option value="replies" {$sortsel['replies']}>{$lang->sort_by_replies}</option>
                    <option value="views" {$sortsel['views']}>{$lang->sort_by_views}</option>
                </select>
                <select name="order">
                    <option value="asc" {$ordersel['asc']}>{$lang->sort_order_asc}</option>
                    <option value="desc" {$ordersel['desc']}>{$lang->sort_order_desc}</option>
                </select>
                <select name="datecut">
                    <option value="1" {$datecutsel['1']}>{$lang->datelimit_1day}</option>
                    <option value="5" {$datecutsel['5']}>{$lang->datelimit_5days}</option>
                    <option value="10" {$datecutsel['10']}>{$lang->datelimit_10days}</option>
                    <option value="20" {$datecutsel['20']}>{$lang->datelimit_20days}</option>
                    <option value="50" {$datecutsel['50']}>{$lang->datelimit_50days}</option>
                    <option value="75" {$datecutsel['75']}>{$lang->datelimit_75days}</option>
                    <option value="100" {$datecutsel['100']}>{$lang->datelimit_100days}</option>
                    <option value="365" {$datecutsel['365']}>{$lang->datelimit_lastyear}</option>
                    <option value="9999" {$datecutsel['9999']}>{$lang->datelimit_beginning}</option>
                </select>
                {$gobutton}
            </form>
        </td>
    </tr>
</table>
<div class="float_left">
    {$multipage}
</div>
<div class="float_right" style="margin-top: 4px;">
    {$newthread}
</div>
<br style="clear: both;" />
<br />
<div class="float_left">
    <div class="float_left">
        <dl class="thread_legend smalltext">
            <dd><img src="{$theme['imgdir']}/newfolder.gif" alt="{$lang->new_thread}" title="{$lang->new_thread}" /> {$lang->new_thread}</dd>
            <dd><img src="{$theme['imgdir']}/newhotfolder.gif" alt="{$lang->new_hot_thread}" title="{$lang->new_hot_thread}" /> {$lang->new_hot_thread}</dd>
            <dd><img src="{$theme['imgdir']}/hotfolder.gif" alt="{$lang->hot_thread}" title="{$lang->hot_thread}" /> {$lang->hot_thread}</dd>
        </dl>
    </div>

    <div class="float_left">
        <dl class="thread_legend smalltext">
            <dd><img src="{$theme['imgdir']}/folder.gif" alt="{$lang->no_new_thread}" title="{$lang->no_new_thread}" /> {$lang->no_new_thread}</dd>
            <dd><img src="{$theme['imgdir']}/dot_folder.gif" alt="{$lang->posts_by_you}" title="{$lang->posts_by_you}" /> {$lang->posts_by_you}</dd>
            <dd><img src="{$theme['imgdir']}/lockfolder.gif" alt="{$lang->locked_thread}" title="{$lang->locked_thread}" /> {$lang->locked_thread}</dd>
        </dl>
    </div>
    <br style="clear: both" />
</div>

<div class="float_right" style="text-align: right;">
    {$inlinemod}
    {$searchforum}
    {$forumjump}
</div>
<br style="clear: both" />
{$inline_edit_js}
Zamień forumdisplay_threadlist:

Kod PHP:
<div class="float_left">
    {
$multipage}
</
div>
<
div class="float_right">
    {
$newthread}
</
div>
<
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder" style="clear: both;">
    <
tr>
        <
td class="thead" colspan="{$colspan}">
            <
div style="float: right;">
                <
span class="smalltext"><strong><a href="misc.php?action=markread&amp;fid={$fid}{$post_code_string}">{$lang->markforum_read}</a> | <a href="usercp2.php?action={$add_remove_subscription}subsc​ription&amp;type=forum&amp;fid={$fid}&amp;my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a>{$clearstoredpass}</strong></span>
            </
div>
            <
div>
                <
strong>{$foruminfo['name']}</strong>
            </
div>
        </
td>
    </
tr>
    <
tr>
        <
td class="tcat" colspan="3" width="66%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=subject&amp;order=asc">{$lang->thread}</a> {$orderarrow['subject']} / <a href="{$sorturl}&amp;sortby=starter&amp;order=asc">{$lang->author}</a> {$orderarrow['starter']}</strong></span></td>
        <
td class="tcat" align="center" width="7%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=replies&amp;order=desc">{$lang->replies}</a> {$orderarrow['replies']}</strong></span></td>
        <
td class="tcat" align="center" width="7%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=views&amp;order=desc">{$lang->views}</a> {$orderarrow['views']}</strong></span></td>
        {
$ratingcol}
        <
td class="tcat" align="right" width="20%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=lastpost&amp;order=desc">{$lang->lastpost}</a> {$orderarrow['lastpost']}</strong></span></td>
        {
$inlinemodcol}
    </
tr>
    {
$selectall}
    {
$announcementlist}
    {
$threads}
    <
tr>
        <
td class="tfoot" align="right" colspan="{$colspan}">
            <
form action="forumdisplay.php" method="get">
                <
input type="hidden" name="selectall" value="" />
                <
input type="hidden" name="fid" value="{$fid}/>
                <
select name="sortby">
                    <
option value="subject" {$sortsel['subject']}>{$lang->sort_by_subject}</option>
                    <
option value="lastpost" {$sortsel['lastpost']}>{$lang->sort_by_lastpost}</option>
                    <
option value="starter" {$sortsel['starter']}>{$lang->sort_by_starter}</option>
                    <
option value="started" {$sortsel['started']}>{$lang->sort_by_started}</option>
                    {
$ratingsort}
                    <
option value="replies" {$sortsel['replies']}>{$lang->sort_by_replies}</option>
                    <
option value="views" {$sortsel['views']}>{$lang->sort_by_views}</option>
                </
select>
                <
select name="order">
                    <
option value="asc" {$ordersel['asc']}>{$lang->sort_order_asc}</option>
                    <
option value="desc" {$ordersel['desc']}>{$lang->sort_order_desc}</option>
                </
select>
                <
select name="datecut">
                    <
option value="1" {$datecutsel['1']}>{$lang->datelimit_1day}</option>
                    <
option value="5" {$datecutsel['5']}>{$lang->datelimit_5days}</option>
                    <
option value="10" {$datecutsel['10']}>{$lang->datelimit_10days}</option>
                    <
option value="20" {$datecutsel['20']}>{$lang->datelimit_20days}</option>
                    <
option value="50" {$datecutsel['50']}>{$lang->datelimit_50days}</option>
                    <
option value="75" {$datecutsel['75']}>{$lang->datelimit_75days}</option>
                    <
option value="100" {$datecutsel['100']}>{$lang->datelimit_100days}</option>
                    <
option value="365" {$datecutsel['365']}>{$lang->datelimit_lastyear}</option>
                    <
option value="9999" {$datecutsel['9999']}>{$lang->datelimit_beginning}</option>
                </
select>
                {
$gobutton}
            </
form>
        </
td>
    </
tr>
</
table>
<
div class="float_left">
    {
$multipage}
</
div>
<
div class="float_right" style="margin-top: 4px;">
    {
$newthread}
</
div>
<
br style="clear: both;" />
<
br />
<
div class="userbrowsing_bg float_left">
    <
div class="float_left">
        <
dl class="thread_legend smalltext">
            <
dd><img src="{$theme['imgdir']}/newfolder.gif" alt="{$lang->new_thread}title="{$lang->new_thread}/> {$lang->new_thread}</dd>
            <
dd><img src="{$theme['imgdir']}/newhotfolder.gif" alt="{$lang->new_hot_thread}title="{$lang->new_hot_thread}/> {$lang->new_hot_thread}</dd>
            <
dd><img src="{$theme['imgdir']}/hotfolder.gif" alt="{$lang->hot_thread}title="{$lang->hot_thread}/> {$lang->hot_thread}</dd>
        </
dl>
    </
div>

    <
div class="float_left">
        <
dl class="thread_legend smalltext">
            <
dd><img src="{$theme['imgdir']}/folder.gif" alt="{$lang->no_new_thread}title="{$lang->no_new_thread}/> {$lang->no_new_thread}</dd>
            <
dd><img src="{$theme['imgdir']}/dot_folder.gif" alt="{$lang->posts_by_you}title="{$lang->posts_by_you}/> {$lang->posts_by_you}</dd>
            <
dd><img src="{$theme['imgdir']}/lockfolder.gif" alt="{$lang->locked_thread}title="{$lang->locked_thread}/> {$lang->locked_thread}</dd>
        </
dl>
    </
div>
    <
br style="clear: both" />
</
div>

<
div class="float_right" style="text-align: right;">
    {
$inlinemod}
    {
$searchforum}
    {
$forumjump}
</
div>
<
br style="clear: both" />
{
$inline_edit_js

Pierw te oba szablony co ci podałem wklej do Notepad++ a nastepnie na forum.
Ten forumdisplay_Theradlist to jest na to Nowe posty itp to to działa
Ale to na podgląd nie działa ( chodz mi o to
Kod:
<span class="userbrowsing_bg smalltext">{$lang->users_browsing_forum} {$onlinemembers}{$onlinesep}{$invisonline}{$online​sep2}{$guestsonline}</span><br />
)
bo wywala
Kod:
W tym szablonie została wykryta potencjalna luka bezpieczeństwa. Zweryfikuj szablon lub skontaktuj się z twórcami MyBB w celu uzyskania pomocy.
Kod PHP:
<span class="smalltext userbrowsing_bg">{$lang->users_browsing_forum} {$onlinemembers}{$onlinesep}{$invisonline}{$onlinesep2}{$guestsonline}</span><br />