Author Topic: Some Name Alteration Items  (Read 79787 times)

Offline SKETCHi

Some Name Alteration Items
« on: April 22, 2006, 04:23:38 am »
You must have the Display Name CSS item installed in order for these items to work. The Display Name CSS item adds an SQL field to your smf_members table and these files add CSS to that field.

I didn't realize there was a forum, so I had thrown these into the bug tracker :). Anyway, I had a friend of mine whip up a couple items, and I did a little fixing myself, here is what we came up wtih.

Change Name Color (Change_Color.php)
A drop down menu containing three shades of all ROYGBIV colors. Users choose which color they want to use from the list.

Change Name Background Color (Change_Bg_Color.php)
The same as the name color change, but with background colors instead. The same colors are used.

Change Name Style (Change_Style.php)
Bold, Italic, Underline, Overline, Line-through, Uppercase and Lowercase can be added to usernames via a drop down menu.

Change Name Colors & Styles (Change_All.php)
This item has three drop down menus containing all of the above items.

Items attached below as txt files. Remove the .txt extension before uploading. Or, Download ZIP of All Items.

If you have any suggestions, please add them. Enjoy :)

Edited by Daniel15 on 8th October 2006: Changed link to 'Display Name CSS' item
« Last Edit: October 08, 2006, 10:51:44 am by daniel15 »

Offline tazpot

Re: Some Name Alteration Items
« Reply #1 on: April 22, 2006, 08:49:26 am »
 ;D Nice one SKETCHi i might use some of those when i get chance  O0

Offline SKETCHi

Re: Some Name Alteration Items
« Reply #2 on: April 22, 2006, 02:13:34 pm »
Thanks tazpot, happy to help :). Last year I had actually requested these items be made, then I saw that wonderful CSS item and figured it was my chance to get these made :).

Offline Daniel15

Re: Some Name Alteration Items
« Reply #3 on: May 14, 2006, 10:19:17 am »
Heh, I just installed your 'Change Name Colors & Styles (Change_All.php)' item here :)
I completely forgot about these items until now :P

SKETCHi: I added your item to the 'Downloads' section of this website.
« Last Edit: May 14, 2006, 10:35:52 am by daniel15 »

Offline Sady

Re: Some Name Alteration Items
« Reply #4 on: May 15, 2006, 03:24:09 am »
I added these to my forum but whenever I click "use item" after selecting my color/bg choices, etc., I get the following error:

Unknown column 'shop_nameStyle' in 'field list'
File: /Applications/MAMP/htdocs/forum/Sources/shop/items/Change_Bg_Color.php
Line: 86

the error is the same for each of the four files, just a different line number.  Any ideas what could be going wrong?

Offline Daniel15

Re: Some Name Alteration Items
« Reply #5 on: May 20, 2006, 09:05:13 am »
You need to install the 'Change Display Name CSS' item for these items to work. These items rely on the Change Display Name CSS item to be installed. You install that item using the Package Manager.

Offline SKETCHi

Re: Some Name Alteration Items
« Reply #6 on: May 24, 2006, 01:55:40 am »
Sorry Sady, I should have clearified that in the topic post. I have added the information now so there will be no further confusion.

Offline geezmo

Re: Some Name Alteration Items
« Reply #7 on: June 13, 2006, 03:21:55 am »
This is a great shop item, but how can I revert all changed usernames back to normal? My shop items have a validity of only one month so after one month, all items bought will revert to the original, including these name alterations.

Offline Daniel15

Re: Some Name Alteration Items
« Reply #8 on: June 16, 2006, 09:25:21 pm »
Quote
This is a great shop item, but how can I revert all changed usernames back to normal? My shop items have a validity of only one month so after one month, all items bought will revert to the original, including these name alterations.
To allow someone to revert their own name back to normal, install the 'Reset Display Name CSS' item. However, from what I can tell, you want to reset everyone's name style?

If so, then use this MySQL query:
Code: [Select]
UPDATE smf_members SET shop_NameStyle = ''
Or, use this PHP script:
Code: [Select]
<?php
require("SSI.php");
db_query("UPDATE smf_members SET shop_NameStyle = ''"__FILE____LINE__);
?>


Offline Pat

Re: Some Name Alteration Items
« Reply #9 on: July 25, 2006, 01:35:02 pm »
How do I fix this?

Unknown column 'shop_nameStyle' in 'field list'
File: /home/angel25/public_html/test/Sources/shop/items/Change_All.php
Line: 121

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.7, whereas your database is at version SMF 1.0.2. It is recommended that you execute the latest version of upgrade.php.

Offline Daniel15

Re: Some Name Alteration Items
« Reply #10 on: July 26, 2006, 08:40:38 am »
You need to install the 'Display Name CSS item for this to work.

Offline GeneralERA

Re: Some Name Alteration Items
« Reply #11 on: August 15, 2006, 01:29:04 am »
Ha! I wish I had seen this, I made something like this just a minute ago. Mine was a text field where the members entered a hex code, an RGB code or a color name, but this is nicer.  :) Ahh, mine works well enough, but nice work on this!

Offline Razor Heretic

Re: Some Name Alteration Items
« Reply #12 on: August 20, 2006, 12:56:23 pm »
for some reason It is not letting me add  Change_Color and Change_All
I am getting errors.

Offline SKETCHi

Re: Some Name Alteration Items
« Reply #13 on: August 20, 2006, 03:09:12 pm »
Could you paste the error messages here? I can't tell you what's wrong unless I see the errors :).

Offline Razor Heretic

Re: Some Name Alteration Items
« Reply #14 on: August 22, 2006, 09:00:12 am »
okay this is bizarre they all 4 work now.
I tried the 2 that did not work again and nwo they are perfect. how odd.