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
I am interested in the spRecentPostsWidget
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 30, 2012 - 11:43 am

sorry if not clear... what I am getting at is that all your other widgets are encased in

<div id="text-32" class="widget widget_text">

   widget stuff here

</div>

except for the forum...  how are the other widgets getting that?  are they actual widgets or is that special div entered by hand either in text widget or in the wp theme template file????

that may be the root of your issue... 

normally, the widget specification for a theme has the before widget and after widget arguments where that is specified... doesnt seem to be the case with this theme...

so my point was, if entered in text widget or theme template file, you may need to do the same with our widget if the theme widget declaration is incomplete...

Avatar
Christian Pagan
Florida
Member
Free Members
sp_UserOfflineSmall Offline
May 30, 2012 - 11:53 am

Got you, Yeah some of the Widgets are text widgets and I did put a div on there but only to center them. Most of the Widgets are part of the theme so they are already sized to 300px so that is why all the adsense stuff fits perfect. I do have a specific widget which is the app widget and that I am able to change the size so I put the size of the widget to be 300px and fits perfect if I change that than it messes up everything on the side bar like the SPForum Widget is doing and any other widgets after the Forum widget have not choice but to fall off the side bar and go to the bottom of the site.

So how can I style the widget so is at 300px or less.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 30, 2012 - 12:14 pm

again, the sp widget is coming out at 300px, just like the rest...

rather than using our widget, you might try this instead inside a text widget:

[sp_recent_posts]

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 30, 2012 - 12:15 pm

Well by default the widget is given an id of 'spRecentPostsTag' - which is applied to either a 'ul' or 'div' element depending on whether you chose to use list tags. So you should be able to control the width by styling that id.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Christian Pagan
Florida
Member
Free Members
sp_UserOfflineSmall Offline
May 30, 2012 - 12:18 pm

That seems to have worked but now I have not editing options to change how it looks or even add avatars like on the actual widget.

Avatar
Christian Pagan
Florida
Member
Free Members
sp_UserOfflineSmall Offline
May 30, 2012 - 12:31 pm

Mr Papa said
again, the sp widget is coming out at 300px, just like the rest...

rather than using our widget, you might try this instead inside a text widget:

[sp_recent_posts]

That seems to have worked but now I have not editing options to change how it looks or even add avatars like on the actual widget.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 30, 2012 - 12:33 pm

yes, but the actual is the same... here are the available options:

    parameters:
        name            description                                type            default
        ----------------------------------------------------------------------------------------
        tagId            unique id to use for div or list        text            spRecentPostsTag
        tagClass        class to be applied for styling            text            spListTag
        listClass        class to be applied to list item style    text            spListItemTag
        linkClass        class to be applied to link style        text            spLinkTag
        textClass        class to be applied to text labels        text            spTextTag
        avatarClass        class to be applied to avatar            text            spAvatarTag
        listTags        Wrap in <ul> and <li> tags                true/false        true
                        - If false a div will be used
        forumIds        comma delimited list of forum id's        optional
                        - if included results wil be filtered to just these forums
        topicIds        comma delimited list of topic id's        optional        0
                        - if included they will be used to populate the list.
        orderByGroup    order the forums by their parent group    true/false        false
        limit            How many items to show in the list        number            5
        itemOrder        see note below for usage                text            FTUD
        linkScope        see note below for usage                text            'forum'
        beforeForum        text to display before the forum title    text            'Forum: '
        afterForum        text to display after the forum title    text            '<br />'
        beforeTopic        text to display before the topic title    text            'Topic: '
        afterTopic        text to display after the topic title    text            '<br />'
        beforeUser        text to display before user                text            'By: '
        afterUser        text to display after user                text            ''
        beforeDate        text to display before date                text            ' -'
        afterDate        text to display after date                text            ''
        avatarSize        Pixel size of avatar if showing            number            25
        niceDate        Show date as 'nice' date                true/false        true
                        - If not set a normal date will display using the set format
        postTip            Include post content extract on link    true/false        true
        echo            echo content or return content            true/false        true

    itemOrder - description
    =======================
    This parameter controls both which components are displayed and also the order in which they
    are displayed. Use the following codes to construct this parameter. No spaces or other
    characters can be used:

            F    -    Displays the forum name
            T    -    Displays the Topic name
            A    -    Displays the users Avatar
            U    -    Displays the Users display name
            D    -    Displays the date of the post

    If not passed the default is FTUD - which does not include the users Avatar.

    linkScope - description
    =======================
    This parameter controls what items are made into links ('a' tags): The following options
    are available. PLEASE NOTE that the Topic will ALWAYS be formed as a link:

            forum    -    Display the Forum name as a link as well as the Topic
            all        -    Make the entire entry a link to the Topic

    If not passed the default is forum.

    NOTES:    True must be expressed as a 1 and False as a zero
            All text items can include allowed html

thats the same options as the widget... so to add avatars,

[sp_recent_posts itemOrder='AFTUD']

Avatar
Christian Pagan
Florida
Member
Free Members
sp_UserOfflineSmall Offline
May 30, 2012 - 12:46 pm

Ok this is great, I have added the avatars but cannot change the size of the avatars, how can that be done. I'm sorry believe me I am trying myself to figure the code and trying to add what little bit I know but just cant get it to work.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 30, 2012 - 12:59 pm

its all in post #27...  sort of wink

[sp_recent_posts itemOrder='AFTUD' avatarSize='32']

for an avatar size of 32px... change it to what you want...

Avatar
Christian Pagan
Florida
Member
Free Members
sp_UserOfflineSmall Offline
May 30, 2012 - 1:06 pm

I have been trying that and does not work, won't change it.

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