I have two boards set up on my site and I can jump to either one without a problem, but anytime I use the jump to feature to try to access my forum's index, I am instead redirected to the website index.
Can you advise on how this can be fixed?
ummmm.... SMF? Ask there as it's an SMF feature.. Nothing to do with TP.
[Edit] SMF think it's a TinyPortal Problem.
Bump..
I don't know much about the Jump To feature.
Thanks for unlocking it.
Anyone know about this?
Quote from: BlackMage on June 02, 2007, 03:26:31 AM
its probably because you have tinyportal installed. Tinyportal creates a new action (forum) which loads the BoardIndex instead of loading it normally.
so going to index.php gives you your tinyportal frontpage whereas going to index.php?action=forum gives you your forum
Quote = SMF (http://www.simplemachines.org/community/index.php?topic=174036.msg1113281#msg1113281)
It should be as easy as to change the url for the home button to index.php?action=forum (if that is what you want it to go.
But also another way is to set it to "go directly to forum" in your TP admin settings panel.
As i understand this you dont want to have the frontpage showing at all, you want the home to be the forum as in any regular SMF install with out TP but with TPs side panels ???
I'd like the 'Jump to' feature to actually go to the Forum Index, when that selection is made.
Currently, when you select Forum Index, it brings you to the Home Index instead.
Well then i think the option that i can think of will be to change the home button url to index.php?action=forum in your index.template.php
I dont know of any other way, but that will make the site to not show the frontpage at any time.
You're saying there's no way to code the Jump to feature to make sure that when you select Forum, it actually takes you to the Forum Index?
Im think you lost me now.
By the JUMP to you mean the top menu links ? (Home, Forum and so on) ?
The home button leads to the site index (frontpage if you have TP installed) and if you dont have tp, it say home and will lead you to the forum directly as it's the site start index.
So where you lost me now is what do you exactly mean by jump to ? Where do you have the jump to links ? and what is the link (button) named ?
'
A screenshot of where and what you mean would be very helpful now
:laugh: not a prob.
MessageIndex.template.php
Here's the code if you can figure it out. :) I don't know anything about javascript or how this works ATM. So good luck! :D
<form action="', $scripturl, '" method="get" accept-charset="', $context['character_set'], '" name="jumptoForm">
<span class="smalltext"><label for="jumpto">' . $txt[160] . '</label>:</span>
<select name="jumpto" id="jumpto" onchange="if (this.selectedIndex > 0 && this.options[this.selectedIndex].value) window.location.href = smf_scripturl + this.options[this.selectedIndex].value.substr(smf_scripturl.indexOf(\'?\') == -1 || this.options[this.selectedIndex].value.substr(0, 1) != \'?\' ? 0 : 1);">
<option value="">' . $txt[251] . ':</option>';
// Show each category - they all have an id, name, and the boards in them.
foreach ($context['jump_to'] as $category)
{
// Show the category name with a link to the category. (index.php#id)
echo '
<option value="" disabled="disabled">-----------------------------</option>
<option value="#', $category['id'], '">', $category['name'], '</option>
<option value="" disabled="disabled">-----------------------------</option>';
/* Now go through each board - they all have:
id, name, child_level (how many parents they have, basically...), and is_current. (is this the current board?) */
foreach ($category['boards'] as $board)
{
// Show some more =='s if this is a child, so as to make it look nice.
echo '
<option value="?board=', $board['id'], '.0"', $board['is_current'] ? ' selected="selected"' : '', '> ', str_repeat('==', $board['child_level']), '=> ', $board['name'], '</option>';
}
}
echo '
</select>
<input type="button" value="', $txt[161], '" onclick="if (this.form.jumpto.options[this.form.jumpto.selectedIndex].value) window.location.href = \'', $scripturl, '\' + this.form.jumpto.options[this.form.jumpto.selectedIndex].value;" />
</form>