Ad Management mod

Started by SMFHacks.com Team, January 30, 2006, 08:41:19 PM

Previous topic - Next topic

philcross

#3860
QuoteIve added this mod and all works great on IE

But, no adds show up in Firefox browser

Ideas ??

Anyone else having this problem ???


I also have this, which may be linked to this Mod..........


I just took a look at my error logs, and despite a couple of wrong password errors for members, I have this Critical error.

Administration login attempt!
Referer: http://www.xxxxxxx.com/XXXforum/index.php?action=admin
User agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.1.3; .NET CLR 3.0.30729)
IP: 94.196.161.9

I have the Ad Manage Mod installed and notice that ads show in IE8 but not in Firefox - could the error message be to do with that.

Thanks

DELHI_BOY

Thnx jossanaijr, i will try that.
Thnx bigguy for clearing my doubts.

checkmater

#3862
Where is the package parser and its latest version??? I cant find it. Please help.


Thanks.
SMF, other software developing and some other stuff on my website, you can also hire someone at myFreelancing website . xD

checkmater

Ah!.... lol Is in the download section... lol lol lol....
SMF, other software developing and some other stuff on my website, you can also hire someone at myFreelancing website . xD

Kat9119

Anyone offering support for this? I notice a lot going unanswered, wondering if I should just uninstall

Bigguy

@ philcross: That has nothing to do with the ad mod. Someone has tried to login to your admin cp.

@ Kat9119: Yes support is being offered. If you had looked through the pages you would have seen that. :) It's just that that pesky thing we call real life keeps getting in the way of things, lol. :)

Robin1989

hi i was wondering if you could help me with something as i am getting a lot of errors in my themes that are used on the site


Installations actions for "Ad Managment":
Installing this package will perform the following actions:
Type Action Description
1. Execute Code install.php
2. Execute Modification ./index.php Test successful
3. Execute Modification .//Sources/Admin.php Test successful
4. Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/index.template.php Test successful
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/index.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/index.template.php Test successful
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/index.template.php Test successful
4. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/index.template.php Test successful
5. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/index.template.php Test successful
6. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/index.template.php Test successful
5. Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/BoardIndex.template.php Test successful
6. Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/Display.template.php Test successful
7. Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/MessageIndex.template.php Test successful
8. Execute Modification .//Sources/ManagePermissions.php Test successful
9. Extract File .//Sources/Ads.php
10. Extract File .//Sources/LoadAds.php
11. Extract File //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/Ads.template.php
12. Extract File //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/languages/Ads.english.php
13. Extract File //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/languages/Ads.english-utf8.php
Install in Other Themes
To use this modification in themes other than the default, the package manager needs to make additional changes to the other themes. If you'd like to install this modification in the other themes, please select these themes below.
Babylon Theme
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/index.template.php Test failed
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/index.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/index.template.php Test failed
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/index.template.php Test failed
4. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/index.template.php Test failed
5. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/index.template.php Test successful
6. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/index.template.php Test failed
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/BoardIndex.template.php Test failed
1. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/BoardIndex.template.php Test failed
2. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/BoardIndex.template.php Test failed
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/Display.template.php Test failed
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/Display.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/Display.template.php Test successful
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/Display.template.php Test failed
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/MessageIndex.template.php Test failed
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/MessageIndex.template.php Test successful
2. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/MessageIndex.template.php Test failed
Darkbreak
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/darkbreak_20rc1/index.template.php Test failed
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/darkbreak_20rc1/index.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/darkbreak_20rc1/index.template.php Test failed
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/darkbreak_20rc1/index.template.php Test failed
4. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/darkbreak_20rc1/index.template.php Test failed
5. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/darkbreak_20rc1/index.template.php Test failed
6. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/darkbreak_20rc1/index.template.php Test successful
ds-natural
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/ds-natural_20rc1/index.template.php Test failed
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/ds-natural_20rc1/index.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/ds-natural_20rc1/index.template.php Test failed
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/ds-natural_20rc1/index.template.php Test failed
4. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/ds-natural_20rc1/index.template.php Test successful
5. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/ds-natural_20rc1/index.template.php Test failed
6. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/ds-natural_20rc1/index.template.php Test successful
MysticJade
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/mysticjade_20rc1/index.template.php Test failed
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/mysticjade_20rc1/index.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/mysticjade_20rc1/index.template.php Test failed
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/mysticjade_20rc1/index.template.php Test failed
4. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/mysticjade_20rc1/index.template.php Test successful
5. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/mysticjade_20rc1/index.template.php Test failed
6. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/mysticjade_20rc1/index.template.php Test successful
Outline
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/outline_20rc1/index.template.php Test failed
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/outline_20rc1/index.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/outline_20rc1/index.template.php Test failed
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/outline_20rc1/index.template.php Test failed
4. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/outline_20rc1/index.template.php Test failed
5. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/outline_20rc1/index.template.php Test failed
6. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/outline_20rc1/index.template.php Test successful
OverView
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overview_20rc1/index.template.php Test failed
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overview_20rc1/index.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overview_20rc1/index.template.php Test failed
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overview_20rc1/index.template.php Test failed
4. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overview_20rc1/index.template.php Test failed
5. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overview_20rc1/index.template.php Test failed
6. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overview_20rc1/index.template.php Test failed
OverViewLight
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overviewlight_20rc1/index.template.php Test failed
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overviewlight_20rc1/index.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overviewlight_20rc1/index.template.php Test failed
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overviewlight_20rc1/index.template.php Test failed
4. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overviewlight_20rc1/index.template.php Test failed
5. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overviewlight_20rc1/index.template.php Test failed
6. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overviewlight_20rc1/index.template.php Test failed
SilentWave
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/silentwave_20rc1/index.template.php Test failed
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/silentwave_20rc1/index.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/silentwave_20rc1/index.template.php Test failed
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/silentwave_20rc1/index.template.php Test failed
4. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/silentwave_20rc1/index.template.php Test successful
5. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/silentwave_20rc1/index.template.php Test failed
6. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/silentwave_20rc1/index.template.php Test successful
AcidMods 2.0
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/index.template.php Test failed
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/index.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/index.template.php Test failed
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/index.template.php Test failed
4. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/index.template.php Test failed
5. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/index.template.php Test successful
6. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/index.template.php Test successful
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/BoardIndex.template.php Test successful
1. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/BoardIndex.template.php Test successful
2. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/BoardIndex.template.php Test successful
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/Display.template.php Test successful
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/Display.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/Display.template.php Test successful
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/Display.template.php Test successful
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/MessageIndex.template.php Test successful
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/MessageIndex.template.php Test successful
2. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/MessageIndex.template.php Test successful
SMF4iPhone
Execute Modification ./Themes/smf4iphone/index.template.php Test failed
1. Add After ./Themes/smf4iphone/index.template.php Test failed
2. Replace ./Themes/smf4iphone/index.template.php Test failed
3. Replace ./Themes/smf4iphone/index.template.php Test failed
4. Add After ./Themes/smf4iphone/index.template.php Test failed
5. Add After ./Themes/smf4iphone/index.template.php Test failed
6. Add Before ./Themes/smf4iphone/index.template.php Test failed
Execute Modification ./Themes/smf4iphone/BoardIndex.template.php Test failed
1. Add Before ./Themes/smf4iphone/BoardIndex.template.php Test failed
2. Add After ./Themes/smf4iphone/BoardIndex.template.php Test failed
Execute Modification ./Themes/smf4iphone/Display.template.php Test failed
1. Add After ./Themes/smf4iphone/Display.template.php Test successful
2. Replace ./Themes/smf4iphone/Display.template.php Test failed
3. Replace ./Themes/smf4iphone/Display.template.php Test failed
Execute Modification ./Themes/smf4iphone/MessageIndex.template.php Test failed
1. Add After ./Themes/smf4iphone/MessageIndex.template.php Test failed
2. Add After ./Themes/smf4iphone/MessageIndex.template.php Test failed


looking at the themes and what failed to install it seems to be the same areas of the install on the index.template.php file (im not to bothered about babylon theme - thinking i will delete it)




Find [Select]
<div class="windowbg2 clearfix">';
Replace [Select]
<div class="windowbg2 clearfix floatleft">';






Find [Select]
<form class="windowbg" id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
Replace [Select]
<form class="windowbg2" id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>





Find [Select]
echo '
</div>
Add After [Select]
';
echo '<div class="windowbg2 clearfix" align="right">';
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
}
unset($ads);
}
echo '</div>';
echo '






Find [Select]
template_menu();
Add After [Select]

//Below the menu ads
if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
{
$ads = show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

//Tower left Ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

unset($ads);
//Tower Right Ads
$ads = show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}






Find [Select]
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
Add Before [Select]

//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
$ads = show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td></tr></table>';

unset($ads);
//Close table for towerleft ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);

//Show ads on the bottom of the page
$ads = show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}



so im wondering what i should do do i just leave those edits out of the themes or is there an area i should put them in


thanks for any help that can be given

Bigguy

Certain sections can be left out of the template files with no adverse effects. It's up to you if you wish to leave them out or not. Keep in mind though that a test failed does also mean that some code could be installed in that file and some won't be so it could end up in a parse error.

Mayhem30

If someone can help answer my 2 questions on page 193 that would be great!  :)

Bigguy

With the ads question, I think that is the only way to show it after a post. For the uninstalling part, you can still uninstall if you want but edits will have to be taken out manually for that file. I have no idea why it's failing unless you installed a mod after the ad mod and it changed the index.template.php.

baijianpeng

I am using SMF v1.1.9 and a custom template named rt_smf_versatility.

I tried to install Ad Management Mod v2.3.1 and succeeded. Of course I had edited the install.xml file to suit my custom template.

But, it seems that this Mod can't work at all.

Could some one help me to modify this Mod to work together with my rt_smf_versatility template?

Thanks.
JoomlaGate: The way to the World of Joomla!

http://www.joomlagate.com

riker

I see it's still messing up the top right of the default theme on SMF BETA4/RC1

Kat9119

Quote from: Bigguy on June 11, 2009, 07:22:18 PM
@ Kat9119: Yes support is being offered. If you had looked through the pages you would have seen that. :) It's just that that pesky thing we call real life keeps getting in the way of things, lol. :)

I have looked through a lot of the recent posts and it seems like a lot not answered. I've asked a question 2-3 times, maybe someone just doesn't know the answer.

My ads are only showing up under the main menu, and at the bottom. I cannot get it to show on the index.  I assume it didn't update my themes index file and thats whats wrong. However, there are no manual directions for 1.1.8, therefore I cannot check this and make the edits myself.

I'm worried that this is only half installed, and I have to upgrade to 1.1.9 asap..don't want to upgrade till this issue is resolved as I assume it could mess up the Ad Management Mod.

Bigguy

I would do your upgrade first. Uninstall as many mods as you can do the upgrade and then worry about the ad mod. Manual edits can be found through the package parser found on the download page for this mod or in the install.xml file that is packaged with the mod. Also, other than me and a few knowledgeable members in this thread I am the only one providing support. So if I have missed a couple posts that is to be expected I would think. :)

dodant

Is this mod compatible with 1.1.8?

riker

Quote from: dodant on June 12, 2009, 03:33:38 PM
Is this mod compatible with 1.1.8?

Yes it works fine on 1.1.x it's just SMF 2.0 beta 4 and above it's not fully compatible with

Kat9119

Quote from: Bigguy on June 12, 2009, 02:21:48 PM
I would do your upgrade first. Uninstall as many mods as you can do the upgrade and then worry about the ad mod. Manual edits can be found through the package parser found on the download page for this mod or in the install.xml file that is packaged with the mod. Also, other than me and a few knowledgeable members in this thread I am the only one providing support. So if I have missed a couple posts that is to be expected I would think. :)

Ok, no problem. Thanks for the reply. I have checked the package parser, and I thought there was nothing. I must have had the wrong button ticked, as it kept telling me there was nothing for 1.1.8. I just tried again, and there seem too be directions for my version.

I'll give it a try, and then update. Thanks again.


dennisfreeworld

i have a problem installing the ad management mod.I have try and try.
It dont not show any error but I find where it suppose to me ..so what do i do next.
Please this is my forum  hxxp:nigeriaonlinecommunity.com/ [nonactive]

Plz need help

dzinerfusion

hi I cant put this code in my index.template.



Find:

<div class="windowbg2 clearfix">';



Replace with:

<div class="windowbg2 clearfix floatleft">';




Find:

<form class="windowbg" id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>



Replace with:

<form class="windowbg2" id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>




Find:

echo '
</div>



Add after:

';
echo '<div class="windowbg2 clearfix" align="right">';
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
}
unset($ads);
}
echo '</div>';
echo '



Can you edit of tell me where to put it???

Kat9119

#3879
Ok, so I had to do manual edits for 1.1.8 for my theme, otherwise everything installed well.

But, I'm running into an issue.

Trying to add this to my index.template.php of my custom default theme since this file wasn't updated when I ran the mod through package manager.

First of all, it tells me to find <body>'; my file doesn't have that. Then it says to find </td> and there are about 100 of them. So, I was unsure where to look. I decided to go ahead and compare the default edits to my themes file, and fix it that way. But I must have messed something up because I'm now getting an error (see below)

Also it says to find

echo '
</div>';


on BoardIndex.template.php, which I found, however there are two { after I add the code, not sure if there should be 2 or 1.

When I go and upload all my edits to my theme, I get the following error
   

QuoteTemplate Parse Error!
There was a problem loading the /Themes/CampBlood/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
--------------------------------------------------------------------------------


Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/CampBlood/index.template.php on line 181

172:       // ]]></script>
173: </head>
174: <body>
175:    
176:    //Display ads on the top of the page
177:    if (function_exists("show_topofpageAds"))
178:    {
179:       $ads = show_topofpageAds();   
180:       if(!empty($ads))
181:          if($ads['type']==0)182:             echo $ads['content'];
183:          else
184:             eval($ads['content']);   
185:       unset($ads);
I'm a copy and paste person when it comes to this (although I am trying to learn) I have no idea what this error is or how to fix it. I'm going to guess that its because my file didn't have the <body>'; code?

If I edit that so it is <body>'; I get the following error:

QuoteTemplate Parse Error!
There was a problem loading the /Themes/CampBlood/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
--------------------------------------------------------------------------------


Parse error: syntax error, unexpected '<' in .../Themes/CampBlood/index.template.php on line 188

179:       $ads = show_topofpageAds();   
180:       if(!empty($ads))
181:          if($ads['type']==0)
182:             echo $ads['content'];
183:          else
184:             eval($ads['content']);   
185:       unset($ads);
186:    }
187:
188: <table width="822" height="643" border="0" align="center" cellpadding="0" cellspacing="0" table id="mytable2">189:   <tr>
190:     <td height="643" scope="col"><table width="100%" height="643" border="0" cellpadding="0" cellspacing="0" bordercolor="4B0007" table id="mytable1">
191:       <tr>
192:         <td height="92" colspan="2" bgcolor="#000000" scope="col"><img src="Themes/CampBlood/images/banner2.jpg" width="818" height="90"></td>

Anyhow, my index.template.php is attached

Thanks in advance for the help.


Advertisement: