News:

Welcome to SMF Ads Support Forum

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 1 Guest are viewing this topic.


bigguy

Rename the index.template.php file to index.template1.php and see what happens.

maldo

Hello there,

Can any one help me to edit the theme files to work with ad management for the Remorse Lite Theme , I made a search in the forum and I don't think anyone has the edited files for that theme.

I tried to edit using the instructions above but a few of the codes to find and edit are missing in this theme, very confused, please help.

I am attaching the files.

Any help is very much appreciated.

rhommel

Quote from: hongster on March 11, 2007, 03:35:03 AM
Havent yet, I tried to add in myself but the coding for rocket themes versatility 2 is totally different with the default themes, therefore i duno how to manual install into the coding part especially for index.template.php. Could you give me some hints how to add in to the themes.

Thanks and regards,
Hongster

I also have this theme ( rockettheme's Versatility 2 template) I am also having a difficulty with this mod. Can you help us out? Thanks!


vlad230

I can't find this line:
Quote</td></tr>';
   }
I have looked at the file like 4 times and I can't see that line.....:(
I'm using the smfone_green template
Pls help
www.auto4tuning.com - Tuning videos & photos

bigguy

Try searching for just part of the line. Or are you looking for it manually. ???

vlad230

Quote from: bigguy on April 16, 2007, 07:35:01 PM
Try searching for just part of the line. Or are you looking for it manually. ???
Yeah... I was looking for it manually  :o
Used the find tool from dreamweaver but the closest thing that it finds is:
// Show the post itself, finally!
echo '
</td>
</tr></table>

<div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>', $message['body'], '</div>', $message['can_modify'] ? '
<img src="' . $settings['images_url'] . '/icons/modify_inline.gif" alt="" align="right" id="modify_button_' . $message['id'] . '" style="cursor: pointer;" onclick="modify_msg(\'' . $message['id'] . '\', \'' . $context['session_id'] . '\')" />' : '' , '
</td>
</tr>';

// Now for the attachments, signature, ip logged, etc...


No "}"  ???
strange....
www.auto4tuning.com - Tuning videos & photos

Flama

#278
Hi all!
First i want to say thanks for this nice mod! ;)

What i have
SMF 1.1.2
Versatility2 from Rockettheme

What is working
Display ads on board index
Display ads on message index
Display ads on the post page
Display ads after the last post

Not working
Display ads on every page right below the menu
Display ads on the bottom of the page
Display ads on every page as a tower on the right side
Display ads on every page as a tower on the left side

I've succesfully modified BoardIndex.template.php, Display.template.php, MessageIndex.template.php

The issue is with index.template.php
No matter where i put the code, the ad's simply refuses to show me. :idiot:

I know that only one simple step is needed to make this mod fully working with Versatility2 theme, but (yet) cannot figure it out what is wrong.  :-\

I've attached modified BoardIndex.template.php, Display.template.php, MessageIndex.template.php(moded.zip) and unmodified index.template.php + screenshot of a partially working mod.

Maybe Ads.template.php need some modifications too?
I would be very happy if somebody can put me in the right direction! ;)

Versatility2 users united!  ;D

ange1us

Quote from: Flama on April 21, 2007, 10:48:03 PM
Hi all!
First i want to say thanks for this nice mod! ;)

What i have
SMF 1.1.2
Versatility2 from Rockettheme

What is working
Display ads on board index
Display ads on message index
Display ads on the post page

Not working
Display ads on every page right below the menu
Display ads on the bottom of the page
Display ads on every page as a tower on the right side
Display ads on every page as a tower on the left side

I've succesfully modified BoardIndex.template.php, Display.template.php, MessageIndex.template.php

The issue is with index.template.php
No matter where i put the code, the ad's simply refuses to show me. :idiot:

I know that only one simple step is needed to make this mod fully working with Versatility2 theme, but (yet) cannot figure it out what is wrong.  :-\

I've attached modified BoardIndex.template.php, Display.template.php, MessageIndex.template.php(moded.zip) and unmodified index.template.php + screenshot of a partially working mod.

Maybe Ads.template.php need some modifications too?
I would be very happy if somebody can put me in the right direction! ;)

Versatility2 users united!  ;D


Holy GOD !!!!

IT WORKS

MANY THANKS  ;D ;D ;D

liberte

Hi
for newbies

The logic is very simple
If you are not sure where to put related ad code in your SMF Theme,
just open your default theme

look at the place of the ad

then open your favorite theme
try to find similar place at your favorite theme, for instance insert
a word like "hhhhhhhhhhhhhhhhh" into your codes
if you feel ok with the place that "hhhhhhhhhhhhhhhhh" is seen
then replace the ad code there.

Just trial and error, nothing to lose.

mehalaktas

#281
Hi everybody
I have problem with my ad mannegment mod. I add the problem's picture.

most_wanted

#282
using lightning01 theme and getting this error Parse error: parse error, unexpected $ in .../Themes/lightning01/Display.template.php on line 755

746: </td>
747: </tr>
748: </table>';
749: }
750: if ($context['show_spellchecking'])
751: echo '
752:  <form action="', $scripturl, '?action=spellcheck" method="post" accept-charset="', $context['character_set'], '" name="spell_form" id="spell_form" target="spellWindow"><input type="hidden" name="spellstring" value="" /></form>';
753: }
754:

755: ?>

756:
757:


Display.template.php attached