Support Forum

Resize text plug in – er how does it work

CF Conrad_Farlow
Conrad_Farlow
Member

I have activated the resize text plug in because the default text size is really small but I can’t figure out how it works and of course there are no readme files yet.

Help 🙂

33 Answers

New Answer

MP Mr Papa
Mr Papa
Member

anxious to find out myself!!  Andy just added it today while I was at work – have not tried it yet… so, its possible its not complete and working yet either and he is gone for night…

5 second look at the plugin, though and it seems you have to use the template tag

sp_FontResizer()

put it in your theme where you want the resize controls to show…

CF Conrad_Farlow
Conrad_Farlow
Member

Yup put it in the footer, very useful addition that.

MP Mr Papa
Mr Papa
Member

well, thats where you put it… Wink

can actually put it anywhere you want… but spHead and spFoot probably make the most sense…  or elsewhere in your wp theme perhaps on the forum custom page template…

CF Conrad_Farlow
Conrad_Farlow
Member

A request please guys would you put a little expression for the resize text plug in in spHead and spFoot in the iForum theme, saves me the job of replacing it everytime I svn up.

Thanks in anticipation.

Conrad

CF Conrad_Farlow
Conrad_Farlow
Member

I have just added the sp_FontResizer() call in the footer and for some reason it doesn’t work anymore, I’m sure it did previously. I added it in the same way to the header and it’s fine. I can see the graphics but clicking on them has no effect. Why is this?

How do you embed code so it keeps the formatting from the editor?

See below:

 

#
#    Simple:Press Template
#    Theme        :    default
#    Template    :    foot
#    Version        :    1.0
#    Author        :    Simple:Press
#
#    The ‘foot’ template can be used for all forum content that is to be
#    displayed at the bottom of every forum view page
#
# ————————————————————————————–

    # Mandatory call to sp_FooterBegin() – available to custom code
    # ———————————————————————-
    sp_FooterBegin();

    # Start the ‘pageBottomStatus’ section
    # ———————————————————————-
    sp_SectionStart(‘tagClass=spPlainSection’, ‘pageBottomStatus’);
        sp_AllRSSButton(‘tagClass=spButton spLeft spAllRSSButton’, __sp(‘All RSS’, ‘spIforum’), __sp(‘Subscribe to the all forums RSS feed’, ‘spIforum’));
        if (function_exists(‘sp_SubscriptionsSubscribeButton’)) sp_SubscriptionsSubscribeButton(‘tagClass=spButton spLeft’, __sp(‘Subscribe’, ‘spIforum’), __sp(‘Unsubscribe’, ‘spIforum’), __sp(‘Subscribe to this topic’, ‘spIforum’), __sp(‘Unsubscribe from this topic’, ‘spIforum’));
        if (function_exists(‘sp_WatchesWatchButton’)) sp_WatchesWatchButton(‘tagClass=spButton spLeft’, __sp(‘Watch’, ‘spIforum’), __sp(‘Stop Watching’, ‘spIforum’), __sp(‘Watch this topic’, ‘spIforum’), __sp(‘Stop watching this topic’, ‘spIforum’));
        sp_GoToTop(‘tagClass=spRight spGoToTop&iconClass=spIcon’, ”, __sp(‘Go to top’, ‘spIforum’));
    sp_SectionEnd(‘tagClass=spClear’, ‘pageBottomStatus’);

        sp_FontResizer();

    # Start the ‘stats’ section

 

LH Lee H
Lee H
Member

@Conrad…

Paste your code.

Highlight it.

The ${..} button above will light up.

Click and choose formatting.

Done. Wink

CF Conrad_Farlow
Conrad_Farlow
Member

What like this?

 

# #    Simple:Press Template #    Theme        :    default #    Template    :    foot #    Version        :    1.0 #    Author        :    Simple:Press # #    The ‘foot’ template can be used for all forum content that is to be #    displayed at the bottom of every forum view page # # ————————————————————————————–

    # Mandatory call to sp_FooterBegin() – available to custom code     # ———————————————————————-     sp_FooterBegin();

    # Start the ‘pageBottomStatus’ section     # ———————————————————————-     sp_SectionStart(‘tagClass=spPlainSection’, ‘pageBottomStatus’);         sp_AllRSSButton(‘tagClass=spButton spLeft spAllRSSButton’, __sp(‘All RSS’, ‘spIforum’), __sp(‘Subscribe to the all forums RSS feed’, ‘spIforum’));         if (function_exists(‘sp_SubscriptionsSubscribeButton’)) sp_SubscriptionsSubscribeButton(‘tagClass=spButton spLeft’, __sp(‘Subscribe’, ‘spIforum’), __sp(‘Unsubscribe’, ‘spIforum’), __sp(‘Subscribe to this topic’, ‘spIforum’), __sp(‘Unsubscribe from this topic’, ‘spIforum’));         if (function_exists(‘sp_WatchesWatchButton’)) sp_WatchesWatchButton(‘tagClass=spButton spLeft’, __sp(‘Watch’, ‘spIforum’), __sp(‘Stop Watching’, ‘spIforum’), __sp(‘Watch this topic’, ‘spIforum’), __sp(‘Stop watching this topic’, ‘spIforum’));         sp_GoToTop(‘tagClass=spRight spGoToTop&iconClass=spIcon’, ”, __sp(‘Go to top’, ‘spIforum’));     sp_SectionEnd(‘tagClass=spClear’, ‘pageBottomStatus’);

        sp_FontResizer();

    # Start the ‘stats’ section

CF Conrad_Farlow
Conrad_Farlow
Member

That didn’t work but I selected php, let me try again.

 

<?php

# ————————————————————————————–

#

# Simple:Press Template

# Theme : default

# Template : foot

# Version : 1.0

# Author : Simple:Press

#

# The ‘foot’ template can be used for all forum content that is to be

# displayed at the bottom of every forum view page

#

# ————————————————————————————–

 

# Mandatory call to sp_FooterBegin() – available to custom code

# ———————————————————————-

sp_FooterBegin();

 

# Start the ‘pageBottomStatus’ section

# ———————————————————————-

sp_SectionStart(‘tagClass=spPlainSection’, ‘pageBottomStatus’);

sp_AllRSSButton(‘tagClass=spButton spLeft spAllRSSButton’, __sp(‘All RSS’, ‘spIforum’), __sp(‘Subscribe to the all forums RSS feed’, ‘spIforum’));

if (function_exists(‘sp_SubscriptionsSubscribeButton’)) sp_SubscriptionsSubscribeButton(‘tagClass=spButton spLeft’, __sp(‘Subscribe’, ‘spIforum’), __sp(‘Unsubscribe’, ‘spIforum’), __sp(‘Subscribe to this topic’, ‘spIforum’), __sp(‘Unsubscribe from this topic’, ‘spIforum’));

if (function_exists(‘sp_WatchesWatchButton’)) sp_WatchesWatchButton(‘tagClass=spButton spLeft’, __sp(‘Watch’, ‘spIforum’), __sp(‘Stop Watching’, ‘spIforum’), __sp(‘Watch this topic’, ‘spIforum’), __sp(‘Stop watching this topic’, ‘spIforum’));

sp_GoToTop(‘tagClass=spRight spGoToTop&iconClass=spIcon’, ”, __sp(‘Go to top’, ‘spIforum’));

sp_SectionEnd(‘tagClass=spClear’, ‘pageBottomStatus’);

 

sp_FontResizer();

 

Nah bedtime!

MP Mr Papa
Mr Papa
Member

will open a ticket to include it in the default theme…

and want to test cod insertion…

function spa_create_group_select($groupid = 0) {
    $groups = spdb_table(SFGROUPS, '', '', "group_seq");
    $out='';
    $default='';

    $out.= '<option value="">'.spa_text('Select forum group:').'</option>';

    if ($groups) {
        foreach ($groups as $group) {
            if ($group->group_id == $groupid) {
                $default = 'selected="selected" ';
            } else {
                $default - null;
            }
            $out.='<option '.$default.'value="'.$group->group_id.'">'.sp_filter_title_display($group->group_name).'</option>'."n";
            $default='';
        }
    }
    return $out;
}
LH Lee H
Lee H
Member

I’ll admit inserting code can be a bear for me as well. Especially if I plan to continue with regular text after the code block. One way I do it is type the word “code” as a placeholder. Then I do some rambling. Then go back to the word code, highlight it, format it as php, then select it and paste my php code over it. Kinda (<– yes, another American word) odd, but it hasn’t failed me yet.

CF Conrad_Farlow
Conrad_Farlow
Member

Not just the default theme but in iTheme as well, mucho thanks 🙂

CF Conrad_Farlow
Conrad_Farlow
Member

At some point recently the Font resizer has ceased to function for me, I have put it in the footer and the buttons are there but nothing happens when I click. There are no reported errors or warnings in the error console when I click.

Shouldn’t there be some link associated with these buttons? because there isn’t. The font resizer will be very useful to the old codgers like me who will ultimately use the site.

Sorry for being a pain!

CF Conrad_Farlow
Conrad_Farlow
Member

I see that you’ve changed the font resizer a little, I see the text in  the small box at the top right of the page which works for me. I really like this feature.

Conrad