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

Pages: 1 2 3 4 [5] 6 7 8 9 ... 41
61
Mods & Plugins (Releases & Support) / Re: [Mod] Image Annotation (Watermark)
« on: September 11, 2006, 06:57:31 AM »
this works fine but i've a problem , at instructions this said :

You can use the following variables: %N - Site Name, %H - full Site URL, %U - short Site URL, %S - User Name, %D - date, %T - time, %B - line break

but at photo this don't work , show "%N" and not the site name  :|

62
Using it at page_header.php would be nice , how do it ? :roll:

63
yes.. my problem was in phpbb integration.. I uninstalled that mod and now i install member personal photo and it works correctly thanks for this great mod!! :D

but i have any questions.. i need more than a userpic in member profile.. can I do this if i change the name "user_pic" to "banner" (for example) in all steps???  Because i need add a banner for user websites. I will need to do a link with the url in this image, do you know how to do this??

I have another question.. i would like to add the userpic in user_logininfo, could u help me please?

how can i make a option for users upload from a URL ?

i mean external web address ... keeping both options

1 - upload from machine (default)
2 - from url (external web address)

 :?:
How can i make this in editprofile???

@Silversand.. yesterday i downloaded this mod, and it runs!!! :D

well i'm trying know how :D

64
Mods & Plugins (Requests & Discussions) / Re: [Req]Massive Uploading
« on: September 07, 2006, 10:20:52 PM »
easy?

i think for a admin it is ftp and for the user the normal upload

muliupload takes too much time, if a user uploads 10 files at once, so that they might lose thier patience, they just close their browser


well we know that :) , thats very obvious , if you try upload several files at same time this ill take long... 

65
Mods & Plugins (Requests & Discussions) / Re: [MOD]Massive Uploading
« on: September 06, 2006, 10:54:08 PM »
What is the easiest way for massive uploading of photos in 4images?


try a multiupload mod  :mrgreen:

66
Mods & Plugins (Requests & Discussions) / Re: Picture of the month
« on: September 06, 2006, 09:51:40 PM »
1) please use BBCode when quote something
2) and on line 216 in index.php is...it should be the obvious first thing one should look at when see any error messages...
3) I dont see anything in the instructions about modifications in index.php

Check step 2 by Loda ;) theres the step to added code at index.php

line 216 is :

Quote
WHERE i.image_active = i.image_potm AND c.cat_id = i.cat_id AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").") AND i.cat_id IN (".implode(", ", $cat_in).")

and also
Quote
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY i.image_potm_date DESC LIMIT 1' at line 4

code:

Quote
        ORDER BY  i.image_potm_date DESC
        LIMIT 1";

 :|

67
Mods & Plugins (Requests & Discussions) / Re: [addon] DREAMBOARD V 2.1
« on: September 05, 2006, 05:34:57 PM »
maybe change
Code: [Select]
$boardgories = mysql_query ("SELECT catid,catname FROM ".BOARD_CAT_TABLE ."");to this:
Code: [Select]
$boardgories = mysql_query ("SELECT catid,catname FROM ".BOARD_CAT_TABLE ." WHERE catid = 22");
 


well that work , but ideia its get last 10 topics from:

cat_id = 6 , board_id = 22 :P

68
Mods & Plugins (Requests & Discussions) / Re: [addon] DREAMBOARD V 2.1
« on: September 05, 2006, 07:23:26 AM »
I need help for a small modification

Quote
//---------------------------
//------DREAMBOARD-------------
//----------------------------
if ($boardconfig['board_disable']){
$board .=format_boardtext($boardconfig['status_desc'], 0, 0, 0, 0, 1);
$iconmsg="<img src=\"".TEMPLATE_PATH."/board_images/danger.gif\"  border=\"0\"> ";

}else {
$board .="</br><table  width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" ><tr><td class=\"boxline\"><table width=\"100%\" border=\"0\" cellpadding=\"3\" cellspacing=\"2\" ></table>";
$boardgories = mysql_query ("SELECT catid,catname FROM ".BOARD_CAT_TABLE ."");
  while ($row = mysql_fetch_array($boardgories)) {
    $catid = $row['catid'];
    $catname = $row['catname'];

    $board .="<table width=\"100%\" border=\"0\" cellpadding=\"3\" cellspacing=\"2\" ><tr><td><br><b>$catname</b><br></td></tr></table>\n";


    $forums = mysql_query ("SELECT board_id,board_catid,board_name,board_desc,board_posts,board_topics,board_lastpost_id,board_lastpost_user,board_lastpost_date,board_lastpost_page,board_moderator,board_moderator_id FROM ".BOARD_TABLE."  WHERE board_catid='$catid'");
    while ($row = mysql_fetch_array($forums)) {
        $board_id = $row['board_id'];
        $board_catid = $row['board_catid'];
        $board_name = $row['board_name'];
        $board_lastpost_id = $row['board_lastpost_id'];
        $board_lastpost_user = $row['board_lastpost_user'];
        $board_lastpost_date = $row['board_lastpost_date'];
$board_lastpost_page = $row['board_lastpost_page'];
  $threadtitle = mysql_query ("SELECT thrtopic FROM ".BOARD_TCONT_TABLE."  WHERE thrid ='$board_lastpost_id' ");
         while ($rowtopic = mysql_fetch_array($threadtitle )) {
$topic = $rowtopic['thrtopic'];
             }
$sql = "SELECT thrlastpost_id FROM ".BOARD_TINDEX_TABLE."
            WHERE  thrlastpost_user ='$board_lastpost_user'
";
     $luid_row = $site_db->query_firstrow($sql);
     $lastpost = $luid_row['thrlastpost_id'];


$result = mysql_query ("SELECT user_id,user_lastvisit FROM ".USERS_TABLE."  WHERE user_name ='$board_lastpost_user' ");
         while ($user = mysql_fetch_array($result )) {
$lastvisit = $user['user_lastvisit'];
             }

   if ($lastpost == GUEST) {
         $lastuser = $board_lastpost_user;
             $idlast_post = "";
} else {
             $idlast_post = "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=showprofile&user_id=".$lastpost)."\">";
$lastuser = $board_lastpost_user ;
                     }
   if ($board_lastpost_date >= $user_info['user_lastvisit']) {
            $newtopic = "<img src=\"".TEMPLATE_PATH."/board_images/folder.gif\" alt=\"".$lang['new_post']."\" >";
$newlastpost ="<img src=\"".TEMPLATE_PATH."/board_images/new_last_post.gif\" border=\"0\" alt=\"".$lang['button_lastpost']."\">";

             } else {
            $newlastpost ="<img src=\"".TEMPLATE_PATH."/board_images/last_post.gif\" border=\"0\" alt=\"".$lang['button_lastpost']."\">";
    $newtopic = "<img src=\"".TEMPLATE_PATH."/board_images/forum_no_new.gif\" alt=\"".$lang['no_newpost']."\">";
                     }
        if ($board_lastpost_date == "0" ) {
        $board .="";
            } else {
    $lastpostdate = format_date($boardconfig['date_format']." ".$boardconfig['time_format'], $board_lastpost_date);
$row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;
        $board .=" <table width=\"100%\"  border-width=\"1\" cellpadding=\"5\" cellspacing=\"1\" class=\"imagerow$row_bg_number\"><tr><td>$newtopic</td><td> <a href=\"showthread.php?bid=$board_id&threadid=$board_lastpost_id&page=$board_lastpost_page \"><b>$topic</b> </a><span class=\"smalltext\">$lastpostdate</span> &nbsp;".$lang['by']." $idlast_post $lastuser</a> <a href=\"showthread.php?bid=$board_id&threadid=$board_lastpost_id&page=$board_lastpost_page \">$newlastpost</a></td></tr></table>\n";
         }
   }
}
$board .=" </td></tr></table></br>";
}
$site_template->register_vars("board", $board);

I need make it show the the last 5 last posts only from board - 22 , how can i do it ???

69
Mods & Plugins (Requests & Discussions) / Re: Picture of the month
« on: September 05, 2006, 04:27:52 AM »
Warning: implode(): Bad arguments. in /home2/****/public_html/index.php on line 216

DB Error: Bad SQL Query: SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_thumb_file, i.image_media_file, i.image_thumb_file, i.image_rating, i.image_votes, i.image_comments, c.cat_name, u.user_name, i.image_downloads, i.image_hits, i.image_potm, i.image_potm_date, i.image_potm_votes FROM (4images_images i, 4images_categories c) LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = i.image_potm AND c.cat_id = i.cat_id AND i.cat_id IN (0, 1, 9, 35) AND i.cat_id IN () ORDER BY i.image_potm_date DESC LIMIT 1
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY i.image_potm_date DESC LIMIT 1' at line 4

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home2/****/public_html/includes/db_mysql.php on line 116


Both codes for MySQL 4.XX or for MySQL 5 , give me this error at index.php

70
to hide you can use tags {if is_admin} .... {endif is_admin}

 :mrgreen:

71
Mods & Plugins (Releases & Support) / Re: [MOD] Shoutbox
« on: September 01, 2006, 07:31:56 PM »
OK so I got this message left on my shoutbox:
 
Code: [Select]
googlebot:  
I am GoogleBot.

I like bots.  

LOL.

Also, still can't delete/edit comments...any ideas?

At ACP > Shoutbox Admin

;)

72
Mods & Plugins (Requests & Discussions) / Re: Picture of the month
« on: September 01, 2006, 08:14:06 AM »
and what show the last month winner at main page ???

 :wink:

73
check your style.css and replace the color by image url :)

at style.css

body {

background-color: #(color);

Replace with:

BACKGROUND: url(http://www.yousite.com/image.gif);

this must work :)

74
I don't need it now because this version runs correctly.. but if you have installed userpic and gender mod ^^

I have other problem. The gender mod doesn't run, allways it show male and i female and in the other side it show correctly, but in guestbook it doesn't work rigth

another problem is that the new entries don't show in user_info.html allways 0 entry.. so it is wrong. How can i delete this number? I don't want that the user think that they dont have messages

do you've insert the code at your page_header.php ?

steps 4.1 and 4.2

 :wink:

75
Well i've make it for my website and i've decided share it , its my first tiny mod !!

BACKUP ALL FILES BEFORE !!!

This mod requires:

[MOD] Select country and gender with gif when register => http://www.4homepages.de/forum/index.php?topic=7385.0


First create a new php file "gender_stats.php" and upload to 4images/includes/

Quote
<?PHP
if (!defined('ROOT_PATH')) {
  die("Security violation");
}
//-----------------------------------------------------
//--- Show number of Girls ----------------------------
//-----------------------------------------------------
  $sql = "SELECT COUNT(*) as users
         FROM ".USERS_TABLE."
         WHERE user_id >= '".GUEST."' AND user_gender = 'Female'";
 $row = $site_db->query_firstrow($sql);

 $total_girls = "".$lang['users_girls']." ".$row['users']."\n";
 
 $site_template->register_vars("total_girls", $total_girls);
unset($total_girls);
//-----------------------------------------------------
//--- Show number of Boys ----------------------------
//-----------------------------------------------------
  $sql = "SELECT COUNT(*) as users
         FROM ".USERS_TABLE."
         WHERE user_id >= '".GUEST."' AND user_gender = 'Male'";
 $row = $site_db->query_firstrow($sql);

 $total_boys = "".$lang['users_boys']." ".$row['users']."\n";
 
 $site_template->register_vars("total_boys", $total_boys);
unset($total_boys);
//-----------------------------------------------------
//--- Show number of Bisexual ----------------------------
//-----------------------------------------------------
  $sql = "SELECT COUNT(*) as users
         FROM ".USERS_TABLE."
         WHERE user_id >= '".GUEST."' AND user_gender = 'Bisexual'";
 $row = $site_db->query_firstrow($sql);

 $total_bisexual = "".$lang['users_bisexual']." ".$row['users']."\n";
 
 $site_template->register_vars("total_bisexual", $total_bisexual);
unset($total_bisexual);
?>

Open Main.php and add before ?>

Quote
$lang['users_boys'] = "Total Boys:";
$lang['users_girls'] = "Total Girls:";
$lang['users_bisexual'] = "Total Bisexual:";

Now at your index.php find:

Quote
require(ROOT_PATH.'includes/sessions.php');

Add after:

Quote
include(ROOT_PATH.'includes/gender_stats.php');

After you just need added the tags at your html template:

{total_bisexual}
{total_boys}
{total_girls}

Remenber i've test it at my own gallery using 1.7.1 , so use it at your own risk !!  :wink:


Pages: 1 2 3 4 [5] 6 7 8 9 ... 41