News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Ad Management mod

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

Previous topic - Next topic

Kathleen Chute

I am using the digital theme. My friend was able to get this in for me.
Thank you!  It is a wonderful mod and your script is brilliant.
I don't know anything about this computer language stuff.
But I can deer Hunt !! That doesnt help me much here.
Can I pay you to further modify this for my digital theme? I would like to have rotating ads. CJ ads are all static and I would love to rotate them. If you can contact me at [email protected] and give me some idea How I could get this done , I would be grateful.
Thank you
Kathleen Chute
Watch My Parrot Pray   http://www.youtube.com/watch?v=hcPl_VVDAK8
CharlieO The Praying Parrot Facebook http://www.facebook.com/pages/CharlieO-The-Praying-Parrot/124619550943180
URL http://www.runwiththewild.com  Images That Speak Ur Language
URL http://www.gotchaserved.com Lifetime Directory listing free To the first 1000 members The best way to sell yourself!!
STOP YOUTUBE THEFT PLEASE Sign This Petition http://www.gopetition.com/petition/43302.html
URL http://www.Reptileus.com   Get curious
URL http://www.metennessee.com  Find Out Why
URL www.legalalone.com Doing my best

babjusi

Quote from: fawnfoto on October 05, 2009, 01:30:51 PM
I am using the digital theme. My friend was able to get this in for me.
Thank you!  It is a wonderful mod and your script is brilliant.
I don't know anything about this computer language stuff.
But I can deer Hunt !! That doesnt help me much here.
Can I pay you to further modify this for my digital theme? I would like to have rotating ads. CJ ads are all static and I would love to rotate them. If you can contact me at [email protected] and give me some idea How I could get this done , I would be grateful.
Thank you
Kathleen Chute


I do believe that there is an ad rotator mod at the mod site. Why don''t you give it a try?

ellion

hi,

i have a problem with this mod, i dont understand how this happened or if there is a setting for it.

the ads are onlly diplayed to members who are logged in. guests are not shown any ads, if any thing i would want this reversed but i cannot find any way to change this.

any ideas?

TheListener

Have you checked the permissions for guests?

Kathleen Chute

Quote from: babjusi on October 05, 2009, 01:32:39 PM
Quote from: fawnfoto on October 05, 2009, 01:30:51 PM
I am using the digital theme. My friend was able to get this in for me.
Thank you!  It is a wonderful mod and your script is brilliant.
I don't know anything about this computer language stuff.
But I can deer Hunt !! That doesnt help me much here.
Can I pay you to further modify this for my digital theme? I would like to have rotating ads. CJ ads are all static and I would love to rotate them. If you can contact me at [email protected] and give me some idea How I could get this done , I would be grateful.
Thank you
Kathleen Chute


I do believe that there is an ad rotator mod at the mod site. Why don''t you give it a try?
Im not so savy, Can the to mods be mixed?
Thank you
Kathleen Chute
Watch My Parrot Pray   http://www.youtube.com/watch?v=hcPl_VVDAK8
CharlieO The Praying Parrot Facebook http://www.facebook.com/pages/CharlieO-The-Praying-Parrot/124619550943180
URL http://www.runwiththewild.com  Images That Speak Ur Language
URL http://www.gotchaserved.com Lifetime Directory listing free To the first 1000 members The best way to sell yourself!!
STOP YOUTUBE THEFT PLEASE Sign This Petition http://www.gopetition.com/petition/43302.html
URL http://www.Reptileus.com   Get curious
URL http://www.metennessee.com  Find Out Why
URL www.legalalone.com Doing my best

babjusi

Quote from: fawnfoto on October 05, 2009, 02:42:07 PM
Quote from: babjusi on October 05, 2009, 01:32:39 PM
Quote from: fawnfoto on October 05, 2009, 01:30:51 PM
I am using the digital theme. My friend was able to get this in for me.
Thank you!  It is a wonderful mod and your script is brilliant.
I don't know anything about this computer language stuff.
But I can deer Hunt !! That doesnt help me much here.
Can I pay you to further modify this for my digital theme? I would like to have rotating ads. CJ ads are all static and I would love to rotate them. If you can contact me at [email protected] and give me some idea How I could get this done , I would be grateful.
Thank you
Kathleen Chute


I do believe that there is an ad rotator mod at the mod site. Why don''t you give it a try?
Im not so savy, Can the to mods be mixed?
Thank you
Kathleen Chute

You can un-install this one and use only the ad rotator mod.

Kathleen Chute

Quote from: babjusi on October 05, 2009, 02:46:19 PM
Quote from: fawnfoto on October 05, 2009, 02:42:07 PM
Quote from: babjusi on October 05, 2009, 01:32:39 PM
Quote from: fawnfoto on October 05, 2009, 01:30:51 PM
I am using the digital theme. My friend was able to get this in for me.
Thank you!  It is a wonderful mod and your script is brilliant.
I don't know anything about this computer language stuff.
But I can deer Hunt !! That doesnt help me much here.
Can I pay you to further modify this for my digital theme? I would like to have rotating ads. CJ ads are all static and I would love to rotate them. If you can contact me at [email protected] and give me some idea How I could get this done , I would be grateful.
Thank you
Kathleen Chute


I do believe that there is an ad rotator mod at the mod site. Why don''t you give it a try?
Im not so savy, Can the to mods be mixed?
Thank you
Kathleen Chute

You can un-install this one and use only the ad rotator mod.
I was hoping to pay to just get the ad mod that I have tweeked.I like the freedom I have with this and It cost me money evertime I make a change or a mistake
Thank you
forever learning
Kathleen
Watch My Parrot Pray   http://www.youtube.com/watch?v=hcPl_VVDAK8
CharlieO The Praying Parrot Facebook http://www.facebook.com/pages/CharlieO-The-Praying-Parrot/124619550943180
URL http://www.runwiththewild.com  Images That Speak Ur Language
URL http://www.gotchaserved.com Lifetime Directory listing free To the first 1000 members The best way to sell yourself!!
STOP YOUTUBE THEFT PLEASE Sign This Petition http://www.gopetition.com/petition/43302.html
URL http://www.Reptileus.com   Get curious
URL http://www.metennessee.com  Find Out Why
URL www.legalalone.com Doing my best

babjusi

Quote from: fawnfoto on October 05, 2009, 03:32:43 PM
Quote from: babjusi on October 05, 2009, 02:46:19 PM
Quote from: fawnfoto on October 05, 2009, 02:42:07 PM
Quote from: babjusi on October 05, 2009, 01:32:39 PM
Quote from: fawnfoto on October 05, 2009, 01:30:51 PM
I am using the digital theme. My friend was able to get this in for me.
Thank you!  It is a wonderful mod and your script is brilliant.
I don't know anything about this computer language stuff.
But I can deer Hunt !! That doesnt help me much here.
Can I pay you to further modify this for my digital theme? I would like to have rotating ads. CJ ads are all static and I would love to rotate them. If you can contact me at [email protected] and give me some idea How I could get this done , I would be grateful.
Thank you
Kathleen Chute


I do believe that there is an ad rotator mod at the mod site. Why don''t you give it a try?
Im not so savy, Can the to mods be mixed?
Thank you
Kathleen Chute

You can un-install this one and use only the ad rotator mod.
I was hoping to pay to just get the ad mod that I have tweeked.I like the freedom I have with this and It cost me money evertime I make a change or a mistake
Thank you
forever learning
Kathleen

Do you mean to make the ads rotate with the ad mod? No need to pay for everything. If you use the search system you will find the solution to this as it has been covered many times. Then try to make the edits yourself. Remember as long as you make a backup of the file/s prior to editing them, you should be fine.

Muldoon

#4268
Hi everyone,

Is there anyone out there that can help me with what files/edits I need to make to this mod work within the Mesh theme?  I have the mod installed and it works successfully in the SMF default theme but does not work with the Mesh theme right now.

Thank you.

ellion

Quote from: TheListener on October 05, 2009, 02:01:15 PM
Have you checked the permissions for guests?

thats the one,

thanks  :D

babjusi

Quote from: Muldoon on October 05, 2009, 08:28:54 PM
Hi everyone,

Is there anyone out there that can help me with what files/edits I need to make to this mod work within the Mesh theme?  I have the mod installed and it works successfully in the SMF default theme but does not work with the Mesh theme right now.

Thank you.

Try the mod parser for the edits, located under the download link.

Muldoon

I
Quote from: babjusi on October 06, 2009, 07:07:49 AM
Quote from: Muldoon on October 05, 2009, 08:28:54 PM
Hi everyone,

Is there anyone out there that can help me with what files/edits I need to make to this mod work within the Mesh theme?  I have the mod installed and it works successfully in the SMF default theme but does not work with the Mesh theme right now.

Thank you.

Try the mod parser for the edits, located under the download link.

I gave that a try however some of the edits to not match up so I'm wondering where I need to place the edits.  Also there is an edit to add something and it seems to already be there, so I'm not sure if I still need to add it.

That's why I'm a bit confuse and would love it if someone could walk me through this so I don't screw anything up :)

Thank you.

ɔɔɔɔɔɔuɥoɾ

Quote from: Muldoon on October 06, 2009, 10:30:02 AM
I gave that a try however some of the edits to not match up so I'm wondering where I need to place the edits.  Also there is an edit to add something and it seems to already be there, so I'm not sure if I still need to add it.

That's why I'm a bit confuse and would love it if someone could walk me through this so I don't screw anything up :)

Thank you.

Yea, lol.. of course, if it did match up the files would not have failed the test, where the parser says FIND, select only some of the code and find it, if a search of the partial code only finds one result then its safe to say that's the right place to edit


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Muldoon

Hi johncccccc,  I understand that as I went through all four files that were edited in the default theme and looked at them in the Mesh theme.

The files I need to tweak for the Mesh theme are:

BoardIndex.template.php
Display.template.php
MessageIndex.template.php
index.template.php

Now I think I was able to make all the modifications to the following files successfully:

BoardIndex.template.php
MessageIndex.template.php

First question -- For Display.template.php

It says to add this code after a particular line.  However, this code already shows below the line.  So my question is, do I still need to add it?

Quote
   //Display ads on the thread page
   if (function_exists("show_threadAds"))
   {
      $ads = show_threadAds();   
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);
   }

Final questions -- index.template.php

the final two edits in this file do not match up and I'm wondering where I need to place them in Mesh's file:


There are two places where this template_menu is found, one ending with a:  () ,     and one with a:   ()  {  but NOT a ();
Find:
Quote
template_menu();

Add after:
Quote

   //Below the menu ads
   if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
   {
      $ads = show_indexAds();   
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);

      //Tower left Ads
      $ads = show_towerleftAds();
      if(!empty($ads))
         echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

      unset($ads);
      //Tower Right Ads
      $ads = show_towerrightAds();   
      if(!empty($ads))
         echo '<table><tr><td width="100%" valign="top">';
      unset($ads);
   }   




This "Powered by" line does not exist in the file.
Find:
Quote
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!


Add Before:
Quote
   //Close table for towerright ads
   if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
   {
      $ads = show_towerrightAds();   
      if(!empty($ads))
         echo '</td><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td></tr></table>';

      unset($ads);
      //Close table for towerleft ads
      $ads = show_towerleftAds();   
      if(!empty($ads))
         echo '</td></tr></table>';
      unset($ads);

      //Show ads on the bottom of the page
      $ads = show_bottomAds();
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);
   }

Any advice would be great!  Thank you.

ɔɔɔɔɔɔuɥoɾ

hmmm, attach the files and I will see what I can do

also, add some info
any mods installed, which theme you have


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Muldoon

#4275
Hi johncccccc,

Thank you for taking a look at this.  I'm attaching two files from the Mesh Theme:

1)  index.template.php
2)  display.template.php

Additional info:
SMF 1.1.10
TinyPortal v0.9.8
Custom BBCode 2.00
Ad Management 2.3.1

Running the Mesh Theme.

ɔɔɔɔɔɔuɥoɾ

For the display.template.php, if the code is already there don't add it.

as for index.template.php, its because your theme is not based off of the default theme, thus the find code does not exist and we cant know where to edit, however, if you provide a link to your forum, I can try to see where that code would go on your theme :)


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Muldoon

Ok, thank johncccccc,

I will leave the display file as is regarding that specific change.

Also, here is a link to my forum:

http://www.thethirdoption.net/smf/index.php?action=forum

ɔɔɔɔɔɔuɥoɾ

ok I suspect, that you would add the code before the following line

Quote
   
echo '
                        <span class="smalltext">'
theme_copyright(), ' <br />

Im not 100% experienced with coding, but I know thats where the copyright info is displayed.
After making a backup, make those changes and be sure to add an ad to display at the bottom of all pages in ad management admin page for test, then ad that code above that line, if it does not work, replace backup and report back :)


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

ɔɔɔɔɔɔuɥoɾ

#4279
BUMP:
I just tested this edit on my test forum, I used my mod since it calls the same Find code, and the edit will work fine! :)

'

I added the ad, see the red box,

EDIT: Added your index.template.php file :)


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Advertisement: