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: |
| Is this possible? | |
|---|---|
| Tweet Topic Started: Jun 6 2009, 05:40 PM (335 Views) | |
| Lout | Jun 6 2009, 05:40 PM Post #1 |
![]() ![]()
|
Ok so I have found a Reputation code (on another board), which I am allowed to edit a fair bit. So far I have managed to change it from being a "+ & -"Reputation code to just being a Thank Member code. All that was easy as it was just changing a few settings rather than adding to the code (which is not my area of expertise), but what I would like to do, if possible, is add a snippet to it so that the Thank Member function is only accessible in certain forums that I specify via the code. Is this possible, and if so, how? I wont post the code here, but will PM it to staff members if required. Thanks in advance. |
| |
![]() |
|
| Reid | Jun 6 2009, 05:43 PM Post #2 |
![]()
What? The land of the free? Whoever told you that was your enemy.
![]()
|
You can add or remove them as needed. || is the logical OR operator. Or, you could always do this - Of course if you do that you have to escape most characters, making it kind of hard to read. |
| The Resource Board | |
![]() |
|
| Lout | Jun 6 2009, 05:59 PM Post #3 |
![]() ![]()
|
I think I get that, I'll have a play around with it on my test board and let you know how it turns out. Thanks for the quick reply though
Edited by Lout, Jun 6 2009, 06:00 PM.
|
| |
![]() |
|
| Lout | Jun 6 2009, 06:57 PM Post #4 |
![]() ![]()
|
Hmm, not sure if I understand exactly where that should slot in. Tried a few variations, but my forums going mad at the moment so time is tricky, but basically the code starts and ends like so:-
So should it go between the <script> tags, or between the whole code? I'm confuzzled
|
| |
![]() |
|
| Reid | Jun 6 2009, 07:04 PM Post #5 |
![]()
What? The land of the free? Whoever told you that was your enemy.
![]()
|
The CDATA should be inside of the script, like so.. So the end result would be something like In that code, it makes sure you are either on a topic or viewing a single post from a topic. Edited by Reid, Jun 6 2009, 07:05 PM.
|
| The Resource Board | |
![]() |
|
| Lout | Jun 6 2009, 07:17 PM Post #6 |
![]() ![]()
|
I don't get it, I've tried every which way I can think of (which probably isn't enough) but still cant get it to work. I'll PM you the original code and you might see something I'm missing. It's late here so it may just be me though
|
| |
![]() |
|
| Lout | Jul 3 2009, 02:42 PM Post #7 |
![]() ![]()
|
Coming back to this (which thanks to Reid's help I got working perfectly), is there anything I can add to the current code to specify which usergroups have access to using it? Here is the code in full that I'm now using:-
Thanks in advance guys
|
| |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Code University · Next Topic » |

















7:46 PM Jul 10