Introduction | Breaking News | General Discussion | Whats On Your Mind?| My School | Campus Gist | My Career | Grants & Scholarships | Study Abroad | Student Projects | Examination Bodies | Books/Literature/Writing | Words Of Wisdom | NYSC Press Board | Self Development | Study Class Q&A | Politics | Student Travel | Religion

FB Tips On Pc's| Modems | Antivirus | Technology Market | Automobiles| Mobile Phones, | FB Tips On Phones | My Computer | Programming | Webmasters | Celebrities | Jokes & Funny Stuff | Games | Movies | Football | Other Sporting Activities | General Health & Fitness | Sexual Health | Romance | Advertising| Automobiles |

Starting an online business | Real Estate | Banking And Insurance | E-currencies | Administrative Jobs | Banking Jobs | ICT Jobs | Engineering Jobs | Law Jobs | Medical Jobs | Hotels Jobs | Vacancies | Unclassified Jobs | OverSea Jobs | SCAM DESK | Business And Related issues

Author Topic: how can i remove simple portal side blocks (right and left panel) from certain theme?  (Read 1530 times)

0 Members and 1 Guest are viewing this topic.

Offline mono247

  • Newbie
  • *
  • Posts: 5
  • Country: 00
  • Karma: +0/-0
please senior friends, i need your help on removing simple portal side blocks (left and right panel) without it affecting other themes. I have a mobile theme and the portal is displaying fully on it, i just need the news board only. Thank you for your time and help.



All Student Forum


Offline mfoniso

  • Administrator
  • Hero Member
  • *****
  • Posts: 1951
  • Country: ng
  • Karma: +0/-0
  • Gender: Male
    • Play Lsit Hub
To do this, you need to make changes in your Subs-Portal.php file, this is located in the public_html/Sources/Subs-Portal.php

On this file look for this code bellow
Code: [Select]
// Load the headers if necessary.
Then replace it with this code
Code: [Select]
if (in_array($settings['theme_id'], array(1, 2, 3)))
$modSettings['showleft'] = $modSettings['showright'] = false;

// Load the headers if necessary.

Note: You will need to specify the IDs of the theme that you want the side blocks to be disabled in. You can see in the above code the ids are specified as 1, 2, 3. you will need o change it to that of your mobile theme and separate each by commas.

Let me know if this worked for you.
Please do not PM me questions, ask all your questions in the forum, for others to learn from.

Offline mono247

  • Newbie
  • *
  • Posts: 5
  • Country: 00
  • Karma: +0/-0
@Mfoniso, i am surprised with your quick reply, i asked this question on smf and the portal page none could even respond. Thank you very much! I'll try this and expect my feedback on this. Be blessed!

All Student Forum


Offline mfoniso

  • Administrator
  • Hero Member
  • *****
  • Posts: 1951
  • Country: ng
  • Karma: +0/-0
  • Gender: Male
    • Play Lsit Hub
You are welcome, i will be glad to read from you again and to know if you were able to get it working.
Please do not PM me questions, ask all your questions in the forum, for others to learn from.

Offline mono247

  • Newbie
  • *
  • Posts: 5
  • Country: 00
  • Karma: +0/-0
wow! It's working! Thank you very very much. God bless you in Abundance.

All Student Forum


Offline mfoniso

  • Administrator
  • Hero Member
  • *****
  • Posts: 1951
  • Country: ng
  • Karma: +0/-0
  • Gender: Male
    • Play Lsit Hub
Thanks and welcome to ASF,
I'm glad I could be of help to you :be happy:
If you have any question relating to any other issue, please feel free to drop by!
« Last Edit: January 06, 2014, 12:08:35 AM by mfoniso »
Please do not PM me questions, ask all your questions in the forum, for others to learn from.

gurupreet

  • Guest
Thank you very much :)

Offline mfoniso

  • Administrator
  • Hero Member
  • *****
  • Posts: 1951
  • Country: ng
  • Karma: +0/-0
  • Gender: Male
    • Play Lsit Hub
You are welcome,
Please do not PM me questions, ask all your questions in the forum, for others to learn from.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
30 minus 20 = ?:
What is the last 3 leters of the word 'Google':

Related Topics

  Subject / Started by Replies Last post
0 Replies
521 Views
Last post April 23, 2013, 07:00:26 PM
by debby
0 Replies
394 Views
Last post April 27, 2013, 10:51:05 AM
by community
4 Replies
1457 Views
Last post January 03, 2014, 10:16:51 AM
by mfoniso
0 Replies
1485 Views
Last post September 05, 2013, 12:21:32 PM
by jaylindunstan
0 Replies
2886 Views
Last post January 29, 2014, 01:55:39 PM
by mfoniso