We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Default Post Options
Topic Started: Jul 25 2015, 06:24 PM (309 Views)
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
ZB
Url in mini profile
I currently have the facebook like/dislike system installed but when I tried to install this code http://support.zathyus.com/topic/5072676/1/, which uses mootools however mootools interferes with the like/dislike system. Would it be possible to create a new default post styling that doesn't interfere with the like/dislike system?
Offline Profile Goto Top
 
Ferby
Member Avatar
Developer
[ *  *  *  *  * ]
Hi Tyler Dream,

The request is fairly simple depending on how simple you want it to be. If you know CSS (and maybe are prepared to write a small guide on basic CSS for your community) then perhaps this code may serve you well...
Code: Install below the board
 
<script type="text/javascript">
$(".user_profile").each(function() {
$("dt:contains(Post CSS), dt:contains(Post CSS) + dd", this).hide(); // hides the profile field
$(this).parent().parent().find(".c_post").attr("style", $("dt:contains(Post CSS) + dd", this).text()); // implements the CSS
});
</script>
Create a profile field entitled Post CSS and use any sort of CSS in there and it should work. If you don't know CSS or prefer a quite literal copy of the example you've provided then I'll see if I can make some time to do so (or perhaps another coder could get there before me).

I hope this helps,
- Scott Cummins (Ferby).
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
Can you give me an example?

Thanks for the help, I appreciate it. :)
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
It's not like the original code, Ferby's method will accept any CSS, which I wouldn't really advise seeing as people can insert CSS like 'display: none' to hide the entirety of their post and mess up the topic table cells. Here's an example of what would be inserted and the post would be styled with:
Code:
 
color: red; font-weight: 700; font-style: italic;
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
That works, I'll make the profile fields admin edit only. :P
Offline Profile Goto Top
 
Ferby
Member Avatar
Developer
[ *  *  *  *  * ]
Cory
Aug 13 2015, 12:48 AM
It's not like the original code, Ferby's method will accept any CSS, which I wouldn't really advise seeing as people can insert CSS like 'display: none' to hide the entirety of their post and mess up the topic table cells
The idea behind it is that it allows users to be more flexible with their posts styling; allowing them to use background images and such to be fancy with it, although there is a potential threat from those with the intention to be malicious with it.

I'm happy to replicate the original code if that's what you'd prefer :)
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
That sounds good :D
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Just like ZetaBoards retired InvisionFree's doHTML tag, I wouldn't allow users to parse HTML/CSS/JavaScript on the board because there is always users lurking about with malicious intent. Though, seeing as you are offering to completely recreate the code with JavaScript/jQuery, I suppose this is no longer an issue I need to express.
Offline Profile Goto Top
 
Roby
Member Avatar
#27

Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic