Announcement

Collapse
No announcement yet.

Saving Error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MajorKokosnuss
    replied
    oh okey do you know maby how i can fix my online users ? it doesn't show correctly

    Leave a comment:


  • Zachery
    replied
    You likely had bad html, which would have blown up the page if you saved it.

    Leave a comment:


  • MajorKokosnuss
    started a topic Saving Error

    Saving Error

    i can't remove anything from my page (GM Apps)

    this error pops up



    and my Online User Module is not working good, it doesn't show all online users

    // EDIT

    I fixed somehow the error (don't ask me how) but my online users is still not working correctly, it doesn't show the users wich are online.

    And i have this sometimes




    This is my code :

    Code:
    <vb:if condition="empty($widgetConfig) AND !empty($widgetinstanceid)">
        {vb:data widgetConfig, widget, fetchConfig, {vb:raw widgetinstanceid}}
    </vb:if>
    <vb:if condition="!empty($widgetConfig)">
        {vb:set widgetid, {vb:raw widgetConfig.widgetid}}
        {vb:set widgetinstanceid, {vb:raw widgetConfig.widgetinstanceid}}
    </vb:if>
    
    <vb:if condition="!$widgetConfig['thisPageOnly']">
        {vb:rawdata onlineUsers, wol, fetchAll, '', 'members', 1, {vb:raw widgetConfig.maxUsers}}
        {vb:rawdata onlineUserCounts, wol, fetchCounts, ''}
    <vb:else />
        {vb:rawdata onlineUsers, wol, fetchAll, {vb:raw page.pageKey}, 'members', 1, {vb:raw widgetConfig.maxUsers}}
        {vb:rawdata onlineUserCounts, wol, fetchCounts, {vb:raw page.pageKey}}
    </vb:if>
    <div class="canvas-widget default-widget wol-widget" data-widget-id="{vb:raw widgetid}" data-widget-instance-id="{vb:raw widgetinstanceid}">
        {vb:template module_title, widgetConfig={vb:raw widgetConfig}, title={vb:phrase online_users}, can_use_sitebuilder={vb:raw user.can_use_sitebuilder}}
        <div class="widget-content<vb:if condition="$widgetConfig['displayAvatars'] AND $onlineUsers AND $user['showavatars']"> display-avatar</vb:if>">
            <hr class="widget-header-divider" />
            <vb:if condition="isset($onlineUsers['errors']) OR isset($onlineUserCounts['errors'])">
                <div>{vb:phrase no_permission}</div>
            <vb:else />
                <vb:if condition="!empty($widgetinstanceid)">
                    <p><vb:if condition="$onlineUserCounts['total'] > 1">{vb:rawphrase there_are_x_online, {vb:raw onlineUserCounts.total}}<vb:else />{vb:rawphrase there_is_x_online, {vb:raw onlineUserCounts.total}}</vb:if> {vb:rawphrase x_members_and_y_guests, {vb:raw onlineUserCounts.members}, {vb:raw onlineUserCounts.guests}}.</p>
                    <p>{vb:rawphrase most_users_ever_online_was_x_y_at_z, {vb:raw onlineUserCounts.recordusers}, {vb:raw onlineUserCounts.recorddate}, {vb:raw onlineUserCounts.recordtime}}</p>
                    <vb:if condition="$onlineUsers">
                        <ul class="onlineuserlist h-clearfix">
                            {vb:set onlineCount, 0}
                            <vb:each from="onlineUsers" value="onlineUser">
                                <li class="h-left">
                                    <vb:comment>If the widget is set to display avatars and the current viewing user wants to see avatars</vb:comment>
                                    <vb:if condition="$widgetConfig['displayAvatars'] AND $user['showavatars']">
                                        <a href="{vb:url 'profile', {vb:raw onlineUser}}" class="avatar h-left">
                                            <vb:if condition="!empty($onlineUser['avatarpath'])">
                                                <img title="{vb:raw onlineUser.username}" alt="{vb:raw onlineUser.username}" src="{vb:raw baseurl_corecdn}/{vb:raw onlineUser.avatarpath}" />
                                            <vb:else />
                                                <img title="{vb:raw onlineUser.username}" alt="{vb:raw onlineUser.username}" src="{vb:raw baseurl_corecdn}/images/default/default_avatar_medium.png" width="64" height="64" />
                                            </vb:if>
                                        </a>
                                    <vb:else />
                                        <a href="{vb:url 'profile',{vb:raw onlineUser}}"><vb:if condition="!empty($user['musername'])">{vb:raw onlineUser.musername}<vb:else />{vb:raw user.username}</vb:if></a><vb:if condition="++$onlineCount < count($onlineUsers)">,&nbsp</vb:if></p>Ranks: <span class="glow-admin"><strong>Administrator</strong></span</b><b><span class="glow-normal"><strong>, </strong></span</b><b><span class="glow-member"><strong>Member</strong></span</b><b><span class="glow-normal"><strong>, </strong></span</b><b><span class="glow-supergm"><strong>SuperGM</strong></span</b><b><span class="glow-normal"><strong>, </strong></span</b><b><span class="glow-gm"><strong>GM</strong></span</b><b><span class="glow-normal"><strong>, </strong></span</b><b><span class="glow-graphicsdesigner"><strong>Graphics Designer</strong></span</b><b><span class="glow-normal"><strong>, </strong></span</b><b><span class="glow-wzeditor"><strong>WZ Editor</strong></span</b><b><span class="glow-normal"><strong>, </strong></span</b><b><span class="glow-banned"><strong>Banned</strong></span</b>
                                    </vb:if>
                                </li>
                            </vb:each>
                        </ul>
                    <vb:else />
                        {vb:phrase no_user_online}
                    </vb:if>
                <vb:else />
                    <vb:if condition="$user['can_use_sitebuilder']">
                        <span class="note">{vb:phrase click_edit_to_config_module}</span>
                    </vb:if>
                </vb:if>
            </vb:if>
        </div>
    </div>
    Last edited by MajorKokosnuss; Fri 25 Apr '14, 8:47am.

Related Topics

Collapse

Working...
X