Test was successful and I went ahead and installed. I believe I made one mistake though... I did not reset the theme to the defualt theme before installing. I installed it with the my modified Blaze theme. These are the problems I'm experiencing.
1: There's no change in header. I see the top menu just as it was before TP install. for instance, there is no "Forum" link. Is this something I should configure after installation or should it appear by default?
2: Another problem in the header section is that when I go to the admin area and go to Settings & Frontpage>Frontpage, if I uncheck "Display user info and news at the top", nothing happens... The User Info and News are always there.
3: In "Panels and Blocks>Blocks" section of the Admin area, when I try to alter the position (pos) of a block, nothing seems to change. I need to position it some pixels lower to align it with the Forum frame.
4: I also seem to have problems trying to display the front pannel.... But here, I might be doing something wrong... So for now, I chose to display the forum in the front page (since I dont have a Forum link in the top menu, and all...).
For now these are the problems I found. I'll let you know if I found more, but I didn't want to go any further before clearing this out. Can this be caused because of my theme? Should I simply uninstall TP, reset the theme to default, install TP again and re-activate the theme??...
Thanks in advance! :)
How does it look in the default theme?
also:
Please read the Posting Guidelines.html (http://www.tinyportal.net/index.php/topic,581)
As for a forum link in your Blaze theme you will need to make additions/changes to your custom themes as the TP install only modifies the default theme.
Quote from: Renegd98 on August 26, 2009, 02:30:07 AM
How does it look in the default theme?
also:
Please read the Posting Guidelines.html (http://www.tinyportal.net/index.php/topic,581)
As for a forum link in your Blaze theme you will need to make additions/changes to your custom themes as the TP install only modifies the default theme.
In the default theme, I can see the Forum link. Otherwise, I experience the same problems mentioned in my 1st post, except for #4 which I have already solved. so basicly, I still experience problems #2 and #3.
If I had previously reset the theme to Default and restored the theme after installing TP, would I have experienced the same problem of the Forum link not showing? How do I need to modify the Blaze theme in order to make a working link to the Forum? (I suppose this is a TP issue and not a SMF one).
I read the posting guidelines as you sugested. Not only do they seem more or less to go without saying, as I don't see how it would have improved my post that much:
* I did a Forum search with unsuccessful results before posting.
* My issue is TP related a lot more than SMF related.
* I tried to use a propper subject: Several problems have risen from what I believed to have been an impropper installation. I thought it wouldn't be wise to create a topic for each unique problem.
* Considering I believed this was a consequence of impropper install, I think this was in the right section.
* Most of the other guidelines don't even apply to my post, but other than that:
Forum Version: SMF 1.1.10
TP Version:
Theme:Blaze (V1.0) modified
Browsers: Maxthon 2.5.3; IE 8, Firefox 3.5.2; Google Chrome 2.0.172.43
Mods:
1. Allowed Groups Embedded Flash 1.2.3
2. Country Flags 1.1.1
3. Gothic Avatars Set 1 1.1
4. Gothic Avatars Set2 1
5. Horoscope Avatars 1.0
6. Sci-Fi Avatars 1.0
7. 183 High Quality Sci-Fi and Fantasy Avatars 1.0
8. BBC [you] 1.0
9. Stop Spammer 2.2
10. Anti-Bot Registration Puzzles 1.2
11. SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update 1
12. Babelfish Translater 1.0
13. Wrap Text Around Image 1.0
14. clickableImagebbcode 1.0
15. User Email System 1.3
16. Attachment Notice 1.0
17. [HTML] Permission Mod 1.01
18. Registered Links 1.0
19. AjaxChat Integration (inc ShoutBox)
Do I really need to include all this in every post I make? About the link to my website, I might have reasons not to post it publicly... But I will gladly provide it through PM, if it's regarded as necessary for specific support. I just don't want it publicly exposed, if possible.
Thank you.
QuoteForum Version: SMF 1.1.10
TP Version:
Missed the important part... What TP version did you install ?
Also when you are unsure the install of TP went well and need to check if it holds all code and files/folders, these are the guides you have to follow.
( Now i have to assume you have TP Beta4 as you left out that info and i cant see TP Listed in your modifications list eather. )
How do I manually install TinyPortal (http://docs.tinyportal.co.uk/index.php?topic=29)Modification Instructions (http://docs.tinyportal.co.uk/index.php?topic=140)
Yes, I'm sorry but I missed that part ::): It's the 1.082 Beta4 version all right!
I will look at both these links and will let you know how it went.
EDIT: Just 1 prior question: In the mod instructions, where it says "$themedir/index.template.php", shall I apply this to my modified Blaze theme (the one I'm using), or the default theme, or both??..
And what about the Babylon theme? do I need to apply the modifications there? I'm not using it... Do modifications in the Babylon, reflect in my theme?
Thanks! :up:
Quote from: Artimedia on August 26, 2009, 11:36:27 AM
EDIT: Just 1 prior question: In the mod instructions, where it says "$themedir/index.template.php", shall I apply this to my modified Blaze theme (the one I'm using), or the default theme, or both??..
And what about the Babylon theme? do I need to apply the modifications there? I'm not using it... Do modifications in the Babylon, reflect in my theme?
You will not have to do the edits to the babylon theme if you are not going to use it.
The mod instructions you have mentioned, only apply to the default theme.
However, looking at them (or the babylon mod instructions), may help you with working out how to add the extra menu button to Blaze.
What you need to do, is find what template file the menu is generated in (usually done by a menu function within index.template.php), and then work out how to add an extra item to the menu.
Or, post up the code extract or attach a copy of index.template.php, and I'm sure somebody will show you what to change.
Thanks for the helpful hint, mc! :)
I have uninstalled and then manually reinstalled TP, making all the modifications as instructed on the mod instructions page. Somehow, the panels and blocks were in the same place before I uninstalled so, I guess that uninstalling doesn't really uninstall TP at a DB level, right?.. I guess since the database is the same and only one for both smf and TP, uninstalling it doesn't succeed in restoring the DB to what it was before TP... :(
Actually, I've tried to apply the same changes both to the default "index.template.php" and the one from Blaze. The result is a messed up header, with the logo, user info, news and menu, all completely misplaced. The string for the Menu, use completely different sinthaxes, I believe. Blaze uses <li> tags and the default uses <tables> and <td> instead.
I am usually quite intuitive with code, but I am not an expert in php. Actually I'm considerably ignorant :-\. But I usually can intuitively understand the code's logic and have managed often to work it into getting to do what I need. An example of that is what I did with my modified Blaze template. Although even there, I believe I might have done one mistake or another with the header, beacuse it shows a displacement of a few pixels in Firefox...
I sure don't want to mess things up, since php is such a sensitive code (sure not like html). So, I attached both my index.template.php and style.css files so anyone can be as kind as to look at it and give me an idea of what to change, where and how. ;)
Search for -
// Show the [home] button.
echo '<li', $current_action == 'home' ? ' id="active"' : '', '><a href="', $scripturl, '">' , $txt[103] , '</a></li>';
Add after -
// Show the [forum] button.
echo '<li', $current_action == 'forum' ? ' id="active"' : '', '><a href="', $scripturl, '"> Forum </a></li>';
I'll give a quick explanation.
The basic link/button is contained within the <li> and <a> tags.
$current_action == 'forum' ? ' id="active"' : ''
is a shorthand version of an if..else.. statement and is the equivalent of
if ($current_action == 'forum'){
echo 'id="active"';
} else {
echo '';
}
It's purpose is to add the 'active' style id tag to the button for the currently active page, so the apearrance of the active page button is different (set within the stylesheer)
I forgot to mention, that I hardcoded the Forum text into that extra code.
You'll see that all the other link/button names are set using $txt[nn] variable.
This is for different language purposes. If you were to use different languages, you can add extra tags to the language files, and then add a similar variable call to the forum button code.
I've never personally used multiple languages, so I'm not entirely sure how/where to add extra language tags.
Old red / yellow Blaze Theme of Crip's?
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"?
*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.
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!
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.