![]() |
wcbryant, I understand what you're trying to do, but I don't think this hack serves the purpose. (unless my interpretation is wrong, and mudpyr8 is closer to your question)
Quote:
I will look into disabling it for signatures, as well fixing that bug, over the weekend. ;) |
Quote:
You can turn off 'email to a friend' or 'printer friendly format' in threads, all I want to be able to do is turn off user's ability to copy and paste. Disable text highlighting (not that I think the JS I found does that), and disable right clicking. Again, I understand people can always just view source, but my goal is the prevention of accidental leaks, rather than intentional/malicious ones. Anyway, thanks to you both for the responses. |
VeloCD, thanks. I got it working and it is superb. A couple of things:
1. In your install notes, steps 49 & 50 refer to 'allowsmilie". It should be 'allowsmilies'. 2. It reevaluates on edit of the message. It would be nice if this could be disabled. For my dice roller, I only want it to roll once. Not a big deal since when rolling dice it is a faux pas to edit your post anyway. 3. It only accepts one instance of the code (the last one). If I put two [roll] tags in one message, it only evaluates the last one. Again, thanks a lot. This rocks. |
1. Thanks, will correct. ;)
2. If you are using the WYSIWYG editor and have the update option disabled, it shouldn't do so, since the return value of the function is hard-coded into the post. But, I haven't had time to look into making the update work for non-WYSIWYG. 3. That's odd. I'll check this out, although it should evaluate all tags. If you place two custom BB Code function tags that aren't your roll function, say maybe [random], does this generate two random values? |
I have installed this hack so far since I was looking for something that enables me to use php functions in bbcodes...
But I'm fiddling around and it's not working.... Here's the function to include: PHP Code:
Title: countdown Handle: fetch_countdown_timer Include File: countdown.php (containing above code) Also I added a bbcode 'countdown' and have choosen the function in there.... It's just not working, what am I doing wrong? As an example I used [countdown]03, July 2004[/countdown] and the function returns something like -13h -40m instead of 11d and something.... How do I pass the date of interest to the function? |
sorry for double posting but I didn't want to edit in case someone read my previous posting and wouldn't recognize this posting then.
I think I found out what's going wrong, it's because If I'm trying to pass a date it will be passed as Unix Timestamp. Is there any way to pass the variable to the function as formatted date? |
^bump^
|
it would be perfect to have a countdown timer intergrated with the calendar. =)
|
OK, I'm those of those guys that hated math classes in school.... besides the mathematical functions, what are some other uses that you guys have come up with?
|
From the description...this hack is the King!
Installing and testing tomorrow. |
All times are GMT. The time now is 10:01 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|