• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

[8wayRun.Com] XenPorta (Module Add-Ons)

Oracle tried to help me do this and we couldnt figure out how to make this in porta

I have a user group that i want to have their avatar and name show in a module.

I currently have this in existence as the sidebar_users_online in the forum section, but can't seem to make it work within the portal

any code?

basically i want ALL members of a certain usergroup to show in the module
 

in short, we tried to use the below code from sidebar_online_uers in the module. My best guess is it didn't work because we tried to use xen code outside of the template system. I am not familiar enough with xen code to know for sure, or how we can adjust to make it work

Code:
<xen:edithint template="sidebar.css" />

<xen:if hascontent="true">
	<!-- block: sidebar_online_staff -->
	<div class="section staffOnline avatarList">
		<div class="secondaryContent">
			<h3>{xen:phrase staff_online_now}</h3>
			<ul>
				<xen:contentcheck>
					<xen:foreach loop="$onlineUsers.records" value="$user">
						<xen:if is="{$user.is_moderator} OR {$user.is_admin}">
							<li>
								<xen:avatar user="$user" size="s" img="true" />
								<xen:username user="$user" rich="true" />
								<div class="userTitle">{xen:helper userTitle, $user}</div>
							</li>
						</xen:if>
					</xen:foreach>
				</xen:contentcheck>
			</ul>
		</div>
	</div>
 
it's an example. If someone can adjust that code to make it work, then it's an easy step to do it with the modifications you made. I just thought the example would be easiest if it was an exact copy of what is in the standard xf install.
 
ahhh ok - i gotcha

i was thinking that group is an empty group so it would not show in porta..thanks for not posting my custom code up
 
in short, we tried to use the below code from sidebar_online_uers in the module. My best guess is it didn't work because we tried to use xen code outside of the template system. I am not familiar enough with xen code to know for sure, or how we can adjust to make it work
compare the two templates i have listed here for the alternate members online. i have one for the xf template and another for the portal template.
http://xenforo.com/community/threads/alternate-sidebar-members-online-now.9535/
iirc, the portal template is nearly identical with the exception that i removed a couple of lines.
i reckon staff online is the same situation.

i think if you change this:
Code:
<xen:edithint template="sidebar.css" />

<xen:if hascontent="true">
    <!-- block: sidebar_online_staff -->
    <div class="section staffOnline avatarList">
        <div class="secondaryContent">
            <h3>{xen:phrase staff_online_now}</h3>

to this:
Code:
<xen:if hascontent="true">
    <div class="section staffOnline avatarList">
        <div class="secondaryContent">
            <h3>{xen:phrase staff_online_now}</h3>

it should work.
 
I tried that and got "security error"

this is teh full code

Code:
<?xml version="1.0" encoding="utf-8"?>
<module>
  <module_name>FeatureTest</module_name>
  <module_cache>now</module_cache>
  <module_settings>
      </module_settings>
  <module_template><![CDATA[<xen:if hascontent="true">
    <div class="section staffOnline avatarList">
        <div class="secondaryContent">
            <h3>{xen:phrase staff_online_now}</h3>
            <ul>
                <xen:contentcheck>
                    <xen:foreach loop="$onlineUsers.records" value="$user">
                        <xen:if is="{$user.is_moderator} OR {$user.is_admin}">
                            <li>
                                <xen:avatar user="$user" size="s" img="true" />
                                <xen:username user="$user" rich="true" />
                                <div class="userTitle">{xen:helper userTitle,

$user}</div>
                            </li>
                        </xen:if>
                    </xen:foreach>
                </xen:contentcheck>
            </ul>
        </div>
    </div>]]>
</module_template>
</module>
 
I know this has been asked on many occasions but was unable to find a answer, is there or will there be a HTML module for your portal Jaxel?
 
IIRC, Just create a custom module and define your own html content in the xml for the module. It's quite easy once you look at any of the custom modules people have posted. :)
 
Top Bottom