Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: Cario Blingz - elokuu 19, 2011, 12:07:05 AP

Otsikko: help with index.template.php and wap2 template please
Kirjoitti: Cario Blingz - elokuu 19, 2011, 12:07:05 AP
function template_body_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

echo '
</div>
</div></div>';

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footer_section"><div class="frame">
<ul class="reset">
<li class="copyright">', theme_copyright(), '<br />Refferals System by <a href="http://www.createaforum.com" title="Forum Hosting">CreateAForum.com</a>
</li>
<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li><a id="button_mobile" href="', $scripturl, '?thememode=mobile;redirect=', urlencode($_SERVER['REQUEST_URL']), '" class="new_win"><span>Mobile</span></a></li><li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>
</ul>';

// Show the load time?
if ($context['show_load_time'])
echo '
<p>', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';

echo '
</div></div>', !empty($settings['forum_width']) ? '
</div>' : '';
}


please how do i edit this place <a id="button_mobile" href="', $scripturl, '?thememode=mobile;redirect=', urlencode($_SERVER['REQUEST_URL']), '" class="new_win"><span>Mobile</span> and add my own mobile link
Otsikko: Re: index.template.php help please
Kirjoitti: Sir Osis of Liver - elokuu 19, 2011, 01:25:14 AP



<a id="button_mobile" href="http://www.yourdomain.com/linkpath" class="new_win"><span>Mobile</span>



Otsikko: Re: index.template.php help please
Kirjoitti: Cario Blingz - elokuu 20, 2011, 05:25:45 AP
thanks let me try it out
Otsikko: Re: index.template.php help please
Kirjoitti: Cario Blingz - elokuu 20, 2011, 05:42:44 AP
Lainaus käyttäjältä: Krash. - elokuu 19, 2011, 01:25:14 AP



<a id="button_mobile" href="http://www.yourdomain.com/linkpath" class="new_win"><span>Mobile</span>



it really worked thanks.

please can you help me on how i can add google adsense on my mobile wap2 i have the codes but don't know how to put them please help me out
Otsikko: Re: index.template.php help please
Kirjoitti: Angelina Belle - syyskuu 16, 2011, 08:35:28 AP
The thing about wap2 is -- it is designed for low bandwidth and/or low-res screens.

The WAP2 template is intentionally VERY different from the  "regular" one.  It is found in wireless.template.php
Adding Google Adsensee would be adding images back for users who might not be able to deal with them.

I think you will get more and better help on this in the "themes and graphics" board, where people discuss working with SMF output all the time.  I think you will benefit from an intro to php, which you can find at any tutorial site like w3schools.com.

Also, you will benefit from a tool that can search all the files in a directory.  This will let you find, for example, where "wap2" is used.
If you don't have any other developer's tools, you can use windows command line "find" command.  find /? for more information on how to use this command.  find  /N /I  "wap2" | more will be a very useful command to learn. It will help you find where you want to make a change.

Enjoy your adventures in customization!