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

Pages: 1 2 [3] 4 5 6 7 ... 10
31
Discussion & Troubleshooting / Re: User change photo
« on: March 01, 2007, 04:11:27 AM »
anyone, please

32
Discussion & Troubleshooting / User change photo
« on: February 28, 2007, 08:16:48 PM »
I have my gallery set up so the user can upload his own photo. I also use the mod to limit users uploads.

When the user edits his photo, there is no option for him to replace the current photo with another photo/upload.  He can only edit his description, keywords, etc.

Is there a way for the user to edit or replace a photo? The user does not want to upload another photo, only replace the one they have on file with a new one. As it is now, they have to delete their current photo to upload a new one or  bug the admin if they want to change their photo.



Any help would be appreciated.

Thanks
Steve

33
Discussion & Troubleshooting / Re: radio button
« on: February 28, 2007, 01:36:13 AM »
Sorry to ask again.....any help please...........Ivan suggestion was a good one, but not what I need. I need radio buttons for male or female when the member adds his photo. See image above and my post above for further explanation.

Any help would be appreciated.........

thanks
steve


34
Discussion & Troubleshooting / Re: radio button
« on: February 27, 2007, 01:45:16 AM »
Ivan..........I looked at that already.........it is drop down..........not radio..........


Any Help Please????????

35
Discussion & Troubleshooting / Re: radio button
« on: February 26, 2007, 09:32:38 PM »
Hey Ivan

Thanks for getting back to me but now I am confused. I tried your suggestion, but it did not work. I know that  their are two fields: image and user. Which one you use I thought depended on where you wanted to put the field.

In this case, I'm putting it in the member_uploadforum.html and member_editimage.html. Both relate to images, not user. If  I made changes to member_profile.html and member_editprofile.html, that is when I would use the user field.


 Let me give you can example of an input field I created for  religion  under images that works (note: all my text fields work, it is the radio one I can't figure out).


In db_field_field_definitions.db I put:


$additional_image_fields['image_religion'] = array($lang['image_religion'], "text", 0);



In member_uploadform.html and member_editimage.html  I put:


<tr>
            <td class="row2"><b>{lang_image_religion} (optional) </b></td>
            <td class="row2">
              <input name="image_religion" type="text" class="input" value="{image_religion}"  size="30" maxlength="30" />
            </td>
          </tr>



In main.php I put:

$lang['image_religion'] = "Religion:";



In the sql database I added in  the 4images_images and 4images_images_temp tables this:

Field = image_religion
Type = VARCHAR
Lenght = 255


All works fine (see picture below).



Unlike text fields, radio fields seem to require more info when added to the templates. But it is confusing and when I look at the examples of radio fields already created it doesn't help.

By the way Ivan, I did try your suggestion, but it did not work.

Hopefully I clarified it better and maybe someone can tell me what I'm doing wrong or what I'm not understanding.


36
Discussion & Troubleshooting / radio button
« on: February 26, 2007, 07:20:06 PM »
Hi

I'm trying to make radio buttons for male and female selection. I read the information in db_field_definitions.php, but it didn't provide enough information for me to understand how to create the buttons.

Next I looked at the example in the default template for making a user invisible or visible, but this didn't help me to adapt my radio button to an image field.

Here  is what I did:

1. Updated main.php with the following:

$lang['image_gender'] = "Your Gender:";
$lang['image_male'] = "Male";
$lang['image_female'] = "Female";


2. Added the image_gender to sql with tinyint(1) as the integer


3. Added  to db_field_definitions.php the following:

$additional_image_fields['image_gender'] = array($lang['image_gender'], "radio", 1);


3. Added the following to member_uploadform.html and member_editimage.html

 <tr>
            <td class="row2"><b>{lang_image_gender}</b></td>
            <td class="row2">

<input type="radio" name="image_gender" value="1"{image_gender_male}/>{lang_image_male}

<input type="radio" name="image_gender" value="0" {image_gender_female}/>{lang_image_female}
             
            </td>
          </tr>


When I went to test it, it did not work. All I saw was the words "Your Gender" but no male or female was provided (it was blank).

I didn't quite understand what the value=1 or value=0 meant. I also tried value=male and value=female, but the results where the same -- nothing shown.

I would appreciate it if anyone could tell me how to make this work?

I know others have  asked how to do radio buttons, but the answer was always to look at db_field_definitions.php. Again, I did read and I can make text fields and textarea fields with no problems,  but it did not provide me with enough info for me to understand how to do radio buttons.

Thanks in advance
Steve

37
Discussion & Troubleshooting / Re: Relative Paths
« on: February 25, 2007, 10:24:50 PM »
Bart

That didn't help. I'm hoping someone can help me understand what my relative path would be.

Thanks

38
Discussion & Troubleshooting / Relative Paths
« on: February 25, 2007, 05:40:47 PM »
I guess I don't understand what relative is. Hopefully someone can show me the way.

I have a folder in my includes directory called forum and a file called 4menu2.php. The path to that folder is:

http://www.asian-wife.net/include/fourm/4menu2.php.

I created a new template file called forum.html and included the following include command in the template.

<?php
include($_SERVER['DOCUMENT_ROOT']."/include/forum/4menu2.php");
?>

The forum.html file is located at: http://www.asian-wife.net/tempates/blue/forum.html

When I  execute my new template I use the following:

http://www.asian-wife.net/index.php?template=forum

I get the following errors:

Code: [Select]
Warning: Unknown(/home/asianlad/public_html/asian-wife-net/include/forum/4menu2.php): failed to open stream: No such file or directory in /home/asianlad/public_html/asian-wife-net/includes/template.php(101) : eval()'d code on line 81

Warning: Unknown(/home/asianlad/public_html/asian-wife-net/include/forum/4menu2.php): failed to open stream: No such file or directory in /home/asianlad/public_html/asian-wife-net/includes/template.php(101) : eval()'d code on line 81

Warning: (null)() [function.include]: Failed opening '/home/asianlad/public_html/asian-wife-net/include/forum/4menu2.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/asianlad/public_html/asian-wife-net/includes/template.php(101) : eval()'d code on line 81

I tried different paths with the include command but no success.


I'm sure it is because I don't understand relative paths. Boy, do a google on relative path and you get pages of elaboration that confuses you more than helps.

Hopefully someone can tell me what the correct relative path is for my include command. It would be appreciated.

Thanks
Steve


I did read Chris's mod at: http://www.4homepages.de/forum/index.php?topic=4295.msg17676#msg17676, but for dummies like me it didn't help since I didn't understand my relative path.

39
Discussion & Troubleshooting / Re: Find Users without images
« on: February 23, 2007, 08:41:01 PM »
Thanks

I installed the memberlist mod and I think it will do the job. Sorry i didn't see it in my search.

Thanks again......

steve

40
Discussion & Troubleshooting / Find Users without images
« on: February 23, 2007, 07:44:23 PM »
I searched with the keywords "users photo" but was not successful in finding the results I'm looking for. I'm hoping someone can help.

I run a penpal site. Registered users are required to upload a photo. After they register, I tell them they have a week to upload a photo or their user account will be deleted.

I realized after I made this rule, there is no easy was to find which registered users did not upload a photo. At least I could not find one.

Does someone have the knowledge to know how this can be done -- or provide the php code to do so? I want to be able to search my gallery for registered users who did not upload a photo.

I would appreciate any help.

Thanks
Steve

41
Hello

I'm using the  profile procedures in db_field_definitions.php to create custom fields. All went well except for image fields.

I created two image fields in db_field_definitions.php and added those fields in my 4images image table. Here are the fields I created:

$additional_image_fields['image_meet'] = array($lang['image_meet'], "textarea", 1);

$additional_image_fields['image_self'] = array($lang['image_self'], "textarea", 1);

In sql I added two columns in the 4images_images table as image_meet and image_self


Next, I went to the main.php and added the language code as follows:

$lang['image_meet'] = "Describe the type of person you would like to meet:";
$lang['image_self'] = "Describe yourself:";


Next, I went to register_form.html and added the codes as follow:

<tr>
  <td class="row2"><b>{lang_image_meet}</b></td>
  <td class="row2"><textarea name="image_meet" cols="50" rows="8" class="input">{image_meet}</textarea></td>
</tr>

<tr>
 <td class="row2"><b>{lang_image_self}</b></td>
 <td class="row2"><textarea name="image_self" cols="50" rows="8" class="input">{image_self}</textarea></td>
</tr>

Next I went to member_editprofile.html and added the following:

<tr>
 <td class="row2"><b>{lang_image_meet}</b></td>
 <td class="row2"><textarea name="image_meet" cols="50" rows="8" class="input">{image_meet}</textarea></td>
</tr>

<tr>
 <td class="row2"><b>{lang_image_self}</b></td>
 <td class="row2"><textarea name="image_self" cols="50" rows="8" class="input">{image_self}</textarea></td>
</tr>

Finally, I went to details.html and added the following:

<tr>
 <td valign="top" class="row1"><b>{lang_image_self}</b></td>
 <td valign="top" class="row1">{image_self}</td>
</tr>

<tr>
 <td valign="top" class="row1"><b>{lang_image_meet}</b></td>
 <td valign="top" class="row1">{image_meet}</td>
</tr>

I'm using 4images for a free dating site. I want the user to be able to type in his description and the type of person they would like to meet when they register or edit their profile through the control panel. The problem is when I type in the information when I register or update my profile  for these two fields, it does not save the info nor does it show up in the details.html template.


Would anyone be able to guide me on how to do this?  Maybe the following pictures will help explain what I want to do:






Thanks
Steve






42
Discussion & Troubleshooting / Re: Radio Button Defaults
« on: February 21, 2007, 05:15:24 PM »
Wow.......simple and straight forward.......thanks for the quick reply and help.

A little info to clarify why. I use 4images for a dating site. Yes users can change it to yes in the control panel, but until they get use to 4images, they usually are not sure how to change things and instead email me to change it. I started to get emails from users asking why their email address was not showing in their profile (note: I used the mod that v@no created that only registered users can see member profiles).

After many complaints, I decided to try to change the default settings. I guess it depends on what you are using 4images for on how you want certain settings. For a dating site, the default being yes for email  is important. For any other type of  site, it probably is not desired.

Thanks again for your help. It is appreciated.

Steve

43
Discussion & Troubleshooting / Re: Radio Button Defaults
« on: February 21, 2007, 04:52:22 PM »
wow........that was quick

No, I don't want them removed...

I want to be able to change the no to yes or the yes to no for the default pre selections.

For example, the default for  the user control panel and admin edit area for  "show my email address" is no. I want to change it to yes.





44
Discussion & Troubleshooting / Radio Button Defaults
« on: February 21, 2007, 04:36:41 PM »
Hi

Hopefully someone can help me with the following.

I want to change the default radion button pre selections (yes or no)  in two areas: (1) user control panel and (2) admin area edit user.

Below are two pictures  showing where I'm talking about:



USER CONTROL PANEL





ADMIN AREA





I did search the forum. I found a few posts that talked about this but either I didn't understand or it wasn't what I wanted. I saw a few other posts that asked this question also, but no reply. Sorry, if it is posted elsewhere and I didn't see it.

This is the post I studied the most but it did not help me accomplish my goal (I think because I couldn't understand the instructions):

http://www.4homepages.de/forum/index.php?topic=12216.0

I think the answer may be there, but it is not clear on how and no matter what I tried I could not get the desired results.

Any help would be appreciated. I think others would be interested in clear instructions as well.

Thanks

steve

45
Discussion & Troubleshooting / Error deleting image
« on: November 28, 2006, 03:18:25 AM »
Tonight I started to get the following error:


Code: [Select]
Image deleted Aidz-1042 (ID: 102)
  Thumbnail file deleted (aidz-1042.jpg)
Comments deleted


Error Log:
  The following errors occurred:

    * Error deleting image file. (aidz-1042.jpg)


I did a forum search and found two other posts with the same problem. One wasn't answered and the other post said something about a  mod I didn't install.

I'm hoping  V@no or someone will give me a clue of what may be causing this. It seems the photo is being deleted, but the error is annoying. If there is a solution on how to fix this, I would appreciate it.

thanks in advance.

steve

Pages: 1 2 [3] 4 5 6 7 ... 10