Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

November 26, 2022, 11:15:00 AM

Login with username, password and session length
Members
  • Total Members: 3853
  • Latest: tty456
Stats
  • Total Posts: 193608
  • Total Topics: 21103
  • Online today: 74
  • Online ever: 3540
  • (September 02, 2022, 06:38:54 PM)
Users Online
Users: 0
Guests: 32
Total: 32

Author Topic: Need some help  (Read 17988 times)

0 Members and 1 Guest are viewing this topic.

pure

  • Guest
Need some help
« on: February 24, 2005, 02:36:02 PM »
Hello,

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.

danolie

  • Guest
Re: Need some help
« Reply #1 on: February 24, 2005, 02:41:46 PM »
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

pure

  • Guest
Re: Need some help
« Reply #2 on: February 24, 2005, 02:56:25 PM »
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?

Thanks.

NightOwl

  • Guest
Re: Need some help
« Reply #3 on: February 24, 2005, 03:11:20 PM »
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.

pure

  • Guest
Re: Need some help
« Reply #4 on: February 24, 2005, 03:13:48 PM »
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?

NightOwl

  • Guest
Re: Need some help
« Reply #5 on: February 24, 2005, 03:15:11 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.

danolie

  • Guest
Re: Need some help
« Reply #6 on: February 24, 2005, 03:17:58 PM »
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?

NightOwl

  • Guest
Re: Need some help
« Reply #7 on: February 24, 2005, 03:30:41 PM »
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.


Bjørn

  • Guest
Re: Need some help
« Reply #8 on: February 24, 2005, 03:31:17 PM »
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.

pure

  • Guest
Re: Need some help
« Reply #9 on: February 24, 2005, 09:27:19 PM »
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()
Code: [Select]
<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="http://www.mysite.com/frontpage.html 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.
« Last Edit: February 24, 2005, 09:29:44 PM by pure »