Coinbase

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

0 Members and 1 Guest are viewing this topic.

Offline Vinspire

  • Jr. Member
  • **
  • Posts: 22
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #135 on: October 23, 2006, 09:50:30 pm »
Vinspire I will try to do the edits again and see what I can come up with. Another idea would be to ask the author of the theme. Show him the files I edited and see what he can come up with.

Bigguy, i found out the problem with the Helios Eclipse on why we couldn't get it to work already.

In Helios Eclipse, the welcome ads column had been reserved for a logo ...

You go to "Admin -> Configuration -> Themes and Layout -> Themes and Settings -> Helios Multi -> Theme Options and Preferences -> Logo :"

And once you've filled in the image url. This is how it would look like :)




Offline Loki66

  • Newbie
  • *
  • Posts: 7
    • Email
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #136 on: October 24, 2006, 02:52:56 am »
Hello Bigguy,

Can you please post the Helios Multi RC3 without the TP as I cannot find which modifications are from TP and which are from you to remove the TP code !

Thanks,

Loki


PS: http://www.monstrous.com/forum
« Last Edit: October 24, 2006, 08:13:03 am by Loki66 »

Offline Rastarr

  • Jr. Member
  • **
  • Posts: 10
    • Email
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #137 on: October 24, 2006, 05:52:15 am »
Hi All,

This looks like a great mod for getting Adsense into SMF. I like a lot of other people am having a tough time with my theme - SMF Live Forum Messanger.
I was wondering whether you might be really helpful and have a look at the alterations of it for me please? I had a go myself and ended up with theme errors staring me in the face  :'(

Cheers and thanks heaps for any help you can lend

Offline Loki66

  • Newbie
  • *
  • Posts: 7
    • Email
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #138 on: October 24, 2006, 10:16:02 am »
Hello Biggie,

After several hours working on those files, I still have problem with the side tower add.

To make it show up, I have to have it both left and right (or it don't show up) and it kind of damage the skin.

Can you please check my files and see what I have missed to adapt this great mod to Helios Multi RC3, one if not the best SMF "dark" theme.

Thanks,

LK

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #139 on: October 24, 2006, 10:49:38 am »
I am not sure you have missed anything, maybe the towers aren't supposed to show unless both are in. Let's see what Jerm has to say.

Offline Loki66

  • Newbie
  • *
  • Posts: 7
    • Email
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #140 on: October 24, 2006, 11:46:26 am »
Sorry, I also tried your files and had the same result with the parse error page when clicking on a thread !

I can live without right side banner but the members need to be able to read the posts  :(

Please, let me know if that can be solved ...

Template Parse Error!
There was a problem loading the /Themes/helios_multi11_rc3/Display.template.php template or language file.

Hi,

I tried the files in the zip but I still have the same problem when clicking on a thread link (to read a message) ....

Thanks for your help,

LK


http://monstrous.com/forum/index.php?topic=2798.0


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 $end in .../Themes/helios_multi11_rc3/Display.template.php on line 798

789:                 $moderationButtons[] = '<a href="' . $scripturl . '?action=post;calendar;msg=' . $context['topic_first_message'] . ';topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/linktocal.gif" alt="' . $txt['calendar37'] . '" border="0" />' : $txt['calendar37']) . '</a>';
790:
791:         if ($context['can_remove_post'] && !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
792:       $moderationButtons[] = $settings['use_image_buttons'] ? '<input type="image" name="submit" id="quickmodSubmit" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/delete_selected.gif" alt="' . $txt['quickmod_delete_selected'] . '" onclick="return confirm(\'' . $txt['quickmod_confirm'] . '\');" />' : '<a href="javascript:document.forms.quickModForm.submit();" onclick="return confirm(\'' . $txt['quickmod_confirm'] . '\');" id="quickmodSubmit">' . $txt['quickmod_delete_selected'] . '</a>';
793:
794:         return implode($context['menu_separator'], $moderationButtons);
795: }
796:
797: ?>

798:

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #141 on: October 24, 2006, 06:07:22 pm »
Send me YOUR Display.template.php and I will try to modify it to work.

Offline mutya

  • Newbie
  • *
  • Posts: 7
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #142 on: October 24, 2006, 07:10:41 pm »
hello!
The ad mod v2 is now working in my default theme. I'm now trying to make it work for the dilbermc theme. I edited the index.template.php, as instructed in the 1st post (using wordpad, save as text), upload it and get the parse code error! Just like the earlier posts here.
Does anybody here have the edit files for the dilbermc theme? :
index.template, boardindex.template, display.template and message.index
Thanks in advance!  :)
Hi! Tried to edit the index.template.php again, and here is the parse error :
Pls. help me out with this, I'm not really into coding, I just followed the instruction for the dilbermc edit here : http://www.smfads.com/forums/index.php?topic=22.30
and here is the error:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/dilbermc/index.template.php on line 260

251:                echo $ads['content'];
252:             else
253:                eval($ads['content']);
254:             echo '</td>';
255:          }
256:          unset($ads);
257:    echo '
258:
259:    echo '

260:                <td valign="middle" height="30" style="padding-top:0px; padding-bottom:0px; padding-right:20px;" class="middletext" align="right">

261:             <form action="', $scripturl, '?action=search2" method="post" style="margin: 0px;">
262:                <a href="', $scripturl, '?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0px;" alt="" /></a>
263:                <input type="text" name="search" value="" style="width: 190px;" />
264:                <input type="submit" name="submit" value="', $txt[182], '" style="width: 11ex;" />


Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #143 on: October 24, 2006, 11:57:20 pm »
Take the ; out of this and see what happens:

Code: [Select]
padding-right:20px;" class

Offline mutya

  • Newbie
  • *
  • Posts: 7
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #144 on: October 25, 2006, 12:45:37 am »
Thanks for the time, bigguy!
I edited but I still get the same error! Here it is:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/dilbermc/index.template.php on line 260

251:                echo $ads['content'];
252:             else
253:                eval($ads['content']);
254:             echo '</td>';
255:          }
256:          unset($ads);
257:    echo '
258:
259:    echo '

260:                <td valign="middle" height="30" style="padding-top:0px; padding-bottom:0px; padding-right:20px" class="middletext" align="right">

261:             <form action="', $scripturl, '?action=search2" method="post" style="margin: 0px;">
262:                <a href="', $scripturl, '?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0px;" alt="" /></a>
263:                <input type="text" name="search" value="" style="width: 190px;" />
264:                <input type="submit" name="submit" value="', $txt[182], '" style="width: 11ex;" />

Offline Loki66

  • Newbie
  • *
  • Posts: 7
    • Email
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #145 on: October 25, 2006, 12:51:14 am »
Hello,

Here is my display.template.php.  The mod works fine with the default template.

Thanks,

LK

Offline Loki66

  • Newbie
  • *
  • Posts: 7
    • Email
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #146 on: October 25, 2006, 04:53:05 pm »
Hello,

Any idea to fix this, did somebody manage to have the banners running with Helios Multi RC3 ?

Thanks,

LK

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #147 on: October 26, 2006, 11:13:16 am »
That is one of the themes that is Very hard to edit. Have you tried going to the theme author, maybe he has idea's as to how or where these edits should go.

Offline Rastarr

  • Jr. Member
  • **
  • Posts: 10
    • Email
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #148 on: October 26, 2006, 04:39:09 pm »
bigguy,

Is this reference to too hard a theme to edit in answer to Loki66 or to my request for help on the SMF Live Forum Messanger theme ?

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #149 on: October 26, 2006, 05:47:28 pm »
I have not tried the live forum messenger theme yet. I was referring to the helios theme. I have not been able to succesfully edit that template yet.

SMF Ads Support Forum

Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #149 on: October 26, 2006, 05:47:28 pm »
.