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

Pages: 1 [2] 3 4
16
Mods & Plugins (Releases & Support) / Mini MOD: User GIS
« on: June 19, 2003, 04:01:27 AM »
Quote from: uksoreeyes
Quote from: spoiledRHOtten
okay...where should I add it?


user_sex = '$user_gender

okay...now that i've done this...i think i'm back where i started with not being able to edit things in editprofile.html


because in editprofile.html...it allows for us to seeeee the sex...but not choose the sex now.

17
Mods & Plugins (Releases & Support) / Mini MOD: User GIS
« on: June 19, 2003, 03:49:05 AM »
okay...where should I add it?

18
Mods & Plugins (Releases & Support) / Mini MOD: User GIS
« on: June 19, 2003, 03:27:27 AM »
can i please send my member.php file to one of you? @V@no and uk?

help would be greatly appreciated.

19
Mods & Plugins (Releases & Support) / Mini MOD: User GIS
« on: June 19, 2003, 03:20:34 AM »
Quote from: uksoreeyes
Quote from: spoiledRHOtten
Hi!

Okay...my question is this...if we set the user to default as "male" is there a way for them to change it?

There is but it's going to require a few changes to the original mod.

First open: includes/db_field_definitions.php

Find:
Code: [Select]
$additional_user_fields['user_sex'] = array($lang['user_sex'], "radio", 1);
Remove it.

Open: member.php

Find:
Code: [Select]
   else {
      $user_icq_button = REPLACE_EMPTY;
    }

Below add:
Code: [Select]
// User Gender Switch
if($user_row['user_sex'] == 1){
$user_gender = "Male <img src=\"templates/default/images/m.gif\">";
} else if($user_row['user_sex'] == 2){
$user_gender = "Female <img src=\"templates/default/images/w.gif\">";
} else {
$user_gender = "None Specified";
}

Find:
Code: [Select]
     "lang_email" => $lang['email'],
      "lang_homepage" => $lang['homepage'],
      "lang_icq" => $lang['icq']

Change to:
Code: [Select]
     "lang_email" => $lang['email'],
      "lang_homepage" => $lang['homepage'],
      "lang_icq" => $lang['icq'],
 "user_gender" => $user_gender,

Find:
Code: [Select]
   $sql = "UPDATE ".USERS_TABLE."
            SET ".get_user_table_field("", "user_email")." = '$user_email', ".get_user_table_field("", "user_showemail")." = $user_showemail, ".get_user_table_field("", "user_allowemails")." = $user_allowemails, ".get_user_table_field("", "user_invisible")." = $user_invisible, ".get_user_table_field("", "user_homepage")." = '$user_homepage', ".get_user_table_field("", "user_icq")." = '$user_icq'

Change to:
Code: [Select]
   $sql = "UPDATE ".USERS_TABLE."
            SET ".get_user_table_field("", "user_email")." = '$user_email', ".get_user_table_field("", "user_showemail")." = $user_showemail, ".get_user_table_field("", "user_allowemails")." = $user_allowemails, ".get_user_table_field("", "user_invisible")." = $user_invisible, ".get_user_table_field("", "user_homepage")." = '$user_homepage', ".get_user_table_field("", "user_icq")." = '$user_icq', user_sex = $user_gender

Find:
Code: [Select]
 if ($config['account_activation'] == 2 && $user_info['user_level'] != ADMIN) {
    $edit_profile_msg .= $lang['edit_profile_email_msg_admin'];
  }

Below add:
Code: [Select]
// User Gender Switch
if($user_info['user_sex'] == 1){
$user_gender = "<input type=\"radio\" name=\"user_gender\" value=\"1\" checked />
              male&nbsp;&nbsp;&nbsp;
              <input type=\"radio\" name=\"user_gender\" value=\"2\" />
              female</font>";
} else if($user_info['user_sex'] == 2){
$user_gender = "<input type=\"radio\" name=\"user_gender\" value=\"1\"/>
              male&nbsp;&nbsp;&nbsp;
              <input type=\"radio\" name=\"user_gender\" value=\"2\" checked  />
              female</font>";
} else {
$user_gender = "<input type=\"radio\" name=\"user_gender\" value=\"1\"/>
              male&nbsp;&nbsp;&nbsp;
              <input type=\"radio\" name=\"user_gender\" value=\"2\"/>
              female</font>";
}

Find:
Code: [Select]
   "lang_edit_profile_msg" => $edit_profile_msg,
    "lang_yes" => $lang['yes'],
    "lang_no" => $lang['no']

Replace with:
Code: [Select]
   "lang_edit_profile_msg" => $edit_profile_msg,
    "lang_yes" => $lang['yes'],
    "lang_no" => $lang['no'],
"user_gender" => $user_gender,

Open: templates/default/member_editprofile.html

Find:
Code: [Select]
         <tr>
            <td class="row1"><b>{lang_invisible}</b></td>
            <td class="row1"> <input type="radio" name="user_invisible" value="1"{user_invisible_yes} />
              {lang_yes}&nbsp;&nbsp;&nbsp; <input type="radio" name="user_invisible" value="0"{user_invisible_no} />
              {lang_no} </td>
          </tr>

Below add:
Code: [Select]
         <tr>
            <td class="row2"><b>Gender</b></td>
            <td class="row2">{user_gender}</td>
          </tr>

Open: templates/default/member_profile

Find:
Code: [Select]
<img src="templates/default/images/{user_sex}.gif">
Remove it.

Find:
Code: [Select]
       <tr>
          <td class="row2"><b>{lang_icq}</b></td>
          <td class="row2">{if user_icq}<a href="http://wwp.icq.com/scripts/search.dll?to={user_icq}">{user_icq}</a>
            (<b>{user_icq_status}</b>){endif user_icq}</td>
        </tr>

Below add:
Code: [Select]
       <tr>
          <td class="row1"><b>Gender</b></td>
          <td class="row1">{user_gender}</td>
        </tr>


Thats about it I think, Save and close the files. I have tested on a fresh install of 4images and it works great.

Please inform me of any problems.

Carl


okay...i did that...and now i get this:

Quote
DB Error: Bad SQL Query: UPDATE 4images_users SET user_email = 'spoiledRHOtten@hotmail.com', user_showemail = 1, user_allowemails = 1, user_invisible = 0, user_homepage = '', user_icq = '', user_sex = 2', user_cat_active = '1', user_pms_email = '1', user_pms_popup = '0', user_org = '', user_avatar = 'users/1.jpg', user_club = '', user_chapter = '' WHERE user_id = 1
You have an error in your SQL syntax near '', user_cat_active = '1', user_pms_email = '1', user_pms_popup = '0', user_org =' at line 2

please help!

20
Mods & Plugins (Releases & Support) / [MOD] Members Personal Category
« on: June 18, 2003, 04:56:28 AM »
Quote from: V@no
Quote from: spoiledRHOtten
okay..so say a user has created/activated their album already.....and you have 1150 users. How do they change their permissions?

each of your members must go to control panel, activate MPC, click save. after that they should see a link "Edit" in their control panel. After first time clicking on "Edit" link, they must accept whatever agreement u set, then new category folder should be automaticaly created and they should see the permissions page.


okay...right.

so they get DB errors everytime they try to set permissions. What must I do so that they dont get errors?

21
Mods & Plugins (Releases & Support) / [MOD] Members Personal Category
« on: June 18, 2003, 02:59:40 AM »
okay..so say a user has created/activated their album already.....and you have 1150 users. How do they change their permissions?

Do I have to edit user and change permissions for ALL 1150 users so that everyone can see everyone else's albums?!?!?!?

I keep getting this error anyways whenever I try to edit the permissions from member_editprofile...I get this error:


Quote
DB Error: Bad SQL Query: UPDATE 4images_categories SET auth_upload = 3 WHERE cat_id =
You have an error in your SQL syntax near '' at line 3

DB Error: Bad SQL Query: SELECT group_id FROM 4images_groupaccess WHERE cat_id = AND auth_upload = 1
You have an error in your SQL syntax near 'AND auth_upload = 1' at line 3


please help....I think i might cry.

22
Mods & Plugins (Releases & Support) / Mini MOD: User GIS
« on: June 17, 2003, 06:56:39 AM »
Hi!

Okay...my question is this...if we set the user to default as "male" is there a way for them to change it?

I added the field that we added to the register_form.html form to the member_editprofile.html. BUT....it resets back to the male selection because it is set as marked. Is there a way to recall what the user marked so they dont have to keep changing it everytime they update their profile. I'm sure many people will forget to mark Female if they are female everytime the update their profile.

Please help!

Thank you!

23
Discussion & Troubleshooting / user fields not required
« on: June 17, 2003, 06:27:44 AM »
@ V@no...

ALRIGHT ALRIGHT...don't say it...

cause you would say that if i had read it thoroughly...i would have read where it said to not make the field required further down in the post.....

well this is for you....*sticking tongue out*

*CHEESE*  *giggle*....j/k

NM on this post..... :)

Courtney Elizabeth

24
Discussion & Troubleshooting / user fields not required
« on: June 17, 2003, 06:23:54 AM »
Hello!

I used this page...
http://www.4homepages.de/forum/viewtopic.php?p=3277#3277

to add user fields.
However, i dont not want the fields that I added to be required fields. Is there a way to change this?

Please help

Thank you!

25
is there somewhere that we can see this?

26
Hi!

is there a way to refresh "who's online" without refreshing the full page?

27
Quote from: V@no
are u sure that u redid Step 1.? I dont think so, because if there was some problem, u'd get atleast this: Show user's Favorites ()
and this is the actual line, that supposed to print on display (X)
Code: [Select]
"lang_show_user_lightbox" => $lang['show_user_lightbox']." (".$num_rows_all.")",


Hi! for some reason, the link won't show up on user's profiles that I know have lightboxes. :(  Also, the same for the user's comments Mod.
Is it possible for you to take a look at my member.php file and tell me what is wrong? I'd really appreciate it!

28
Mods & Plugins (Requests & Discussions) / Contact Form
« on: June 15, 2003, 06:29:22 AM »
GREAT! THank you!

I figured it out! :)
I haaaaaaaaaaave a contact form! (CHEESE)

29
Mods & Plugins (Requests & Discussions) / Contact Form
« on: June 15, 2003, 05:42:26 AM »
Hi! I found a php contact form on Hotscripts.com.

Can someone please telll me how to incorporate this into the page?

Quote
<form action="addmail.inc.php" method="post">
                    <table>
                      <tr>
                        <td>Name&nbsp;:&nbsp;</td>
                        <td><input name="name" type="text" /></td>
                        <td>&nbsp;*</td>
                      </tr>
                      <tr>
                        <td>Email&nbsp;:&nbsp;</td>
                        <td><input name="email" type="text" value="@." /></td>
                        <td>&nbsp;*</td>
                      </tr>
                      <tr>
                        <td>Message&nbsp;:&nbsp;</td>
                        <td><textarea cols="20" name="textarea" rows="5"><?php print("Hello webmaster,\n\n"); /* your name */ ?></textarea></td>
                        <td>&nbsp;*</td>
                      </tr>
                      <tr>
                        <td></td>
                        <td><input name="submit3" type="submit" value="Send" />
                          <input name="reset" type="reset" value="Reset" /></td>
                        <td></td>
                      </tr>
                      <tr>
                        <td colspan="3">&nbsp;</td>
                      </tr>
                      <tr>
                        <td colspan="3">* = required field.</td>
                      </tr>
                    </table>
                  </form>


Here is my contact.php:

Quote
<?php
$templates_used = 'home,category_bit,whos_online,thumbnail_bit,member,comment_bit';
$main_template = 'contact';

define('GET_CACHES', 1);
define('ROOT_PATH', './');
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
$user_access = get_permission();
include(ROOT_PATH.'includes/page_header.php');


//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  "msg" => $msg,
  "clickstream" => $clickstream,
  "lang_category" => $lang['category'],
  "lang_added_by" => $lang['added_by'],
  "lang_description" => $lang['description'],
  "lang_keywords" => $lang['keywords'],
  "lang_date" => $lang['date'],
  "lang_hits" => $lang['hits'],
  "lang_downloads" => $lang['downloads'],
  "lang_rating" => $lang['rating'],
  "lang_votes" => $lang['votes'],
  "lang_author" => $lang['author'],
  "lang_comment" => $lang['comment'],
  "lang_prev_image" => $lang['prev_image'],
  "lang_next_image" => $lang['next_image'],
  "lang_file_size" => $lang['file_size']
));

$site_template->print_template($site_template->parse_template($main_template));
include(ROOT_PATH.'includes/page_footer.php');
?>


Can someone  please help me?

whenever I input the form into the contact.html. I get the following error.

Quote
Parse error: parse error, unexpected '<' in /home/virtual/site23/fst/var/www/html/4images/includes/template.php(133) : eval()'d code on line 459


It is weird because the contact.html was a direct copy of the details.html without all of the photos references...so basically, it was a shell of the details.html.

Any help would be appreciated!

30
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: June 14, 2003, 11:28:49 PM »
Quote from: V@no
Quote from: spoiledRHOtten
Hi! I was wondering if it would be possible to show the avatars on the site as random with the user's name and link to profile just like the random pic mod is.......so I guess this is a Mod Request.

not sure what do u mean, but showing random avatar on home page?
maybe show a random username?
or username with random avatar? avatars belong to users, not that users belong to avatars :lol:



okay...let's try this......

What if there was a Random User Mod where we could format it like this:

{user_name}
{user_avatar_current}
{user_joindate}

but it would be on the home.html page

Pages: 1 [2] 3 4