DIR Return Create A Forum - Home
---------------------------------------------------------
Create A Forum - Support Forums
HTML https://support.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Create a Forum Codes and Support
*****************************************************
#Post#: 14864--------------------------------------------------
[Code] Name Across Board
DIR By: Agent Moose
Date: November 26, 2014, 10:21 pm
---------------------------------------------------------
It's been a long time since I've made a code :P I decided to
look up and see how this board is going and noticed people
wanted a code that would add a crown to their username.
Solution is here!
Place in Footers:
--- Code ---
<script type="text/javascript">
function NAB(real, owned){
//Created by Agent Moose
for(i in document.links){
if(document.links[i].innerHTML === real){
document.links[i].innerHTML = owned;
};};};
NAB("Agent Moose", "<font color='#00aabb'><b>Agent
Caboose</b></font>");
NAB("OLD NAME", "NEW NAME");
</script>
--- End Code ---
So as I said above, this code will change all the links that
have whatever username you say, to whatever new username you
will want it to be.
--- Code ---
NAB("OLD NAME", "NEW NAME");
--- End Code ---
OLD NAME = Current Username (THIS IS CASE SENSITIVE)
NEW NAME = What you want your users to see. (You can use the
same OLD NAME as the NEW NAME if you just want to add an image
in front or bold ect)
As in the example above, you can use any HTML you would like.
You can use the font tag, bold, add an image before and after
the name, whatever.
Here's an example if you want an image before the name:
--- Code ---
NAB("Agent Moose", "<img src='IMAGE URL HERE' />Agent Moose");
--- End Code ---
Also, you can add as many of these lines as you wish:
--- Code ---
NAB("OLD NAME", "NEW NAME");
--- End Code ---
Enjoy! :)
#Post#: 14878--------------------------------------------------
Re: [Code] Name Across Board
DIR By: CyanProductions
Date: December 2, 2014, 6:01 am
---------------------------------------------------------
Thanks :)
#Post#: 14879--------------------------------------------------
Re: [Code] Name Across Board
DIR By: CyanProductions
Date: December 2, 2014, 6:44 am
---------------------------------------------------------
Is it possible to make it so it displays the users avatar. So
something like:
NAB("UserName", "<img
HTML src='http://{forumname}.createaforum.com/cavatars/{forumname}/'
& UserName /><font color='#ff33cc'><b>UserName</b></font>");
In a way so that it updates for everyone automatically.
#Post#: 14904--------------------------------------------------
Re: [Code] Name Across Board
DIR By: Agent Moose
Date: December 5, 2014, 9:19 pm
---------------------------------------------------------
There is not a way for me to do that, sadly.
I mean, is the whole "cavatars" thing a board or what? I've
never seen anything with that url on any forum.
#Post#: 14966--------------------------------------------------
Re: [Code] Name Across Board
DIR By: CyanProductions
Date: December 20, 2014, 11:48 am
---------------------------------------------------------
This:
HTML http://cyanproductions.createaforum.com/cavatars/cyanproductions/avatar_1_1412542497.png
#Post#: 14978--------------------------------------------------
Re: [Code] Name Across Board
DIR By: xboi209
Date: December 22, 2014, 9:41 pm
---------------------------------------------------------
The link is only available if you upload your avatar directly to
the site, which not everyone does. The filename is also
unpredictable
#Post#: 15022--------------------------------------------------
Re: [Code] Name Across Board
DIR By: CyanProductions
Date: January 2, 2015, 5:39 pm
---------------------------------------------------------
--- Quote from: aIURbliS link ---
>
> The link is only available if you upload your avatar directly
to the site, which not everyone does. The filename is also
unpredictable
>
--- End Quote ---
I've seen a website do it before, it's not createaforum but it's
an SMF
#Post#: 15023--------------------------------------------------
Re: [Code] Name Across Board
DIR By: xboi209
Date: January 2, 2015, 10:32 pm
---------------------------------------------------------
--- Quote from: CyanProductions link ---
>
> [quote author=aIURbliS link=topic=4033.msg14978#msg14978
date=1419306072]
> The link is only available if you upload your avatar directly
to the site, which not everyone does. The filename is also
unpredictable
>
--- End Quote ---
I've seen a website do it before, it's not createaforum but it's
an SMF
[/quote]
Most likely, that website was using a mod which users can't
install here at CreateAForum.
#Post#: 15024--------------------------------------------------
Re: [Code] Name Across Board
DIR By: CyanProductions
Date: January 3, 2015, 9:45 am
---------------------------------------------------------
--- Quote from: aIURbliS link ---
>
> [quote author=CyanProductions
link=topic=4033.msg15022#msg15022 date=1420241978]
> [quote author=aIURbliS link=topic=4033.msg14978#msg14978
date=1419306072]
> The link is only available if you upload your avatar directly
to the site, which not everyone does. The filename is also
unpredictable
>
--- End Quote ---
I've seen a website do it before, it's not createaforum but it's
an SMF
[/quote]
Most likely, that website was using a mod which users can't
install here at CreateAForum.
[/quote]
kk, wish it was added to createaforum.
*****************************************************
Page 1 of 1