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
Using themes
Avatar
fizz
Member
Free Members
sp_UserOfflineSmall Offline
Jul 9, 2011 - 12:54 am

Fizz:

I have a general question about the themes. I'm not overly sure how to activate them, I'm also having a hard time understanding which files link into each other. I understand that you have a general file which then hooks into several other files to get colors and such, but is there an alternative method which you can just use a straight CSS file. I'm okay with PHP, but I'm far stronger with CSS overall in general.

The only reason I ask is because I'm a little stumped right now, I've made next to no progress as everything I seem to alter doesn't seem to make any different to the overall appearance of the forum.

Mr Papa:

after this pm, please ask questions like this in the 5.0 themes forum... any answers and discussion may help others...  have you read the 5.0 forums topics for getting started with themes??

you select the theme you want on forum - themes - available themes

you dont really have to know much php to get around themes... generally they work just like wp themes... you have a bunch of template tags that you call to display forum elements...  there is a main css file (in this case its really a .php extension, but its 99% css) that you can edit to change stuff...  overlays are just an easy way to change a preset number of elements to affect colors, fonts, borders, etc... but the layout (forum elements displayed) stays the same...

dont want to make this too long because as I said would rather talk in the forum than pm... but...

just like wp we have a template hierarchy...  so wp has header.php, index.php, single.php, page.php, etc... we have spHead, spFoot, spGroupView, spForumView, etc...  basically for all the different 'views' or pages of the forum there is a different standard template...  spGroupView is the template that shows the main forum group view or the page with the list of groups and forums... spForumView is the template file that shows the forum view, that is the page with list of forums and topics...  and so forth..

now those are just basic templates... just like wp, you can create your own template files or include others or just plain write whatever php you want...

have a look in forum-themes/default/template-files to see some that we have with the default theme...

the css file will be in forum-themes/default/styles/default.php...  again, its basically just a css file but in php so we can do a bit of php code...  if you are creating your own theme, you can certainly have a .css file instead of a .php file...  as discussed in the getting started with themes topic in the 5.0 themes folder, you just specify what the stylesheet file is in the spTheme.txt file... again, see the default theme example...

if you want to see what template tags are available to be called look in plugins/simple-press/forum/content...  again, its organized mostly by the page view type... a file of template tags based on the pageview type...

now, almost every template tag has a bunch of default ids or classes applied to the display elements... but when you call the template tag, you can usually specific your own ids and classes and then style them in your css file...  or just use the default ids and classes and style them yourself...

-----

I've had a little look around but I can't seem to find the forum/theme menu. Am I the only one who isn't seeing this?, if so I would just be my luck.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 9, 2011 - 1:07 am

see image below...

Image Enlarger

Avatar
fizz
Member
Free Members
sp_UserOfflineSmall Offline
Jul 9, 2011 - 1:23 am

See I don't even have that tab :|, gah, I may as well bang my head against the wall. I'm seriously not having any luck with this at all.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 9, 2011 - 1:27 am

do you have the admins panel?  forum - admins - manage admins... make sure your user has the manage themes capability

Avatar
fizz
Member
Free Members
sp_UserOfflineSmall Offline
Jul 9, 2011 - 8:32 am

Well don't I look stupid :P, thanks for pointing that out. To stop any confusion through, would it be possible to alter that to active for admins?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 9, 2011 - 10:56 am

actually, I appreciate the topic...  you just pointed out a flaw in our install script...

for upgrades, we assigned that capability to the admin doing the upgrade... but looks like we forgot the fresh install case...

so, sorry, will get that fixed up...

Avatar
fizz
Member
Free Members
sp_UserOfflineSmall Offline
Jul 11, 2011 - 9:05 am

Not a problem :), always happy to find things that. I thought I was going crazy looking for things that weren't there lol.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
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