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] Pop up window from button in profile info | |
|---|---|
| Tweet Topic Started: Oct 2 2009, 06:54 PM (272 Views) | |
| thebawp | Oct 2 2009, 06:54 PM Post #1 |
![]()
|
Okay, well, I held off making this request initially because I had the misguided notion that I might be able to figure it out for myself. Seems I gave myself a little too much credit, but never mind! Anyway, I will try to best describe what I'm after. Say we have a user called Bob. I've created a profile page for Bob , called Bob. So the page address would essentially be http://s1.zetaboards.com/Myboardname/pages/Bob/. What I would like the code to do is to append to the user profile field (not the user info) as a button (or a hyperlink at a push) which will say 'Roleplay Profile'. When I say button, I mean the type defined by <button> tags, not an image. This button/hyperlink should produce a pop up of the profile page I've already created called Bob (something like 400 by 400, but it'd be handy if I could specify the size myself somewhere in the code). So, the way I see it, there'd be 2 variables in the code. The first would be the username which I would specify (as in the second code I linked to below), the second would be the profile webpage which again I could specify or just write as http://s1.zetaboards.com/Myboardname/pages/+variable1+ as this won't change. I've looked through the code index, and also the completed requests forum and I guess the nearest codes to what I'm requesting would be eitherthis code here which adds a custom link into a profile field based on the user name or this code which adds information to the user info based on a few variables. I'll try to sum it up. I want a button to appear in the user profile, on specified users, which will produce a pop up link to a page which is named after the user (and already created by the admin). I hope I've explained clearly enough what I'd like, if I haven't, please let me know and I will try to elaborate. Thanks for your time! |
![]() |
|
| Reid | Oct 2 2009, 09:39 PM Post #2 |
![]()
What? The land of the free? Whoever told you that was your enemy.
![]()
|
Easily doable. One question.. can you give me an exact location for this button to appear? A jQuery selector on where it should go would be great, like something like... would aid me immensely. If not, a screenshot with a box drawn will do as well. Note: be sure to show me on a post where a user has some profile fields filled out so I can see exactly where you mean. Edited by Reid, Oct 2 2009, 09:39 PM.
|
| The Resource Board | |
![]() |
|
| thebawp | Oct 2 2009, 10:12 PM Post #3 |
![]()
|
Hi Reid, thanks for your reply. I was initially thinking that I would like it to appear at the top of the user profile, so in this case, above Gender? But that's not something that everyone is guaranteed to have.![]() Everyone who will have this code applied will have the Roleplay Alias field though. If I could have a button appear anywhere marked in red (the bottom of the box would be my least preferred option though) then that would be fantastic! |
![]() |
|
| Reid | Oct 2 2009, 10:41 PM Post #4 |
![]()
What? The land of the free? Whoever told you that was your enemy.
![]()
|
Cool - I'll do it tomorrow then. If I did the code now, let's just say it wouldn't turn out too pretty. |
| The Resource Board | |
![]() |
|
| thebawp | Oct 2 2009, 10:42 PM Post #5 |
![]()
|
Hehe, no problem - I really appreciate you picking this up! =) |
![]() |
|
| Reid | Oct 4 2009, 11:56 AM Post #6 |
![]()
What? The land of the free? Whoever told you that was your enemy.
![]()
|
Try something like this: The two variables at the top are the ones that need editing. Simply follow the format there. It goes something like this: The second, size_of_window, is fairly self-explanatory. Its format is: You may need to fiddle with the percentages in the style in the function pop_up, because centering a popup is an incredibly irritating process. Also, stick it below the board for the fastest speed. *Note: I was talking about the line that says at the beginning. The percentages there may need editing depending on the size of your window. |
| The Resource Board | |
![]() |
|
| thebawp | Oct 4 2009, 03:44 PM Post #7 |
![]()
|
Hi, this is looking good so far but for 2 things: One, the button is appearing where I'd like, but my additional custom profile fields are appearing to its right rather than below. Two, the window doesn't contain anything when it's open. http://s1.zetaboards.com/North_Castle_Test/topic/2330620/1/#new Click thebawp's profile toggle button to see.
Page info I want to show (not this exact page, but just an example for you) http://s1.zetaboards.com/North_Castle_Test/pages/bawpie/ Otherwise, wow I'm impressed. This is actually far better than what I'd thought it could look like. Thanks! |
![]() |
|
| Reid | Oct 4 2009, 05:53 PM Post #8 |
![]()
What? The land of the free? Whoever told you that was your enemy.
![]()
|
You have made me discover the oddest bug ever. Also the most irritating to fix. But anyways, try this code:
|
| The Resource Board | |
![]() |
|
| thebawp | Oct 4 2009, 06:00 PM Post #9 |
![]()
|
Ah, sorry to hear that! Still, it looks to be working perfectly now! The button is showing at the bottom of the roleplay profile field, but I can totally live with that. You sir, are truly awesome! Thanks muchly! |
![]() |
|
| Reid | Oct 4 2009, 06:07 PM Post #10 |
![]()
What? The land of the free? Whoever told you that was your enemy.
![]()
|
I had to make it do that, unfortunately. Any other spot and the way the box layout around the button is would have stuck things strangely. 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 |
| The Resource Board | |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Completed Requests · Next Topic » |
















2:27 PM Jul 11