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,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,913
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 561
  • Total: 562
  • @rjen

Add a group to this code

Started by RebelRose, September 13, 2006, 11:55:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JPDeni

#60
I think I know what your problem was, but if it's working now, it must not be a problem. Still...

You have

$extra_links = array();
$extra_links['3'] = '5';
$extra_links['2'] = '11';


I think it's looking for $extra_links['1'], $extra_links['5'] and $extra_links['4']. If they're all equal to 0, you should still set them. Also, you don't need to have all of those single quotes.


$extra_links = array();
$extra_links[1] = 0;
$extra_links[2] = 11;
$extra_links[3] = 5;
$extra_links[4] = 0;
$extra_links[5] = 0;

Brian

Thank You very much that seemed to work.  I put the code I deleted back in and I had to add one more line $extra_links[6] = 0; and I have no errors again.  With all the code I deleted to get the appearance I wanted I am sure it is doing a lot of things it doesn't need to but it is working with 0 errors.   
Thank You again

JPDeni

Good. :) I'm glad I was able to help.

ChetUbetcha

I have been using this code for my Intranet site roster and it's great.  I also have the Custom Fields Mod and added Phone, Pager, Cell, etc.  How do I pull the items from the Custom Fields Mod database table to display those fields in this roster?

JPDeni

QuoteHow do I pull the items from the Custom Fields Mod database table to display those fields in this roster?
That will take a little work. In general, as you go through the loop to display the data for each person, you'll have to access the "settings" table that holds the custom fields to pull the info.

I'll look at it tomorrow. I'm a bit tired tonight.

geekincsupport

How would I make this display within its own tab?

Shadow


JPDeni

ChetUbetcha, there's a lot of code floating around in this topic. It would probably be best if you posted the code you're using, so I can start from there.

Miles, I don't know what you mean. If you want tabbed content in a block, look for the topic about tabbed content for information about how to do it.

Shadow Queen, are you asking what it does? It lists the admins and moderators of a site. Usually the best way to find out what a given piece of code does is to try it out. If you don't want it after you see it, you can just delete it.

Shadow

Alright, Where at I can found the correct code?  And which box I have to use.  I like to try it out.

JPDeni

First, almost everything posted on this board with code is php, unless it says it should go in a scriptbox. This is best in a php article.

As for which code to try, read the posts. Experiment. If one doesn't work, try another one, or apply the fixes to the code that follow it. That is the best way to learn.

This website is proudly hosted on Crocweb Cloud Website Hosting.