Ad Question

Status
Not open for further replies.

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
On my site I use smf and joomla. I use the advance codes. In what files would I have to put the code? Or can I put in a mod or component?
 
Last edited:

Alcor

New Member
Messages
34
Reaction score
0
Points
0
In Joomla you must add the code in index.php of your template. And SMF go to smfdirectory/Themes/yourtheme/index.template.php and insert the ads code.

At this moment the php code not works. I have a warning in my joomla, I think that the problem is the server change . I'm waiting an answer in this thread:

http://forums.x10hosting.com/showthread.php?t=16852

I hope you understand my english :p
 

Alcor

New Member
Messages
34
Reaction score
0
Points
0
At this moment the php ads code works again.

In your index.template.php find:

PHP:
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
    <meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
    <meta name="description" content="', $context['page_title'], '" />
    <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
    <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?rc2p"></script>
    <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
        var smf_theme_url = "', $settings['theme_url'], '";
        var smf_images_url = "', $settings['images_url'], '";
        var smf_scripturl = "', $scripturl, '";
    // ]]></script>
    <title>', $context['page_title'], '</title>';

and below add the php code

PHP:
include('http://staff.x10hosting.com/adCode.php?ad=advanced');

In Joomla, I added the code after the body tag and between div tags.

I forgot to say that I added ads code in index2.php too, therefore ads code is in backend of Joomla too, the administration. They request that the ads are visible in all the pages.
 
Last edited:

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
The codes must not be working right now because they won't show up and I know now that I have them in the right place.

Never mind. It's working now.
 
Last edited:

DizzyTechnology

New Member
Messages
500
Reaction score
0
Points
0
Actually, no, it would be much better to set the x10 Ad as a banner in Joomla. This, however, does not work with a theme with no banner placeholders (look in a preview image, it'll be there).
 
Status
Not open for further replies.
Top