PDA

View Full Version : Profile Enhancements - Star Sign Mod v1a


TheSupportForum
09-16-2008, 10:00 PM
=======================
Star Signs V1
vBulletin 3.7.3--
Author (c)
Simon Hind
Tutorials4you
Author Contact
http://www.tutorials4you.co.uk/
17/09/2008 - Date of Update
=======================



=======================
LICENCE
Star Signs V1
vBulletin 3.7.3
--
LICENCE - do not modify the documentation or the links,
please also leave the comment tags which show tutorials4you.co.uk in the comments
=======================



=======================
Change Log
--
=======================



=======================
About
--
The modification will show a drop down in the usercp
Thus, from the drop down the user selects his/her Star Sign
The postbit include will display it each of the users threads
=======================


=======================
Installation
--
**********************************
STEP 1 - Upload starsigns to your server
**********************************
Upload the folder "starsigns" to your images/buttons - this is deauflt template not other templates
or
Upload the folder "starsigns" to your images/templatefoldername/buttons - do not create folder name templatefoldername

You should be able to access it using the URL (web address)

http://www.yoursite.com/your-forum/images/buttons/starsigns
**********************************
STEP 2 - Admincp setup
**********************************
AdminCP > User Profile Fields > Add New User Profile Field > Single-Selection Menu
--
Fill in the following forms with these details..
--
Title: Star Signs
Description:Add Star Signs to your profile
Profile Field Category: (Uncategorized)
Options: Open the list.txt and copy and paste the whole file in here
Set Default: None
Display Order: 5 (Or whatever else is there)
Field Required: Yes, at registeration and profile updating
Field Editable by User: Yes
Private Field: No
Field Searchable: No
Show on Members List: Yes
Allow user to input their own value for this option: No
Max length of allowed user input: SKIP
Field Length: SKIP
Regular Expression: SKIP
Display Page: Edit Your Details
--
SAVE


change fieldxx to the fieldnumber for example 5

to find the field number follow these instructions
AdminCP > > User Profile Fields > User Profile Field Manager
--

User Profile Fields in Area: Edit Your Details
Title / Profile Field Type
(Uncategorized)
Star Sign
Name

under name should show field name




**********************************
STEP 3 - Template Configuration and Edits
**********************************-=-=-=-
THIS IS FOR POSTBIT NOT LEGACY(below)
-=-=-=-
AdminCP > > Styles & Templates > Style Manager > Edit Templates > Postbit Templates > postbit
--
FIND
#########################
<div>$vbphrase[posts]: $post[posts]</div>
#########################
ADD BELOW
#########################
<!-- Simons StarSign Start -->
<if condition="$post['fieldxx']">
Star Sign: <img src="$stylevar[imgdir_button]/starsigns/$post[fieldxx].gif" alt="Star Sign" border="" />
</if>
<!--// Simons StarSign End -->
#########################
--
SAVE

-=-=-=-
THIS IS FOR POSTBIT LEGACY(below)
-=-=-=-
AdminCP > > Styles & Templates > Style Manager > Edit Templates > Postbit Templates > postbit_legacy
--
FIND
#########################
<div>$vbphrase[posts]: $post[posts]</div>
#########################
ADD BELOW
#########################
<!-- Simons StarSign Start -->
<if condition="$post['fieldxx']">
Star Sign: <img src="$stylevar[imgdir_button]/starsigns/$post[fieldxx].gif" alt="Star Sign" border="" />
</if>
<!--// Simons StarSign End -->
#########################
--
SAVE

apiasto
09-16-2008, 11:27 PM
nice i ma try it,is there any other choice of pictures?:confused:

TheSupportForum
09-16-2008, 11:30 PM
working on at tomorrow

imgaes are to big, and will offer dark, light images and 50x50 pixel size

apiasto
09-16-2008, 11:44 PM
kool i will wait thnx for reply

TheSupportForum
09-18-2008, 04:39 PM
update made to images and alot smaller, will be working on changing location of info but not for a week or 2

apiasto
09-19-2008, 02:03 AM
ok thnx

Nadeemjp
09-26-2008, 10:46 AM
hello simon i have installed as per your instructions.
however, inspite of the fields showing up in the user cp, i selected my loccation like japan and my star as cancer and sacved the changes. but there do not appear on the posts i made on the forum. i wanted to know where do these images appear? and if they are supposed to appear on every post i make, then why is it not appearing?

Nadeemjp
09-26-2008, 12:35 PM
As shown in the image, the country flag is appearing fine but the star sign is not.

also, can you please guide me as to how i can shift the POWER below sign and country? (I mean in the new line)

thank you
https://vborg.vbsupport.ru/external/2008/09/7.jpg

TheSupportForum
09-26-2008, 04:32 PM
As shown in the image, the country flag is appearing fine but the star sign is not.

also, can you please guide me as to how i can shift the POWER below sign and country? (I mean in the new line)

thank you
https://vborg.vbsupport.ru/attachment.php?attachmentid=87374&d=1222436099
where did you place the images (which folder in public_html)

dont forget you need to change the route in
<img src="$stylevar[imgdir_button]/starsigns/$post[fieldxx].gif" alt="Star Sign" border="" />

$post[fieldxx].gif ( fieldxx needs to chane to the field number for the custom field name created)

reply for more support

if you email me your postbit template i'll do it for you
hinds@iams.islington.sch.uk

Nadeemjp
09-26-2008, 06:42 PM
dear simon
yes i changed the route as accordingly.
i shall mail you the postbit and postbit legacy codes. i did it exactly the same manner as the country flags. i know i am missing something out but couldnt put my fingers on.

i have put the folder in images/buttons/starsign

PAKIDIL
10-18-2008, 06:36 PM
installed (y).
and nadeem its the code problem you didnt add buttons i think try this coding

<!-- Simons StarSign Start -->
<if condition="$post[fieldXX]">
Star Sign: <img src="images/buttons/starsigns/$post[fieldXX].gif">
</if>
<!--// Simons StarSign End -->

WHERE XX IS YOUR FIELD ID

TheSupportForum
10-18-2008, 10:09 PM
installed (y).
and nadeem its the code problem you didnt add buttons i think try this coding

<!-- Simons StarSign Start -->
<if condition="$post[fieldXX]">
Star Sign: <img src="images/buttons/starsigns/$post[fieldXX].gif">
</if>
<!--// Simons StarSign End -->

WHERE XX IS YOUR FIELD ID

Nadeem has already been sorted out, i doen this for him myself as i created this template edit

i done this ages ago

PAKIDIL
10-19-2008, 01:21 PM
Nadeem has already been sorted out, i doen this for him myself as i created this template edit

i done this ages ago

okay but when i visited this thread his post was the last one and no replied from ya .its good that you have sort it out but i have also posted for all others who are viewing this thread it might help them
thanks

TheSupportForum
10-19-2008, 01:59 PM
okay but when i visited this thread his post was the last one and no replied from ya .its good that you have sort it out but i have also posted for all others who are viewing this thread it might help them
thanks

okay, i some more ideas on template edits like this one, soem more comming soon

PAKIDIL
10-23-2008, 03:17 PM
images are too large is it possible if someone can make starsign small with written form uper or lower like charm or some small word description defining the star

TheSupportForum
10-28-2008, 10:33 AM
i will give it a go when 3.8.0 is live

TheSupportForum
03-14-2009, 05:31 PM
i am looking for someone to help make this simple script edit a product, become a member on my site and PM me, also if products work, you will be given premium access free