[SOLVED] User Signature Image in Tab via html

9 years 1 month ago #144178 by rayard23
Hello, I am having one issue that is really keeping me from subscribing to CB. I am on Joomla 1.5.20 and CB 1.2.3, here is my issue.

I am creating a gaming website for a client. What I am trying to do is allow each user to add a "badge" to their CB profile. This badge contains information about their gaming character. I have already created the "badge creator" The creator spits out 3 codes. they are; html to display the image on a webpage, bb code, and a direct url.

My issue is that no matter what I do i cannot figure out how to allow the USER to edit this. Everything I try simply results in the code showing up. I need them to be able to submit the code in edit mode, and have the image appear in view mode.

The only way I have been able to get this to work is using the text edit, which is huge, has way too many features for my needs and may confuse some people.

I would really just rather have a small field where a user can paste the code and have the badge image show up in their profile. So more or less I am looking for a way to allow full html use in 1 specific field or tab. I have added all of the filters under User Profile in the config area as well. Any help on this is greatly appreciated.

I have seen another user do this with delimiters but I dont know if HE had to add the badge or if his users are capable of adding it themselves. http://s184.photobucket.com/albums/x277/johnnydement/?action=view¤t=comparativa.png

Any help on this would be greatly appreciated.

Post edited by: rayard23, at: 2010/10/16 19:42

Post edited by: rayard23, at: 2010/10/16 19:46

Post edited by: rayard23, at: 2010/10/16 19:51

Post edited by: krileon, at: 2010/10/18 19:17
9 years 1 month ago #144186 by nant
Yes delimiter fields can be used to do this and documentation does explain delimiter fields.

As a "developer" you know full html is dangerous.

Post edited by: nant, at: 2010/10/16 22:03
9 years 1 month ago #144191 by rayard23
I do understand the dangers in allowing html. As I am not a subscriber, I dont believe I have access to the documentation you speak of. Would you or someone be able to assist me a bit with this?

As for a subscription account, it is up to my client really. I have expressed that the community feature on the site is unlicensed and we should license it. He is interested to see if it can do all he needs it to do before purchasing (which makes sense).

I would appreciate any help pointing me into the right direction.

Thanks you all.
9 years 1 month ago #144197 by nant
The method i would follow would be to put most of the html in the delimiter field and use CB substitutions to grab some information (that would personalize the image) from a CB field.

Look at the html code/links of 2 different images and identify the differences - these differences can be placed in a CB field that are later grabbed by the delimiter field to render the proper html for each user.

Can't really give much more guidance without doing it for you.
9 years 1 month ago #144210 by rayard23
This is actually really interesting and sounds like it is quite a powerful tool. You said to use a CB substitution... Is that a plugin or a method of using another field? I understand the support is limited with my current free subscription (and I am very interested in subscribing), Im just trying to "prove" to my client we can use it for his needs.

So if the html is something like
<img src=" sigs.domain.com/1234.png "> for your profile sig and for mine it would be ../3456.png you are saying to put the <img src=" sigs.domain.com/ in the delimiter field and have you enter /1234.png"> as your sig and /3456.png"> as mine?

If I am following this correctly, I believe I can figure a way to work this, but I can see how the documentation would really help with this... I guess the real question is, how do I link the user editable field with the contents of the delimiter field?

Any further help in this is greatly appreciated.

Post edited by: rayard23, at: 2010/10/17 17:09
9 years 1 month ago #144214 by nant
rayard23 wrote:

This is actually really interesting and sounds like it is quite a powerful tool. You said to use a CB substitution... Is that a plugin or a method of using another field? I understand the support is limited with my current free subscription (and I am very interested in subscribing), Im just trying to "prove" to my client we can use it for his needs.

So if the html is something like
<img src=" sigs.domain.com/1234.png "> for your profile sig and for mine it would be ../3456.png you are saying to put the <img src=" sigs.domain.com/ in the delimiter field and have you enter /1234.png"> as your sig and /3456.png"> as mine?

If I am following this correctly, I believe I can figure a way to work this, but I can see how the documentation would really help with this... I guess the real question is, how do I link the user editable field with the contents of the delimiter field?

Any further help in this is greatly appreciated.

Post edited by: rayard23, at: 2010/10/17 17:09


Create a CB text field called for example cb_example.
Create a delimiter field called cb_del.

Edit the delimiter field in backend to show the following value (for example again):

The value of the cb_example field for this user is [cb_example]

I hope this is enough to get you to properly support your client without having to right a single bit of code.

Of course the example above could have been html code.

BTW - the CB Documentation subscription is the only means this team has to support these forums and further develop free CB - which you have already downloaded.
Moderators: beatnantkrileon
Time to create page: 0.419 seconds

Facebook Twitter LinkedIn