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

Pages: [1] 2 3
1
Hi;
Nice mod ..

How can we make the price set by each user (who upload images) with image upload?
In other words, I have users who upload their photography, and i want them to be able to set price for each image they upload.
And to display a link to contact the user directly instead of the PayPal link.
This will make the users able to sell their images.

I've been thinking in this long time but no result ..
how can we do that?

Thanks

2
Mods & Plugins (Releases & Support) / Re: [MOD] Last comments v1
« on: December 11, 2005, 07:44:04 AM »
Hi V@no ..
Great mod .. just as usual ..

I have an idea to enhance the display of the mod ..

It's a small JavaScript that let you Show/Hide the displayed comments .. just like how Gmail displays the replies inside each email :) ..
Imagine if these are the comments :) ..
It works ..
But there is a little problem ..
The script shows/Hides tables or <td> with static IDs ..
However, we have only one table in last_comment_bit.htm ..
So there has to be a small php modification that can handle this ..


Got my point?

here is the JavaScript and HTML .. try it please so you will understand ..

Code: [Select]
<html>
<head>

<!-- START show hide -->
<SCRIPT LANGUAGE="JavaScript">
function open_close_item(num) {
x='c'+num+'_sub'

if(document.getElementById(x).style.display=='none'){

document['c'+num+'_folder'].src='templates/lqta/images/minus.gif'
document.getElementById(x).style.display=''

}
else{
document.getElementById(x).style.display='none'
document['c'+num+'_folder'].src='templates/lqta/images/plus.gif'
}
}
</SCRIPT>
<!-- END show hide -->

</head>
<body>

<p align="right"><font size="2" face="Tahoma">&nbsp;<img name="c0_folder" border="0" src="http://www.lqta.com/gallery/templates/lqta/templates/default-arabic/images/minus.gif" style="cursor:hand" onclick="javascript:open_close_item(0)" width="9" height="9"> </font> 



<table id="c8_sub" border="1" width="100%" id="table1">
<tr>
<td>Cpntent</td>
</tr>
</table>



</body>
</html>

3
Dude ..
I donno but .. it looks that this thread is very minor ..
We are all waiting for help here but it's hard for the good programmers to get the chance ..
I advise you to search again in the forum you may find an answer .. if not, then search the net and try to do it yourself ..
trial and error :)

4
Hi ..

Any update?
V@no .. did you get teh chance?

5
Hi V@no :)
I am in good hands :)

check this:


Note:This is the query provided by the mailinglist support:
Code: [Select]
<?php
$firstname 
"Firstname";
$lastname "Lastname";
$email_address "email@address.org";

$query "INSERT INTO `".DATABASE_NAME."`.`".TABLES_PREFIX."users` VALUES ('', 2, '".time()."', '".$firstname."', '".$lastname."', '".$email_address."');
?>

These are the fields in lmuser_list table:
    users_id
    group_id
    signup_date
    firstname
    lastname
    email_address




7
It worked :)

I tuned it to this:

Code: [Select]
<?php
      $sqlem 
"INSERT INTO lqtacom_email.lmusers(lastname, email_address) 
                SELECT  "
.get_user_table_field("""user_name").get_user_table_field(", ""user_email")."
                FROM "
.USERS_TABLE." WHERE ".get_user_table_field("""user_activationkey")." = '$activationkey'";


      
$site_db->query($sqlem);
?>

However, the date is not inserted correctly!
Any help?

8
Hi Nicky;

Well .. I used this:

Code: [Select]
<?php
     $sqlem 
"INSERT INTO lqtacom_email.lmusers(lastname, email_address) 
               SELECT  "
.get_user_table_field("""user_name").get_user_table_field(", ""user_email")."
               FROM "
.USERS_TABLE." WHERE ".get_user_table_field("""user_activationkey")." = '$activationkey'";


     $site_db->query($sqlem);
?>


And it worked :)
It adds the username and the email of any user regestered to the gallery .. (adds them to the mailingllist) ..
However, it doesn't add the user to any group in the mailingllist ..
I wanted users to be added to group id= 2 ..
so I used this:

Code: [Select]
<?php
     $sqlem 
"INSERT INTO lqtacom_email.lmusers('', 2, '".time()."', lastname, email_address) 
               SELECT  "
.get_user_table_field("""user_name").get_user_table_field(", ""user_email")."
               FROM "
.USERS_TABLE." WHERE ".get_user_table_field("""user_activationkey")." = '$activationkey'";


     $site_db->query($sqlem);
?>

but it didn't work ..
Any idea? We are very close now ..

Note:This is the query provided by the mailinglist support:
Code: [Select]
<?php
$firstname 
"Firstname";
$lastname "Lastname";
$email_address "email@address.org";

$query "INSERT INTO `".DATABASE_NAME."`.`".TABLES_PREFIX."users` VALUES ('', 2, '".time()."', '".$firstname."', '".$lastname."', '".$email_address."');
?>

9
I think we need just to insert the the group_id somehow .. right?

10
Ooooopss ..
sorry man ..
I was totally blind ..

i am trying it now ..

One thing ..


How can I specify a group for the new users?
I have a group in the mailing list and want the new users to be rigestered in this group ..

The table name: lmuser_groups
4 fields in this table:  group_id    group_type    belongs_to    group_name

any idea?

11
I got this error:


DB Error: Bad SQL Query: INSERT INTO YOURDATABASE.lmuser_list(user_name, user_address) SELECT user_name, user_email FROM 4images_users WHERE user_activationkey = '5f1dc278d37aa508f60c45aa79e3de45'
insert command denied to user: 'lqtacom_root@localhost' for table 'lmuser_list'


12
aha ..
got it :)
thank Nicky ..

I'll try it now ..

13
Hey Kicky :)

Thanks for the reply .. I was waiting ..

Quote
working with email activation code

Do you mean once someone registers in the site, he/she will get an email from the mailing list asking for activation?
Or you mean if my 4images is working with activaing user emails prior registration then there is no problem?

14
Hi nicky ..

I've been waiting for long time.
 :(

Did you have a chance?

Any one can help?

15
I'll be waiting ..
:)

Pages: [1] 2 3