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

Recent

Welcome to TinyPortal. Please login or sign up.

June 17, 2024, 05:17:40 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,253
  • Total Topics: 21,225
  • Online today: 149
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 121
  • Total: 121

ssi_membergroup function not working right

Started by npereira, March 19, 2008, 02:46:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

G6Cad

Think this is solved now ?
I mark it as solved.

Also as a side note, when ever another mod is used then the functions with in TP, please consult the mod author in the first place to sort out how that mod works :)

npereira

Quote from: JPDeni on March 19, 2008, 04:57:06 PM

global $db_prefix, $scripturl;

$request = db_query("
                SELECT ID_MEMBER, realname
                FROM {$db_prefix}members
                WHERE ID_GROUP = 36
                ORDER BY realname", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
  echo '
    <a href="'.$scripturl.'?action=profile;u='.$row['ID_MEMBER'].'">'.$row['realname'].'</a><br/>';


JP,
What would I need to put in a file.php to get this working ?
It's calling for settings fro the DB so I guess it needs a require statement, but not sure how to do that.... and also need the <PHP? and ?> to work right?

What if I wanted to put this in a script box instead...? How would I do this?

JPDeni

QuoteWhat would I need to put in a file.php to get this working ?
I don't know. I work within TP blocks. I've pretty much forgotten how to work outside of them.

Quoteand also need the <PHP? and ?> to work right?
Yes

QuoteWhat if I wanted to put this in a script box instead...? How would I do this?
It would go into a php block. Since you have that mod installed, you can just use


ssi_membergroup($groupid = 36, $additional = 1, $sort = 1, $sortorder = 1, $output_method = 'echo');


G6, when I started answering this, I didn't know it was a mod. By the time I learned it was, I felt I was already committed. (Maybe I should be committed, but that's a different story!   :uglystupid2: )

G6Cad

The PS was not ment to you JP, it was ment to npereira

To little info given on the first post so you couldent know what it was. And as always the posting guides tell our members what to do to help us help them. And we all know that the people that makes the mods available, have the best knowlage on how to make them work in diffrent ways.

So the point was not to you Girl  :D