Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
template tags, extra buttons, ccs
Avatar
SamBCR
Guest
Guests
Feb 23, 2012 - 5:54 am

Following with the thread...I'm trying to get the Avatar float to left by using this line:

 

<?php sp_RecentPostsTag('beforeUser=<div style="float: left;">&afterUser=</div>&avatarSize=40&topicIds=22&beforeForum=In the Forum: &afterForum= &beforeTopic=  posted:&afterDate=<hr />&itemOrder=ATF&limit=5');?>
               

And I can not get it done. You can see how it looks on the sidebar of my website here:

http://www.bikecyclingreviews.com

 

I've also tryied replacing comma by double quotes.... but still getting the same issue:

<?php sp_RecentPostsTag("beforeUser=<div style='float: left;'>&afterUser=</div>&avatarSize=40&topicIds=22&beforeForum=In the Forum: &afterForum= &beforeTopic=  posted:&afterDate=<hr />&itemOrder=ATF&limit=5");?>                 

Does anyone has had the same problem? Any tip?

Thanks, Sam

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 23, 2012 - 8:16 am

Well these are function calls not html so you can't just add anything at all in there.

To style template tags you need to use proper css directives in your Wp theme stylesheet. You can check for the class names in the code or - even better and easier - using a tool like Firebug or many of the built-in tools in todays browsers.

But for reference the class name given to the avatar is 'spAvatarTag' so you need to add the styling you want. As in

.spAvatarTag { float: left; }

for example.

andy-signature.png
YELLOW
SWORDFISH
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