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:
Step 3:
In db_field_definitions:
Add before ?>:
Step 4:
Open includes/page_header.php
Find:
Add after:
Step 5:
In lang/main.php before ?> add:
Step 6:
In both member_edit_profile .html and register_form.html add:
Step 7:
Open user_profile.html
add:
Voila! you're horoscopes are active on your site. Just modify/register and select your horoscope and then view your profile.
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.