Support Forum

a visual Notes and usability

YA yair
yair
Member

the Text below to files uploader is too long
I want to shorten it to two lines of
1. File types allowed
2. Maximum file size

And decrease the font size

the add Reply Button & And the Add topic button line

Should be larger than other buttons lines

25 Answers

New Answer

MP Mr Papa
Mr Papa
Member

if you want to change the uploader info, it has a filter so you can customize how you like… the filter is sph_uploader_info

you can change the font size with css… change font size in: #spMainContainer #sp_uploader_info

same for add topic and add post… just tweak the css to match what you want…. #spPostNewButtonTop, #spPostNewButtonTop, #spPostNewTopicButtonBottom and #spPostNewButtonBottom

YA yair
yair
Member

can you tell me please the path & the Name of the files? 

MP Mr Papa
Mr Papa
Member

to do what?  use a filter… you will want to add the filter and change it how you want…  something like:

add_filter('sph_uploader_info', 'my_uploader_info');
function my_uploader_info($content) {
 # add your code here to affect the uploader info ouput
 return $out;
}

if you need more help on how standard wp api and hooks work, see: http://codex.wordpress.org/Plugin_API

as to the css, you put it in YOUR sp theme and change accordingly…

YA yair
yair
Member

Mr Papa said
if you want to change the uploader info, it has a filter so you can customize how you like… the filter is sph_uploader_info

you can change the font size with css… change font size in: #spMainContainer #sp_uploader_info

same for add topic and add post… just tweak the css to match what you want…. #spPostNewButtonTop, #spPostNewButtonTop, #spPostNewTopicButtonBottom and #spPostNewButtonBottom

Mr Papa

Please

When you talk about a file – please specify the file name and path of the file

 

So, On which file you are talking about when you say

“for add topic and add post… just tweak the css to match what you want…. #spPostNewButtonTop, #spPostNewButtonTop, #spPostNewTopicButtonBottom and #spPostNewButtonBottom”

YS Yellow Swordfish
Yellow Swordfish
Member

Custom code, filters etc., are probably best placed in the SP theme’s spFunctions.php file (in the /templates folder).

CSS styles for core are in the theme’s main CSS file the name of which depends upon what theme you are using.

You can get to both for editing in the SP theme dfitor.

YA yair
yair
Member

please Please specify me what to do in spFunctions.php file

MP Mr Papa
Mr Papa
Member

you keep missing a key point when you ask for a path… we DO NOT know… you set it up on your server and its your sp theme…   and when you ask for a line number, it is going to be specific to the theme you are using and most certainly not universal…

but themes are organized in common manner as shown here: http://codex.simple-press.com/codex/themes/theme-basics/using-themes/

within the your sp theme, you have an images folder… most of the theme icons and images will be here

you have a styles folder.. here is where the main css file for the theme is… within there is an overlays folder which will contain specific css customizations for a specifc overlay (colors) if you are using one…

you have a template files folder… when we talk about modifying template files, look in this folder for the file we are very specific about…

as to the spFunctions.php change, it can go just about anywhere, but that was just a shell…  you need to write the code to change the uploader info as you want… we dont know what you want to do…  the current output text is passed to the filter… use php code to alter it as you want, then return it and you will get it displayed like you want…  this is how the standard wp api for plugins works…

we cannot completely customize your them for you in the support forum… we can guide you and give you pointers on where and what to change, but in the end, the final customization beyond the selectable options is up to you…  if that is too much work in unfamiliar territory, we do offer a theme customization service – see the banner in the sidebar…

YA yair
yair
Member

OK – Anyway

Try to understand me, I don’t know so much about the code

let’s talk about the “Default” theme

Where can I find the line for the ” add Reply” and “New Topic” buttons
I want to highlight that they would be large
* I could not find it with Firebug

 

MP Mr Papa
Mr Papa
Member

you can find the display code, ie the rendering via template function, in spTopicView.php… in your theme, the template_files directory…

but you probably will want to change css to affect the look… that will be in your theme, styles directory… name will depend on your theme… main css for buttons is controlled by

#spMainContainer a.spButton

but that will affect all… I gave you an ID so you could affect just the Add Reply button… you will have to add styles for

#spMainContainer #spPostNewButtonBottom

and

#spMainContainer #spPostNewButtonBottom

YA yair
yair
Member

OK,
I appreciate your answer but I can not figure out what to do
And I don wan to bother you more
So I suggest you make These changes in the following versions
“add reply” and “New Topic” – must be more Larger than others and prominent

 

border: 1px;

font-size: 100%;

font-weight: bold;

TNX

MP Mr Papa
Mr Papa
Member

you pretty much had it… just need to put it in your SP theme… like this:

#spPostNewButtonTop, 
#spPostNewButtonBottom {
   font-size:100%;
   font-weight:bold;
}

you can add the border too, but there is already one there…

** editted to fix duplicate Bottom… one should be Top and one Bottom

 

MP Mr Papa
Mr Papa
Member

have repeated this multiple times… its YOUR sp theme… I do not know what that is…

but, for example, if you were using our default theme (which you would NOT want to modify), AND you were using the default theme storage location at install (anyone can move them)… it would be:

wp-content/sp-resources/forum-themes/default/styles/default.php