TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,970
  • Latest: bynw
Stats
  • Total Posts: 196,055
  • Total Topics: 21,337
  • Online today: 201
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 124
  • Total: 125
  • @rjen

BBC Code Buttons

Started by Resident Geek, March 30, 2007, 12:56:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Resident Geek

I've removed buttons I don't want from when people go to post, but I'd like to make my own. Where is the info stored.
in post.template.php, It has

'description' => $txt[#]

where # is a number.

$txt is an array correct? and the number would be the key for the array correct?
Well I can't seem to find where that description info is being stored into the array. Anyone know?

Resident Geek

ummm. What's up with the weird dot in the middle of my post???

rebelrose

If you would have put that in code brackets the dot would not be there

Quote from: Resident Geek on March 30, 2007, 12:56:57 AM



'description' => $txt[#]

where # is a number.




Just one of those things  :)

Resident Geek

OK. Fixed that, ;D But not what my main question is about.

JPDeni

The part of the $txt array which is referenced in Post.template.php is defined in languages/Post.english.php (or other similar language files -- Post.language.php -- if you have other languages installed).

Resident Geek

Dummdy dee dumm dumm dummmm!
Of course. Anything directly related the words put up on the screen would be in a language file. Thanx. I'll check there now.....

Resident Geek

Alright! I've fixed that part...
Now where does it declare the image for the button?
It isn't declared in post.template.php.
So where is it declared then?

JPDeni

This whole discussion has nothing to do with Tiny Portal. Just sayin'.

Yes, the image is declared in Post.template.php. For example:


'bold' => array('code' => 'b', 'before' => '[b]', 'after' => '[/b]', 'description' => $txt[253]),


The image file for that is bold.gif, which is in the images/bbc/ directory in each of your themes. IOW, the first word in the button definition is the name of the associated image file.

Resident Geek

Awesome! Thanx. Sorry for asking it here. I sometimes ask the right questions at the wrong forum.
I've asked TP questions at SMF before.
I'm a lame brain for being a Geek sometimes.  :idiot2:
Thanx again!

This website is proudly hosted on Crocweb Cloud Website Hosting.