Hey, I want to create a social network with revenue sharing option : users can insert their ads codes.
now, my question is how should I let users insert HTML codes into their profile.
I didn't see any kind of similar option.
Down
Hey, I want to create a social network with revenue sharing option : users can insert their ads codes. now, my question is how should I let users insert HTML codes into their profile. I didn't see any kind of similar option. Down |
There are some tutorials on this, I believe mrpowless has them. Question you need to keep in your mind, is that allowing members to run html in their profiles opens your server up to security issues if it's not done correctly or if someone has malicious intent. not saying to not do it, just saying to be careful if you do. |
alright, I already searched for tuts, but I just can't find them. can you please give me the link for those tuts? |
. You can follow this link and perhaps your answers will be there? http://www.darrenpowless.com/articles . I agree with mydatery 100% though .... Each time that ONE member starts mucking around with html and/or other related code, you're opening a potential security hole. If 100 members start "fiddling around" with code in their profiles then you'll have 100 potential security issues. Even worse, if others (undesireable ones) find out that code can be used at random per member in your community, then you might have some jerks sign up just for the hell of it, to see if they can muck up your setup for kicks? Believe me, I've seen it happen. But if you're hellbound on doing that anyway, be sure to have some good firewall protection for your server, password blocks, and captcha functions so that any mucking around is limited strictly to registered members whose actions can be tracked/traced back to them. Good luck. . @mydatery - did you ever get that pm with that user information last week? I was really hoping that you'd help me out with those alignment issues ... . . Greetings from Germany |
I understand, but i choosed to allow my users to do it, and I'm not forced to do it. Actualy, there is no such as tutorial in darrenpowless.com.
I'm dying here.. I have to get this tutorial. 5$ for the one who will get me this tutorial. (only if it works, of course) The tutorial I need (for the people who didnt understand it already) is how to let my users insert HTML and google ads into their profiles. |
I understand, but i choosed to allow my users to do it, and I'm not forced to do it. Actualy, there is no such as tutorial in darrenpowless.com. I'm dying here.. I have to get this tutorial. 5$ for the one who will get me this tutorial. (only if it works, of course) The tutorial I need (for the people who didnt understand it already) is how to let my users insert HTML and google ads into their profiles. Well, did you pay anyone $5 yet? It takes a long time to get an answer on anything Dolphin... |
I have it in the fix it files section: http://www.darrenpowless.com/articles/entry/HTML-in-profiles-2009-05-08 I have video tutorials to help you mrpowless.com |
I have it in the fix it files section: http://www.darrenpowless.com/articles/entry/HTML-in-profiles-2009-05-08 I read your site and this post, but your instruction don't say what to change. I find the function but you don't specify the needed changes..Thanks. |
I have it in the fix it files section: http://www.darrenpowless.com/articles/entry/HTML-in-profiles-2009-05-08 Within that file, find this: function getViewableValue Change that, to look like: function getViewableValue( $aItem, $sValue ) { When done, make sure that this new field shows up everywhere for everyone in the profile builder. I read your site and this post, but your instruction don't say what to change. I find the function but you don't specify the needed changes..Thanks. Actually, it's the last line in that section that should be different now: But because of similarities throughout other portions in that file, it's best to make the adjustment after having searched for that section with function getViewableValue first. At least I think that's what Darren is saying (haven't actually checked it myself). . Greetings from Germany . . Okay, update ... just tried that out ... If I'm understanding you correctly, you want to be able to include an HTML block for a user/profile just as you're able to create an HTML block in the page buildrs section for the front page? A block that every user can edit for him/herself, correct? . YES ... IT DOES WORK ... just a little confusing at first. You won't find a new button in the fields section, entitled html or html block or anything like that which is kind of what I had anticipated finding. Instead you'll just have to create a button from the new_item one that's already there. I used the TEXTAREA option with a 750 character restriction so that people can't get too crazy with their own code. It's plenty of space to add a video object though ... which is what I'll be using that for. I also included it in the JOIN SECTION so that people can use it during signup. When you're all done adding your button everywhere, log off. Then log in with a member account and you'll see that it shows up IN TWO PLACES as it should. One location for the user to be able to edit the block in the users private section, and then on the profile view page (if you included it there) so that anyone viewing the profile will be able to see the actual video or finished code, and not just the written code itself! . Thanks Darren, that's pretty slick !!! . Greetings from Germany . |