News:

Help keep this project going by donating or buying adseller pro

Main Menu
Coinbase

Edits for ad_mod_rc2_v2 for themes other than default

Started by bigguy, June 20, 2006, 08:26:59 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Vinspire

Quote from: bigguy on October 09, 2006, 02:08:52 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 :)




Loki66

#136
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

Rastarr

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

Loki66

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

bigguy

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.

Loki66

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:

bigguy

Send me YOUR Display.template.php and I will try to modify it to work.

mutya

Quote from: mutya on October 19, 2006, 09:47:36 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;" />


bigguy

Take the ; out of this and see what happens:

padding-right:20px;" class

mutya

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;" />

Loki66

Hello,

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

Thanks,

LK

Loki66

Hello,

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

Thanks,

LK

bigguy

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.

Rastarr

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 ?

bigguy

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.