SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 23, 2012, 07:55:45 am

Login with username, password and session length
Members
Total Members: 10069
Latest: tetsujrock
Stats
Total Posts: 28682
Total Topics: 4975
Online Today: 94
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 61
Total: 61
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Where is $data['forums'] defined?  (Read 2292 times)
Marlon
Newbie
*
Offline Offline

Posts: 3


View Profile
« on: October 23, 2006, 12:34:26 pm »

This is in regrads to the staff mod (?action=staff).  I tried using strReplace to replace all instances of '<br />' with ', ' in $data['forums'] to parse the moderator's boards in a comma-separated form rather than the default list format.  That didn't prove to be successful...in the least bit, LOL.

So rather than playing around with a stuborn variable where it's called, I would much rather modify it where it's defined.  Which brings me to my question: in what file is $data['forums'] defined?
Logged
Marlon
Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #1 on: October 24, 2006, 10:10:48 pm »

I hate to bump this, but I gotta know Undecided.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« Reply #2 on: October 24, 2006, 10:18:59 pm »

Thats in staff.template.php
Code:
while ($row3 = mysql_fetch_assoc($query3))
{
$bmods[$row3['ID_MEMBER']] .= $row3['name']  . '<br />';

$localmods[$row3['ID_MEMBER']]  = array(
'id' => $row3['ID_MEMBER'],
'realName' => $row3['realName'],
'lastLogin' => $row3['lastLogin'],
'dateRegistered' => $row3['dateRegistered'],
'forums' =>  $bmods[$row3['ID_MEMBER']],
);

}
Logged
Marlon
Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #3 on: October 25, 2006, 07:28:23 pm »

Thats in staff.template.php

Really now, how could I have missed that?  Thanks vb, it's much appreciated.  Smiley
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]

[May 17, 2012, 12:38:16 pm]

[May 15, 2012, 09:32:27 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 0.199 seconds with 18 queries.