Post by Tohsaka Rin on Jun 24, 2012 15:39:40 GMT -8
Once in a great while when I refresh, the custom title from the item shop shows up, as well as the items, but then they quickly disappear leading me to believe that either the items need a table for them to be displayed in, or there is no area in the js coded for them.
The second row of stars does show up now after I refreshed.
I got some of it working but I am having some trouble sorting out everything where it needs to go and what is necessary...ugh.
Link
You can see for yourself.
Does anyone want to help out trying to sort these last four things out, or at least know some of the answers to them? I don't have the hang of it yet. I do graphics.. not so much coding.
Below I will explain the four listed areas, and the recent copy of the code.
1. Award pop-out variable is "popAwards"....so I got that to work...except I do not know why it refuses to be ABOVE "custom title" when I keep putting the code BELOW it.
Does this have to be moved in the the Award code (Todge's Award Script) as to where it is trying to slot itself?
2. No Avatar Image code seems to not want to put in the default avatar image to users that have not yet uploaded their own; do I have to put a variable in for this? If so, what is it?
3. Money is not showing up, due to the YourShop 3.0 mini-profile feature it does stick it (by default) at the bottom of your MP, however when I try to put:
<span id="money" name="money">Money: ##value<br /></span>
It does not show up, there is either "##value" filling the space or it is blank.
I was able to make a "send donation" thing, but I have to figure out how to remove the other one at the bottom of the profile...
Money does shows up at the bottom, along with the donation button, those are the default ones that the mini-profile compatibility makes for YourShop3.0...
New: When changing the variable for money to "shp-money" (as shown below) it shows up on the mini profile for a whole five seconds before vanishing; but it DID put it in the right field. I do not know why it vanishes if you refresh the page again, or why It vanishes after 5 seconds and returns to the bottom.
<span id="shp-money" name="money">Money: ##value<br /></span>
(I do have "no avatar image", "MYO MP", and the "MYOP javascript" at the very top of Global Footers also, so you would think that it would load it in that order.....do I have to put MYO MP below it?)
4. I noticed that any time I post <right> where I want something to go right it does not show up to the right, it works for <center> and <left> tags (and yes, I closed them all as well.)
Things that should go to the right are:
Awards
[Exalt][Smite]
Send Donation
Updating as I work on it...ugh.
Thanks so far for the help in advance!
The second row of stars does show up now after I refreshed.
I got some of it working but I am having some trouble sorting out everything where it needs to go and what is necessary...ugh.
Link
You can see for yourself.
Does anyone want to help out trying to sort these last four things out, or at least know some of the answers to them? I don't have the hang of it yet. I do graphics.. not so much coding.
Below I will explain the four listed areas, and the recent copy of the code.
1. Award pop-out variable is "popAwards"....so I got that to work...except I do not know why it refuses to be ABOVE "custom title" when I keep putting the code BELOW it.
Does this have to be moved in the the Award code (Todge's Award Script) as to where it is trying to slot itself?
2. No Avatar Image code seems to not want to put in the default avatar image to users that have not yet uploaded their own; do I have to put a variable in for this? If so, what is it?
3. Money is not showing up, due to the YourShop 3.0 mini-profile feature it does stick it (by default) at the bottom of your MP, however when I try to put:
<span id="money" name="money">Money: ##value<br /></span>
It does not show up, there is either "##value" filling the space or it is blank.
I was able to make a "send donation" thing, but I have to figure out how to remove the other one at the bottom of the profile...
Money does shows up at the bottom, along with the donation button, those are the default ones that the mini-profile compatibility makes for YourShop3.0...
New: When changing the variable for money to "shp-money" (as shown below) it shows up on the mini profile for a whole five seconds before vanishing; but it DID put it in the right field. I do not know why it vanishes if you refresh the page again, or why It vanishes after 5 seconds and returns to the bottom.
<span id="shp-money" name="money">Money: ##value<br /></span>
(I do have "no avatar image", "MYO MP", and the "MYOP javascript" at the very top of Global Footers also, so you would think that it would load it in that order.....do I have to put MYO MP below it?)
4. I noticed that any time I post <right> where I want something to go right it does not show up to the right, it works for <center> and <left> tags (and yes, I closed them all as well.)
Things that should go to the right are:
Awards
[Exalt][Smite]
Send Donation
<script type="text/javascript">
<!--
/* No Avatar image by california */
var noAvImg = "http://aoirojoukai.com/KoF/Images/News/100Holder.png";
var td=document.getElementsByTagName("td");
var re = /(member is.+<br\s?\/?>\s*<center>)/i;
if(location.href.match(/action=(display|search2|viewprofile|pmview)/)){
for(i=0;i<td.length;i++){
if(td[i].width=="20%" && td[i].className.match(/windowbg/)){
var t=td[i].innerHTML;
if(!t.match(/\[avatar\]/i) && t.match(re)){
td[i].innerHTML=t.replace(re,RegExp.$1+'<br /><img src="'+noAvImg+'" alt="[avatar]" />');
}
}
}
}
// -->
</script>
<style type="text/css">
<!--
.mini_profile { padding: 0px; }
.mini_profile .titlebg { background-image: url([b]Gradient URL[/b]); }
//-->
</style>
<span id="mini_profile_member" style="display: none; margin-top: 1px;">
<table class="bordercolor" width="80%" align="center" cellspacing="1" cellpadding="2">
<table align="center">
<tr>
<td class="windowbg">
<center>
<span id="user_name" name="user_name">##value</span>
<span id="avatar" name="avatar">##value</span>
<br />___________________<br /></span>
<span id="rank" name="rank">##value<br /></span>
<span id="custom_title" name="custom_title">##value</span>
<span id="tempTitle" name="tempTitle">##value</span>
</center>
<right><font size=1>
<span id="popAwards" name="popAwards"></span>
</font></right>
<center>
<br />___________________<br /></span>
</center>
<left><font size=1>
<span id="money" name="money">Money: ##value<br /></span>
</left>
<right>
<span id="Send_Donation" name="Send_Donation"><a href="/index.cgi?action=viewprofile&to=NaN&suba=DONGRAB">Send Donation</a><br /></span>
</right>
<span id="karma" name="karma">Karma: ##value<br /></span>
</left>
<right>
<span id="karma_links" name="karma_links">##value<br /></span>
</right>
<left>
<span id="posts" name="posts">Posts: ##value<br /></span>
</font></left>
<center>
<br />*****<br /></span>
</center>
<left><font size=1>
<span id="location" name="location">Location: ##value<br /></span>
<span id="gender" name="gender">Gender: ##value<br /></span>
<span id="joined" name="joined">Joined: ##value</span>
</font></left>
<center>
<br />___________________<br /><br /></span>
<span id="contact_icons" name="contact_icons">##value</span>
<br />___________________<br /></span>
User is <span id="status" name="status"><b>##value</b><br /></span>
<br />
</center>
</td>
</tr>
</table>
</span>
<span id="mini_profile_guest" style="display: none; margin-top: 1px;">
<table class="bordercolor" width="80%" align="center" cellspacing="1" cellpadding="2">
<tr>
<td align="center">
<span id="guest_name" name="guest_name">##value</span>
<br />
<b>Guest</b>
</td>
</tr>
</table>
</span>
<script type="text/javascript">
<!--
/******************************************
*
* Build Your Own Mini-Profile v 0.2
* Coded by Ross of http://support.proboards.com
* and http://101support.proboards43.com
* and http://swg.proboards4.com
* this code cannot be reposted outside of the
* forums listed above unless done so by myself
*
*******************************************/
if(location.href.match(/(ion=(display|(pm|calendar)?view|search2|(user)?recent)|error)/)) {
var new_script = document.createElement('script');
new_script.type = "text/javascript";
new_script.src = "http://freelancedev.net/ecreations/codes/build_your_own_mini_profile/v0-2.js";
document.getElementsByTagName('head').item(0).appendChild(new_script);
}
//-->
</script>
Updating as I work on it...ugh.
Thanks so far for the help in advance!