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,047
  • Total Topics: 21,336
  • Online today: 163
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 225
  • Total: 225

[Solved] How to add a top buttons??

Started by cod4guy, April 18, 2008, 03:35:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cod4guy

OMG FINALLY WOOT!!! It works!!! THANK YOU SOOO MUCH!!!

cod4guy

Now, another question regarding this, how would I make another buttom saying Downloads and it goes to a url of my choice?

G6Cad

The same way, and again, use the search, there are several hundred posts about adding buttons in this forum.
You have to investigate some of the things you want, we dont run your forum or administrate it, you are doing that ;)

This topic is now marked as solved as the original question is answerd and solved.

cod4guy

Also, if i wanted to remove the help button, how do I do that?

// Show the [home] and [help] buttons.

echo '

<a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" />' : $txt[103]), '</a>', $context['menu_separator'];

if(!empty($settings['use_tp'])){

if($settings['TPortal_front_type']!='boardindex')

echo '   <a href="', $scripturl, '?action=forum">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/forum.gif" alt="Forum Index" style="margin: 2px 0;" border="0" />' : 'Forum Index'), '</a>', $context['menu_separator'];

}

echo '  

<a href="', $scripturl, '?action=help" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 2px 0;" border="0" />' : $txt[119]), '</a>', $context['menu_separator'];

G6Cad

Look at the reply before your last post.

cod4guy

I'm a very big noob at this. Can you just give me what to put in for a Download button with a fake example url.

JPDeni

Look at the code you've already used and follow the pattern. Here's some hints --

The action for accessing the downloads section is

action=tpmod;dl=0

The action for the help page is

action=help

cod4guy

Nope thats not it but I got it! Woot. Thx all for the help! I will now put this topic as solved and start another topic about the fact the my shoutbox does not work.

This website is proudly hosted on Crocweb Cloud Website Hosting.