vForums Support > Programming & Coding :: Code Requests & Support :: > Rank and group names as images

Rank and group names as images - Posted By Aiken (ionfortuna) on 16th Dec 09 at 3:23pm
Is there a code for this or can one be made?

Currently I have the image as a star and only the image is displayed in the mini-profile but on the members list I see both the name and the images, is there a code for the name of the ranks and groups to be images?

My forum is Xen Qarna, it is in my signature

Re: Rank and group names as images - Posted By Michael (wrighty) on 17th Dec 09 at 1:50am
When setting the group name, you can use UBBC. Meaning that you can use the image tag in there:

[img]http://test.wserver.co.uk/image.png[/img] {Smile}

Re: Rank and group names as images - Posted By Aiken (ionfortuna) on 17th Dec 09 at 2:21am
Not enough room in group name field, I use photobucket for my images

Re: Rank and group names as images - Posted By Michael (wrighty) on 17th Dec 09 at 2:48am
You could try to rehost them with tinypic.com or use a censored word. I'm not sure if censored words will work or not, but it's worth a try. {Smile}

Re: Rank and group names as images - Posted By Aiken (ionfortuna) on 17th Dec 09 at 2:54am
I will try censored words

Re: Rank and group names as images - Posted By Michael (wrighty) on 17th Dec 09 at 3:07am
If not, then I guess I could write a code that'll do it, that or persuade Ross to make it longer! =P

Re: Rank and group names as images - Posted By Aiken (ionfortuna) on 17th Dec 09 at 7:48am
I do prefer codes, a code would be easier to modify and organize (categorize with comments and spacing between lines)

Re: Rank and group names as images - Posted By Michael (wrighty) on 17th Dec 09 at 8:31am
A coder would be a lot slower running than the censored words method

Re: Rank and group names as images - Posted By Ross (admin) on 17th Dec 09 at 9:36am
Hi,

I think the easiest way would be to continue doing it as you're doing it but to have a code modify the members list to remove the names from there?

<script type="text/javascript">
<!--

/* Remove Group / Rank Names from Members List */

if(location.href.match(/\/members(\/|$)/i)) {
td = get('td', TAG, get('members_list', ID));
for(t=0; t<td.length; t++) {
if(td[t].className == 'window2' && !td[t].nextSibling && td[t].firstChild) {
td[t].firstChild.innerHTML = td[t].firstChild.innerHTML.replace(/(>|^)([^<])+/gi, '$1');
td[t].firstChild.innerHTML = td[t].firstChild.innerHTML.replace(/(^|<br\s?\/?>)(<br\s?\/?>)+/gi, '$1');
}
}
}

//-->
</script>

Main Footer




Re: Rank and group names as images - Posted By Aiken (ionfortuna) on 18th Dec 09 at 3:23am
That works on computer but not on PSP

Re: Rank and group names as images - Posted By Nick (nickb) on 18th Dec 09 at 5:10am
 
That works on computer but not on PSP


PSP's don't really render that well with these types of codes. a few of my sites look awkward on my PSP because it doesn't work that well. PSP's have their own browser, and it's not mainstream like Internet Explore, FireFox, Chrome, etc.

Seeing as how PSP's are Mobile's like Phones, it's really not gonna work well.

Re: Rank and group names as images - Posted By Aiken (ionfortuna) on 18th Dec 09 at 1:21pm
What code for this would work on PSP? Half of the time will be on PSP including this forum

Re: Rank and group names as images - Posted By Nick (nickb) on 18th Dec 09 at 9:31pm
What series of PSP do you have? and do you have javascript turned on?

My PSP forum, works quite well on my PSP as I only have HTML added in, and hardly any JS codes. I'm not sure if Ross is planing on a Mobile version of vF, but there will be allot of codes that will not work with the PSP, as allot of them are more for computers.

Re: Rank and group names as images - Posted By Aiken (ionfortuna) on 18th Dec 09 at 11:21pm
2001 series and JS is on, I have a code on it that works on PSP

Re: Rank and group names as images - Posted By Nick (nickb) on 18th Dec 09 at 11:47pm
I have the 1000 series. and like i said some codes will work, and some wont. It depends on which one really. I'll have a look when I charge my PSP up, and add that code to my testing forum, to see if it works on mine.

Re: Rank and group names as images - Posted By Nick (nickb) on 19th Dec 09 at 4:30am
It looks just fine on my PSP. I'm trying to see a difference from computer to PSP, and there is none. So it might be your PSP's configuration?

Re: Rank and group names as images - Posted By Aiken (ionfortuna) on 19th Dec 09 at 4:44am
It would be easier to actually just change the name to image

Re: Rank and group names as images - Posted By Aiken (ionfortuna) on 19th Dec 09 at 10:08pm
Can I just have a code that will replace the rank/group's name with an image?

Re: Rank and group names as images - Posted By Nick (nickb) on 19th Dec 09 at 10:56pm
You mean something like this: http://icodes.vforums.co.uk/action/view_profile/user/admin

All you have to do is replace the stars with an image.

For the replacing stars with an image just go to Admin > Modify Member Group > Stars 1 - Custom Image > Insert Image in the field below it. And it will change all stars to the image you have chosen. Now you can do the same with members by going to Admin > Manage Members > Modify Ranks > Again only 1 star - Custom Image > Insert image in the field below.

Something like this:

Image

Image


Re: Rank and group names as images - Posted By Aiken (ionfortuna) on 20th Dec 09 at 2:13am
I already know about that but I don't want it as stars, I want the name to be replaced with an image

Re: Rank and group names as images - Posted By Nick (nickb) on 20th Dec 09 at 7:49pm
We just took the name out, and the 'stars' replaced the name.

This is a snippet of what we have:

Code:
 
  1. <table width="130" cellpadding="0" cellspacing="0" border="0"><tr><td>
  2. <img src="http://i185.photobucket.com/albums/x20/magedesigns/icodes/skins/5n1.png" />
  3. </td></tr></table>
  4. <table width="130" id="border" class="border" cellpadding="1" cellspacing="1" border="0">
  5. <tr>
  6.  
  7. <td class="window1" align="center" style="background-image:url('http://virtualforums.co.uk/images/gradient.php?mode=linear&dir=x&start=000000&end=3d3d3d&height=15&width=2')">{display_name}</td>
  8.  
  9. </tr>
  10. <tr>
  11. <td class="window1" align="center">
  12. {rank_image}
  13.  
  14. </td>
  15. </tr>
  16.  
 

Re: Rank and group names as images - Posted By Aiken (ionfortuna) on 20th Dec 09 at 9:27pm
What about the ranks/groups without an image? That is why the codes that have been given to me will not work for my forum, some of the ranks/groups do not have an image yet