Ad Management mod

Started by SMFHacks.com Team, January 30, 2006, 08:41:19 PM

Previous topic - Next topic

shadowshost

Ok all is good now. I had somehow pasted some code just like the one pointed out in other places. It was just crap still in my clipboard. I really need to not do this all day long :P

Thanks for pointing me in the right direction.

Faevilangel

#3081
Quote from: Faevilangel on September 24, 2008, 04:34:47 PM
just installed smf beta 4 & tried to install this mod but get error

SQL logic error or missing database
near "NOT": syntax error
File: /www/110mb.com/p/h/j/a/d/m/i/n/phjadmin/htdocs/Forum/Packages/temp/install.php
Line: 30

line 30 is the end of the sql creating tables :|


Strange error. Do you get anything in your Forum Error Log?


yeah it shows in my error logs...... any idea what could be wrong? no mods or templates were attempted before this mod so nothing that could interfere

session ID: d9f6f29f977fe36bc9db25bfb3411ff2  (i think)???
 
Type of error: Database 

http://phjadmin.110mb.com/Forum/index.php?action=admin;area=packages;sa=install2;package=ad_mod_v2-3-4_SMF_vbeta4.zip;pid=0 

Database Error: SQL logic error or missing database
near "NOT": syntax error

File: /www/110mb.com/p/h/j/a/d/m/i/n/phjadmin/htdocs/Forum/Packages/temp/install.php
Line: 30 

I am available for theme work, pm me for info

ronboy

I'm using SMF 1.1.6 and using SMF Default theme- core, I've installed ad managment but it don't work.  what am I doing wrong?  Can someone help me to get Ad Managment to work ?

MultiformeIngegno

Has someone seen this? :P

Quote from: lorenzone92 on September 25, 2008, 02:08:13 PM
BUG!!

In the new version of the MOD for SMF 2.0 beta 4 the index.template.php is wrong!!
It lacks of the "Welcome area" code!!

You have to add this in the index.template.php instead of the code contained in the MOD:

      // Show the total time logged in?
      if (!empty($context['user']['total_time_logged_in']))
      {
         echo '
               <li>', $txt['totalTimeLogged1'];

         // If days is just zero, don't bother to show it.
         if ($context['user']['total_time_logged_in']['days'] > 0)
            echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

         // Same with hours - only show it if it's above zero.
         if ($context['user']['total_time_logged_in']['hours'] > 0)
            echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

         // But, let's always show minutes - Time wasted here: 0 minutes ;).
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '
               </li>';
      }

      if (!empty($context['open_mod_reports']) && $context['show_open_reports'])
         echo '
               <li><a href="', $scripturl, '?action=moderate;area=reports">', sprintf($txt['mod_reports_waiting'], $context['open_mod_reports']), '</a></li>';
      echo '
            </ul>';
   }
   // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
   else
   {
      echo '
            <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
            <form class="windowbg2" id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
               ' , $txt['login_or_register'], '<br />
               <input type="text" name="user" size="10" />
               <input type="password" name="passwrd" size="10" />
               <select name="cookielength">
                  <option value="60">', $txt['one_hour'], '</option>
                  <option value="1440">', $txt['one_day'], '</option>
                  <option value="10080">', $txt['one_week'], '</option>
                  <option value="43200">', $txt['one_month'], '</option>
                  <option value="-1" selected="selected">', $txt['forever'], '</option>
               </select>
               <input type="submit" value="', $txt['login'], '" /><br />
               ', $txt['quick_login_dec'];

      if (!empty($modSettings['enableOpenID']))
         echo'
               <br />
               <input type="text" name="openid_url" id="openid_url" size="25" class="openid_login" />';

      echo '
               <input type="hidden" name="hash_passwrd" value="" />
            </form>';
   }
echo '</div>';
                     //Welcome Ads
                     if (function_exists("show_welcomeAds"))
                     {
                        $ads = show_welcomeAds();
                        if(!empty($ads))
                        {
                           echo '<div id="windowbg2" style="width:470px; float:right; margin-top:9px; margin-right:3px" align="right">';
                           if($ads['type']==0)
                              echo $ads['content'];
                           else
                              eval($ads['content']);
                           echo '</div>';
                        }
                        unset($ads);
                     }
                  echo '</div></div>


I hope you'll fix this asap! :)
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

ronboy

where do u go to put this?

MultiformeIngegno

Quote from: ronboy on September 26, 2008, 08:46:05 AM
where do u go to put this?
In index.template.php, replacing the old (wrong) code.. :)
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

W. Riker

Can somebody please put here in attachment the last change that must be made in ./Themes/default/Display.template.php

When i try copy it from here i get just a crap.  :'(


my smf: 1.1.6

W. Riker

Please somebody help me.

I just need that change in normal form.



Goodman854

Quote from: F.L.A.M.E.R on September 17, 2008, 06:18:05 PM
its just the place its looking is taken by some other code.. do it manually.. it is easy to be done...
sounds simple but what do I do? Add what code to premmisissions?

docmood

i added the ad mod to the smf 2.04 beta.
It all installed properly, no errors, the ad Manageemnt bit appears in my admin section.

I added a couple of adds from adsdaq and set them to appear as towers and below posts but nothing is appearing. I tried logging out and as another user but still nothing

Any ideas what i'm doing wrong?

W. Riker

Quote from: W. Riker on September 26, 2008, 10:21:31 AM
Can somebody please put here in attachment the last change that must be made in ./Themes/default/Display.template.php

When i try copy it from here i get just a crap.  :'(


my smf: 1.1.6

I still waiting somebody help me and put that attachment here. PLEASE!

Bigguy

Open the .xml file in that package and get the code from there. :)

W. Riker

Thanks Bigguy...

Now i have other problem...

I don't have this ads button



What should i do?

ccbtimewiz

Make sure that you're using english and not utf8-english under Server Settings.

W. Riker


Sudhakar Arjunan

Hi any updates for not showing the ads to the moderators.

Any one could help me.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

ccbtimewiz

Well that could be why the $txt[] aren't showing-- because the mod isn't supported in that language yet.

Try setting your language to english and see if the options appear.

W. Riker

Quote from: ccbtimewiz on September 28, 2008, 01:01:23 AM
Well that could be why the $txt[] aren't showing-- because the mod isn't supported in that language yet.

Try setting your language to english and see if the options appear.

No... it appears nothing because everything on my smf is set for croatian language.

Is there anything I can change that I get this mod works normally? This is my only way to put google ads on my forum.

roc07

hey can any1 do file edits to my files nd give me!!!!bcoz most the file edits are not found in my file!!!so pls can anybody help me!!!!!!!!!!!!!pls!!!!!!!!!!

thegiftedhands

Am using the SMF 1.1.6 and i was able to install the Ad Mod. below are its files
install.xml (12375 bytes)
LoadAds.php (8939 bytes)
package-info.xml (1075 bytes)
readme.txt (1759 bytes)
Ads.php (11778 bytes)
Ads.english.php (11679 bytes)
Ads.template.php (25316 bytes)
install.php (2370 bytes)
still it is not appearing on the configuration page. Is there anything am missing? please help

Advertisement: