Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Themes ⇒ PH2_Blue broke for no reason.


PH2_Blue broke for no reason.
Announce themes that you have created, or ask questions about how to create/modify a theme in 9.x. Includes the Requests sub-forum.
Go to page Previous  1, 2
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  Themes

View previous topic :: View next topic  
Author Message
InspectorClueNo
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 26, 2008
Posts: 211

PostPosted: Tue Jul 20, 2010 8:32 am
Post subject: Re: PH2_Blue broke for no reason.

A while ago I was using ad blocks for FF to help my slow internet connection ... but page load was slower due cpu usage then loading ads. Decided to get rid of it all together :D.

Thanks for replying.


InspectorClueNo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
none available
Back to top
View user's profile Visit poster's website
DazzaJay
Nice poster
Nice poster

Offline Offline
Joined: Sep 02, 2006
Posts: 111
Location: Shepparton, Victoria, Australia
PostPosted: Tue Jul 20, 2010 12:31 pm
Post subject: Re: PH2_Blue broke for no reason.

greenday2k wrote:
Guess, open header.html of
themes/hp2_blue/templates/header.html

and find:
style="border: 1px solid #000000;"

and replace with
class="table_border"

then open:
themes/hp2_blue/style/style.css

and add:
.table_border {border: 1px solid #000000;}

And test.


Also, Easy list is enough for blocking ads.

that got it, however one part still doesn't appear, the News area.

I used an app called "windows Grep" to search all files in ph2_blue for style="border: 1px solid #000000;"
but it only found it in the header.
any other ideas what I would be looking for to get News to appear also? (Yes, i know absolutley nothing about PHP HTML CSS and all that, most of the time i guess my way thru, or use evil apps like FrontPage to make HTML code) as the news on the front page seems to be the only part not working now.

_________________


DazzaJay's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
DebianLenny / Apache2.2.9 / MySQL5.0.51a-24+lenny3-log / PHP5.2.6-1+lenny8 / Dragonfly 9.2.1
Back to top
View user's profile Visit poster's website
DazzaJay
Nice poster
Nice poster

Offline Offline
Joined: Sep 02, 2006
Posts: 111
Location: Shepparton, Victoria, Australia
PostPosted: Mon Aug 02, 2010 6:10 pm
Post subject: Re: PH2_Blue broke for no reason.

Thanks to greenday2k I managed to find everything and get it all running.
(turns out the line wasn't in the same order in the news file, and that's why grep couldn't find it)

Either way, for anyone wanting to update the PH2_Blue theme ( and also PH2_Final ) on their site, so their site can still be visible by people that use ad blockers, here is some easy and simple instructions on how to adjust the code to get around the Rogue ad-blocking rule.

Code::
Open: \PH2_Blue\template\header.html

Find: <table style="border: 1px solid #000000;" align="center" cellspacing="0" cellpadding="0" border="0" width="100%">
(Should be around line 12)

Replace with: <table class="table_border" align="center" cellspacing="0" cellpadding="0" border="0" width="100%">

Save and Close.


Open: \PH2_New\template\news\index.html

Find: <table width="100%" border="0" cellpadding="0" cellspacing="0" style="border: 1px solid #444444;">
(Should be around Line 20)

Replace with: <table class="news_table_border" cellspacing="0" cellpadding="0" border="0" width="100%">

Save and Close.


Open: \PH2_Blue\style\style.css

Find: 
/* --------------------------------------------------
                   CLASS DEFINITIONS
   -------------------------------------------------- */

Add After: 
.table_border { border: 1px solid #000000 }
.news_table_border { border: 1px solid #444444 }

Save and Close.

Clear the sites Cache and reload the page and it should look exactly the same as before, just now it wont be blocked by a Rogue ad filter.

Thanks again to greenday2k, for pointing me in the right direction to get this fixed!

_________________


DazzaJay's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
DebianLenny / Apache2.2.9 / MySQL5.0.51a-24+lenny3-log / PHP5.2.6-1+lenny8 / Dragonfly 9.2.1
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ⇒  Themes
Page 2 of 2
All times are GMT
Go to page Previous  1, 2



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

pročitaj još...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy