Advertisement:

help with index.template.php and wap2 template please

Aloittaja Cario Blingz, elokuu 19, 2011, 12:07:05 AP

« edellinen - seuraava »

Cario Blingz

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

Sir Osis of Liver




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



When in Emor, do as the Snamors.
                              - D. Lister

Cario Blingz


Cario Blingz

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

Angelina Belle

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!
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

Advertisement: