1
robin_hood
Re: Display new field in newbb
  • 2009/5/30 22:45

  • robin_hood

  • Just popping in

  • Posts: 51

  • Since: 2008/12/6


Works!!! Thank you all



2
robin_hood
Re: Display new field in newbb
  • 2009/5/27 21:48

  • robin_hood

  • Just popping in

  • Posts: 51

  • Since: 2008/12/6


Another notice, that code shows the gendre of the user who is connected himself (me) and not the gendre of the real poster(Bob) .

I created two test accounts, one i set my gendre as female and one as a male then i checked the forums (Bob's topic) and see that Bob gendre is Female if i am logged as a female account, and changed to Male if i am logged with the male account.



this is because of this code
profile $profile_handler->get($xoopsUser->getVar('uid'));



something needs to be changed here



3
robin_hood
Re: Display new field in newbb
  • 2009/5/27 21:26

  • robin_hood

  • Just popping in

  • Posts: 51

  • Since: 2008/12/6


in profile module permissions i set visibility correctly though.



4
robin_hood
Re: Display new field in newbb
  • 2009/5/27 21:10

  • robin_hood

  • Just popping in

  • Posts: 51

  • Since: 2008/12/6


thank you Ghia this works but the field is seen only if i am logged. if iam not logged i can't see this field, any fix please?



5
robin_hood
Re: Display new field in newbb
  • 2009/5/27 9:40

  • robin_hood

  • Just popping in

  • Posts: 51

  • Since: 2008/12/6


I appreciate your replies, Ghia i read that thread and found this code
<{php}>
      global 
$xoopsTpl$xoopsUser;

      
$myField '';
      if (
is_object($xoopsUser)) {
        
$profile_handler xoops_getmodulehandler('profile''profile');
        
$profile $profile_handler->get($xoopsUser->getVar('uid'));
        
$myField $profile->getVar('myfield');
      }
      
$xoopsTpl->assign('myField'$myField);
<{/
php}>
<{
$myField}>



but i don't know where to put it.

In newbb_thread.html there is
<tr>
      <
td width="20%" class="odd" rowspan="2" valign="top">
      <{if 
$topic_post.poster.uid != 0}>
      <
div class="comUserRankText"><{$topic_post.poster.rank.title}><br /><{$topic_post.poster.rank.image}></div>
      <{if 
$topic_post.poster.avatar}>
      <
img class="comUserImg" src="<{$xoops_upload_url}>/<{$topic_post.poster.avatar}>" alt="" />
      <{/if}>
      <
div class="comUserStat"><span class="comUserStatCaption"><{$smarty.const._MD_JOINED}>:</span><br /><{$topic_post.poster.regdate}></div>

      <{if 
$topic_post.poster.from}>
      <
div class="comUserStat"><span class="comUserStatCaption"><{$smarty.const._MD_FROM}></span> <{$topic_post.poster.from}></div>
      <{/if}>
    <{if 
$topic_post.poster.groups}>
      <
div class="comUserStat"> <span class="comUserStatCaption"><{$smarty.const._MD_GROUP}></span>
      <{foreach 
item=group from=$topic_post.poster.groups}> <br /><{$group}><{/foreach}>
      </
div>
    <{/if}>


I guess that the first code should go somewhere here, is that right?

I am not a coder can you help me please?



6
robin_hood
Display new field in newbb
  • 2009/5/24 10:21

  • robin_hood

  • Just popping in

  • Posts: 51

  • Since: 2008/12/6


Hello want to add a new field in the user stats in newbb. To be more clear i added a gender field using profile module and i want to display the member gender in newbb under
Joined:
2008/8/27 21:58

Any idea please?



7
robin_hood
Re: Metaname generator
  • 2009/3/30 2:13

  • robin_hood

  • Just popping in

  • Posts: 51

  • Since: 2008/12/6


Can I change "XOOPS" with one of my keywords?



8
robin_hood
Re: Yogurt.. let's start hacking
  • 2009/3/29 23:00

  • robin_hood

  • Just popping in

  • Posts: 51

  • Since: 2008/12/6


Quote:
You must have an incomplete archive. Download it again.
English and German language files are included.


yep there are but main.php is missing transalation.




9
robin_hood
Re: Yogurt.. let's start hacking
  • 2009/3/29 21:24

  • robin_hood

  • Just popping in

  • Posts: 51

  • Since: 2008/12/6


Quote:
its not my module. this is the next profile modul by dirk herrmann aka dhsoft


Can someone translate the module into english please?



10
robin_hood
Metaname generator
  • 2009/3/29 4:08

  • robin_hood

  • Just popping in

  • Posts: 51

  • Since: 2008/12/6


Hi what is this meta used for?
<meta name="generator" content="XOOPS" />




TopTop
(1) 2 3 4 5 »



Login

Who's Online

148 user(s) are online (110 user(s) are browsing Support Forums)


Members: 0


Guests: 148


more...

Donat-O-Meter

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

Latest GitHub Commits