Support Forum

CSS Only Theme – Customization question

TO tobbe
tobbe
Member

1. I would like to move the subscribed function/button from it’s original position to the left
of the add reply buttons.

2. I would like to remove the function bar afterwards as I have other means to get to the profile
and login out. I would like to remove “redundant” functions buttons & gravatar image) to clean
the overall site design up.

css_theme_custom2.jpg

13 Answers

New Answer

MP Mr Papa
Mr Papa
Member

this is all about theme template files… so you will need to open up the appropriate template file and move the template tags (ie function calls) around where you want them…  or delete them if you dont want them…

most of the template tags are pretty obvious, but holler if you dont understand…  these template files function just like a wp theme template file…

the thing you called the function bar will be in the spHead.php template file…  thats where the profile, subscribe, etc button are…

the add topic and add reply button are specific to views (while spHead.php is all views)…  spForumView.php will have add topic button template tag in it…  spTopicView.php will have the add topic and add reply buttons…

so you just need to familiarize yourself with the template files and do what you want with any template tags or simple php or html code…

again, holler if you have any questions…

TO tobbe
tobbe
Member

I figured it would make sense to take the css only theme and turn it into a new theme
with the name css-one-modified. However I can’t seem to get the new theme to
register in simple press.

I want to do this in order to not “screw” up the original css-only theme and if there
is an update the the css-only theme my modification won’t get lost if I update the css-only theme.

Coding isn’t one of my strengths so I’ll do my best to fix this. Any and all help is greatly
appreciated.

MP Mr Papa
Mr Papa
Member

yes, absolutely what you want to do – create your own theme… have you read the codex page on this topic:  http://codex.simple-press.com/codex/themes/theme-basics/creating-a-theme/

have a read and come on back if still having issues…

TO tobbe
tobbe
Member

Thanks, I managed to make this load up as a new theme now and I fixed
the SP head. I also wonder how I can do the following:

I run wishlist member with the Wishlist ID Card plugin.
I would like to have the “edit profile” goto the simple press
profile instead of the wordpress profiles page.’

 

Is there a specific url to the simple press profiles page
or how would that work?

 

id-card-to-sp-profile.jpg
MP Mr Papa
Mr Papa
Member

we run wishlist here, but afraid I dont know what the ID card plugin is…

you can get to anyone’s sp profile (assuming you have permission) with the link of the form:

http://yoursite.com/forum/profile/display-name/

forum of course would be your wp page slug of the forum page…

display name is the display name of the user you want to see the profile of… be sure to urlencode() the display name to handle spaces and other characters (ie yellow swordfish would become Yellow+Swordfish)…  on any wp page, you can get that with:

global $current_user;

echo $current_user->display_name

of course the echo is not really what you want…  just for reference…

TO tobbe
tobbe
Member

the idea is for the member who just logged into his or her own account would use that
link to get to his or her personal profile.

not sure what you mean with urlencode?

MP Mr Papa
Mr Papa
Member

if you want if for current user, just lop off the stuff at end…

http://yoursite.com/forum/profile/

will go to the profile of current logged in user…

TO tobbe
tobbe
Member

hmm I’m just getting “forum not found” error message when trying

http://medlem.tranahemma.nu/forum/profile/

&

http://medlem.tranahemma.nu/forum/admin/

 

etc

MP Mr Papa
Mr Papa
Member

well, obviously I cannot look since its protected… wink

is ‘forum’ the right slug? I dont know what you called the wp page for your forum…

so when in your forum, click on the profile button for yourself… what url does it go to?  that url should work for any logged in user…

TO tobbe
tobbe
Member

I did some readup on the urlencode. I see what you mean now,
I would need to use that function from within the wishlist id-plugin itself.

Unfortunately that pugin is encoded so I will need to take take this matter
up with their support.

Thanks for pointing me in the right direction and above all. Letting me know that this
is very much possible 🙂

MP Mr Papa
Mr Papa
Member

did you see post #10?  you wont need to urlencode() the display name if you always want the logged in user…  give what I said in #10 a try…

TO tobbe
tobbe
Member

Mr Papa said
well, obviously I cannot look since its protected… wink

is ‘forum’ the right slug? I dont know what you called the wp page for your forum…

so when in your forum, click on the profile button for yourself… what url does it go to?  that url should work for any logged in user…

It did work in the sense that I could grab a url to my profile, however it would only work in my case.

I got the link: http://medlem.tranahemma.nu/forum/profile/admin/

However I cannot “copy” that link and enter it as a custom widget link because then all my
members would goto my profile instead of theirs. I tried removing the admin part
at the end but that did just produce an error and didn’t work.

MP Mr Papa
Mr Papa
Member

hmmm.. that doesnt make much sense…  the last part is only need if you want to specify the profile to visit as not being your own…  certainly the profile button we provide will not include ‘admin’ as part of the url…  and without the display name at the end, it goes to the profile of the logged in user…