HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media


Welcome to TinyPortal. Please login or sign up.

September 23, 2023, 03:05:19 AM

Login with username, password and session length
  • Total Posts: 194,540
  • Total Topics: 21,180
  • Online today: 74
  • Online ever: 3,540
  • (September 03, 2022, 01:38:54 AM)
Users Online
Users: 0
Guests: 72
Total: 72

Need some help

Started by pure, February 24, 2005, 09:36:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.



First of sorry for posting it here if this is not suppose to be posted here.

I just wanted to ask if someone could tell me how I can make an addition to the menu on my site that when users go to my site it would take them to a front page instead of straight to the forums and have a link in the menu up on the top like on this site so the users can click on Home to get to the front page and when the click on Forums it would take them to the forums page. Those are the only 2 additions I want to have on my site.

I am using loon theme and if some one could help or atleast tell me howto I would really appreciate the help.

Thank you.


Pure... I'm prob not someone who can help u w/your answers, but you might want to at least post your URL so people know wha tyou are workign with. It's not clear if you have installed TinyPortal, or what exactly you are starting with. ~ Dan


Thanks for a quick reply Dan.

Let me clerify.

Right now I have installed it on my home machine and it does not have a url so I can't really post a url otherwise I would have. I did not install the Tinyportla. I only installed the latest version of SMF and added the loon green theme. I want to implement and test everything before I go ahead and shoot up my actual site. I am done with all the testing, coloring and stuff that I want to have on my site except this one issue which I posted above.

Basically I want my site to go to a frontpage which would have something to say about my site and a link forum would be up in the menu so the users can click on the Forums link to go to the forums section like on this site.

I hope this clears?



Tiny-Portal give you the option of both, click home to the front page and click forum to forum. You need to install the Tiny-Portal to have this. But the problem is after you install TTP, it only works with the default theme or some bloc's theme here. So your "loon green theme" probably don't work.

Either you run default theme with Tiny-portal, or with Bloc's TP themes here.


So there is no way I can have the frontpage option without installing TP?ÃÆ'ââ,¬Å¡Ãƒâ€šÃ,  :( And on top of that I won't be able to use my loon green theme?


Quote from: pure on February 24, 2005, 10:13:48 PM
So there is no way I can have the frontpage option without installing TP?ÃÆ'ââ,¬Å¡Ãƒâ€šÃ,  :(

Almost, Unless you can code with PhP and write it yourself.


Could pure simply design a homepage utilizing some of the theme colors, characteristics, etc... have the SMF installed in a different folder, and use SSI commands to bring some of that info/functionality to the home page, so components of the boards would exist on the (non TP/non SMF) homepage?


yes, don't put SMF as default first index.html and simply write a frontpage with forum link to SMF forum. But he still need to code home button in smf to go back to that frontpage.


In TinyPortal this is done like this: usually when you call index.php without anything behind the "php" it assume you want to go to the main page - the boardindex. If you type index.php?board=xx it goes to the actual board, and so on....

TP just changes that to go to index.php?action=tportal instead when you write nothing, and use index.php?action=forum to actually go the boardindex again. ( you will never see the action=tportal bit...)

So if you want this on your site then there is a couple of problems....Since your frontpage is really outside the forum, it needs to be somewhere else - since the forum NEEDS index.php, even if no longer go to the boardindex( it will do that anyhow, since it now hasn't got anything defined for "nothing" behind index.php. Just "popping" back to the default page, which in errors always are boardindex.).

As danolie describes it can be done with bringing in SSI.php on the frontpage.In your situation I would just do it like that, having the forum in a separate folder. Just add a extra button in the loon theme that says "frontpage" or something - and that points to the actual frontpage again.


Thanks for all the sugestions and help.

I think the idea Danolie gave sounds good. I tried doing so and I am able to put a picture for the link Frontpage on menu but the problem I don't know how to add the url of the Frontpage.

Basically what I did was edited the file smf\Themes\loongreen\index.template.php and added the following code in the function called function template_menu()

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

Actually I copied and pasted the code for "Home" link and change the name of the home.gif file to frontpage.gif. The file shows up in the header fine.

But the problem is the link. Which file I should be editing so that the code "$scripturl,'?action=frontpage" links to frontpage.html or frontpage.php? It seems like I need to edit a file and add some sort of number to recognize the link for frontpage. For example the link for Home is [103]. Or should I just put a straight link to the frontpage something like <a href=" or php"> ?

And also which file I should be editing so that on mouse over the "alt" option would show the name as "Front Page".

Thank you for all your help and I really appreciate it.