I seem to be having an issue with the widget. Seems to be bigger than what I can fit on my side bar and is re-arranging my sidebar. I have been trying to change the width of the widget under the template tags folder sp-RecentPosts-widget.php but no success. Any ideas. www.tncnewscentral.com
Support Forum
rearranging sidebar? what do you mean? it looks like it fits just fine to me…
you might want to style it since we dont apply any styles since impossible to guess where and how it will be used… for example, I would style to put the text to the right of the avatar… the options are almost endless with css…
If you look at my page I have this widget all the way at the bottom of the side. After the Widget there is supposed to be a Google Adsense widget but because the Forum widget is bigger than 300px it makes the adsense widget come out of its place and puts it somewhere in the footer. If I remove the Forum Widget it comes back up to where is supposed to be and all is normal on the sidebar.
ah well of course, I dont see an adsense block in m browser… 😉 if I allow them, it still looks good… I see some really wide gadget ad things in the footer… is that what you mean?
but its not bigger than 300px when I view it… and the widget itself has no size/width… it just uses the space allocated by widgets on your site… the sp widget looks identical in size to all the other widgets…
now, most of your widgets appear in a theme specific div container:
<div id=”text-32″ class=”widget widget_text”>
but not the sp widget… have you specified for the forum widget to use the same theme specific container? in the widget options the before/after stuff…
Yeah I am pretty lost here,
but not the sp widget… have you specified for the forum widget to use the same theme specific container? in the widget options the before/after stuff…
^ Not sure what you mean by that but I do not see and option for this in the widget options. Please point to where I have to go to get this right.
Thanks
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…
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.
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]
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.
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.
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.
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’]
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.
its all in post #27… sort of ![]()
[sp_recent_posts itemOrder=’AFTUD’ avatarSize=’32’]
for an avatar size of 32px… change it to what you want…