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?

August 09, 2022, 08:01:11 AM

Login with username, password and session length
Members
  • Total Members: 3842
  • Latest: Kokoro
Stats
  • Total Posts: 193479
  • Total Topics: 21088
  • Online today: 57
  • Online ever: 1035
  • (November 26, 2020, 04:45:12 AM)
Users Online
Users: 1
Guests: 56
Total: 57

Author Topic: Need some help  (Read 17750 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 »

pure

  • Guest
Re: Need some help
« Reply #10 on: February 24, 2005, 09:38:55 PM »
Hi again,

Maybe I should have made the changes before replying the above post. Sorry for that I was too excited to try it out and those questions so I posted them before even trying it out first.

I was able to make it work by chaning the code and alt="Front Page"

Works like a charm and thanks a lot for all your help and ideas. It would be nice to have the menu up above by the banner all the time but this is fine too.

Thank you again.

Offline IchBin

  • Friends
  • *
  • Posts: 16231
Re: Need some help
« Reply #11 on: February 24, 2005, 09:41:36 PM »
lol you gotta love the feature in SMF that notifies you if someone posts before you do. I was just about to submit the answer but saw that you figured it out. Nice job!


pure

  • Guest
Re: Need some help
« Reply #12 on: February 24, 2005, 10:11:17 PM »
IchBin thanks and yeah I am loving this awesome SMF.

However I have one question. I still need to find the file that I can edit to make changes for the "alt" code. If you know which file to edit in order to make the changes please let me know, Thanks in advance  :)


The reason I need to change the code is since I am using home.gif for my Front Page and I replaced the orignal home.gif to forum.gif so when I point to Forum the mouse over "alt=" still shows Home. I can change it in the index.template.php but than it will keep bugging me that I need to change it in the orignal file not here.  ;D

Offline IchBin

  • Friends
  • *
  • Posts: 16231
Re: Need some help
« Reply #13 on: February 24, 2005, 10:16:56 PM »
Change this in your link alt="' . $txt[182] . '" to this alt="Front Page"

Bjørn

  • Guest
Re: Need some help
« Reply #14 on: February 25, 2005, 02:22:41 AM »
The $txt[xxx] variable gets it info/strings from the language files. Look in Themes/languages/index.english.php and find the numbers corresponding.

Offline IchBin

  • Friends
  • *
  • Posts: 16231
Re: Need some help
« Reply #15 on: February 25, 2005, 05:16:54 PM »
Thanks for that tidbit of info. I was wondering where that variable was pointing too. So I can just add my own next time. :)

pure

  • Guest
Re: Need some help
« Reply #16 on: March 03, 2005, 12:15:32 PM »
Bloc thanks a lot for the info and help.

I wanted to ask you one more thing how can I make some of my forums so on the index page they can see the forum but when the click on the forum to go in and try to read the posts they would get denied?

I hope it make sence what I am trying to say. Thank you.

Bjørn

  • Guest
Re: Need some help
« Reply #17 on: March 03, 2005, 12:25:58 PM »
I don't think its possible..if you deny guests to a forum, it will simply not be shown to them. 

pure

  • Guest
Re: Need some help
« Reply #18 on: March 09, 2005, 02:05:01 PM »
hi Bloc me again. Need some help.

I am unable to upload attachments. I have eanbled the attachments by going to Admin panel, Edit Features and Options, Attachments and its enabled plus I have allowed txt, gif, jpg and doc extensions. But every time I try to upload a jpg file I get the following error.

Code: [Select]
An Error Has Occurred!
Your attachment couldn't be saved. This might happen because it took too long to upload or the file is bigger than the server will allow.

Please consult your server administrator for more information. 

My attachment foldes is located on second partition d:\attachments and I have set the full rights on that folder to the user IUSR to be able to upload attachments.

I would really appreciate if you could help me fix this. Thank you.

Bjørn

  • Guest
Re: Need some help
« Reply #19 on: March 09, 2005, 05:27:48 PM »
it seems you need to set the upload limit higher.

pure

  • Guest
Re: Need some help
« Reply #20 on: March 14, 2005, 10:41:33 PM »
Right now its set to

Max attachment folder space (in KB)  10240
Max attachment size per post (in KB)  200
Max size per attachment (in KB)         200
Max number of attachments per post  4

You think I should change that? If so than what should I change it to?

Thank you for your help.

Bjørn

  • Guest
Re: Need some help
« Reply #21 on: March 15, 2005, 12:19:28 AM »
Change the first. Its only 10 mb right now, so setting it to 50200 should solve it.

If that isn't the cause ( check the admin section/ attachment manager / Total Space Available in Attachment Directory for "free space" ) set the max attachment per post setting higher.

pure

  • Guest
Re: Need some help
« Reply #22 on: March 16, 2005, 06:32:30 PM »
I made the changes as you mentioned still the same message.

Here are the settings.

Attachments directory                      D:\attachments
 Max attachment folder space (in KB)  50200
 Max attachment size per post (in KB)  4000
 Max size per attachment (in KB)         2000
 Max number of attachments per post  4


Attachment Manager

From here you can administer the attached files on your system. You can delete attachments by size and by date from your system. Statistics on attachments are also displayed below.

File Attachment Statistics
Total Attachments: 0
Total Avatars: 0
Total Size of Attachment Directory: 0.32 KB [Recount]
Total Space Available in Attachment Directory: 50199.68 KB