Deviant Login Shop  Join deviantART for FREE Take the Tour
×



Details

Submitted on
May 27, 2011
File Size
527 bytes
Link
Thumb
Embed

Stats

Views
942
Favourites
32 (who?)
Comments
19
Installs
48

License

Creative Commons License
Some rights reserved. This work is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
×
DA Vanity Snippet :: UPDATED by GillianIvy DA Vanity Snippet :: UPDATED by GillianIvy
This is a vanity url menu with the standard links. These automatically change to the user's name upon install. This has been improved to add the "Profile" link and update the "Note Me" url to change automatically as well. This snippet is free to use in your journal skins without credit needed. It is placed in a DIV, "DA_menu", but this is not necessary. You can edit the CSS part as you like. The only part you need for this to work is the links in the header.

    Vanity Links

  • <a href="http://gillianivy.deviantart.com/profile/">Profile</a>
  • <a href="http://GillianIvy.deviantart.com/gallery/">Gallery</a>
  • <a href="http://GillianIvy.deviantart.com/journal/">Journals</a>
  • <a href="http://my.deviantart.com/deviants/add/GillianIvy">devWatch</a>
  • <a href="http://my.deviantart.com/notes/?to%3DGillianIvy">Note Me</a>


Discussion with fellow CSS makers inquiring about vanity urls that automatically change to new users brought me to make this quick snippet to test if it automatically changes.

This snippet does work. It's very simple, you upload a skin to share and have your own vanity links and DA automatically transforms those into links for the user who installed your skin to their own personal urls.

Updated:

Added a "Note Me" link that automatically changes, thanks to ~IndraMJha. Added the "Profile" link as well.
Edit: *Hairac noticed the note me does not change, it remains to me. So edit it by logging out, copying your url (right-click the note link) and paste instead. Instruct users of the same (or I'll end up with a lot of notes!)

You may add this snippet, or use it to make your own, since it will automatically switch to your own name. You can rename the div, edit the links, edit the CSS, add it to your own skins, redistribute, copy & paste, whatever, no credit to me is due, as I did not discover this, only noticed that others were able to make this happen magically when I installed their journals.

No one ever gave me feedback as to whether or not this happened to them upon installing my skins which may have had vanity urls. So I submitted this as a test, which =SoulFighty and =CypherVisor both immediately gave me feedback on, verifying that it does indeed work as suspected.

So, what this should do... Upon install, it should convert every instance of my vanity "`GillianIvy" to your username. A very simple thing, but useful to know. If you test this, please comment to me or note me or someway holler at me to let me know your results. Thank you!

This menu is fixed to the top of the journal. You may alter it's placement however you like. You may use it as it is, no CSS knowledge needed. It should work in any skin, though may look out of place if not fitted into custom skins.

Change:

.DA_menu{
position:absolute;
top:0px;
}

You can add

float:right/left;
bottom:0px;
position:relative/static/fixed/absolute;
display:block/inline/inline-block/hidden/none;

and more... [link]

between the {...} in order to effect the behavior and styling of this div.
Add a Comment:
 
:icontiramisutwo:
TiramisuTwo Featured By Owner Dec 31, 2011   Digital Artist
Thank you this helps :)
Reply
:icongillianivy:
GillianIvy Featured By Owner Dec 31, 2011  Hobbyist General Artist
;D I'm glad. Happy New Year!
Reply
:icontiramisutwo:
TiramisuTwo Featured By Owner Dec 31, 2011   Digital Artist
Thank you :)
Reply
:iconkjherstin:
Kjherstin Featured By Owner May 31, 2011
clever
Reply
:icongillianivy:
GillianIvy Featured By Owner May 31, 2011  Hobbyist General Artist
Thanks! Been trying to compile useful snippets.
Reply
:iconhairac:
Hairac Featured By Owner May 27, 2011  Professional Digital Artist
So we don't have anything to do? great XD :clap:

For me everything worked except for the note that still link to you
Reply
:icongillianivy:
GillianIvy Featured By Owner May 27, 2011  Hobbyist General Artist
Okay, to get yours, log out, right-click the note me and copy url. Should be tk followed by long string.
Reply
:iconhairac:
Hairac Featured By Owner May 27, 2011  Professional Digital Artist
yes i know how to get mine, i just notice you that doesn't work the automatic system xD
Reply
:icongillianivy:
GillianIvy Featured By Owner May 27, 2011  Hobbyist General Artist
Oh wells, I added a note about that to the description. (I should probably delete all the strike out, makes it confusing?)
Reply
:iconhairac:
Hairac Featured By Owner May 27, 2011  Professional Digital Artist
i'll look forward for a system hummm

(to me isn't confusing)
Reply
Add a Comment: