January 06 2009 13:54:13
Navigation
Last Seen Users
elynOnline
starsplash< 5 mins
purefantasy< 5 mins
muscapaul00:07:16
linaspav00:10:21
inuken00:17:42
Diemux00:20:23
gregory00:21:27
Ashvinmax00:21:54
martinxp00:23:06

Guests Online: 0
Registered Members: 3,623
Newest Member: linaspav
Downloads v7
Currently popular Downloads

Professional Down... 544
Extended Profile 503
FusionBoard 4 473
Photoalbum Mass U... 470
Avatar Studio 450
HighSlide Gallery... 416
Photo in Profile 400
VArcade 1.7 388
Wap Mod 360
Who Is Online Adm... 338

Latest Downloads


Online Users Extend ... 0
Login Redirect 7
Apache Errors Mod 3
View & Delete all Co... 0
Mod "index.php + mod... 4
Comments Management 2
FB Latest Referrers ... 8
Slideshow Lightbox P... 10
RSS and Panel 11
Secure Admin Login 21
Downloads v6
Currently popular Downloads

Video Gallery 376
EXTboard 362
Extreme Theme Editor 342
Icon Package 2.0 290
Banner System v2.0.4 284
Tabbed welcome panel 281
Fuzed Shoutbox 276
Extended Profile ... 272
News.php 265
Header Banner System 221

Latest Downloads


Login Redirect 0
Mod "index.php + mod... 0
Base Games 1
Banner exchange system 0
Poll with comments a... 90
Media Streamer 5
v6.01.18 FULL 14
v6.01.16 - v6.01.17 44
v6.01.15 - v6.01.16 1
v6.01.17 - v6.01.18 8
Provider
PHPfusion-mods.net is hosted at:

110MB
Online Stats
Guests online: 6
Members online:
no members online


registered members: 3623
newest member: linaspav

user today: 3749
user online: 6
Max. onlinerecord: 43
Max. per day: 5705
user yesterday: 4842
user month: 27941
Entire users: 101724

last 24h:
























Advertisements in article footer
In this short tutorial I will show you a way to get for example adsense advertisements in your article footer. This is a good and user-friendly way of presenting your ad's.

This modification is quite general in usage and can be used on most themes, the example used in this tutorial is based on a theme called SoftMonochrome.

Example can be seen here: http://underground3k.com/ (scroll a bit down to see the ad's)



Open theme.php and search for the following part:

function render_article($subject, $article, $info) {

Find the following piece of code, this can be different per theme.

".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td></tr>";

Below add (make sure it's in the general article table)

echo "<tr><td width='100%' class='row1'><p align='center'>

*ADSENSE CODE*

</p></td></tr>";



That's it, your adsense advertisements should now be displayed in the article footer. Of course, it may need some modding to make it fit on your theme.

Some themes use double quotes ( " ) to open echo's, if that is the case the original adsense code will conflict with these quotes.

I suggest using a program like Notepad to instantly replace all double quotes ( " ) with single quotes ( ' ), this will not interfere with the adsense code in anyway.

If you run in trouble or you really don't understand the tutorial above, place a comment or open a topic on the support forum !
Comments
#1Diemux on December 02 2008 23:30:54
Test
Post Comment
Please Login to Post a Comment.
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Our Coders
Rizald 'Elyn' Maxwell
Diemux
Donate

Affiliates:
Venue

Shoutbox
You must login to post a message.

06/01/2009 13:21
Check out my Support PHP-Fusion v7 -> Mod/Infusion Request Smile

06/01/2009 10:14
@diemux - i've upload my mod.. with updates..

06/01/2009 09:57
just submit again, I will check both Smile

06/01/2009 06:21
how to update my uploaded mod here? i forgot to attached the images

06/01/2009 03:42
Mod "index.php + mod panels" doenst have a install.php as said on readme file

06/01/2009 01:00
Cheers!

05/01/2009 23:27
Bye!

05/01/2009 20:01
Helloy Bye!

05/01/2009 17:58
kkcafe : lol. yes i am

05/01/2009 17:30
owh.. elyn, are u Malaysian?

Advertiser
One-click Translation
Translate This Site

Render time: 0.22 seconds 472,103 unique visits