Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ![]() Interested in joining? Click here. If you are already a member of ZBCode, feel free to login right here: |
| [Completed] [ZB] Custom profile fields in signature; Within a custom spoiler tag | |
|---|---|
| Tweet Topic Started: Oct 16 2009, 02:05 AM (301 Views) | |
| thebawp | Oct 16 2009, 02:05 AM Post #1 |
![]()
|
Hi, I found this code here: http://zbcode.com/topic/2292296/1/#new
by Dorith. It's very nice, works well, and is a bit similar to what I'm after. I'm wondering if it's possible to have certain lines in the user_profile (but not all) added to the signature - for arguments sake, let's say the profile field is called 'Roleplay Characters'. The profile field could contain just a name, i.e. 'Sam' or it could have a link to an image 'http://imageplace.net/image.jpg' that I would want to show as an image. Finally, I would want this to be placed in a spoiler tag, but one that doesn't say spoiler but 'More info' or something along those lines. Also, I've noticed on the above code that when the profile shows up in the signature, the profile field name is to the left of the screen but the info is bang in the middle, I'd want this to be either all to the left or all in the centre. Here's an example of Dortih's code. If I've not made myself clear or need to elaborate with mock ups or anything, please let me know. Thanks. |
![]() |
|
| RedBldSandman | Oct 16 2009, 05:54 PM Post #2 |
![]()
ZIPPY!
![]()
|
I've made a code, hopefully its what you wanted but if not, just ask for any changes So, just to explain. There are 2 things to edit. The first is the seperator between the Field Name and the Entry which is the part called arr_sep This would put a colon in between the Field Name and the Entry. The second thing to edit is the list of Profile Fields which you'd like to grab and their type. Add as many of that line as you wish, corresponding to the Profile Field Name and the type. The type can either be "text" or "image". ONLY one of those 2. "text" will just grab the text and put it in like normal but "image" will take the entry and make it the source of an img tag (so you can put a url to an image in there). Just place the code "Below the Board". Hopefully I've explained that well enough and its what you wanted ![]() EDIT: Just updated the code so that it works on the Profile page as well (forgot about that one )EDIT 2: Removed the single quote I'd accidently left in the code
Edited by RedBldSandman, Oct 17 2009, 07:44 PM.
|
![]() "To iterate is human, to recurse divine." | |
![]() |
|
| thebawp | Oct 17 2009, 04:27 PM Post #3 |
![]()
|
Hey, thanks. I've added this below my board and added the javascript tags like this
But it doesn't seem to be working? Board link: http://s1.zetaboards.com/North_Castle_Test/topic/2332819/1/#new Thanks for helping with this, it's appreciated. =) |
![]() |
|
| Choco | Oct 17 2009, 05:08 PM Post #4 |
|
¡ʎɹoʇɔɐɟ ʎʇıʌɐɹƃ ɐ uı pǝddɐɹʇ ɯ,ı 'dןǝɥ
![]()
|
See this: arr_up[n++] = ["'Roleplay Alias","text"] Change it to this: arr_up[n++] = ["Roleplay Alias","text"]
|
It's a magical world, Hobbes, ol'd buddy... ...let's go exploring!In progress: Something Special ;) | |
![]() |
|
| RedBldSandman | Oct 17 2009, 07:43 PM Post #5 |
![]()
ZIPPY!
![]()
|
Oops, left in a single quote by accident Just change it to what Choco suggested and it should work fine
|
![]() "To iterate is human, to recurse divine." | |
![]() |
|
| thebawp | Oct 22 2009, 05:43 PM Post #6 |
![]()
|
Yes, that was it, can't believe I missed it, especially after I checked! Thanks both, there are probably a few more things I'll want to do with this, but hopefully I can figure it out myself! You can close this now, thank you! |
![]() |
|
| RedBldSandman | Oct 22 2009, 05:46 PM Post #7 |
![]()
ZIPPY!
![]()
|
If you need any changes, just say. Glad you liked it
|
![]() "To iterate is human, to recurse divine." | |
![]() |
|
| Dorith | Oct 22 2009, 05:54 PM Post #8 |
![]()
Has just entered the Matrix
![]()
|
You're welcome. See? We can read thoughts too. ;) Your request has been completed, and we're moving it to the correct forum. We hope it works for you; if it doesn't, feel free to post another request topic in the requests forum. Just remember: read the rules first! Thanks, The ZBCode Staff |
![]() (Made emoticon using Codes Rock's Smiley Generator) | |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Completed Requests · Next Topic » |























2:27 PM Jul 11