EzPortal - Portal Software for Forums

EzPortal - Made to Fit Your SMF Forum - Glad You Found Us!
+- +-

UserBox

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Recent Posts

New built in translations for six langauges! by EzPortal
March 26, 2024, 11:15:32 pm

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Re: Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 02:09:24 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:55:53 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 01:47:42 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:34:07 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 12:20:17 pm

+- HTML Menu


Sample HTML Block Usage - You May Custom Code it, as needed!

Recent Topics ezBlock

New built in translations for six langauges! by EzPortal
March 26, 2024, 11:15:32 pm

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Where is the facebook button color? by EzPortal
February 28, 2023, 06:45:09 pm

Display on Mobile - SMF 2.1.3 and EZ 5.5.2 by BugginIn
December 29, 2022, 04:07:13 pm

Blocks Help by Riggs1973
November 20, 2022, 12:59:30 pm

Surface ol lite theme release Free! by Steffen K.
November 18, 2022, 03:57:24 am

Undefined index: href by EzPortal
October 04, 2022, 08:49:59 pm

SMF-ezportal_column_5.cache): failed to open stream: No such file or directory by EzPortal
June 04, 2022, 11:40:13 am

Arcade block error: failed to open stream: No such file or directory by Shades
May 20, 2022, 02:47:13 pm

Author Topic: PHP BLock - include style  (Read 16859 times)

0 Members and 2 Guests are viewing this topic.

Offline DenDen66

  • Newbie
  • *
  • Posts: 46
  • Karma: 0
PHP BLock - include style
« on: June 30, 2016, 11:55:59 am »
Hi, Is there a way to include a:

  • CSS styles or a
  • CSS stlye sheet
in a php block?

If so, how should I include it?

My php block starts like this:

Code: [Select]
if(isset($_POST['language']) && $_POST['language'] == 'french-utf8' || $_SESSION['language'] == 'french-utf8'){
echo '

Thanks


Offline DenDen66

  • Newbie
  • *
  • Posts: 46
  • Karma: 0
Re: PHP BLock - include style
« Reply #1 on: July 03, 2016, 07:43:18 am »
Any one can help me out on this? :-(

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1299
  • Karma: 67
Re: PHP BLock - include style
« Reply #2 on: July 03, 2016, 08:14:50 am »
You can just includethe html and echo it out with code to show it
examples
http://www.w3schools.com/css/css_howto.asp
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

Offline DenDen66

  • Newbie
  • *
  • Posts: 46
  • Karma: 0
Re: PHP BLock - include style
« Reply #3 on: July 03, 2016, 10:26:06 am »
Thanks for your response. I already do this. However it is a long text with a lot of formatting so using this approach is very time consuming. Since I have a lot of text that varies depending on the language used, I want to find a way to include some styling.


Offline DenDen66

  • Newbie
  • *
  • Posts: 46
  • Karma: 0
Re: PHP BLock - include style
« Reply #4 on: July 03, 2016, 12:01:02 pm »
Could I use Page Manager to create a PHP page that would show the text depending on the language, like I did with the PHP block, and include somehow a CSS style sheet?

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
7652 Views
Last post December 17, 2008, 07:10:57 pm
by EzPortal
8 Replies
12261 Views
Last post October 04, 2009, 08:50:16 am
by EzPortal
1 Replies
6982 Views
Last post June 22, 2014, 06:04:46 pm
by Maxx
2 Replies
6794 Views
Last post September 30, 2014, 10:24:54 pm
by EzPortal
7 Replies
16256 Views
Last post March 10, 2015, 05:17:24 pm
by Maxx

+-SMF Gallery

Quick Menu


Powered by EzPortal