Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Sun Zaza

Pages: 1 ... 30 31 32 33 [34]
496
It works perfect. Thank you very much.

I have another question about new template just for GUEST.

I added a new template whos_online2.html (actualy I just copied the template whosonline.html and I gave it another name and I puted in another place on my site).
How can I make that also JUST THE GUEST can see the new template whos_online2.html? (The same way like user_loginform.html and user_logininfo.html).
Is het possible to do that?


497
Hello,

I added a new array in details.html {image_info} and it is working good. Now I want that just the GUEST kan see the information.

I tried in detail.php and I put:
Quote
$image_info = "";
     if($user_info['user_level'] == GUEST) {
    $image_info= $lang['image_info];
   }

but it is not working.

Any help please?
Cruxy

498
Discussion & Troubleshooting / Re: Export users e-mails
« on: October 21, 2007, 01:07:28 AM »
Thank you thunderstrike, it get what I want!

499
Discussion & Troubleshooting / Export users e-mails
« on: October 20, 2007, 05:21:12 PM »
Hi,

Is there a mod to export users e-mails to a text file?
I want to import the e-mails into a mailinglist program.

I saw a similar mod for phpBB:

Quote
<?php
/***************************************************************************
 *                                admin_export_emails.php
 *                            -------------------
 *   begin                : Saturday, July 31, 2006
 *   copyright            : (C) Funender.com
 *
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

define('IN_PHPBB', 1);

if( !empty($setmodules) )
{
   $file = basename(__FILE__);
   $module['Users']['Export_Emails'] = $file;
   return;
}

//
// Let's set the root dir for phpBB
//
$phpbb_root_path = "./../";
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
include($phpbb_root_path . 'includes/functions_admin.'.$phpEx);

//
// Begin Email Export
//

export_email($HTTP_POST_VARS['search_username']);

function export_email($emails_found)
{
   global $db, $board_config, $template, $lang, $images, $theme, $phpEx, $phpbb_root_path;
   
   if ( !empty($emails_found) )
   {
      $export_email = preg_replace('/\*/', '%', trim(strip_tags($emails_found)));

      $sql = "SELECT *
         FROM " . USERS_TABLE . "
         WHERE user_email != '';";
      if ( !($result = $db->sql_query($sql)) )
      {
         message_die(GENERAL_ERROR, 'Could not obtain emails', '', __LINE__, __FILE__, $sql);
      }

      if ( $row = $db->sql_fetchrow($result) )
      {
         do
         {
            $export_list .= $row['user_email'] . '<br />';
         }
         while ( $row = $db->sql_fetchrow($result) );
      }
      else
      {
         message_die(GENERAL_ERROR, 'Could not obtain emails');
      }
      $db->sql_freeresult($result);
   }

   $page_title = $lang['Export_Emails_Title'];

   $template->set_filenames(array(
      "body" => "admin/export_emails.tpl")
   );

   $template->assign_vars(array(
       'L_EXPORT_EMAILS_PAGE' => $lang['Export_emails_page'],
      'L_EXPORT_EMAILS_EXPLAIN' => $lang['Export_emails_explain'],
       'L_EXPORT_EMAILS_HEADER' => $lang['Export_emails_header'],
      'L_EXPORT' => $lang['Export'], 

      'S_EXPORT_LIST' => $export_list,
      'S_EXPORT_ACTION' => append_sid("admin_export_emails.$phpEx"))
   );

   if ( $export_list != '' )
   {
      $template->assign_block_vars('export_email_list', array());
   }

   $template->pparse("body");

include('./page_footer_admin.'.$phpEx);
   
   }

?>

Can someone do this very important MOD?

Cheers,
cruxy

Pages: 1 ... 30 31 32 33 [34]
Post your comments here