TJWI  

Go Back   TJWI > Forum Discussion > TJWI: Releases
Notices

Test Below Navbar
TJWI
Your Donation Will Be Used To Pay For our ever increasing bandwidth costs, our hosting Service, domain registration, software licensing fees, and maintenance costs
We have received a total of $0 in donations towards our goal of $100
0% of our goal has been reached
Donate Now
Reply
 
LinkBack Thread Tools Display Modes
Import adsense variables from existing themes
Old
  (#1 (permalink))
Administrator
Points: 2,911, Level: 1 Points: 2,911, Level: 1 Points: 2,911, Level: 1
Activity: 100% Activity: 100% Activity: 100%
twhiting9275 is infamous around these parts
 
twhiting9275's Avatar
 
Status: Offline
Posts: 167
Thanks: 1
Thanked 3 Times in 3 Posts
Cash: 86.43
Donate
Blog Entries: 4
Join Date: Dec 2007
Location: Cornfield, Iowa
Default Import adsense variables from existing themes - 09-01-2008, 10:59 AM

This release is a pretty straightforward one.

What this release does is go through your theme directory, find the most appropriate value for adsense colors (background, text, url, border, link), and inserts them into your mf_admin database automatically.

Quote:
Installation Instructions
You don't need to be a rocket scientist to install this, here's the basic howto.

Step 1:
Upload the two files in this to your forum root. This will be public_html, usually.

Step 2:
Login to your admin control panel (yourdomain/mf_admin)

Step 3:
Create a new template (go to styles->manage templates , at the bottom , click on add a new template). Call it 'theme'
In this 'theme' template, you need one line only:

{$themelang}

Step 4:
Go to yourforum/css.php . This will automatically import ALL theme variables for themes which do NOT have a border_color in them already. I chose border_color because it's the most commonly forgotten.

Step 5 (optional):
Browse the forum in your theme(s). This will verify that everything got imported correctly. Occasionally, themes will put out whacked out variables for css, or the script has to reach waaaay down there to pull a 'background' theme out, so it may not be ideal.

This is the best that can be done through automation, really, and it IS a lot better than doing it manually, trust me!

A thanks would be nice. Don't forget where you actually got the script from, hrrm?
Redistribution in ANY form is prohibited. You may redistribute the cssparser.php file, but NOT my css.php file, no matter how many changes you have made to it.
Attached Files
File Type: zip css parser.zip (4.1 KB, 1 views)


Linux Tech Networks, Quality, affordable Linux Systems Administration
E-Mail: [email address]
 Send a message via ICQ to twhiting9275 Send a message via Yahoo to twhiting9275 Send a message via AIM to twhiting9275 Send a message via MSN to twhiting9275  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to twhiting9275 For This Useful Post:
121212 (10-28-2008)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SMF] Did someone say THEMES? twhiting9275 Theme Discussion 2 08-31-2008 09:23 AM



Powered by vBulletin®
Copyright © Jelsoft Enterprises Ltd.

Managed by Linux Tech Networks and VB Development