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.


Topics - Parasco

Pages: [1]
1
Mods & Plugins (Requests & Discussions) / [MOD] Horoscope -- By Parasco
« on: February 18, 2007, 09:38:23 PM »
Hi all, this is my first mod, simular to that of Gender and Country flags.  Designed to show user Horoscopes on each page.  If I leave out any details please forgive me.  These are the steps I applied to my site:

PS: An example image of the horoscope files are attached along with the zip that contains all 12 horoscopes (files are located at the end of this thread).

Before adding this MOD you need to install V@no's [MOD] Dropdown options for custom database fields which can be found at http://www.4homepages.de/forum/index.php?topic=7112.0

BACKUP YOUR DATABASE BEFORE PROCEEDING!

Step 1:
Download and extract the attached horoscope_files.zip to your templates/default/images/ folder.

Step 2:
Code: [Select]
In "4images_users" table add a new field "user_horoscope"

Step 3:
In db_field_definitions:

Add before ?>:

Code: [Select]
$additional_user_fields['user_horoscope'] = array($lang['user_horoscope'], "dropdown", 1, array("n" => "","aquarius" => "Aquarius", "aries" => "Aries", "cancer" => "Cancer", "capricorn" => "Capricorn", "gemini" => "Gemini", "leo" => "Leo", "libra" => "Libra", "pisces" => "Pisces", "sagittarius" => "Sagittarius", "scorpio" => "Scorpio", "taurus" => "Taurus", "virgo" => "Virgo"), 1, 0, 0, 0);
Step 4:
Open includes/page_header.php

Find:
Code: [Select]
  "lang_categories" => $lang['categories'],
Add after:

 
Code: [Select]
"lang_horoscope" => $lang['horoscope'],
Step 5:
In lang/main.php before ?> add:
Code: [Select]
$lang['horoscope'] = "Horoscope:";
Step 6:
In both member_edit_profile .html and register_form.html add:
 
Code: [Select]

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

Step 7:
Open user_profile.html

add:
Code: [Select]
<tr>
<td>
<img src="templates/default/images/h_icon_{user_horoscope}.jpg">
</td>
</tr>


Voila! you're horoscopes are active on your site.  Just modify/register and select your horoscope and then view your profile.

2
Was just thinking it would be a great feature that would be useful to everyone is to have a way to add the main picture in iframes, because some pictures get distorted if they are too small.  With iframes at least a user can scroll to view the full image

3
Installation, Update & Configuration / Problem with Adding Frames
« on: February 13, 2007, 01:47:35 AM »
Hiya !

I'd like to have my main page devided into 2 horizontal frames because I have a chat applet that needs to stay loaded while my members are viewing the gallery, so I tried making the home.html file a frame set and moved all it's previous contents to a new file called main.html (4images gallery) and in my bottom frame I have the chat applet, however for some reason all the values display as html instead of being processed by index.php.  Can someone please tell me how I would go about putting my site in frames :?:

Thanks in advance!

Para

4
Ok I installed 4images for the first time and it seems great, however, after reading many many many topics on how to add fields to the registration form, it seems that there is no clearly described topic on "How to" do it. :|

As an example, I'd like to add "Gender:" to the form

So my questions are the following:

1) What exactly should be added to the Database, and by Database do you mean the MySQL file or the db_field_definitions?
1-2-1) If by Database you mean the MySQL file, what exactly should I add to create a Gender column?
1-2-2) If the Database is db_field_definitions,  what code should I add?
2) After the modifications are made to the database, what are the following requirements needed to get "Gender:" to show up on the Register Form?  For some reason, no matter what I try, "Gender:" will not show up on the form.

It seems that many people are having the same problem, can you please tell me clearly step-by-step on how to add a field to the form?

Thank you sincerely,


Christopher James

Pages: [1]