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
Remove all icons
Avatar
phyllis crandall
Member
Free Members
sp_UserOfflineSmall Offline
Apr 11, 2013 - 8:43 am

HI - I would like to remove the icons from within the posts/threads. Would you be able to tell me how to do this?

Thank you!simple-press-remove-icons.pngImage Enlarger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 11, 2013 - 9:18 am

not sure I follow... are talking about images within posts or the little icons that appear in buttons for example... a bit confused by the use of 'within posts/threads' in your question...

assuming you really mean the icons, then that is in the control of your sp theme... almost all (if not all) display elements are controlled by your sp theme... the theme you have chosen can be altered (make your own first to stay upgrade proof) to remove the icons...

see: http://codex.simple-press.com/.....functions/

for the various template functions...

now, you said posts/threads (assume you mean topics and posts)... so lets look at topic view (list of posts)... and take the Add Reply button, for example.. you can find that in spTopicView.php template file... displayed by the function call to sp_PostNewButton()... the codex entry:

http://codex.simple-press.com/.....newbutton/

from the default theme, for example:

sp_PostNewButton('tagId=spPostNewButtonTop&tagClass=spButton spRight', __sp('Add Reply'), __sp('Add a new post in this topic'), __sp('This topic is locked'));

looking at the codex, you can see an 'icon' argument... so change to

sp_PostNewButton('tagId=spPostNewButtonTop&tagClass=spButton spRight&icon=', __sp('Add Reply'), __sp('Add a new post in this topic'), __sp('This topic is locked'));

and no more icon... just do similar for any icon you want to remove...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 11, 2013 - 10:02 am

ah... now that on the forum can see your question... the image did not show up in the email...

that is actually a group thing... so in you spGroupView.php template file of the sp theme, you would simply remove:

                                sp_ColumnStart('tagClass=spColumnSection spLeft&width=6%&height=55px');
                                    sp_ForumIndexIcon('tagClass=spRowIcon spLeft');
                                sp_ColumnEnd();

your will find a similar piece of code in spForumView.php if you want to remove it on forum view:

                                sp_ColumnStart('tagClass=spColumnSection spLeft&width=6%&height=50px');
                                    sp_TopicIndexIcon('tagClass=spRowIcon spLeft');
                                sp_ColumnEnd();

Avatar
phyllis crandall
Member
Free Members
sp_UserOfflineSmall Offline
Apr 11, 2013 - 3:00 pm

awesome - that worked; thank you!

One last thing - trying to figure out how to adjust the spacing (add more padding) in the CSS where the icon used to be, but can't find where to tweak simple-press-spacing.pngImage Enlarger(see attachment)

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 11, 2013 - 3:07 pm

couple ways...

you can tweak the css to add some padding...

or back in some of what you deleted...

                                sp_ColumnStart('tagClass=spColumnSection spLeft&width=6%&height=55px');
                                sp_ColumnEnd();

for example..  and play with the width of the empty column, 6% in this case, for some blank column width...  you can distribute the rest of the 6% to the other columns that follow if you like...

Avatar
phyllis crandall
Member
Free Members
sp_UserOfflineSmall Offline
Apr 23, 2013 - 12:20 pm

OK - I was able to add the padding in sp-plugin-styles-all.css.

However, for the life of me I cannot figure out how to remove the extra spacing in the topic index listing. It thinks the icon is still there. (see attached screen shot)

simple-press-spacing-2.pngImage Enlarger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 23, 2013 - 12:48 pm

Did you edit the sp-plugin-styles.css file??? That is a generated cache file... It will get regenerated as needed and you changes will be lost...

You need to make them in the actual SP theme css file... and be sure you have your own theme instead of editing one we supply as you will lose changes on updates... see:

http://codex.simple-press.com/.....g-a-theme/

as to the icon spacing, did you also remove the columnstart and columnend?  otherwise you are still allocating the space...

ie remove all this:

                                sp_ColumnStart('tagClass=spColumnSection spLeft&width=6%&height=55px');
                                    sp_ForumIndexIcon('tagClass=spRowIcon spLeft');
                                sp_ColumnEnd();

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: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625