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
Left Column Increase Width
Avatar
FidoSysop
Clearwater Florida
Member

VIP
sp_UserOfflineSmall Offline
May 26, 2012 - 8:51 am

Greetings.. smile

I am working on a site with a one column simple press page.

I was looking in the theme editor at the css and default files but didn't notice where the left column width settings were. Just want to widen the left column about 20 pixels or so.

Simple Press is working great for me. Received a few comments about what board software it was and sent em over here.

This site is getting some decent traffic.. Just fiddling with the theme and sp.wink

Thanks for all your help.

  • Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
May 26, 2012 - 9:28 am

What you would do is change the width in the templates file for a particular view.

For example, If you are using the default theme and want to change the width of the left column of the topic view you would edit the spTopicView.php file.

In it you would see:

# Column 1 of the post row
# ----------------------------------------------------------------------
sp_ColumnStart('tagClass=spUserSection spLeft&width=15%&height=50px');

and

# Column 2 of the post row
# ----------------------------------------------------------------------
sp_ColumnStart('tagClass=spPostSection spRight&width=84%');

You could add a couple of percent to the 1st row (the left one). Where it says 'width=15%' and then subtract the same difference from the column 2 right side.

If you have not done so yet we recommend you create your own SP theme. That way future updates don't overwrite your changes.

Avatar
FidoSysop
Clearwater Florida
Member

VIP
sp_UserOfflineSmall Offline
May 26, 2012 - 12:32 pm

Thanks Brandon.. smile

Another quick question. I want to add the Google language translation widget code to the forum. Other than putting it on the forum page itself, is there a way to put in the sp header or elsewhere where a guest from another country can translate the pages?

  • Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 26, 2012 - 1:16 pm

How do you call/instantiate it? IS there a standard function to call or a shortcode?

andy-signature.png
YELLOW
SWORDFISH
Avatar
FidoSysop
Clearwater Florida
Member

VIP
sp_UserOfflineSmall Offline
May 26, 2012 - 3:53 pm

It's just a small code snippet. I have it in a text widget on the blog, but don't want a sidebar on the forum page.

Don't see how you guys paste code so neatly, hope this is OK.

<div id="google_translate_element"></div><script>
function googleTranslateElementInit() {
  new google.translate.TranslateElement({
    pageLanguage: 'en'
  }, 'google_translate_element');
}
</script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

  • Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 26, 2012 - 5:51 pm

find where you do want it and add it to one of your sp page templates...  if you want it on every forum page, I would suggest somewhere in spHead.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