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.


Topics - Sun Zaza

Pages: 1 ... 3 4 5 6 [7]
91
Hello guys,

I have a php question:

To add an new array (In details.html and details.php) you use:

In details.php:
$site_template->register_vars(array(
"test" => $lang['test'],
"test1" => $lang['test1'],
));
 
and then in details.html you use:
{test}

How can I add a new array {hits2}:
{hits2}= {image_hits)+1000 to use it in details.html.

I already add {lang_hits2} (NO PROBLEM), but the otherone I couldn't.

Thank you in advance,
Cruxy

92
Mods & Plugins (Requests & Discussions) / Image hits per day
« on: November 08, 2007, 08:34:17 PM »
Hi guys,

How can I show on the details.html the image hits per day?
Something like: Today hits: 120 times or viewed today: 120 times.

It whould crazy if we can als count the hits of yesterday, last week, last mounth.

Many thanks in advance, :)
Cruxy

93
Mods & Plugins (Requests & Discussions) / Check USERNAME if exist
« on: November 07, 2007, 10:33:30 AM »
Hello,
How can the users check the USERNAME if it exist before register?
I see that everywhere (Youtube, dailymotion,...).
Can someone write this usefull MOD?

Thank you for any help or suggestions. :roll:
Cruxy

94
Mods & Plugins (Requests & Discussions) / Users_id showing in ACP
« on: November 07, 2007, 10:27:49 AM »
Hi guys,

I wonder if someone can tell me (Or write a code) to show users_id's in ACP (Admin area). I can not find it.
I will explain:
In ACP when you look for a user you get a page with some information about this user, but NO USER_ID.
How can I add it to this page. (A better idea is also welcome)

NOTE: I used the search function in this forum, but no luck!

Many thanks in advance,  :wink:
Cruxy

95
Hi guys,

I have an question:

When you add a new image to the gallery (via ACP) the option {field_free} is always "yes" (1). How can I change it to make it always "no" (0).
I mean I want to change it myself to "yes" before I edit or add an image. Sometime I click on edit or add before I edit everything. I want to avoid that!!!

Many Thanks in advance, :)
Cryxt

96
Hello,

For my custom page special.html I used this code in special.php to give only permission to the users to view the special page:

Quote
//Begin
if ($user_info['user_level'] == GUEST || $user_info['user_level'] == USER_AWAITING) {
  show_error_page($lang['no_permission']);
  exit;
}
//End

How can I give only permission to enter the page (special.html) to my usersgoup (photographers)?

That means that only the usersgroup PHOTOGRAPHERS can view the page SPECIAL.HTML.

Thank in advance, :?
Cruxy

97
Discussion & Troubleshooting / {Image_hits} on a custom page
« on: October 30, 2007, 05:17:58 PM »
Hello,

I have a problem:

I made a custom page (important.html/important.php). On this page I will put a list of the images I want to change or to improve.
I have three columns: image name      image_id      image_hits.
The image_name and the image_id I typ it manualy, like: Spain picture           116, but I want to get the image_hits automaticaly.

I tried with {image_hits} but ofcourse I did not get the correct hits, because I have to put something in (important.php) to let know the code that I want the hits of this image_id (116).

How can I realise that? Any help please? :oops:

Many thanks in advance,
Cruxy

98
Hello guys,

Onder the image on the details page you find some information about the image. For example:

Description
Keywords
Date
....

I want to add also the IMAGE MEDIA FILE of the image Something like:

Media file name: google. (without the extension)

I tried {image_media_file} but I get it with the extension.

How can I do that?

Many thanks in advance,  :?
Cruxy

99
Mods & Plugins (Requests & Discussions) / XML file kan read 4images tags
« on: October 29, 2007, 12:14:43 AM »
Hello,

How can I make an XML file to read 4images tag. For example {image_name}?
I am using a FLV player on my galery and I want to point it to an XML file.
I think first I have to integrate (Include) the XML file to the galery.
The link to the XML file is: www.mywebsite.com/test.XML.
Any help is appreciated.

Many thank in advance, :)
Cruxy

100
Discussion & Troubleshooting / File type on the details page (Extension)
« on: October 21, 2007, 11:01:23 PM »
Hello,

Onder the image on the details page you find some information about the image. For example:

Description
Keywords
Date
Hits
Downloads
Rating
File size: 4.1 KB
Added by

I want to add also the TYPE of the image (The extension). Something like:

Type: GIF

How can I do that?

Many thanks in advance,
Cruxy

101
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

102
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 ... 3 4 5 6 [7]