Añadir una pestaña a SMF

Status
Not open for further replies.

Kansy

Community Advocate
Community Support
Prime Account
Messages
2,621
Reaction score
9
Points
38
Buenas me gustaria saber como añadir una pestaña en los foros, me gustaria que de contenido apareciese una pagina.
 

Kansy

Community Advocate
Community Support
Prime Account
Messages
2,621
Reaction score
9
Points
38
y eso donde esta????
 

Kansy

Community Advocate
Community Support
Prime Account
Messages
2,621
Reaction score
9
Points
38
pero en que carpeta de los foros SMF
 

denaon

New Member
Messages
41
Reaction score
0
Points
0
Kansy said:
Buenas me gustaria saber como añadir una pestaña en los foros, me gustaria que de contenido apareciese una pagina.
No se si entendi bien...pero quizas te ayudaria instalarle MKPortal o Tiny Portal :confused:...quizas te de la utilidad q buscas
 

Kansy

Community Advocate
Community Support
Prime Account
Messages
2,621
Reaction score
9
Points
38
eso k es esplika xD
 

Hadekone

New Member
Messages
192
Reaction score
0
Points
0
es para acer un portal basado en el foro SMF, pero todo se basa en el foro (creo k es eso)

deberia estar dnd esta el index.php
 

Kansy

Community Advocate
Community Support
Prime Account
Messages
2,621
Reaction score
9
Points
38
pozno....:(

Weno =mente me lo he pensado y voy a hacer un Index.html con disttintas pesañas y una de ellas te lleve al foro otra a otro sitio otra a otro etc...
 

Kansy

Community Advocate
Community Support
Prime Account
Messages
2,621
Reaction score
9
Points
38
Weno probre el mkportal y la verdad prefiero calentarme la cabeza un poko para alññadir pestañitas al foro actualñ y aleaqui os dejo la infor que se necesita pa hacer las pestañas, yo no se de php asi k necesitare una ayudita.

El codigo que hay que editar es este:
Code:
// Show the [home] button.
	if (!empty($settings['wow_forum_button']))
	echo '
	<td class="maintab_off_first">&nbsp;</td>
		<td valign="top" class="maintab_off_back">
		<a href="', $settings['wow_forum_button'], '">' , $txt[103] , '</a>
		</td>
	<td class="maintab_off_last">&nbsp;</td>';

	if (!empty($settings['wow_forum_button']))
	{
	// Show the [home] button.
	echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '<td class="maintab_off_' . $first . '">&nbsp;</td>' , '
				<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'off_back' , '">
					<a href="', $scripturl, '">' , $txt['wow_forum_button_forum'] , '</a>
				</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';

	}
	else
	{
	// Show the [forum] button.
	echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '<td class="maintab_off_' . $first . '">&nbsp;</td>' , '
				<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'off_back' , '">
					<a href="', $scripturl, '">' , $txt[103] , '</a>
				</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';

	}

	// How about the [search] button?
	if ($context['allow_search'])
		echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '<td class="maintab_off_' . $first . '">&nbsp;</td>' , '
				<td valign="top" class="maintab_' , $current_action == 'search' ? 'active_back' : 'off_back' , '">
					<a href="', $scripturl, '?action=search">' , $txt[182] , '</a>
				</td>' , $current_action == 'search' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';

	// Is the user allowed to administrate at all? ([admin])
	if ($context['allow_admin'])
		echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '<td class="maintab_off_' . $first . '">&nbsp;</td>' , '
				<td valign="top" class="maintab_' , $current_action == 'admin' ? 'active_back' : 'off_back' , '">
					<a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>
				</td>' , $current_action == 'admin' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';

	// Edit Profile... [profile]
	if ($context['allow_edit_profile'])
		echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '<td class="maintab_off_' . $first . '">&nbsp;</td>' , '
				<td valign="top" class="maintab_' , $current_action == 'profile' ? 'active_back' : 'off_back' , '">
					<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
				</td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';

	// Go to PM center... [pm]
	if ($context['user']['is_logged'] && $context['allow_pm'])
		echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '<td class="maintab_off_' . $first . '">&nbsp;</td>' , '
				<td valign="top" class="maintab_' , $current_action == 'pm' ? 'active_back' : 'off_back' , '">
					<a href="', $scripturl, '?action=pm"><span style="white-space: nowrap;">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</span></a>
				</td>' , $current_action == 'pm' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';

	// The [calendar]!
	if ($context['allow_calendar'])
		echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '<td class="maintab_off_' . $first . '">&nbsp;</td>' , '
				<td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'off_back' , '">
					<a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
				</td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';

	// the [member] list button
	if (!empty($settings['member_list_button']))
	{
	if($settings['member_list_button'])
	{
	if ($context['allow_memberlist'])
		echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '<td class="maintab_off_' . $first . '">&nbsp;</td>' , '
				<td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'off_back' , '">
					<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
				</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';
	}	
	}

	// If the user is a guest, show [login] button.
	if ($context['user']['is_guest'])
		echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '<td class="maintab_off_' . $first . '">&nbsp;</td>' , '
				<td valign="top" class="maintab_' , $current_action == 'login' ? 'active_back' : 'off_back' , '">
					<a href="', $scripturl, '?action=login">' , $txt[34] , '</a>
				</td>' , $current_action == 'login' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';


	// If the user is a guest, also show [register] button.
	if ($context['user']['is_guest'])
		echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '<td class="maintab_off_' . $first . '">&nbsp;</td>' , '
				<td valign="top" class="maintab_' , $current_action == 'register' ? 'active_back' : 'off_back' , '">
					<a href="', $scripturl, '?action=register">' , $txt[97] , '</a>
				</td>' , $current_action == 'register' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';


	// Otherwise, they might want to [logout]...
	if ($context['user']['is_logged'])
		echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '<td class="maintab_off_' . $first . '">&nbsp;</td>' , '
				<td valign="top" class="maintab_' , $current_action == 'logout' ? 'active_back' : 'off_back' , '">
					<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>
				</td>' , $current_action == 'logout' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';


	// The end of tab section.
	echo '
			</tr>
		</table>';

Me gustaria que hubiesen 5 pestañas mas:

Una que ponga Roster y que te lleve a http://guerrerosdelkaos.x10hosting.com/roster/
Una que ponga DKP y que te lleve a http://guerrerosdelkaos.x10hosting.com/dkp/
Una que ponga Raid Planner y que te lleve a http://guerrerosdelkaos.x10hosting.com/raid/
una que ponga Teamspeak y que te lleve a http://guerrerosdelkaos.x10hosting.com/ts/
Una que ponga Contacto y que te lleve a http://guerrerosdelkaos.x10hosting.com/contacto.html


Gracias de antemano
 

zacion

New Member
Messages
29
Reaction score
0
Points
0
Con MKportal puedes administrar pestañas nuevas fácilmente.
 

Kansy

Community Advocate
Community Support
Prime Account
Messages
2,621
Reaction score
9
Points
38
Use el mkportal pero cuando le dava al foro me llevava a el, ya k creava un portal asi me gustava k lo tuviese integrado. Por eso kiero hacer lo de las pestañas, con eso me conformo el mkportal tiene muchas cosas a parte k no m sirven.
 

Kansy

Community Advocate
Community Support
Prime Account
Messages
2,621
Reaction score
9
Points
38
Npo se porque pero no me deja editar el post anterioro asi que pido disculpas por el doble posteo para empezar.

Este codigop a la hora de crear botones tiene algo que ver???

Code:
	// Create the buttons...
	foreach ($button_strip as $key => $value)
	{
		if (isset($value['test']) && empty($context[$value['test']]))
		{
			unset($button_strip[$key]);
			continue;
		}
		elseif (!isset($buttons[$key]) || $force_reset)
			$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';

		$button_strip[$key] = $buttons[$key];
	}

	if (empty($button_strip))
		return '<td>&nbsp;</td>';

	echo '
		<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '">&nbsp;</td>
		<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td>
		<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '">&nbsp;</td>';
}

Si es asi podrian ayudarme a modificarlo para añadir las pestañas que dije anteriormente?
 
Last edited:
Status
Not open for further replies.
Top