TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,972
  • Latest: Lineo
Stats
  • Total Posts: 196,166
  • Total Topics: 21,347
  • Online today: 626
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 294
  • Total: 295
  • lurkalot

Meet the team page.. Awesome

Started by londonhogfan, April 04, 2006, 08:25:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gargoyle

Well i got it to work great on the first page but then I tried to do another page for a different membergroup and it would not work...

If I make multiple pages using the same code is there a variable I should change to make it work ??

Techdomain

what exactly is 'teamtext' => $row['teamtext'], calling to?

I can see that the custom text shows up, but i also notice that on this site the team page has a paragraph...

this is what I have done with it so far: http://www.techdomain.com.au/index.php?page=23

that is done using secondary member groups

bloc

In my version its actually a extra profile field within the bz7 theme. It looks specifically for that. The team can edit that field and it will be reflected at once on the team page.

Techdomain

#73
ah - ok. thanks for that.

any chance on getting the code bits to do that?

bloc

Sure. If you use the code in first post here more or less, the call is already fetching the texts - you only need to add the fields to the profile template.

If you open Profile.template in the theme you want to use as base, look for this code: // Personal text...
echo '
<tr>
<td width="40%"><b>', $txt[228], ': </b></td>

and add this BEFORE it:
// extra field for team
echo '
      <tr>
        <td><b>Personal Description: </b></td>
        <td>
         <textarea name="default_options[teamtext]" rows="6" cols="80" class="editor">', !empty($context['member']['options']['teamtext']) ? $context['member']['options']['teamtext'] : '' , '</textarea>
        </td>
     </tr>';


Then all members can update that..but only the group you set in the team page will actually be fetched for team page.

Techdomain

#75
Thanks for that Bloc!

Worked like a charm  ;D

Techdomain

here is the staff page as I have it here http://www.techdomain.com.au/index.php?page=23 , as an article: (get the articlecode.txt file)

what I did was I assigned secondary member groups to those that I wanted to display, and then put in the numbers corresponding to that group.

alternatively, you can install the smfhacks staff page mod, and then overwrite the staff.template.php with this one: (just edit it the same way that you need to edit the article code above)
that will let you have action=staff instead of it being an article: http://www.techdomain.com.au/index.php?action=staff

If anyone needs any help with that code, let me know. I have put the description for each group under the group displayed, but in the code, it appears at the top of the following group. this was because I was too lazy to move it. if you dont understand, play around with it, and it should be fairly self explanetory.

I also have the extra text field added above (into profile.template.php in /themes/default) and have set the personal text and the team text to display to the right of the staff page (which could cause a problem for low res users)

Techdomain

Bloc, if you dont mind, I might throw together a package for TP to have the page displayed as above for 0.9.5. (unless you are already doing that!)

HaxXxoR

I kinda feel dumb in asking but how do i change it to display other member groups then the ones that you have on there?


The only ranks that i want to display is Global Moderators, Administrator, and Graphix

Techdomain

it depends on what your group numbers are. administrator will nearly always be 1, and global mod 2. graphix you will have to see (just go to membergroups in your admin, click on the modify of the group "graphix" and look at the number that the group is (will be in your url bar)
other then that, you can delete the rest.
you will need to go through each of your members that you want displayed and assign the secondary member group (the same as the primary I would assume)
If you tell my what the number is of your "graphix" group, I will do the edit to the code for you.

This website is proudly hosted on Crocweb Cloud Website Hosting.