[ABD] My Page - Personal web page for your members

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
djchrisnet
Registered User
Posts: 95
Joined: Thu Sep 20, 2007 3:39 pm
Contact:

Re: [BETA] My Page - Personal web page for your members

Post by djchrisnet » Sun Nov 02, 2008 7:58 pm

issjut wrote:$is_auth = (int) ((int) $auth->acl_get('u_mp_allowed_')1 || (int) $auth->acl_get('u_mp_allowed_')2 || (int) $auth->acl_get('u_mp_allowed_')3);
The fat marked numbers are the mistake. i hope the mod author will be know, on where place this numbers jump into the eval() :)

Josh18657
Registered User
Posts: 425
Joined: Wed Nov 30, 2005 9:55 pm
Contact:

Re: [BETA] My Page - Personal web page for your members

Post by Josh18657 » Mon Nov 03, 2008 12:17 am

issjut wrote:After the update from 0.1.x to 0.2.3. I get this error on all UCP pages

Code: Select all

Parse error: syntax error, unexpected T_LNUMBER in /www/htdocs/w0090034/includes/functions_module.php(328) : eval()'d code on line 1

Parse error: syntax error, unexpected T_LNUMBER in /www/htdocs/w0090034/includes/functions_module.php(328) : eval()'d code on line 1

Parse error: syntax error, unexpected T_LNUMBER in /www/htdocs/w0090034/includes/functions_module.php(328) : eval()'d code on line 1

Parse error: syntax error, unexpected T_LNUMBER in /www/htdocs/w0090034/includes/functions_module.php(328) : eval()'d code on line 1

Parse error: syntax error, unexpected T_LNUMBER in /www/htdocs/w0090034/includes/functions_module.php(328) : eval()'d code on line 1
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4112: Cannot modify header information - headers already sent by (output started at /includes/functions_module.php(328) : eval()'d code:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4114: Cannot modify header information - headers already sent by (output started at /includes/functions_module.php(328) : eval()'d code:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4115: Cannot modify header information - headers already sent by (output started at /includes/functions_module.php(328) : eval()'d code:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4116: Cannot modify header information - headers already sent by (output started at /includes/functions_module.php(328) : eval()'d code:1)
Any idears how I can fix it?

I used the ECHO command at the point where the error is produced to detect the code an i got this

Code: Select all

$is_auth = (int) ((int) $config['allow_bookmarks']);
$is_auth = (int) ((int) $auth->acl_get('u_attach'));
$is_auth = (int) ((int) $config['allow_privmsg']);
$is_auth = (int) ((int) $config['allow_privmsg']);
$is_auth = (int) ((int) $config['allow_privmsg']);
$is_auth = (int) ((int) $config['allow_privmsg']);
$is_auth = (int) ((int) $config['allow_privmsg']);
$is_auth = (int) ((int) $config['allow_privmsg']);
$is_auth = (int) ((int) $auth->acl_get('a_bank_manage') || (int) $auth->acl_get('m_bank_manage'));
$is_auth = (int) ((int) $auth->acl_get('u_attach'));
$is_auth = (int) ((int) $auth->acl_get('u_mp_allowed_')1 || (int) $auth->acl_get('u_mp_allowed_')2 || (int) $auth->acl_get('u_mp_allowed_')3);
$is_auth = (int) ((int) $auth->acl_get('u_mp_allowed_')1 || (int) $auth->acl_get('u_mp_allowed_')2 || (int) $auth->acl_get('u_mp_allowed_')3);
$is_auth = (int) ((int) $auth->acl_get('u_mp_uploads_')1 || (int) $auth->acl_get('u_mp_uploads_')2 || (int) $auth->acl_get('u_mp_uploads_')3);
$is_auth = (int) ((int) $auth->acl_get('u_mp_allowed_')1 || (int) $auth->acl_get('u_mp_allowed_')2 || (int) $auth->acl_get('u_mp_allowed_')3);
$is_auth = (int) ((int) $auth->acl_get('u_mp_allowed_')1 || (int) $auth->acl_get('u_mp_allowed_')2 || (int) $auth->acl_get('u_mp_allowed_')3);
There are numbers inside which do not belong there!

Remove all the mypage modules from the db (phpbb_modules) these will have MYPAGE somewhere in the language name and re run the installer script.

Also, are using a translation of mypage on your forums?
I can help you edit your forums at a reasonable price, send a PM if you can't get something figured out here.

User avatar
Smavy
Registered User
Posts: 36
Joined: Wed Mar 28, 2007 12:04 pm
Location: Germany
Contact:

Re: [BETA] My Page - Personal web page for your members

Post by Smavy » Mon Nov 03, 2008 8:31 am

Hi,
the current german language file you find here: MyPage German

@Josh
I see no difference in the languagfe files between 0.2.2 and 0.2.3 right?

.

Josh18657
Registered User
Posts: 425
Joined: Wed Nov 30, 2005 9:55 pm
Contact:

Re: [BETA] My Page - Personal web page for your members

Post by Josh18657 » Mon Nov 03, 2008 12:26 pm

Smavy wrote:Hi,
the current german language file you find here: MyPage German

@Josh
I see no difference in the languagfe files between 0.2.2 and 0.2.3 right?

.

No change
I can help you edit your forums at a reasonable price, send a PM if you can't get something figured out here.

azzam
Registered User
Posts: 345
Joined: Sat May 03, 2008 11:33 am

Re: [BETA] My Page - Personal web page for your members

Post by azzam » Mon Nov 03, 2008 5:52 pm

I know this mod still in progress but i want to know is every one facing same problem as i am ....I am adding new pages as a registered member as a admin ..but in member list its showing no pages created yet....
And in view topic page nothing showing too there.

So please it would be great who can tell me how to fix this problem.
Azzam Malik
I love mods :)

User avatar
Ladysarajane
Registered User
Posts: 441
Joined: Sat Feb 18, 2006 10:05 pm

Re: [BETA] My Page - Personal web page for your members

Post by Ladysarajane » Mon Nov 03, 2008 9:24 pm

You need to give your pages a number...After creating the page(s) Go to your UCP->MyPage->Overview and there you should see your pages listed. They will 0(zero) as a default value. Number the pages as you want them to appear starting of course with Number 1. After you do that, the pages will then appear in viewtopic and Memberlist.
When all else fails, read the instructions

cupidon
Registered User
Posts: 9
Joined: Wed Sep 26, 2007 6:29 am
Location: Belgium

Re: [BETA] My Page - Personal web page for your members

Post by cupidon » Wed Nov 05, 2008 10:45 pm

hi i have installed this on an prosilver theme bud when i click on edit page if have this error
Fatal error: Cannot redeclare display_forums() (previously declared in /customers/........./includes/functions_display.php:22) in /customers/........../includes/functions_display.php on line 459
any idea too resolve this

thanks

DJ Skitzo
Registered User
Posts: 596
Joined: Sun Aug 12, 2007 7:25 pm

Re: [BETA] My Page - Personal web page for your members

Post by DJ Skitzo » Thu Nov 06, 2008 1:23 am

added this to my site and it seems to be working perfectly

RossSEMI
Registered User
Posts: 51
Joined: Sat Feb 16, 2008 9:25 pm
Location: Warren, Michigan, USA

Re: [BETA] My Page - Personal web page for your members

Post by RossSEMI » Thu Nov 06, 2008 3:56 am

1st off, love this mod.

Only problem I am having is the use of brackets [], they turn into ?? marks after hitting submit button.
Infact after uploading an image file and adding it in-line as part of a page, this happens.

Example: text for an image file gets inserted in page like this:

Code: Select all

[IMG]http://greatlakesmetaldetecting.com/phpBB3/mypage.php?image=4[/IMG]
after hitting submit button, only text of code shows up on page like this:

Code: Select all

?img?http://greatlakesmetaldetecting.com/phpBB3/mypage.php?image=4?/img?
BTW, if I use these <> brackets in code, everything is OK.
Example:

Code: Select all

<img src="http://greatlakesmetaldetecting.com/phpBB3/mypage.php?image=4"></a></IMG>
Any suggestions?
Just a 10 year rookie at this stuff.

User avatar
MrMontana
Registered User
Posts: 86
Joined: Wed Sep 03, 2008 7:14 am

Re: [BETA] My Page - Personal web page for your members

Post by MrMontana » Fri Nov 07, 2008 1:45 am

Umm, yea, that means BBCode is not allowed in MaPAGE, and also you allowed HTML, another words, you only can use HTML for the editing pages.

tbma2008
Registered User
Posts: 44
Joined: Wed Apr 16, 2008 1:07 am

Re: [BETA] My Page - Personal web page for your members

Post by tbma2008 » Mon Nov 10, 2008 3:20 am

been using this for a couple months now, no problems at all i love it. Only problem i have is alot of my members dont know alot about html. they are having problems making decent looking pages. I posted this and it has helped, its a website with simple basic templates they can copy into their mypage and edit the code. its very self explanitory.
TBMAMUSIC.COM

User avatar
damsprivate
Registered User
Posts: 461
Joined: Sun Aug 17, 2008 10:39 pm
Location: indonesia
Contact:

Re: [BETA] My Page - Personal web page for your members

Post by damsprivate » Mon Nov 10, 2008 12:12 pm

tbma2008 wrote:been using this for a couple months now, no problems at all i love it. Only problem i have is alot of my members dont know alot about html. they are having problems making decent looking pages. I posted this and it has helped, its a website with simple basic templates they can copy into their mypage and edit the code. its very self explanitory.
same as my thougt . how about easy editable html ? it would be nicer for next update
binus university 2009 .
"did u know that 17 august ( when i join this forum ) is at Indonesia independence day ? "

User avatar
ricky_a
Registered User
Posts: 152
Joined: Wed Oct 29, 2008 5:36 pm
Location: Trinidad & Tobago

Re: [BETA] My Page - Personal web page for your members

Post by ricky_a » Thu Nov 13, 2008 5:50 am

I've been using this MOD for a while now and it's working great.
I have a MOD request to make to the developers of MyPage. See my post here in the MOD request section http://www.phpbb.com/community/viewtopi ... 2&t=922805. It's the 3rd post in the thread.

shahinavthal
Registered User
Posts: 277
Joined: Fri Sep 19, 2008 6:53 am

Re: [BETA] My Page - Personal web page for your members

Post by shahinavthal » Fri Nov 14, 2008 9:40 pm

I get the following error while i try to edit a page ( the link shown at that moment is http://www.aikyam.org/forum/ucp.php?i=m ... _id=1&sid=*************)

But i can view the pages made earlier using this mod..Only unable to edit :?

Code: Select all

Fatal error: Cannot redeclare display_forums() (previously declared in /home/aikyam0/public_html/forum/includes/functions_display.php:22) in /home/aikyam0/public_html/forum/includes/functions_display.php on line 484
This is my code from line 22 to 484

Code: Select all

function display_forums($root_data = '', $display_moderators = true, $return_moderators = false)
{
   global $db, $auth, $user, $template;
   global $phpbb_root_path, $phpEx, $config;

   $forum_rows = $subforums = $forum_ids = $forum_ids_moderator = $forum_moderators = $active_forum_ary = array();
   $parent_id = $visible_forums = 0;
   $sql_from = '';

   // Mark forums read?
   $mark_read = request_var('mark', '');

   if ($mark_read == 'all')
   {
     $mark_read = '';
   }

   if (!$root_data)
   {
     if ($mark_read == 'forums')
     {
       $mark_read = 'all';
     }

     $root_data = array('forum_id' => 0);
     $sql_where = '';
   }
   else
   {
     $sql_where = 'left_id > ' . $root_data['left_id'] . ' AND left_id < ' . $root_data['right_id'];
   }

   // Display list of active topics for this category?
   $show_active = (isset($root_data['forum_flags']) && ($root_data['forum_flags'] & FORUM_FLAG_ACTIVE_TOPICS)) ? true : false;

   $sql_array = array(
     'SELECT'   => 'f.*',
     'FROM'      => array(
       FORUMS_TABLE      => 'f'
     ),
     'LEFT_JOIN'   => array(),
   );

   if ($config['load_db_lastread'] && $user->data['is_registered'])
   {
     $sql_array['LEFT_JOIN'][] = array('FROM' => array(FORUMS_TRACK_TABLE => 'ft'), 'ON' => 'ft.user_id = ' . $user->data['user_id'] . ' AND ft.forum_id = f.forum_id');
     $sql_array['SELECT'] .= ', ft.mark_time';
   }
   else if ($config['load_anon_lastread'] || $user->data['is_registered'])
   {
     $tracking_topics = (isset($_COOKIE[$config['cookie_name'] . '_track'])) ? ((STRIP) ? stripslashes($_COOKIE[$config['cookie_name'] . '_track']) : $_COOKIE[$config['cookie_name'] . '_track']) : '';
     $tracking_topics = ($tracking_topics) ? tracking_unserialize($tracking_topics) : array();

     if (!$user->data['is_registered'])
     {
       $user->data['user_lastmark'] = (isset($tracking_topics['l'])) ? (int) (base_convert($tracking_topics['l'], 36, 10) + $config['board_startdate']) : 0;
     }
   }

   if ($show_active)
   {
     $sql_array['LEFT_JOIN'][] = array(
       'FROM'   => array(FORUMS_ACCESS_TABLE => 'fa'),
       'ON'   => "fa.forum_id = f.forum_id AND fa.session_id = '" . $db->sql_escape($user->session_id) . "'"
     );

     $sql_array['SELECT'] .= ', fa.user_id';
   }

   $sql = $db->sql_build_query('SELECT', array(
     'SELECT'   => $sql_array['SELECT'],
     'FROM'      => $sql_array['FROM'],
     'LEFT_JOIN'   => $sql_array['LEFT_JOIN'],

     'WHERE'      => $sql_where,

     'ORDER_BY'   => 'f.left_id',
   ));

   $result = $db->sql_query($sql);

   $forum_tracking_info = array();
   $branch_root_id = $root_data['forum_id'];
   while ($row = $db->sql_fetchrow($result))
   {
     $forum_id = $row['forum_id'];

     // Mark forums read?
     if ($mark_read == 'forums' || $mark_read == 'all')
     {
       if ($auth->acl_get('f_list', $forum_id))
       {
         $forum_ids[] = $forum_id;
         continue;
       }
     }

     // Category with no members
     if ($row['forum_type'] == FORUM_CAT && ($row['left_id'] + 1 == $row['right_id']))
     {
       continue;
     }

     // Skip branch
     if (isset($right_id))
     {
       if ($row['left_id'] < $right_id)
       {
         continue;
       }
       unset($right_id);
     }

     if (!$auth->acl_get('f_list', $forum_id))
     {
       // if the user does not have permissions to list this forum, skip everything until next branch
       $right_id = $row['right_id'];
       continue;
     }

     $forum_ids[] = $forum_id;

     if ($config['load_db_lastread'] && $user->data['is_registered'])
     {
       $forum_tracking_info[$forum_id] = (!empty($row['mark_time'])) ? $row['mark_time'] : $user->data['user_lastmark'];
     }
     else if ($config['load_anon_lastread'] || $user->data['is_registered'])
     {
       if (!$user->data['is_registered'])
       {
         $user->data['user_lastmark'] = (isset($tracking_topics['l'])) ? (int) (base_convert($tracking_topics['l'], 36, 10) + $config['board_startdate']) : 0;
       }
       $forum_tracking_info[$forum_id] = (isset($tracking_topics['f'][$forum_id])) ? (int) (base_convert($tracking_topics['f'][$forum_id], 36, 10) + $config['board_startdate']) : $user->data['user_lastmark'];
     }

     $row['forum_topics'] = ($auth->acl_get('m_approve', $forum_id)) ? $row['forum_topics_real'] : $row['forum_topics'];

     // Display active topics from this forum?
     if ($show_active && $row['forum_type'] == FORUM_POST && $auth->acl_get('f_read', $forum_id) && ($row['forum_flags'] & FORUM_FLAG_ACTIVE_TOPICS))
     {
       if (!isset($active_forum_ary['forum_topics']))
       {
         $active_forum_ary['forum_topics'] = 0;
       }

       if (!isset($active_forum_ary['forum_posts']))
       {
         $active_forum_ary['forum_posts'] = 0;
       }

       $active_forum_ary['forum_id'][]      = $forum_id;
       $active_forum_ary['enable_icons'][]   = $row['enable_icons'];
       $active_forum_ary['forum_topics']   += $row['forum_topics'];
       $active_forum_ary['forum_posts']   += $row['forum_posts'];

       // If this is a passworded forum we do not show active topics from it if the user is not authorised to view it...
       if ($row['forum_password'] && $row['user_id'] != $user->data['user_id'])
       {
         $active_forum_ary['exclude_forum_id'][] = $forum_id;
       }
     }

     //
     if ($row['parent_id'] == $root_data['forum_id'] || $row['parent_id'] == $branch_root_id)
     {
       if ($row['forum_type'] != FORUM_CAT)
       {
         $forum_ids_moderator[] = (int) $forum_id;
       }

       // Direct child of current branch
       $parent_id = $forum_id;
       $forum_rows[$forum_id] = $row;

       if ($row['forum_type'] == FORUM_CAT && $row['parent_id'] == $root_data['forum_id'])
       {
         $branch_root_id = $forum_id;
       }
       $forum_rows[$parent_id]['forum_id_last_post'] = $row['forum_id'];
       $forum_rows[$parent_id]['orig_forum_last_post_time'] = $row['forum_last_post_time'];
     }
     else if ($row['forum_type'] != FORUM_CAT)
     {
       $subforums[$parent_id][$forum_id]['display'] = ($row['display_on_index']) ? true : false;
       $subforums[$parent_id][$forum_id]['name'] = $row['forum_name'];
       $subforums[$parent_id][$forum_id]['orig_forum_last_post_time'] = $row['forum_last_post_time'];

       $forum_rows[$parent_id]['forum_topics'] += $row['forum_topics'];

       // Do not list redirects in LINK Forums as Posts.
       if ($row['forum_type'] != FORUM_LINK)
       {
         $forum_rows[$parent_id]['forum_posts'] += $row['forum_posts'];
       }

       if ($row['forum_last_post_time'] > $forum_rows[$parent_id]['forum_last_post_time'])
       {
         $forum_rows[$parent_id]['forum_last_post_id'] = $row['forum_last_post_id'];
         $forum_rows[$parent_id]['forum_last_post_subject'] = $row['forum_last_post_subject'];
         $forum_rows[$parent_id]['forum_last_post_time'] = $row['forum_last_post_time'];
         $forum_rows[$parent_id]['forum_last_poster_id'] = $row['forum_last_poster_id'];
         $forum_rows[$parent_id]['forum_last_poster_name'] = $row['forum_last_poster_name'];
         $forum_rows[$parent_id]['forum_last_poster_colour'] = $row['forum_last_poster_colour'];
         $forum_rows[$parent_id]['forum_last_poster_avatar'] = $row['forum_last_poster_avatar'];
         $forum_rows[$parent_id]['forum_last_poster_avatar_type'] = $row['forum_last_poster_avatar_type'];
         $forum_rows[$parent_id]['forum_last_poster_avatar_width'] = $row['forum_last_poster_avatar_width'];
         $forum_rows[$parent_id]['forum_last_poster_avatar_height'] = $row['forum_last_poster_avatar_height'];
         $forum_rows[$parent_id]['forum_id_last_post'] = $forum_id;
       }
     }
   }
   $db->sql_freeresult($result);

   // Handle marking posts
   if ($mark_read == 'forums' || $mark_read == 'all')
   {
     $redirect = build_url('mark');

     if ($mark_read == 'all')
     {
       markread('all');

       $message = sprintf($user->lang['RETURN_INDEX'], '<a href="' . $redirect . '">', '</a>');
     }
     else
     {
       markread('topics', $forum_ids);

       $message = sprintf($user->lang['RETURN_FORUM'], '<a href="' . $redirect . '">', '</a>');
     }

     meta_refresh(3, $redirect);
     trigger_error($user->lang['FORUMS_MARKED'] . '<br /><br />' . $message);
   }

   // Grab moderators ... if necessary
   if ($display_moderators)
   {
     if ($return_moderators)
     {
       $forum_ids_moderator[] = $root_data['forum_id'];
     }
     get_moderators($forum_moderators, $forum_ids_moderator);
   }

   // Used to tell whatever we have to create a dummy category or not.
   $last_catless = true;
   foreach ($forum_rows as $row)
   {
     // Empty category
     if ($row['parent_id'] == $root_data['forum_id'] && $row['forum_type'] == FORUM_CAT)
     {

     $template->assign_block_vars('forumrow', array(
         'S_IS_CAT'            => true,
         'FORUM_ID'            => $row['forum_id'],
         'FORUM_NAME'         => $row['forum_name'],
         'FORUM_DESC'         => generate_text_for_display($row['forum_desc'], $row['forum_desc_uid'], $row['forum_desc_bitfield'], $row['forum_desc_options']),
         'FORUM_FOLDER_IMG'      => '',
         'FORUM_FOLDER_IMG_SRC'   => '',
         'FORUM_IMAGE'         => ($row['forum_image']) ? '<img src="' . $phpbb_root_path . $row['forum_image'] . '" alt="' . $user->lang['FORUM_CAT'] . '" />' : '',
         'FORUM_IMAGE_SRC'      => ($row['forum_image']) ? $phpbb_root_path . $row['forum_image'] : '',
         'U_VIEWFORUM'         => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $row['forum_id']))
       );

       continue;
     }

     $visible_forums++;
     $forum_id = $row['forum_id'];

     $forum_unread = (isset($forum_tracking_info[$forum_id]) && $row['orig_forum_last_post_time'] > $forum_tracking_info[$forum_id]) ? true : false;

     $folder_image = $folder_alt = $l_subforums = '';
     $subforums_list = array();

     // Generate list of subforums if we need to
     if (isset($subforums[$forum_id]))
     {
       foreach ($subforums[$forum_id] as $subforum_id => $subforum_row)
       {
         $subforum_unread = (isset($forum_tracking_info[$subforum_id]) && $subforum_row['orig_forum_last_post_time'] > $forum_tracking_info[$subforum_id]) ? true : false;

         if ($subforum_row['display'] && $subforum_row['name'])
         {
            $subforums_list[] = array(
              'link'      => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $subforum_id),
              'name'      => $subforum_row['name'],
              'unread'   => $subforum_unread,
            );
         }
         else
         {
            unset($subforums[$forum_id][$subforum_id]);
         }

         // If one subforum is unread the forum gets unread too...
         if ($subforum_unread)
         {
            $forum_unread = true;
         }
       }

       $l_subforums = (sizeof($subforums[$forum_id]) == 1) ? $user->lang['SUBFORUM'] . ': ' : $user->lang['SUBFORUMS'] . ': ';
       $folder_image = ($forum_unread) ? 'forum_unread_subforum' : 'forum_read_subforum';
     }
     else
     {
       switch ($row['forum_type'])
       {
         case FORUM_POST:
            $folder_image = ($forum_unread) ? 'forum_unread' : 'forum_read';
         break;

         case FORUM_LINK:
            $folder_image = 'forum_link';
         break;
       }
     }

     // Which folder should we display?
     if ($row['forum_status'] == ITEM_LOCKED)
     {
       $folder_image = ($forum_unread) ? 'forum_unread_locked' : 'forum_read_locked';
       $folder_alt = 'FORUM_LOCKED';
     }
     else
     {
       $folder_alt = ($forum_unread) ? 'NEW_POSTS' : 'NO_NEW_POSTS';
     }

     // Create last post link information, if appropriate
     if ($row['forum_last_post_id'])
     {
       $last_post_subject = censor_text($row['forum_last_post_subject']);
       $last_post_time = $user->format_date($row['forum_last_post_time']);
       $last_post_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&p=' . $row['forum_last_post_id']) . '#p' . $row['forum_last_post_id'];
     }
     else
     {
       $last_post_subject = $last_post_time = $last_post_url = '';
     }

     // Output moderator listing ... if applicable
     $l_moderator = $moderators_list = '';
     if ($display_moderators && !empty($forum_moderators[$forum_id]))
     {
       $l_moderator = (sizeof($forum_moderators[$forum_id]) == 1) ? $user->lang['MODERATOR'] : $user->lang['MODERATORS'];
       $moderators_list = implode(', ', $forum_moderators[$forum_id]);
     }

     $l_post_click_count = ($row['forum_type'] == FORUM_LINK) ? 'CLICKS' : 'POSTS';
     $post_click_count = ($row['forum_type'] != FORUM_LINK || $row['forum_flags'] & FORUM_FLAG_LINK_TRACK) ? $row['forum_posts'] : '';

     $s_subforums_list = array();
     foreach ($subforums_list as $subforum)
     {
       $s_subforums_list[] = '<a href="' . $subforum['link'] . '" class="subforum ' . (($subforum['unread']) ? 'unread' : 'read') . '" title="' . (($subforum['unread']) ? $user->lang['NEW_POSTS'] : $user->lang['NO_NEW_POSTS']) . '">' . $subforum['name'] . '</a>';
     }
     $s_subforums_list = (string) implode(', ', $s_subforums_list);
     $catless = ($row['parent_id'] == $root_data['forum_id']) ? true : false;

     if ($row['forum_type'] != FORUM_LINK)
     {
       $u_viewforum = append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $row['forum_id']);
     }
     else
     {
       // If the forum is a link and we count redirects we need to visit it
       // If the forum is having a password or no read access we do not expose the link, but instead handle it in viewforum
       if (($row['forum_flags'] & FORUM_FLAG_LINK_TRACK) || $row['forum_password'] || !$auth->acl_get('f_read', $forum_id))
       {
         $u_viewforum = append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $row['forum_id']);
       }
       else
       {
         $u_viewforum = $row['forum_link'];
       }
     }
       $avatar_max_dimensions = $avatar_width = $avatar_height = '';
     if ( !empty($row['forum_last_poster_avatar']) )
     {
     $avatar_max_dimensions = 50; // here you can change the max-width you would like to have the avatars displayed
     
       if ( $row['forum_last_poster_avatar_width'] >= $row['forum_last_poster_avatar_height'] )
       {
       $avatar_width = ( $row['forum_last_poster_avatar_width'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['forum_last_poster_avatar_width'] ;
       $avatar_height = ( $avatar_width == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['forum_last_poster_avatar_width'] * $row['forum_last_poster_avatar_height']) : $row['forum_last_poster_avatar_height'] ;
       }
       else
       {
       $avatar_height = ( $row['forum_last_poster_avatar_height'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['forum_last_poster_avatar_height'] ;
       $avatar_width = ( $avatar_height == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['forum_last_poster_avatar_height'] * $row['forum_last_poster_avatar_width']) : $row['forum_last_poster_avatar_width'] ;
       }
     }

     $template->assign_block_vars('forumrow', array(
       'S_IS_CAT'         => false,
       'S_NO_CAT'         => $catless && !$last_catless,
       'S_IS_LINK'         => ($row['forum_type'] == FORUM_LINK) ? true : false,
       'S_UNREAD_FORUM'   => $forum_unread,
       'S_LOCKED_FORUM'   => ($row['forum_status'] == ITEM_LOCKED) ? true : false,
       'S_LIST_SUBFORUMS'   => ($row['display_subforum_list']) ? true : false,
       'S_SUBFORUMS'      => (sizeof($subforums_list)) ? true : false,

       'FORUM_ID'            => $row['forum_id'],
       'FORUM_NAME'         => $row['forum_name'],
       'FORUM_DESC'         => generate_text_for_display($row['forum_desc'], $row['forum_desc_uid'], $row['forum_desc_bitfield'], $row['forum_desc_options']),
       'TOPICS'            => $row['forum_topics'],
       $l_post_click_count      => $post_click_count,
       'FORUM_FOLDER_IMG'      => $user->img($folder_image, $folder_alt),
       'FORUM_FOLDER_IMG_SRC'   => $user->img($folder_image, $folder_alt, false, '', 'src'),
       'FORUM_FOLDER_IMG_ALT'   => isset($user->lang[$folder_alt]) ? $user->lang[$folder_alt] : '',
       'FORUM_IMAGE'         => ($row['forum_image']) ? '<img src="' . $phpbb_root_path . $row['forum_image'] . '" alt="' . $user->lang[$folder_alt] . '" />' : '',
       'FORUM_IMAGE_SRC'      => ($row['forum_image']) ? $phpbb_root_path . $row['forum_image'] : '',
       'LAST_POST_SUBJECT'      => $last_post_subject,
       'LAST_POST_SHORTENED_SUBJECT'   => (utf8_strlen($last_post_subject) > 26) ? truncate_string($last_post_subject, 25) . "\xE2\x80\xA6" : $last_post_subject,
       'LAST_POST_TIME'      => $last_post_time,
       'LAST_POSTER'         => get_username_string('username', $row['forum_last_poster_id'], $row['forum_last_poster_name'], $row['forum_last_poster_colour']),
       'LAST_POSTER_COLOUR'   => get_username_string('colour', $row['forum_last_poster_id'], $row['forum_last_poster_name'], $row['forum_last_poster_colour']),
       'LAST_POSTER_FULL'      => get_username_string('full', $row['forum_last_poster_id'], $row['forum_last_poster_name'], $row['forum_last_poster_colour']),
       'LAST_POSTER_AVATAR'	=> ($config['enable_avatar_index']) ? get_user_avatar($row['forum_last_poster_avatar'], $row['forum_last_poster_avatar_type'], $avatar_width, $avatar_height) : false,
       'LAST_POSTER_AVATAR_MARGIN'   => ( $avatar_width == $avatar_max_dimensions ) ? 5 : ( $avatar_max_dimensions - $avatar_width + 5 ),
       'AVATAR_WIDTH'         => $avatar_max_dimensions,
       'MODERATORS'         => $moderators_list,
       'SUBFORUMS'            => $s_subforums_list,

       'L_SUBFORUM_STR'      => $l_subforums,
       'L_FORUM_FOLDER_ALT'   => $folder_alt,
       'L_MODERATOR_STR'      => $l_moderator,

       'U_VIEWFORUM'      => $u_viewforum,
       'U_LAST_POSTER'      => get_username_string('profile', $row['forum_last_poster_id'], $row['forum_last_poster_name'], $row['forum_last_poster_colour']),
       'U_LAST_POST'      => $last_post_url)
     );

     // Assign subforums loop for style authors
     foreach ($subforums_list as $subforum)
     {
       $template->assign_block_vars('forumrow.subforum', array(
         'U_SUBFORUM'   => $subforum['link'],
         'SUBFORUM_NAME'   => $subforum['name'],
         'S_UNREAD'      => $subforum['unread'])
       );
     }

     $last_catless = $catless;
   }

   $template->assign_vars(array(
     'U_MARK_FORUMS'      => ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $root_data['forum_id'] . '&mark=forums') : '',
     'S_HAS_SUBFORUM'   => ($visible_forums) ? true : false,
     'L_SUBFORUM'      => ($visible_forums == 1) ? $user->lang['SUBFORUM'] : $user->lang['SUBFORUMS'],
     'LAST_POST_IMG'      => $user->img('icon_topic_latest', 'VIEW_LATEST_POST'))
   );

   if ($return_moderators)
   {
     return array($active_forum_ary, $forum_moderators);
   }

  return array($active_forum_ary, array());
}
Please help

User avatar
MasterHand
Registered User
Posts: 170
Joined: Sat Jun 17, 2006 6:34 pm
Location: includes/functions_user.php

Re: [BETA] My Page - Personal web page for your members

Post by MasterHand » Fri Nov 14, 2008 9:51 pm

Nice MOD - Downloaded and will install later tonight.

One thing: On the downloads page, the V.2.3 Link points to the 2.2 zip . ;)

I'll report back with any bugs or comments later.
One more thing....No support via PM!

Locked

Return to “[3.0.x] Abandoned MODs”