inherit
20332
0
Jul 3, 2024 14:49:17 GMT -8
Vu1canF0rce
729
February 2004
daviper
|
Post by Vu1canF0rce on Nov 30, 2012 0:28:53 GMT -8
I've done coding/programming ("CP") in JavaScript, some MySQL, HTML, and CSS and I know that older PB versions were written in Perl but I cannot find out for the life of me what the current CP language is that PB uses for V5 (and advanced editing).
I'm trying to write various mini and micro profile scripts using not (!= or <>) but cannot figure out how to get it to work with any of the following logics:
1) {if $[current_user.username]=Guest} do blah {else} do blah {/if} 2) {if $[user.is_member]=Guest} do blah {else} do blah {/if} 3) {if != $[current_user.is_member]} do blah {else} do blah {/if}
If this is a custom CP language written by PB devs then I'll post the full code, else if you can identify what CP is used I can Google to figure out the varying examples of shells and syntaxes.
Thank you!
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Nov 30, 2012 1:30:29 GMT -8
support.proboards.com/thread/433744/template-basicsVersion 5 now uses a templating engine which separates application logic from the presentation. The template tags are basic ones at the moment (compared to something like Smarty), and the way it works is similar to what you would do in other languages (i.e, foreach, if etc). So to do equality testing in your condition, it should be "==", strings need to be treated as strings with quotes (i.e "Guest" not Guest). There isn't really anything complicated about it if you know other languages, the way conditions are created is the same. Example. v5
{if $[current_user.username] == "Guest"} Hello Guest {else} Welcome Back {/if}
JavaScript
if($[current_user.username] == "Guest"){ Hello Guest } else { Welcome Back }
|
|
inherit
20332
0
Jul 3, 2024 14:49:17 GMT -8
Vu1canF0rce
729
February 2004
daviper
|
Post by Vu1canF0rce on Nov 30, 2012 7:04:53 GMT -8
Oh yes I'm very much familiar with the new system and structure, I just wanted to take a wack at the advanced/3rd level of templating.
I will definitely try your suggestions.
Still though, does anyone know what CP is used or is it custom built by PB devs?
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Nov 30, 2012 7:15:44 GMT -8
Version 5 is completely wrote in house by ProBoards. As to what it's wrote in, we can guess and say Perl (going by past versions), however we won't really know, as it can be impossible to determine language a website is programmed in, it's easy to hide and fake. Just have a look at the headers and see, maybe that will give you a clue, but doesn't mean it is what it is Why do you need to know anyway?
|
|
inherit
20332
0
Jul 3, 2024 14:49:17 GMT -8
Vu1canF0rce
729
February 2004
daviper
|
Post by Vu1canF0rce on Nov 30, 2012 7:26:24 GMT -8
Version 5 is completely wrote in house by ProBoards. As to what it's wrote in, we can guess and say Perl (going by past versions), however we won't really know, as it can be impossible to determine language a website is programmed in, it's easy to hide and fake. Just have a look at the headers and see, maybe that will give you a clue, but doesn't mean it is what it is Why do you need to know anyway? Thanks for the follow up. No reason is necessary but since you were kind enough to help me, my main reason is that by knowing what language it's written in would allow me to brush up on my respective CP so that I could mod any of my PB forums to their utmost extent. It's all good. I appreciate your help and have a great day!
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Nov 30, 2012 7:39:33 GMT -8
Version 5 is completely wrote in house by ProBoards. As to what it's wrote in, we can guess and say Perl (going by past versions), however we won't really know, as it can be impossible to determine language a website is programmed in, it's easy to hide and fake. Just have a look at the headers and see, maybe that will give you a clue, but doesn't mean it is what it is Why do you need to know anyway? Thanks for the follow up. No reason is necessary but since you were kind enough to help me, my main reason is that by knowing what language it's written in would allow me to brush up on my respective CP so that I could mod any of my PB forums to their utmost extent. It's all good. I appreciate your help and have a great day! Ah Ok. Well for that, you want to learn HTML, CSS, and have a very good understanding of JavaScript (especially with manipulating the DOM). I also highly recommend reading about jQuery (selectors will save a ton of time), which is the JavaScript Library ProBoards uses.
|
|