Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Resize text plug in - er how does it work
Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jul 25, 2011 - 4:13 pm

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 🙂

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 25, 2011 - 9:04 pm

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...

Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jul 25, 2011 - 9:46 pm

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 25, 2011 - 9:58 pm

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...

Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jul 28, 2011 - 4:41 pm

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

Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jul 28, 2011 - 5:36 pm

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

 

Avatar
Lee H
Coastal New England (USA)
Member
Free Members
sp_UserOfflineSmall Offline
Jul 28, 2011 - 7:21 pm

@Conrad...

Paste your code.

Highlight it.

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

Click and choose formatting.

Done. [Image Can Not Be Found]

Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jul 28, 2011 - 8:13 pm

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

Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jul 28, 2011 - 8:20 pm

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

 

<?php

 

Nah bedtime!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 28, 2011 - 8:59 pm

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;
}
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625