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 - SLL

Pages: 1 ... 22 23 24 25 [26] 27
376
Quote from: HUNTER
Thanks for fixing, but I found in a member_profile.html some code as you type below


Sorry for confusion. I'm using 4blue_orange1 template, and just found out that for some reason this row was removed from template. Since you already have it in yours, you don't have to add anything..

377
Mods & Plugins (Releases & Support) / Revised
« on: January 15, 2003, 11:06:49 PM »
I've modified this nice MOD a bit... first of all, to get rid of those "Resource id #21", and second - to check, if user wants to recieve mails from admin. For this I've also added one field to User Profile, to let user choose himself, if he wans emails or not.

Code: [Select]
//-----------------------------------------------------
// Start Emailer for comments
//-----------------------------------------------------

    $recipient_name = $image_row['user_name'];
    $recipient_email = $image_row['user_email'];
    $image_url = $script_url."/details.php?".URL_IMAGE_ID."=".$id."";

$sql = "SELECT user_allowemails FROM ".USERS_TABLE." WHERE user_name = '$recipient_name'";
$result = $site_db->query($sql);
$row = $site_db->fetch_array($result);
$user_allowemails = ($row['user_allowemails']);

if ($user_allowemails == 1) {
    $current_time = time();
    include(ROOT_PATH.'includes/email.php');
    $site_email = new Email();
    $site_email->set_to($recipient_email);
    $site_email->set_from($config['site_email'], $config['site_name']);
    $site_email->set_subject("Comment Posted");
    $site_email->register_vars(array(
      "recipient_name" => $recipient_name,
      "image_name" => $image_row['image_name'],
      "comment_date" => format_date($config['date_format']." ".$config['time_format'], $current_time),
      "site_name" => $config['site_name'],
      "image_url" => $image_url,
    ));
    $site_email->set_body("comment_email", $config['language_dir']);
    $site_email->send_email();
}
//-------------------------------------------------------


Btw, the reason for "Resource id #" was using $image_name variable in sql query. I even removed these queries at all, because all necessary data alreary here, from the query at the very begining of page.

Add this table row to member_editprofile.html

Code: [Select]
         <tr>
            <td class="row2"><b>{lang_allow_emails}</b></td>
            <td class="row2">
              <input type="radio" name="user_allowemails" value="1"{user_allowemails_yes} />
              {lang_yes}&nbsp;&nbsp;&nbsp;
              <input type="radio" name="user_allowemails" value="0"{user_allowemails_no} />
              {lang_no}</td>
          </tr>

378
Quote from: wrestlingwiredotnet
no. sorry SLL, im still confused


Now I know why  :)   You are talking about random images in 4images, but this MOD shows random image outside your gallery, just on any webpage, for example, on the title page of your website. Have a look, how it works at http://www.dalnet.ru

379
Mods & Plugins (Releases & Support) / [Mod] User upload limits
« on: January 15, 2003, 01:46:11 PM »
Code: [Select]
################################################################################################
## Title: User Upload Limits for 4images - Image Gallery Management System.
## Version: 1.2
## Author: Silly Little Lamer <sll@dalnet.ru>
## Description: This Mod sets limits to the number of images, that user could upload to the gallery.
## Default limit is set to all existing users during installation of this MOD, and can
## be changed later via Control Panel. Individual upload limits for every user can also
## be changed via Edit User Panel.
##
## New in v.1.2 - Daily limits + ability to check uploaded but not yet validated images.
##
##
## Installation Level: Medium
## Installation Time: 20 Minutes
##
## Files To Edit: 6
## /4images/member.php
## /4images/register.php
## /4images/admin/users.php
## /4images/admin/settings.php
## /4images/lang/english/admin.php
## /4images/lang/english/main.php
##
################################################################################################
download: http://faces.dalnet.ru/files.php?l=english
[EDIT]
updated instructions with fixes you can find attached to this post
In the original package the installation script is broken, please use the fixed version from attachment below.


[EDIT2]
more and more people reported errors when they try add a new user.
Please apply Lord Nite fix:
After mod installed find in admin/users.php:
Code: (MySQL) [Select]
($user_id, $user_level, '$user_name', '$user_password', '$user_email', $user_showemail, $user_allowemails, $user_invisible, $current_time, '$activationkey', $current_time, $current_time, 0, '$user_homepage', '$user_icq', $user_limit".$additional_value_sql.")";
Replace it with:
Code: [Select]
($user_id, $user_level, '$user_name', '$user_password', '$user_email', $user_showemail, $user_allowemails, $user_invisible, $current_time, '$activationkey', $current_time, $current_time, 0, '$user_homepage', '$user_icq', '$user_limit'".$additional_value_sql.")";

380
Quote from: wrestlingwiredotnet
I was wondering if someone could write them a little more descriptive


Sure... just rename one of duplicated definitions to anything else and define them directly in the script (not in the includes!):

Code: [Select]
define('PIC_CATEGORIES_TABLE', '4images_categories');
define('PIC_IMAGES_TABLE', '4images_images');


{skipped}

Code: [Select]
$sql = "SELECT COUNT(*) as total_images FROM ".PIC_IMAGES_TABLE." a, ".PIC_CATEGORIES_TABLE." b WHERE a.image_active=1 AND a.cat_id = b.cat_id AND b.auth_viewcat=".AUTH_ALL." AND b.auth_viewimage=".AUTH_ALL."";
$row = $pics_db->query_firstrow($sql);


More clear now?  :wink:

381
I've got a number of emails asking how to add static icons in the Category frame. Below is my solution:

- Create icons for each category and name them category[cat_id].gif, for example category1.gif, category2.gif, etc.
This is according to your taste, of course. I'm using 40x40 gif's like this:

- Create the image joinbottom.gif for sub-categories or use mine:

- Place them all into /templates/xxxx/images/ folder (or /templates/xxxx/images_lang/ if you are using multiple languages)

- Change your /templates/xxxx/category_bit.html as follows:

Code: [Select]
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
<td width="50" rowspan="2" align="center" valign="top">
<a href="{cat_url}"><img src="{template_lang_image_url}/category{cat_id}.gif" border="1"></a></td>
<td align="left" valign="top"><a href="{cat_url}" class="maincat">{cat_name}</a>&nbsp;({num_images})</td>
  </tr>
  <tr>
<td align="left" valign="top">{if cat_description}<span class="smalltext">{cat_description}</span><br />{endif cat_description}</td>
  </tr>
</table>
{if sub_cats}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
<td width="50" align="center" valign="top"><img src="{template_lang_image_url}/joinbottom.gif"></td>
<td align="left" valign="top">{sub_cats}</td>
  </tr>
</table>
{endif sub_cats}

- If you do not use multiple languages, change {template_lang_image_url} to {template_image_url}

That's it! Demo at http://faces.dalnet.ru/index.php?l=english

382
Feedback & Suggestions / Simple 4images - phpBB integration
« on: January 13, 2003, 09:55:32 PM »
Maybe my thoughts are naive, but why don't you use simple way to integrate 4images - phpBB? I mean, just to synchronize username/password in both databases.

Something like this:

Login at 4images > check 4images DB > found > login successful
Login at 4images > check 4images DB > not found > check phpBB DB > found > update userinfo in 4images DB > login successful
Login at 4images > check 4images DB > not found > check phpBB DB > not found > register at 4images > update userinfo in phpBB DB

and viceversa, from phpBB side ...

I think, you understand what I mean. Unfortunately, I'm not good in PHP programming enough to do it myself. If somebody can make such MOD, it should be possible to apply it even to full 4images galleries and full phpBB boards.

383
YESSS!!!!  I finally got it!   :D

CATEGORIES_TABLE definiton is duplicated in both scripts. Just rename it to anything else and define directly in Random Images script...

That's it!

384
Mods & Plugins (Releases & Support) / Re: AHHHHHHHHHHH
« on: January 13, 2003, 09:50:12 AM »
Quote from: wrestlingwiredotnet
Im going out of my mind, why isnt it working?!?!? PLease HELP!


Sorry, Nate, I can't see from here what's going on at your system. I hardly believe this small MOD destroyed you gallery, if you followed installation instructions, of course.

I'd suggest you download the 4images from this site once again, drop the database and make the fresh installation. When you see the gallery running without any error message, the apply this MOD again.

I hope this will help...

385
I hope PHP-Guru at this forum will find the reason of conflict it this short code  :wink:

Let's be patient and wait...

386
Mods & Plugins (Releases & Support) / Re: hm...
« on: January 12, 2003, 04:51:44 PM »
Quote from: wrestlingwiredotnet
I dont know why, must of been my mistake but it didnt post the entire code, well here it is:


hmm... your functions.php doesn't work on my system also, but i can't find out why  :?

it's slightly different inside, than mine. drop me a privat msg here with your email, and i will send you my functions.php by return, probaly this will help

387
Mods & Plugins (Releases & Support) / [Mod] Star Rating
« on: January 12, 2003, 11:26:08 AM »
Very nice MOD, thank you!

Standard stars doesn't look very good, but I've found hundreds of rank images at http://www.phpbb.com/styles/downloads/index.php?t=sub_pages&cat=32

388
Mods & Plugins (Releases & Support) / Re: nope
« on: January 12, 2003, 10:46:49 AM »
Quote from: wrestlingwiredotnet
I had that, I didnt forget it... anything else it could be?


It seems, you were posting the whole functions.php here? If so, then have a look at the very end of the file and compare it to the original -  approximately 130 lines are missing. The part of this file, related to the MOD looks OK, I can see no errors...

389
Mods & Plugins (Releases & Support) / [Mod] Photo Of The Day
« on: January 11, 2003, 08:58:43 PM »
Quote from: sorestar
Will this MOD work if there is already an integration between phpBB and 4images?


Sorry, I can't check myself... When I've installed 4images, my phpBB database was full already, so I didn't try to integrate (not recommended by developers).

If the database part, related to 4images is not altered during integration (and I believe it's not), then this MOD should work fine. Anyway, it's simple enough, so it's shouldn't be a big deal for you to try  :wink:

390
Mods & Plugins (Releases & Support) / [Mod] Photo Of The Day
« on: January 11, 2003, 02:13:24 AM »
Quote
Photo Of The Day MOD for 4images - Image Gallery Management System.

Version:      1.2

Author:       Silly Little Lamer <sll@dalnet.ru>

Description:

This Mod shows so called "Photo Of The Day" on the first (and/or any other page) of your gallery. Depending on your settings, the first of the Top Images is selected by rating, number of votes, comments, downloads, hits and its thumbnail is shown as a "Photo Of The Day".

New in v.1.2

•   Random selection mode. (as always, bright idea by V@ano)


Installation Level:    Easy
Installation Time:      10 Minutes

Files To Edit:       4

   /includes/functions.php
   /includes/page_header.php
   /includes/constants.php
   /lang/english/main.php

[EDIT by V@no]
This mod is based on 4images v1.7 some parts of it might not work properly in newer 4images. If mod doesn't work properly for you, try these additional modifications
[/EDIT]

demo: http://faces.dalnet.ru/index.php?l=english
download: http://faces.dalnet.ru/files.php?l=english

Pages: 1 ... 22 23 24 25 [26] 27