Facebook 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4301
Latest: Bolon377
New This Month: 9
New This Week: 4
New Today: 1
Stats
Total Posts: 43801
Total Topics: 7605
Most Online Today: 561
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 57
Total: 57

Author Topic: Where is $data['forums'] defined?  (Read 4571 times)

0 Members and 1 Guest are viewing this topic.

Offline Marlon

  • Member
  • *
  • Posts: 3
    • View Profile
Where is $data['forums'] defined?
« 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?

Offline Marlon

  • Member
  • *
  • Posts: 3
    • View Profile
Re: Where is $data['forums'] defined?
« Reply #1 on: October 24, 2006, 10:10:48 pm »
I hate to bump this, but I gotta know :-\.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16677
    • View Profile
Re: Where is $data['forums'] defined?
« Reply #2 on: October 24, 2006, 10:18:59 pm »
Thats in staff.template.php
Code: [Select]
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']],
);

}
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Marlon

  • Member
  • *
  • Posts: 3
    • View Profile
Re: Where is $data['forums'] defined?
« 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.  :)

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
6630 Views
Last post October 14, 2007, 06:54:52 pm
by SMFHacks
0 Replies
3086 Views
Last post September 20, 2008, 02:52:11 am
by spurry
3 Replies
4040 Views
Last post December 06, 2010, 09:31:14 am
by marcbkk
5 Replies
9193 Views
Last post August 25, 2014, 05:05:47 pm
by quiraskill
6 Replies
3749 Views
Last post September 24, 2018, 10:23:55 am
by Rivilis

+- Recent Topics

A day? by davejo
June 11, 2025, 04:14:35 pm

Dual 'Upload Url' by davejo
June 06, 2025, 04:27:45 pm

Automatic Sorting of Categories by Kiwi
June 03, 2025, 10:32:32 pm

[Mod]Cloudflare Turnstile for SMF by SMFHacks
May 08, 2025, 10:08:43 am

Disable "Notify me of Comments feature" by Kiwi
May 08, 2025, 02:04:16 am

Trying to access array offset on null by Michel68
May 05, 2025, 08:47:34 am

Default [Additional] Membergroups upon Registration by SMFHacks
April 30, 2025, 10:22:52 am

Sorted FTP Import Directory by SMFHacks
April 25, 2025, 05:11:22 am

Search results items per page? by SMFHacks
April 18, 2025, 04:12:23 pm

Suggestions and request by Senkusha
April 03, 2025, 02:30:43 pm

Powered by EzPortal