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

Recent

Welcome to TinyPortal. Please login or sign up.

June 26, 2024, 01:24:34 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,280
  • Total Topics: 21,227
  • Online today: 203
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 187
  • Total: 187

Adding/Editing Buttons

Started by hcaz, October 12, 2007, 08:19:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hcaz

how do it add/remove buttons?

Home    Forum    Help    Search    Admin    Profile    My Messages    Calendar    Members    Logout

i want to add a button that links to a static page (article).

Green CoW


hcaz

Quote from: Green CoW on October 12, 2007, 11:31:52 PM
Perhaps by searching or reading the docs!!
How to add an extra button
that doc is outdated and some are 404.
thanks anyway


IchBin


Green CoW

and where are the 404's??
All the docs you need worked fine by me!

Zetan

That document is still usable.. although the use of TXT SPK should be edited out.

Quote
its before all the buttons code if u cant find it via a search - or u could always do a partial search beginning with if (in_array($context['current_action'] so atleast it will get u to the correct line incase the code had been altered by a mod earlier.

To it add your Array text (shows as YOUR-ARRAY-TEXT but in reality it will be the action u are adding like arcade, or links etc)

The grammar is poor.

hcaz

some unrelated are 404. anyway and i dont any (in_array( that has anything to do with my buttons. the codes are totally different.

G6Cad

Just copy the code from one of the other buttons in the theme you want to add it in. ( you didnt exactly give us a great deal of info on what theme and there are about 200 to pick from)
Although the codes are pretty much the same, it can look diffrent, but if you copy the code from IE the forum button in the index.template.php, you can just paste it in between the others where you want it to show, and then change the name of the button and also the link to what you want it to point to.


falguni1

Quote from: hcaz on October 12, 2007, 08:19:48 PM
how do it add/remove buttons?

Home    Forum    Help    Search    Admin    Profile    My Messages    Calendar    Members    Logout

i want to add a button that links to a static page (article).

use the website mod from SMF

hcaz

Quote from: G6 on October 16, 2007, 05:38:55 PM
Just copy the code from one of the other buttons in the theme you want to add it in. ( you didnt exactly give us a great deal of info on what theme and there are about 200 to pick from)
Although the codes are pretty much the same, it can look diffrent, but if you copy the code from IE the forum button in the index.template.php, you can just paste it in between the others where you want it to show, and then change the name of the button and also the link to what you want it to point to.


im using the default theme.
anyway the only option i figured is just what you said.