1
fblanchet
How to remove some modules in the user profile?
  • 2006/1/4 12:39

  • fblanchet

  • Just popping in

  • Posts: 18

  • Since: 2005/6/14


Hello folks,
i'm looking for a way to remove some of the modules that are currently displayed in the user profile. I currently see all the contributions made in newbb, smartsection, smartfaq, etc. How can i control what module displays inside the profile?

Thanks in advance!

Fred

2
fblanchet
Re: How to remove some modules in the user profile?
  • 2006/1/18 13:41

  • fblanchet

  • Just popping in

  • Posts: 18

  • Since: 2005/6/14


bump

3
iHackCode
Re: How to remove some modules in the user profile?

edit the system template data :system_userinfo.html

i think the section that needs to be edited is:
<!-- start module search results loop -->
<{foreach 
item=module from=$modules}>

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

  <!-- 
start results item loop -->
  <{foreach 
item=result from=$module.results}>

  <
img src="<{$result.image}>" alt="<{$module.name}>" /><b><a href="<{$result.link}>"><{$result.title}></a></b><br /><small>(<{$result.time}>)</small><br />

  <{/foreach}>
  <!-- 
end results item loop -->

<{
$module.showall_link}>
</
p>

<{/foreach}>
<!-- 
end module search results loop -->


but i dont know how to edit it. sry
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

4
fblanchet
Re: How to remove some modules in the user profile?
  • 2006/1/18 17:02

  • fblanchet

  • Just popping in

  • Posts: 18

  • Since: 2005/6/14


Yup you are right,
i've seen this in the template portion of xoops... That allows me to remove completely all the contributions, but will not allow me to remove specific ones. There must be a way.

Thanks
Fred

5
mawi27
Re: How to remove some modules in the user profile?
  • 2006/1/19 15:10

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Hi Fred,

in XOOPS 2.2.3 this is in the modules/profile/templates/profile_userinfo.html

<{if $modules}>
<
br style="clear: both;"/>
<!-- 
start module search results loop -->
<{foreach 
item=module from=$modules}>

[
color=FF0000]<{if $module.name == MyModuleName}>[/color]
<
p>
<
h4><{$module.name}></h4>
<!-- 
start results item loop -->
<{foreach 
item=result from=$module.results}>
<
img src="<{$result.image}>" alt="<{$module.name}>" />&nbsp;<b><a href="<{$result.link}>"><{$result.title}></a></b><br /><small>(<{$result.time}>)</small><br />
<{/foreach}>
<!-- 
end results item loop -->
<{
$module.showall_link}>
</
p>
[
color=FF0000]<{/if}>[/color]

<{/foreach}>
    <!-- 
end module search results loop -->
<{/if}>


insert the red lines and repeat the whole block for each module u wanna show.
U can also use {if $module.name != MyModuleName} to exclude a specific module

Maybee its possible to use bollean expressions in the if-clause, but i didn't check that out.



Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more

6
jimmyx
Re: How to remove some modules in the user profile?
  • 2007/11/20 20:44

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


Bump Topic

how to do this 2.017.1 ? help

7
nachenko
Re: How to remove some modules in the user profile?
  • 2007/11/20 21:29

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Easy.

You got this:

Quote:
<{foreach item=module from=$modules}>


add this after it:

Quote:
<{if $module.name == "Module I want to show..."}>



then, locate the last foreach closing clause, and close the "if" statement adding this just before:

Quote:
<{/if}>


You want to hide a block? Easy.

Quote:
<{if $module.name != "Module I want to show..."}>


You want to show some blocks? Easy.

Quote:
<{if $module.name == "Module I want to show..." || $module.name == "Module I want to show..."}>

8
jimmyx
Re: How to remove some modules in the user profile?
  • 2007/11/21 2:31

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


i tried this..but not working ....

<!-- start module search results loop -->
<{foreach 
item=module from=$modules}>
<{if 
$module.name == "news" || $module.name == "mylinks"}>
<
p>
<
h4><{$module.name}></h4>

  <!-- 
start results item loop -->
  <{foreach 
item=result from=$module.results}>

  <
img src="<{$result.image}>" alt="<{$module.name}>" /><b><a href="<{$result.link}>"><{$result.title}></a></b><br /><small>(<{$result.time}>)</small><br />

  <{/foreach}>
  <!-- 
end results item loop -->

<{
$module.showall_link}>
</
p>
<{/if}>
<{/foreach}>
<!-- 
end module search results loop -->


i only want to show the news and mylinks modules

9
smart2
Re: How to remove some modules in the user profile?
  • 2007/11/21 7:50

  • smart2

  • Not too shy to talk

  • Posts: 129

  • Since: 2007/1/19


Did you reload templates?

10
nachenko
Re: How to remove some modules in the user profile?
  • 2007/11/21 8:50

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Are these the right name of the modules as you have them configured in the "modules" section? Are these the name of the modules as they appear in the main menu?

Login

Who's Online

254 user(s) are online (153 user(s) are browsing Support Forums)


Members: 0


Guests: 254


more...

Donat-O-Meter

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

Latest GitHub Commits