1
dickinsd
Where does the module info come from on userinfo.php
  • 2005/11/20 12:22

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


Hi there.

When you view the userinfo.php page for any user, you can see any details they wish to share, you can also see a list of modules which they have posted to, for example you can see if they have made posts to the news module.

The end of the template looks like this:

<{if $modules}>
    <
br style="clear: both;"/>
    
    <{foreach 
item=module from=$modules}>

    <
p>
    <
h4><{$module.name}>h4>

      
          <{foreach 
item=result from=$module.results}>

          <
img src="<{$result.image}>" alt="<{$module.name}>" />&nbsp;<b><a href="<{$result.link}>"><{$result.title}>a>b>small><br />

          <{/foreach}>
          

    <{
$module.showall_link}>
    p>

    <{/foreach}>
    
<{/if}>


This works fine for all modules except one, so I want to know where it gets the list of modules from so that I can see about adding the information for the missing module.

Does that make sense?

Thanks for any help on this.

Dave

2
Dave_L
Re: Where does the module info come from on userinfo.php
  • 2005/11/20 14:43

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


[XOOPS 2.2.3]

It looks like the modules listed there must support the XOOPS global search.

/modules/profile/userinfo.php does a search by module for items associated with the user ID, and puts the results in the template variable $modules.

Here's an article on implementing the search feature in a module: http://dev.xoops.org/modules/phpwiki/index.php/SearchFunction ( I don't know if the article is up-to-date.)

Login

Who's Online

314 user(s) are online (201 user(s) are browsing Support Forums)


Members: 0


Guests: 314


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits