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 - asd.m

Pages: 1 2 [3] 4
31
I'm not shore about what u ask

but I'm going to show u all tables and see what u need and what u don't need

first of all 4 images has 15  tables

1. 4images_categories = this one is for the categories that U had been add
2. 4images_comments = and this one is for comments that had been added by users
3. 4images_images = info about the images that had been uploaded
4. 4images_lightboxes = lightboxes for users
5. 4images_settings = ur gallery settings
6. 4images_users = ur users
7. 4images_wordlist  = needed without tell why

I think that all what u need to know :)

32
ur Welcome and about top poster I don't that could be :)

33
that's easy

do like this

first make new file with any name u like

add this code in it and change what I'm going to tell u :)

Code: [Select]
<?php


include("4images/config.php");
$Connect =mysql_connect($db_host,$db_user,$db_password);
$Select =mysql_select_db($db_name,$Connect);



$RowsNo mysql_num_rows(mysql_query("SELECT * from 4images_images"));
echo 
$RowsNo;

?>


first of all

Code: [Select]
include("4images/config.php");
4images == change it to ur gallery folder

Code: [Select]
$RowsNo = mysql_num_rows(mysql_query("SELECT * from 4images_images"));

4images_images = if u change the table_prefix from config file change it hear
table_prefix_images >> like this


than open ur home page
add this code to the page that u need to display in

Code: [Select]
include("name-of-the-file.php");

and don't forget to change the name of the file to ur file name
if u need any help ask and i'll help u :)

34
يـ الغالي ماعتقد تقدر تشيلها انا حاولت اشوف طريقه حق اشيلها ما قدرت

اقدر اشيلها لك ضاهريا لكن لما العضو يرفع الصوره راح يقوله ما كتبت الاكواد الموجوده في الصوره

لكن شوف اخوي

انا بحاول اشوف طريقة وحل لها

بس نصيحة مني
هذي الصوره ما وضعت الا لحل ثغره
فـ لا تشيلها انت وتفتح ثغرة عندك

هذي الثغره تخلي سيرفرك يمتلي حجمه بسرعه بواسطة استخدام كود برمجي
ويعتبر مثل الفلود
مما يعجل موقعك السيرفر يعلق ويمكن ينطفي
وبتصير القاعده عندك خبرانه

بس إن شاء الله ما يهمك اشوف لك حل لها :)

تحياتي

35
hello Warz :)

could I speak to u in some where online like chat !!!
if u use messenger u could add me
it's the same email that I send to u via PM

============

Hi Nicky  :)
o.k I'll :)

36
if there is any problem plz tel me :)

37
o.k :)

thanks for Warz 
he paid me on my paypal account

Now let me explain it :)

first of all after u do the modify in this mod
http://www.4homepages.de/forum/index.php?topic=19353.0

start this

1-
open member.php
after <?
add
Code: [Select]
if ( phpversion() >= "4.2.0"){
    extract($_POST);
    extract($_GET);
    extract($_SERVER);
    extract($_COOKIE);
}
search for
[/size][/color]
Code: [Select]
//-----------------------------------------------------
//--- Show uploaded images from edit profile ----------
//-----------------------------------------------------
add after
Code: [Select]
$ShowPageNo="9"; # Nomber of the image per page
$PageBreak="999"; # nember of pages show for the user

if ($action == "show_uploaded_images") {

// code to add the limit per page in mysql code
if ($Page=="") {$Page=1;}
$FromRecord=($Page-1)*$ShowPageNo;
// code to add the limit per page in mysql code //
if ($SortBy=="") {$sh = "i.image_date DESC";}
if ($SortBy==1) {$sh = "i.image_date DESC";}
if ($SortBy==2) {$sh = "i.image_date ASC";}
if ($SortBy==3) {$sh = "i.image_name DESC";}
if ($SortBy==4) {$sh = "i.image_name ASC";}

2. after

Code: [Select]
SELECT i.image_id, i.image_name, i.image_thumb_file, i.image_media_file, i.cat_id" . get_user_table_field(", u.", "user_name") . "
FROM (" . IMAGES_TABLE . " i, " . CATEGORIES_TABLE . " c)
LEFT JOIN " . USERS_TABLE . " u ON (" . get_user_table_field("u.", "user_id") . " = i.user_id)
WHERE i.image_active = 1 AND i.cat_id = c.cat_id AND " . get_user_table_field("u.", "user_id") . " = i.user_id AND i.user_id = " . $user_info['user_id'] . " AND (i.cat_id NOT IN (".get_auth_cat_sql("auth_viewimage", "NOTIN").", ".get_auth_cat_sql("auth_viewcat", "NOTIN")."))
ORDER BY i.image_date DESC

change it with

Code: [Select]
SELECT i.image_id, i.image_name, i.image_thumb_file, i.image_media_file, i.cat_id" . get_user_table_field(", u.", "user_name") . "
FROM (" . IMAGES_TABLE . " i, " . CATEGORIES_TABLE . " c)
LEFT JOIN " . USERS_TABLE . " u ON (" . get_user_table_field("u.", "user_id") . " = i.user_id)
WHERE i.image_active = 1 AND i.cat_id = c.cat_id AND " . get_user_table_field("u.", "user_id") . " = i.user_id AND i.user_id = " . $user_info['user_id'] . " AND (i.cat_id NOT IN (".get_auth_cat_sql("auth_viewimage", "NOTIN").", ".get_auth_cat_sql("auth_viewcat", "NOTIN")."))
ORDER BY $sh LIMIT $FromRecord,$ShowPageNo

3.
search about

Code: [Select]
  if ($count > 0)  {
    $leftover = ($config['image_cells'] - $count);
    if ($leftover >= 1) {
      for ($f = 0; $f < $leftover; $f++) {
        $uploaded_images_from_edit_profile .= "<td width=\"".$imgtable_width."\">\n&nbsp;\n</td>\n";
      }
      $uploaded_images_from_edit_profile .= "</tr>\n";
    }
  }
  $uploaded_images_from_edit_profile .= "</table>\n";

add after

Code: [Select]
// count the number of the image of the user by his user id
$RowsNo = mysql_num_rows(mysql_query("SELECT * from " . IMAGES_TABLE . " i where user_id=i.user_id"));

$MaxPage=(Int) ((($RowsNo-1)/$ShowPageNo)+1);



for ($i=1 ;$i<=$MaxPage ; $i++)
{
if ($i>$PageBreak) {break;}
If ($i==$Page)
{
$no_uploaded_images_from_edit_profile .= "| $i ";
}
Else
{

if ($SortBy==""){$uurl = "| <a href='member.php?action=show_uploaded_images&Page=$i'>$i</a>";}
if ($SortBy!=""){$uurl = "| <a href='member.php?action=show_uploaded_images&Page=$i&SortBy=$SortBy'>$i</a>";}
$no_uploaded_images_from_edit_profile .= "$uurl";
}
}

4.2. search for

Code: [Select]
$uploaded_images_from_edit_profile .= $site_template->parse_template("thumbnail_bit");

change it with

Code: [Select]
$uploaded_images_from_edit_profile .= $site_template->parse_template("thumbnail_bit_profile");

5.search for

Code: [Select]
$site_template->register_vars("lang_uploaded_images_from_edit_profile", $lang['uploaded_images_from_edit_profile']);
$site_template->register_vars("uploaded_images_from_edit_profile", $uploaded_images_from_edit_profile);

add after

Code: [Select]
$site_template->register_vars("no_uploaded_images_from_edit_profile", $no_uploaded_images_from_edit_profile);

save the file

6. open includes/functions.php
search for

Code: [Select]
"image_url" => ($show_link) ? $site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_row['image_id'].((!empty($mode)) ? "&amp;mode=".$mode : "")) : "",

change it with

Code: [Select]
"image_url" => ($show_link) ? $site_sess->url("details.php?".URL_IMAGE_ID."=".$image_row['image_id'].((!empty($mode)) ? "&amp;mode=".$mode : "")) : "",

save the file

open
templates/ur-template/member_editprofile.html

search for

Code: [Select]
  <td class="head1">{uploaded_images_from_edit_profile}</td>

  </tr>
</table>

add afther

Code: [Select]
<FONT face='Times New Roman,arial, verdana, helvetica' size=3><b>{no_uploaded_images_from_edit_profile}
</b>
</FONT>
<p><b><a href="member.php?action=show_uploaded_images&Page=1&SortBy=1">A-B-C</a>
| <a href="member.php?action=show_uploaded_images&Page=1&SortBy=2">C-B-A</a> |
<a href="member.php?action=show_uploaded_images&Page=1&SortBy=3">1-2-3</a> |
<a href="member.php?action=show_uploaded_images&Page=1&SortBy=4">3-2-1</a><br />

save the file
make new html file in ur template
name it thumbnail_bit_profile
it's name will be
thumbnail_bit_profile.html

add in it

Code: [Select]
<!-- you wish detail page in a small javascript open window, use {thumbnail_openwindow} -->
{thumbnail}<br />
<b>{image_name}</b> {if image_is_new}<sup class="new">{lang_new}</sup>{endif image_is_new}
<br />

<br />
&nbsp;<p><input type="text" name="T1" size="20" value="http://www.domain.com/{image_url}"></p>

and change the http://www.domain.com to ur domain

save the file
and that's all :)

I Attach all the files to make it easy :)



[Nicky edit]
used [ code ] instead of [ php ] to post php codes.

38
o.k :)

I finish it :)



I hope it's like what u need :)

39
thanks mawenzi  :)

I understand it very well :)

I'm going to try it :)

40
almost all of them are easy
and I can do them to day
but there is only one problem

the problem is with removing the  lightbox button and comments

I don't think that I can't remove them :)
I try many time and many ways but I didn't do it
I'm going to try again and see if I can do it :)


41


I finish pages #

I make it in my page show 3 images than go to the other page and show 3 also
and u can change this to 10 or 9  and it's easy to change :)


42
o.k jest to make shore

Quote
- Code to make this mod display 10 images at once, and a list so you can go to next page.
Example:
First view 10 images... Then under the images it says:
1,2,3,4,5,6...96,97,98

I understand this

but

Quote
They click a page.
I also want users to be able to list images after last uploaded, or alphabeth.

Also, I would like to remove the lightbox button and comments under each image instead, and put the link to the image, example: http://img.com/details.php?image_id=115

could u explain those again :)   

43
Chit Chat / Re: PHP EDITOR
« on: April 14, 2008, 07:33:06 PM »
because not all of the post was in English I didn't understand all what has been post

but I use PHP Expert Editor :)
http://www.ankord.com/

   

44
I think I can do it :)

jest tell me how much you'll pay for it
than I'm going to tell how many day it going to take :)

45
Hi :)

I thing there is easy solution for ur problem :)
but it's not going to be as ur example
the name of the image will be random
E.g:
time-userid.XXX
1250-23.jpg

I'm going to do it and see :)

Pages: 1 2 [3] 4