SimplePortal

Customization => Custom Coding => Topic started by: Nabil on December 28, 2008, 09:54:15 AM

Title: Problem with recent posts PAGE
Post by: Nabil on December 28, 2008, 09:54:15 AM
Hi ,
when I click on the link 'view the most recent posts' on my smf 1.1.7 with simple portal the recent posts page will be displayed wrongly , the length of the page is exeeding the limits of the template , this wrong display happens only with IE and FF not with opera , so how to fix this problem ??
Title: Re: Problem with recent posts PAGE
Post by: Burke Knight on December 28, 2008, 10:46:42 AM
That sounds more like a theme issue.
SP only calls up the default recent posts page.
The issue you are having, would be happening if you accessed that page in any way.

I'd ask this of the theme author in their support thread for the theme at the SMF site.
Title: Re: Problem with recent posts PAGE
Post by: Nabil on December 28, 2008, 11:13:02 AM
I have found something about this problem , it happens only
with a post with CODE (writing something in a Code block)

you can test the Code below, just write it in a the Code Area and see how it would look like , in the Recent Posts Page

Code: [Select]
<?php
if (ereg("Firefox" $_SERVER["HTTP_USER_AGENT"])){ echo 'FIREFOX'; } elseif 
(
ereg("Opera" $_SERVER["HTTP_USER_AGENT"])){ echo 'Opera'; } elseif ( ereg("IE" $_SERVER["HTTP_USER_AGENT"])){ echo 'Internet Explorer'; } else { echo 'Unknown Browser'; }; 
?>


Title: Re: Problem with recent posts PAGE
Post by: Nabil on December 29, 2008, 01:52:55 AM
The problem is Solved
that problem HAPPENS ONLY when someone writes a Code in the Code Area ... BUT Not any Code , a Code with LOOOOOOOONG Line like the One givin above .. This will Let the Template's Width to exceed the Side limits of the Template.

my Solution is :
in style.css in the code area I have changed :
width:90%; to width: 700px;
SimplePortal 2.3.8 © 2008-2024, SimplePortal