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,966
  • Latest: safir45
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 1,186
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 518
  • Total: 518

Need help with my website!

Started by kalsson1, May 21, 2009, 08:06:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kalsson1

Never mind. It does not work anyway. I do not know
how much I can keep on with this.

JPDeni

What doesn't work? Tiny Portal? Yes, it does. But you might try backing off a bit.

Start another SMF database as a test. Install TinyPortal. Start learning how it works.

ZarPrime

kalsson1,

You've done well so far.  You have successfully installed TinyPortal 1.0 beta 3.  As JPDeni said, a test install of SMF and TP is a good idea where you can learn to use TP without messing anything up on your main site.

Please don't give up yet.  We are almost there.  Your custom theme is visible, it just doesn't have the Forum button yet.  Look Here ---> http://fmfans.se/index.php?theme=4

As Zetan said, what you need to do is open the index.template.php file for your theme and look for this code near the end of the file.  Download that file to your computer and then rename the file via FTP to something like index.template.php.bak and then do the following edits on the file on your computer ...


// Show the default [home] button.
echo '<li><a href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';



and replace it with this ...


// Show the default [home] button.
echo '<li><a href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';

// Show the [forum] button.
echo '<li><a href="', $scripturl, '?action=forum"><span>' , $txt['tp-forum'] , '</span></a></li>';



After you have made this edits, upload this file to the same location where the file you backed up is located and then try looking at this url again --> http://fmfans.se/index.php?theme=4

If the Forum button is there, then you have successfully added the Forum button.  If it is not there, then come back and let us know and we can go from there.

ZarPrime

kalsson1

#23
No JPDeni, TP works perfectly. I could not get forum button to work it was that, I mean.

It was exactly what I did before ZarPrime, It did not work. I will try again and if it don't work, I'll show you so you can understand what's wrong.  :laugh:

kalsson1

Thank ZarPrime, it works perfectly now.  :2funny:

Now I just need to add "Downloads" and some other stuff in the same place. Should I just do the same as I did with the forum to seek Downloads there too?

thank you very much for everyone's help this far!

Cheers friends! :uglystupid2:

ZarPrime

kalsson1,

I'm glad you got it sorted, and learn something about how to edit things in the process. :up:

As for adding other buttons, you would basically do the same thing, only change the action.  Make sure you always backup the file you're working on in case you mess something up and then you can revert to it and start over.

Something that you might want to consider is to setup a menu block on the left side with things like download and other links that might be necessary.  This would keep you from adding too many buttons at the top and cluttering up the top menu.

Let us know if you need any more help.  For now, I will go ahead and mark this topic solved as it sounds like you are well on your way to having a great Forum. ;)

ZarPrime

kalsson1

QuoteI'm glad you got it sorted, and learn something about how to edit things in the process.

Yes im glad to :laugh: Thank you very much!

QuoteAs for adding other buttons, you would basically do the same thing, only change the action.

What is the action actually? What does it mean? In order to change it then i must know what it means or what?  ^-^

JPDeni

For dowloads, the action is


?action=tpmod;dl=0


Look at the code for the button you just added. Copy it. Paste it. Change what's needed, following the pattern.

This website is proudly hosted on Crocweb Cloud Website Hosting.