Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
Customizing my forum layout
Avatar
Rodrigo B Galluf
Member
Free Members
sp_UserOfflineSmall Offline
Feb 23, 2013 - 7:23 am

Hi guys!

I followed all the steps to creat my own theme, word by word, made all necessary changes, rename the necessary files, but my theme is not beeing shown at the Available Theme list.  

????

And when I got this done I would also like to change my forum language from english to portuguese (Brazil).

So I went to localisation website and downloaded a file called spa-pt_BR but I don't know where to put it. Which folder?


tks

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Avatar
Rodrigo B Galluf
Member
Free Members
sp_UserOfflineSmall Offline
Feb 23, 2013 - 8:31 am

Ok now my theme is in the list, but it looks terrible, no layout, just a bunch of words flying around,,, there is no structure.

oh lord...

how to make it look-alike a simple:press theme?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 23, 2013 - 8:36 am

sorry, what are you talking about?  your last post does not really give us much to go on...  are you saying you created your own theme and it doesnt look right???  good descriptions of the problem really do help...

a link would be useful too...

did you follow the steps here:  http://codex.simple-press.com/.....g-a-theme/

Avatar
Rodrigo B Galluf
Member
Free Members
sp_UserOfflineSmall Offline
Feb 23, 2013 - 8:54 am

When you creat your own theme it does not look like a simple:press theme, talking about the layout, how it looks, it looks terrible, you need to work in the overlay to make it looks good.

But it's ok now, I just made a copy and paste from a simple:press overlay theme and now it looks like it should. :)  

moving foward...

I still need to find where I need to put my .mo (language) file. 

this url http://codex.simple-press.com/…..alization/ does not point the exaclly folder. 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 23, 2013 - 9:20 am

that link I gave you on themes tells you that very thing - copy one of our theme to get started... and of course if you want to customize, you will need to change things...

as to localization, it does tell you where to put it...  but it does depend on which translation you are working with...

by default, the admin and front end core localizations will go in wp-content/sp-resources/forum-language/simple-press

by default, any plugin localizations will go in wp-content/sp-resources/forum-language/sp-plugins

by default any theme localizations will go in wp-content/sp-resources/forum-language/sp-themes

I say by default, because per that code page, you could have moved them elsewhere as determined on forum - integration - storage locations...

keep in mind, that you may need core, plugin an theme localizations to get your entire site translated...

Avatar
Rodrigo B Galluf
Member
Free Members
sp_UserOfflineSmall Offline
Feb 23, 2013 - 11:28 am

lol

what looks very easy and simple for ones are very foggy for others, I see this on my job everyday...

I sent .mo file to 3 different folders (trying to hit the right one) but did not work.. :(

but that's ok for now.. I'll try it again later. Forget it.

moving on

Is that a way to hide all that "forum stats" and "members stats" information showing at the bottom of the page from the users?

number of groups, number of topics, number of members, numbers of users and etc...

Is that a way to make it only appears to me (admin)?

 

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 23, 2013 - 1:28 pm

they are all done with template function calls...  so you can either remove them or make a check for sp admin... you have the power...

in the spFoot.php template file of your sp theme...  find

    # Start the 'stats' section
    # ----------------------------------------------------------------------
    sp_SectionStart('tagClass=spStatsSection', 'stats');
        sp_ForumTimeZone('tagClass=spForumTimeZone', __sp('Forum Timezone: '));
        sp_UserTimeZone('tagClass=spUserTimeZone', __sp('Your Timezone: '));

        sp_InsertBreak();

        sp_ColumnStart('tagClass=spColumnSection spLeft spOnlineStats&width=40%&height=0');
            sp_OnlineStats('tagClass=spLeft', __sp('Most Users Ever Online: '), __sp('Currently Online: '), __sp('Currently Browsing this Page: '), __sp('Guest(s)'));
            if (function_exists('sp_OnlinePageLink')) sp_OnlinePageLink('', __sp('See All Online Activity'));
            if (function_exists('sp_ListBirthdays')) sp_ListBirthdays('tagClass=spCustomTag&spLeft', __sp('Members Birthdays'), __sp('Today'), __sp('Upcoming'));
        sp_ColumnEnd();

        sp_ColumnStart('tagClass=spColumnSection spRight spTopPosterStats&width=15%&height=0');
            sp_TopPostersStats('tagClass=spRight', __sp('Top Posters: '));
        sp_ColumnEnd();

        sp_ColumnStart('tagClass=spColumnSection spRight spMembershipStats&width=20%&height=0');
            sp_MembershipStats('tagClass=spRight', __sp('Member Stats: '), __sp('Members: %COUNT%'), __sp('Guest Posters: %COUNT%'), __sp('Moderators: %COUNT%'), __sp('Admins: %COUNT%'));
        sp_ColumnEnd();

        sp_ColumnStart('tagClass=spColumnSection spRight spForumStats&width=17%&height=0');
            sp_ForumStats('tagClass=spRight', __sp('Forum Stats: '), __sp('Groups: '), __sp('Forums: '), __sp('Topics: '), __sp('Posts: '));
        sp_ColumnEnd();

        sp_InsertBreak();

        sp_NewMembers('tagClass=spLeft spNewMembers', __sp('Newest Members: '));

        sp_InsertBreak();

        sp_ModsList('tagClass=spLeft spModerators', __sp('Moderators: '));

        sp_InsertBreak();

        sp_AdminsList('tagClass=spLeft spAdministrators', __sp('Administrators: '));
    sp_SectionEnd('tagClass=spClear', 'stats');

thats your stats output...  if you want to check for admin, just wrap in

if ($spThisUser->admin) {
#stats stuff
}

and you should be good....

as to the localization, please provide more info... what .mo file? and where did you put it?  if core, did you also make the change to the wp-config.php file as the codex page says?

Avatar
Rodrigo B Galluf
Member
Free Members
sp_UserOfflineSmall Offline
Feb 23, 2013 - 3:39 pm

thanks for this code "if ($spThisUser->admin)"

awesome!

 

moving...

 

How do I manage the space between the icon and the title?

If you look up here there is a space between the "blue baloon with a paint border inside" and the "Customizing my forum layout title". 

Asking this because I add an icon for my foruns but they look very close to the forum titles. 

how to post pictures here?

tks

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 23, 2013 - 5:28 pm

why do you want to remove??? if its showing, you have rss feeds enabled... if you dont want rss, just disable the rss feeds and the buttons wont be shown...

but like all the other display stuff, its in a theme template file... just remove the elements you dont want... in this case, is spGroupView.php

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