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

ezPortal 5.0 Released by EzPortal
January 23, 2021, 11:44:59 am

Re: How to remove the SMF menu on top of the portal by VSD
November 04, 2020, 11:02:52 pm

Re: How to remove the SMF menu on top of the portal by EzPortal
November 04, 2020, 09:29:10 pm

Re: How to remove the SMF menu on top of the portal by VSD
November 04, 2020, 08:17:14 pm

Re: How to remove the SMF menu on top of the portal by EzPortal
November 04, 2020, 07:57:05 pm

How to remove the SMF menu on top of the portal by VSD
November 04, 2020, 07:43:18 pm

Minor Update for SMF 2.1.x by EzPortal
October 18, 2020, 09:33:09 am

Re: EzPortal unable to be seen by user with primary custom usergroup by EzPortal
October 12, 2020, 07:55:08 am

+- HTML Menu


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

Recent Topics ezBlock

ezPortal 5.0 Released by EzPortal
January 23, 2021, 11:44:59 am

How to remove the SMF menu on top of the portal by VSD
November 04, 2020, 11:02:52 pm

Minor Update for SMF 2.1.x by EzPortal
October 18, 2020, 09:33:09 am

EzPortal unable to be seen by user with primary custom usergroup by EzPortal
October 12, 2020, 07:55:08 am

Show Likes mod by NickT
July 10, 2020, 12:09:44 pm

ezPortal inbuilt module downloaders not working. by EzPortal
March 26, 2020, 08:19:48 am

Recent Topic Ezblock randomly showing "New" message indicator by EzPortal
January 14, 2020, 10:17:10 pm

Block hiding issue on smf 2.1 mobile devices by EzPortal
January 07, 2020, 08:21:08 am

Install error. Duplicate column name 'metatags' by EzPortal
January 06, 2020, 03:52:03 pm

ezPortal 4.5.5 now with PHP 7.2/7.3 support by EzPortal
December 30, 2019, 04:18:18 pm

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

0 Members and 1 Guest are viewing this topic.

Offline DenDen66

  • Newbie
  • *
  • Posts: 45
  • 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: 45
  • 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: 1230
  • Karma: 66
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: 45
  • 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: 45
  • 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
8 Replies
8671 Views
Last post October 04, 2009, 08:50:16 am
by EzPortal
8 Replies
10901 Views
Last post September 22, 2015, 01:09:15 pm
by EzPortal
1 Replies
4662 Views
Last post June 22, 2014, 06:04:46 pm
by Maxx
2 Replies
4076 Views
Last post September 30, 2014, 10:24:54 pm
by EzPortal
7 Replies
12368 Views
Last post March 10, 2015, 05:17:24 pm
by Maxx

+-SMF Gallery

Quick Menu



Members Online

35 Guests, 0 Users
Powered by EzPortal