Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard Spread FireBoard!
how can I integrte googleads insde the frst post? (1 viewing) (1) Guest
Go to bottom Favoured: 22
TOPIC: how can I integrte googleads insde the frst post?
#1065
how can I integrte googleads insde the frst post? 1 Year, 5 Months ago  
First of all thanks for the component which is really the "BEST OF JOOMLA!"

my question is that how can I integrate the google ads inside the first posts of each thread? or are there any easy way to put some ads somewhere in the forum? Thanks very much
tedmiller (User)
Junior Boarder
Posts: 30
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
imzama a_11m
 
The administrator has disabled public write access.  
#1115
Re:how can I integrte googleads insde the frst pos 1 Year, 5 Months ago  
tedmiller wrote:
First of all thanks for the component which is really the "BEST OF JOOMLA!"

my question is that how can I integrate the google ads inside the first posts of each thread? or are there any easy way to put some ads somewhere in the forum? Thanks very much


Ok I added new module pozitions for next release.

Can you see bottom of the first message has a module.

i added 4 module pozitions.
fb_msg_t
fb_msg_1 -- this is for after first post
fb_msg_2 -- this is for after second post
fb_msg_b

Begin moderator edit.
As you can see this thread is VERY old. It is NO LONGER NECESSARY TO MODIFY ANY CODE!!! Go to your joomla admin template module positions.
Add
fb_msg_t
fb_msg_1
fb_msg_2
fb_msg_b

Than asign your joomla modules .

THAT'S IT!!! Read the remainder of this thread and risk confusing yourself.

End moderator edit.
-------------------------------------
message.php
Add this code


[code:1]
























[/code:1]

BEFORE

[code:1]
--------------------------------------

// Legend to the variables used

// --------------------------------------------------------------
[/code:1]



AND

view.php

Find "$k=0;" on view.php add after "$mmm = 0;"

[code:1]

$k=0;
$mmm = 0;

[/code:1]

Find "$k = 1 - $k;" on view.php add after "$mmm ++;"
[code:1]

$k = 1 - $k;
$mmm ++;

[/code:1]


AND LAST STEP:

Go to your joomla admin template module pozitions.
Add
fb_msg_t
fb_msg_1
fb_msg_2
fb_msg_b

Than asign your joomla modules .


I hope you will like it :)

Post edited by: greatpixels, at: 2007/04/21 22:34
greatpixels (Admin)
BoJ Team
Moderator
Posts: 456
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Best of Joomla! Location: USA Birthdate: 1978-10-31
Logged Logged
 
Last Edit: 2008/01/06 22:55 By grumblemarc.
 
Project Manager : Lead Developer
 
The administrator has disabled public write access.  
#1292
Re:how can I integrte googleads insde the frst pos 1 Year, 5 Months ago  
I've been looking for this a long time. Great!

Only one problem. I can't get it to work...

I use default_gray template and inside that folder there are no message.php or view.php so I just assumed I should use the ones in the default folder, but no luck after adding the code. No ads displayed...

I have assisgne modules positions and published them, nothing.

What am I doing wrong??
magnus (User)
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#1296
Re:how can I integrte googleads insde the frst pos 1 Year, 5 Months ago  
Tested the other module positions now and fb_msg_t and fb_msg_b are working but they display the ad after every post. fb_msg_1 is the one that should display one ad after the very first post, right? But this is not working on my site. Not fb_msg_2 either...
magnus (User)
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#1304
Re:how can I integrte googleads insde the frst pos 1 Year, 5 Months ago  
Got it now

There were a typo in the code.

Look for fb_msg1 and fb_msg2, should be fb_msg_1 and fb_msg_2.

Working just excellent!
magnus (User)
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#1313
Re:how can I integrte googleads insde the frst pos 1 Year, 5 Months ago  
magnus wrote:
I've been looking for this a long time. Great!

Only one problem. I can't get it to work...

I use default_gray template and inside that folder there are no message.php or view.php so I just assumed I should use the ones in the default folder, but no luck after adding the code. No ads displayed...

I have assisgne modules positions and published them, nothing.

What am I doing wrong??


You need to change the default template then, if none then it looks for it there
danialt (Admin)
BoJ Team
Simplicity
Administrator
Posts: 957
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Birthdate: 1978-05-25
Logged Logged
 
Best Of Joomla Team
FireBoard Project Manager
 
The administrator has disabled public write access.  
#1515
Re:how can I integrte googleads insde the frst pos 1 Year, 5 Months ago  
it is workin excellent! thanks. I am using the gray template no problem occured. but dont forget to correct the little mistake in the code
tedmiller (User)
Junior Boarder
Posts: 30
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
imzama a_11m
 
The administrator has disabled public write access.  
#1541
Re:how can I integrte googleads insde the frst pos 1 Year, 5 Months ago  
magnus wrote:
Got it now

There were a typo in the code.

Look for fb_msg1 and fb_msg2, should be fb_msg_1 and fb_msg_2.

Working just excellent!


Thanks . I changed.
greatpixels (Admin)
BoJ Team
Moderator
Posts: 456
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Best of Joomla! Location: USA Birthdate: 1978-10-31
Logged Logged
 
Project Manager : Lead Developer
 
The administrator has disabled public write access.  
#1727
Re:how can I integrte googleads insde the frst pos 1 Year, 5 Months ago  
I noticed on this site, the area of space for showing the google ads is almost twice as big as the ads themselves, is it possible to minimise the vertical space of the module ?
Axis (User)
Junior Boarder
Posts: 44
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Don't forget to leave some karma
 
The administrator has disabled public write access.  
#1734
Re:how can I integrte googleads insde the frst pos 1 Year, 5 Months ago  
Hopefully it will be available in the next FB release.
LocaLiceR (User)
FB Translation Team
"Do It Now!"
Moderator
Posts: 335
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Joomla.org.hu Location: Hungary Birthdate: 1958-10-14
Logged Logged
 
Do not give fish to the hungry man teach him how to fish instead
 
The administrator has disabled public write access.  
Go to top