Hello, I have a string that looks like this:
What it does is tells each table what it's title is. Obviously the $txt['table_shown'] is defined as something like "Shown to all"PHP Code:'title' => $location == 'postform' ? $txt['table_shown'] : $txt['table_hidden'],
Like wise the $txt['table_hidden'] is defined as something like "Click for more options"
What I have done though is made 7 more Hidden ones for a total of 8. each is defined as $txt['table_hidden_a'] $txt['table_hidden_b'] etc... through _g
What I need to do now is add the _a through _g texts to the 'title'= string, but I don't know how...
I tried this:
but got the error "Unexpected ":" in line 854.. blah blahPHP Code:'title' => $location == 'postform' ? $txt['table_shown'] : $txt['table_hidden'] : $txt['table_hidden_a'] : $txt['table_hidden_b'] : $txt['table_hidden_c'] : $txt['table_hidden_d'] : $txt['table_hidden_e'] : $txt['table_hidden_f'] : $txt['table_hidden_g'],
So how can I add those other strings there?



Reply With Quote

Bookmarks