News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Ad Management mod

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

Previous topic - Next topic

wolfetundra

No. But if I install without installing to the Core theme, I get errors;

Parse error: syntax error, unexpected '<' in /home/site/public_html/Sources/Load.php(2159) : eval()'d code(593) : eval()'d code on line 1

Parse error: syntax error, unexpected '<' in /home/site/public_html/Sources/Load.php(2159) : eval()'d code(26) : eval()'d code on line 1


I don't know what's causing it. It worked fine just last week. I did a fresh install and as soon as I installed this mod, I got these errors. When I uninstall the mod, the errors go away.

TheListener

Can you go into admin > configuration > server settings > general and tick the disable eval box please.

Empty the error log then report the new error message.

Normally if the core theme is not used then it is best to ignore the theme errors.

wolfetundra

I followed your instructions, and now I get;

Parse error: syntax error, unexpected '<' in /home/site/public_html/Themes/default/Ads.template.php(593) : eval()'d code on line 1

Parse error: syntax error, unexpected '<' in /home/site/public_html/Themes/Bad_Company_3_2/BoardIndex.template.php(26) : eval()'d code on line 1


BadCompany is the current theme.

TheListener

OK so now you would have to open each file (using notepad++)

Using the code bbc tag (the #) please post the error line along with the 5 lines above and below it.

* Grumpy Old Sod is no code genius

vbgamer45

Also make sure you have valid php code if you are using a php ad block. Otherwise stick just html ad blocks to post your javascript/html inside
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

NIAB

How do I add adsense to this ? When I try, I just get the following

Code (D:) Select

Parse error: syntax error, unexpected $end in /home/domain/public_html/forum/Themes/default/Display.template.php(840) : eval()'d code on line 10

vbgamer45

Are you adding it as php code? If so just add as html code instead
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

azirion

Hi

Im trying to install this mod and I have some Test Failure messages. I know how to edit the files. I know how to search and replace or add. But the problem is that the Test Failure message is because it couldnt find a specific code on the php file so it could not proceed.

Now, if I want to manually add this new code, how can I know were to insert it? Can you help me with this please?

Here are the 3 files where the code is gone:

On the /Themes/core/BoardIndex.template.php file, cant find:
<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';


On the /Themes/core/Display.template.php file, can´t find:
}

echo '
</form>
</div>
<a id="lastPost"></a>';


And on the /Themes/core/MessageIndex.template.php file, can´t find:
echo '
</tbody>
</table>
</div>
</div>';


Any ideas?

vbgamer45

If you can't find the code. What I do in that case is look at the default theme and see where that code is located at.
Then look for a similar area in the theme you are editing.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

azirion

Excellent idea, thanks for the tip  ;)

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

azirion

Well I did what you said, but somewhere on the process I messed up... and the forum crashed  :-\

Lucky me I had backed up the 3 files so I just copied them back and uninstalled the mod.

So I'm in square one again  :(

Apllicmz

Update portuguese files
attach






vbgamer45

Thanks for the translation
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Lovejist

I recently downloaded the ad management mode 3.1 for the current vertion of smf. I havse succeeded in placing banner ads with it and it is all fine.

However, I would like to know how I can place the multiple banners by the side of the page, each standing on the top of another or below the another. The one block banner I placed by the side is almost hanging on the page. I will also want to place the top and bottom banners side by side.
Thanks

vbgamer45

You can use an html table to make ad's side by side.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Lovejist

Thanks for this. Please I am a newbie in the use of html. Could you show me an example.

Thanks.

vbgamer45

Example:


<table>
<tr>
<td>
Banner ADD code here one
</td>
<td>
banner add code here #2
</td>
</tr>
</table>
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Lovejist

Thanks for this. The code you gave me worked for placing ads side by side. what code will I use for placing ads in a row? I want to demarcate ads with borders.

Thanks

vbgamer45

Multiple row example

<table>
<tr>
<td>
Banner ADD code here one
</td>
</tr>
<tr>
<td>
banner add code here #2
</td>
</tr>
</table>
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: