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,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,911
  • Total Topics: 21,307
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 470
  • Total: 470

Problems After Installation

Started by Artimedia, August 26, 2009, 01:47:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Artimedia

To Crip: Precisely! ;) :up: I love that theme and have made some modifications to it. would you like to see it? You may recall I recently posted in the themes board asking about differences from BlazeV2 and inquiring about compatibility with SMF 2.0... But already replied to that. ;)
Now, if you think you may help in this situation, feel free to step forward. ;D I may PM my Forum's link if that should help...

To mc: I do not use multi-language either, no problem... ;)

Now, we have a problem: When I click in "Forum" it still takes me to index.html... It still displays the front page. The Forum button is now there, but it doesn't seem to do anything... :(

In my index.template.php file, do I need to perform all the other changes mentioned for the default index.template.php?.. Or just the one you mentioned.?
What about the Blaze style.css? do I need to do the changes mentioned in "Mod Instructions"? Or is it enough to make these mods in the default style.css and index.template.php?

Anyway, I tried both solutions... And the result is still an active Forum button, whose action is leaving me in the front page.

What does it mean when you say "I hardcoded the Forum text into that extra code"?

mc

*whistles innocently*

I kind of forgot one key bit of the button link, the ?action=forum

This should be the code -

// Show the [forum] button.
echo '<li', $current_action == 'forum' ? ' id="active"' : '', '><a href="', $scripturl, '?action=forum"> Forum </a></li>';


I think I got a bit distracted by the if statement, and forgot to add the more important bit.


As the hardcoded bit, instead of getting you to add an extra reference into the language files, then linking to it using a $txt[nnn] tag, I just coded 'Forum' into the code.

Artimedia

Thanks mc! It is working now!

So, hardcoding refers to when you replace a variable for a constant value, so to speak, right? I guess I can replace that value for "Boards" or something right?

About the other issue: Do I need to do to index.template.php of the Blaze theme all the same changes I did to the same file of the default theme?

What about style.css? Do I need to do to Blaze the same I did for the default theme?

Because since both these files suffered several changes in the default theme, I am afraid something might not work if I don't do the same for the theme I'm using... Or is it unnecessary? :-\

Thanks!

mc

Quote from: Artimedia on August 26, 2009, 07:51:57 PM
So, hardcoding refers to when you replace a variable for a constant value, so to speak, right? I guess I can replace that value for "Boards" or something right?
I'm not entirely sure if hardcoding is the official term, but you could change Forums to whatever you want.
Quote
About the other issue: Do I need to do to index.template.php of the Blaze theme all the same changes I did to the same file of the default theme?

Having had a quick look at the Blaze index template, it could do with another if statement added to the top of the function template_menu() to catch all the extra TP actions, in a similar format to the ones already there, and the if statement for admin editted to add the TPadmin functions.
However, the only problem you would encounter by not doing this, is no button/link will be marked as active when in actions that aren't covered by the if statements.
i.e. when in TPdownloads, or TPadmin.
(I'm too tired to be able to think about exactly what edits would be needed just now!)
Quote
What about style.css? Do I need to do to Blaze the same I did for the default theme?
Yes, although you may have to alter the additional TP style statements to fit in with the Blaze theme.
Quote
Because since both these files suffered several changes in the default theme, I am afraid something might not work if I don't do the same for the theme I'm using... Or is it unnecessary? :-\

I don't think there are any of the changes that will cause any major issues if they're not done. The worst you'll likely get are error messages in the error log, or things not displaying quite how they should.

This website is proudly hosted on Crocweb Cloud Website Hosting.