Coinbase

Author Topic: Edits for ad_mod_rc2_v2 for themes other than default  (Read 159968 times)

0 Members and 1 Guest are viewing this topic.

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #105 on: September 19, 2006, 05:11:34 pm »
There should be no problem with any of it. Do you have scripts blocked in FF (if your using it) have you cleaned out your temp files and tried a hard refresh. ??? Do the slots for the ads show up in between posts or not. ???

Offline ravenlife

  • Newbie
  • *
  • Posts: 5
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #106 on: September 30, 2006, 04:39:41 am »
Hello,

i too have teh parse error.

i could only find the lines in the DISPLAY.TEMPLATE.PHP and MessageIndex.template.php files. i couldnt find the other lines in the other files

i have the forum wrapped with joomla, but even the standalone doesnt display the ads.

any help with this would be appreciated.

Thanks

RavenLife

Things i have -
SMF RC2 (patched to 2-2)
SMF bridge From JoomlaHacks
Joomla 1.0.11
Versatility2 theme from Rockettheme.com

[/]

Offline flits

  • Newbie
  • *
  • Posts: 2
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #107 on: October 02, 2006, 08:22:13 am »
Your followed the intruction exactly as posted, which is good! But this time you should not have done that ;) ;D

This was mentioned in the instructions:
In the same file FIND:
Code: [Select]
// Get all the messages...
And REPLACE with:

Code: [Select]
//Ad Counter
$adcounter =0;
// Get all the messages...
while ($message = $context['get_message']())
{
$adcounter++;

What you did was overwriting only the "// Get all the messages..." line with the new content ;)
I made the same mistake and ended up with the same error! (maybe the instructions should be changed ;))

This is what the instruction should say:
In the same file FIND:
Code: [Select]
// Get all the messages...
while ($message = $context['get_message']())
{

And replace it with:
Code: [Select]
//Ad Counter
$adcounter =0;
// Get all the messages...
while ($message = $context['get_message']())
{
$adcounter++;




Hope this helped ;)
« Last Edit: October 02, 2006, 08:55:26 am by flits »

Offline DoA

  • Jr. Member
  • **
  • Posts: 25
    • Acapella MP3
    • Email
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #108 on: October 02, 2006, 04:37:10 pm »
hi bigguy,

firstly many thanks for taking the time to figure this out, its because of people like you that the software and additional themes keep running.


Having said that, I can't get it to work - I got an index.template.php parse error when i'd done the first edits, I replaced that and got subsequent edits on other pages - so at the moment i'm back to the old unmodified template.

I would really apprechiate it if you could help me get this sorted out - i'm using the helios multi template by bloc --> http://www.tinyportal.net/smf/index.php?action=tpmod;dl=cat27


Many thanks in advance.


I'm on msn messenger and email, but easiest way to contact me is PM. I'll keep an eye on this thread.


Adam

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #109 on: October 02, 2006, 06:23:06 pm »
Can you post the index.template.php file for me and I will take alook.

Offline ravenlife

  • Newbie
  • *
  • Posts: 5
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #110 on: October 03, 2006, 04:02:54 am »
flitz i did what you said and i no longer get the parse error

altough i still do not see any adverts.

any help would be appreciated

RL

Offline DoA

  • Jr. Member
  • **
  • Posts: 25
    • Acapella MP3
    • Email
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #111 on: October 03, 2006, 09:06:38 am »
Hi bigguy,

Thanks for the reply - i'll post if this doesn't sort it out


I am running forum version 1.07 - do I have to use these instructions - http://www.smfads.com/forums/index.php?topic=59.0    ????

Do the mods in the post linked above work for all templates or just the default one?

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #112 on: October 04, 2006, 09:45:43 am »
Yes those are the edits to use and yes they SHOULD work with all themes. Some people name things differently in themes so it might be hard to find some of the edits but it does work.

Offline Vinspire

  • Jr. Member
  • **
  • Posts: 22
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #113 on: October 04, 2006, 01:11:35 pm »
Hi, is it possible to make a tutorial on how to edit ad_mod for RC3 in Helios Eclipse Theme.

The codes in those theme seems to be quite different from other theme ...

Link to download the theme : http://www.tinyportal.net/smf/index.php?action=tpmod;dl=item406

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #114 on: October 04, 2006, 03:06:55 pm »
lol, I thought you mean helios multi just for SMF over on simplemachines.org so I went ahead and did the edits for that theme. I have not tried editing a theme that involves Tp yet.

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #115 on: October 04, 2006, 03:25:42 pm »
Ok, try this, this is only for helios mutli for TP:

Offline Vinspire

  • Jr. Member
  • **
  • Posts: 22
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #116 on: October 04, 2006, 10:27:30 pm »
lol, I thought you mean helios multi just for SMF over on simplemachines.org so I went ahead and did the edits for that theme. I have not tried editing a theme that involves Tp yet.

Lolz ... luckily i've posted a link for it.  :D

Ok, try this, this is only for helios mutli for TP:

Thanks a lot bigguy. Will check it out  8)

Offline Duernu

  • Newbie
  • *
  • Posts: 4
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #117 on: October 06, 2006, 07:03:53 am »
Hello!

I have a big problem, everythig is installed OK but I can`t see any ads.
If I turn to "default theme" it wors ok so I think it is because of the theme I`m using ("puzzle" theme).
I use SMF 1.1 RC3 forum version, and I have tried to do the index.template modifications but then I had a "farse error" and the forum did not work at all.
Any idea of how can I change that file?

Thank you

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #118 on: October 06, 2006, 02:19:37 pm »
@ Duernu: try this it should work.

Offline Duernu

  • Newbie
  • *
  • Posts: 4
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #119 on: October 07, 2006, 04:43:03 am »
it works! Thanks a lot bigguy ;D ;D ;D

SMF Ads Support Forum

Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #119 on: October 07, 2006, 04:43:03 am »
.