I am not able to get this to load on the default theme with Tiny Portal installed. I am not entirely sure why.
It doesn't work either way. I can load Ad Rev Share mod and then try TP and I get an error on the default them or I can load TP first and then ad Rev Share and get same error.
So it does't appear to be a code deletion type thing.
If anyone has any inisight to this, it would be awesome. I would love to have both of them work....
You'll have to add one of them manually. They are both looking for the same part of code. Which is why you get an error when you're trying to install either one of them.
Thinking about trying a manual install of this mod with SMF/TP myself.
Before I start it would be nice to know if anyone has successfully accomplished it.
Any luck?
Nobody eh?
Maybe I'll hold off in the hopes of the revenue sharing mod taking a look at TP.
I installed that mod to a SMF /TP site not to long ago and it worked well ( had to install it manually) but it works good :)
Quote from: G6â„¢ on June 17, 2007, 10:32:56 PM
I installed that mod to a SMF /TP site not to long ago and it worked well ( had to install it manually) but it works good :)
That's encouraging. Hopefully I'll get the time to give it a shot over the next few days. Thanks G6
Well i am trying to install it and I got an error in the
Type Action Description
(...)
4. Execute Modification ./Themes/default/index.template.php FAIL
(...)
so I test it with the SMF Package Parser in http://www.smfhacks.com/packageparser/ and it shows me what modification the script is doing to the index.template.php file
It look for this code:
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
</div>';
and Found:
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
</td>
</tr>
</table>
</td>';
// TinyPortal integrated bars
if(!empty($settings['use_tp']) && $context['TPortal']['rightbar'])
{
echo '<td width="' ,$context['TPortal']['rightbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 4px;padding-right: 1ex;" valign="top">
<div id="rightbarHeader"', empty($options['collapse_rightbar']) ? '' : ' style="display: none;"', ' style="padding-top: 5px; width: ' ,$context['TPortal']['rightbar_width'], 'px;">';
TPortal_sidebar('right');
echo '</div></td>';
}
if(!empty($settings['use_ads']) && function_exists("show_towerrightAds"))
{
$ads = show_towerrightAds();
if(!empty($ads))
{
echo ' <td valign="top">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo ' </td>';
}
unset($ads);
}
echo ' </tr>
</table>
</td></tr></table></div>';
this is obviously the Tinyportal code in the main index file, so i think we can install the script than manually insert the this Replace with: code AFTER the </div> tag.
// AD REVENUE SHARING - PLACEMENT OF ARS ADS
if ($modSettings['ars_enabled']) {
// ADS IN RIGHT TOWER/COLUMN
if ($modSettings['ars_adsetup_right_enabled']) {
echo '</td><td valign="top">';
showArsAds("right");
}
// CLOSE THE TABLE WE CREATED IF LEFT OR RIGHT TOWER ADS ARE ENABLED
if (($modSettings['ars_adsetup_left_enabled']) || ($modSettings['ars_adsetup_right_enabled'])) {
echo '</td></tr></table>';
}
// ARS ADS AT BOTTOM OF THE PAGE (CENTERED)
showArsAds("bottom");
// LOG/RECORD ADS IMPRESSIONS
logImpressions();
}
// END OF ARS PLACEMENT OF ARS ADS
or..
you can try to modify the AD Revenue Sharing install script, and replace the string to look for, with that it should find with Tinyportal installed.
:uglystupid2: