TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 18, 2024, 01:25:54 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,164
  • Total Topics: 21,219
  • Online today: 180
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 166
  • Total: 166

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.

pure

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

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

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

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

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

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.

danolie

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

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

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

#9
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="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.

pure

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 <a href="http://www.mysite.com/frontpage.html"> 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.

IchBin

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

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

IchBin

Change this in your link alt="' . $txt[182] . '" to this alt="Front Page"

Bjørn

The $txt[xxx] variable gets it info/strings from the language files. Look in Themes/languages/index.english.php and find the numbers corresponding.

IchBin

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

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

I don't think its possible..if you deny guests to a forum, it will simply not be shown to them. 

pure

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.


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

it seems you need to set the upload limit higher.

pure

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

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

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