News:

Wondering if this will always be free?  See why free is better.

Main Menu

Ad Management mod

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

Previous topic - Next topic

Pragmatist

Thanks bigguy--there is a slight issue though.  The edits you referred to are the same as the ones I got back when running the package through the sleepy parser.  Again, the theme is Classic yabb SE.  In the index.template.php file, the instructions refer to finding </td>.  As this appears nearly a dozen times in the code, just where are we talking about inserting the new lines?

Next, in boardindex.template.php, the following lines of code do not exist:

        echo '
</div> ';


which makes it difficult to place the next code snippet... :(

In display.template.php, the instructions say to replace // Get all the messages... with a code snippet--here is the original code for that instruction:

// Get all the messages...
   while ($message = $context['get_message']())
   {
      echo '
   <tr><td style="padding: 1px 1px 0 1px;">';


Do the last two lines need to remain after pasting the new snippet?

Then, in messageindex.template.php, the following combination of lines does not exist:

echo '
        </table>
    </div>';


Another instance of where to put the snippet referred to... ::)

I appreciate all of your work, and hope that you can help.  the Classic yabb SE theme is used in many installations--as it is bundled with SMF, clean, and makes boards resemble vBulletin!  8)

TNX, Patrick


marylina

Quote from: Bigguy on March 05, 2008, 12:57:06 PM
You are using a custom theme. Have all the template files been modified. ???

Not that I am aware of. Which templates do I need for my custom theme to work. I wanted to add the header and footer module too but that didn't work either. I wanted to add others too but I am not sure if it will work with the custom theme I have. I want to add the neat board one but not sure if I should or not.

Thanks for replying.

Bigguy

@ Pragmatist: Can you upload those three files and when I have time today I will take a look...sometimes it takes a bit of digging to get it. I am not sure I have played with this theme though.

@ marylina: Switch back to the default theme and see if all the mods are working. If they do then you need to go into your custom theme folder and tell me which template files are there.

Pragmatist

Here they are.  These are "clean" PHP's that were bundled with SMF 1.1.4 in the |classic| theme folder.

TNX, Patrick

marylina

Quote@ marylina: Switch back to the default theme and see if all the mods are working. If they do then you need to go into your custom theme folder and tell me which template files are there.

Here are the themes that are in my custom theme.

Ads.template.php
BoardIndex.template.php
Display.template.php
ManageBoards.template.php
MessageIndex.template.php
Recent.template.php
Settings.template.php
Themes.template.php
index.template.php

I switched my forum to the default theme and everything looks fine. Even the Headers and Footers option came up. Let me know what themes I need to move over in order for my forum to look the way I want it to look.

Thanks.

sfreak

Quote from: Bigguy on March 05, 2008, 10:40:53 AM
Did you just do the manual edits without installing through the package manager. ???

yes biggy i edited manually with out installing through  package manager......




MeRcChRiS

Is there anyway to make it so the banner rotates every x seconds or so like the newsflash?

Bigguy

@ marylina: You need to edit these files then:

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

@ Pragmatist: I will get to those now.

@ MeRcChRiS: Not that I am aware of right now. Try searching through this topic maybe you will find someone else has done it.

Bigguy

@ Pragmatist: Ok Try these files; PLEASE BACKUP THE ORIGINALS BEFORE trying. They produce no errors at all so they should be fine. :)

sfreak

Quote from: kcscm on March 05, 2008, 07:52:57 PM
Quote from: Bigguy on March 05, 2008, 10:40:53 AM
Did you just do the manual edits without installing through the package manager. ???

yes biggy i edited manually with out installing through  package manager......





whats the solution dude....

please help me......


Bigguy

Did you get this error while trying to install it or use it ???

Quote from: kcscm on March 03, 2008, 07:58:56 PM
hi folks...

when i want to install admod i am getting this error

Table 'studentsspot.smf_ads' doesn't exist
File: /mounted-storage/home34a/sub001/sc27813-WZXZ/studentsspot.com/Sources/LoadAds.php
Line: 33

please tell me in detail what i have to do to remove this error....

sfreak

yes bigguy i am getting that error.....when i am trying to install that mod....

Bigguy

Your not trying to install it after you did the manual edits are you. ???

sfreak

bigguy i edited all files and when i am uploading files to paths according to packageparaser

i am not getting any problem while uploading except loadads.php file....

when i uploaded loadads.php file.....

i am getting that problem..........

please help me friend how to solve this problem....

Bigguy

I think what the problem here is is that the install.php file was not run so there are no database tables to go with the edits you have done. This is why you should install the mod first and then do the manual edits after.

BEFORE DOING THIS BACKUP THE DATABASE

What you can try doing is unzip the ad mod and take out the install.php file and upload it to the root of your SMF install. Then point your browser at that file and run it. It SHOULD put the database tables in the database for you.

BEFORE DOING THIS BACKUP THE DATABASE.

sfreak

thanks for u r help bigguy

please tell me how to BACKUP THE DATABASE.  sorry for asking this ...i am a noob dude.....

Bigguy

Go into the admin panel then to Forum Maintenance after that you'll see:

Forum Maintenance - Backup Database

Check mark all of the checkmarks and then download. This will store a database backup on your computer incase you need it. It is usually a good idea to take one from phpmyadmin in cpanel as well but this should do for now.

Another idea would be (if you don't have any mods installed) to replace all the files that you edited manually with fresh ones; then install the ad mod and re-upload all your edits files again to overwrite the clean ones on the server. This should give you all the edits and the database changes.

lonrot

Quote from: Kender on March 04, 2008, 03:15:40 AM
Quote from: lonrot on March 03, 2008, 07:34:28 PM
Quote from: Oga123 on March 03, 2008, 01:32:26 AM
Quote from: lonrot on March 02, 2008, 09:19:26 PM
Quote from: bassbass on February 28, 2008, 04:39:18 PM
Quote from: lonrot on February 28, 2008, 03:02:17 PM
Is it possible to disable ads for a "based off posts" membergroup?

Absolutely, its in the permissions.  this is how i have it set up

Not working for me. I've created a membergroup which requires 60 posts.
In the permissions I uncheck "enable Ads" but the ads keep appearing!
Try to uninstall other mods you install before the ad mod, then install the ad mod first.

One thing, for "non post" membergroups such as administrators, moderators, the ad permissions do work.
But not for "post based" members. This is getting very odd.

is the person seing the ad in a membergroup thats not post related that is supposed to see them?

ie "post count 200" - no ads
"group xenophobes" - ads

most likely, if the group they are in will see ads, they will see ads as part of that group
Yes, all the post-based membergroups are part of the "regular members" group which has ads enabled, by default the post-bassed groups are part of it. Any ideas?

marylina

Quote from: Bigguy on March 06, 2008, 12:41:12 AM
@ marylina: You need to edit these files then:

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


What am I editing and with what? I'm so confused.

Bigguy

In order for the ad mod to run on your custom theme you will have to download those 4 files I mentioned and edit them with the code manually. Save the originals somewhere and then upload the edited ones you did. It should all work fine then.

 
Advertisement: