1
script_fu
myAds module problems? Can you help...

hhttp://www.mrtowing.com/modules/myAds/

I've installed this module myads2.0.4jp because it appears
to be the most current release. All I get is an error when the module is accessed thru the front end. When in the admin / backend all seems fine except I cant figure out how to add any adds...

Im stumped anyone have any luck with this module and 2.0.7.3

2
script_fu
Re: myAds module problems? Can you help...

This has been done as well...

+ IMPORTANT!!!
- modify rights for /images_ann/ to CHMOD 777
- modify rights for config.php and /cache/ to CHMOD 666

-----------------------------------------------------

myblocksadmin.txt

Can't make heads or tail out of this file found in the admin folder of the module...


- myblocksadmin -


SUMMARY:

This files add blocks admin into your module.


BACKGROUND:

XOOPS's admin of blocks and groups will be hard to use,
when many modules is installed.
If each module has the block management screen for itself,
webmasters using XOOPS will feel it easy, I think.
I will recommend it to the module developers by all means.


HOW TO USE:

1) copy these 3 files into XOOPS_ROOT_PATH./modules/(your module)/admin/
2) edit admin/menu.php and add a menu item like this:

$adminmenu[] = array( 'title' => _MI_SYSTEM_ADMENU2 ,
'link' => "admin/myblocksadmin.php" ) ;

That's all !




CHANGELOG:

2003-12-18 0.03 for XOOPS <= 2.0.3 patch
(gperm_handler->deleteByModule() has only 1 parameter)
2003-12-12 0.02 'module_read' and 'module_admin' to be able to change
2003-12-4 0.01 first release



COPYRIGHT:

I do not insist on the right of these codes, and don't guarantee.


Hum whats that say? lol

3
ajuden
Re: myAds module problems? Can you help...
  • 2004/10/5 18:08

  • ajuden

  • Just popping in

  • Posts: 87

  • Since: 2003/4/17


Where did you download that version at? I am going to try installing it and see if I run into the same problems. Please post the link in here to download that version of myAds.

*Edit
Nevermind, I found the file....give me little while.

4
ajuden
Re:myAds module problems? Can you help...
  • 2004/10/5 18:27

  • ajuden

  • Just popping in

  • Posts: 87

  • Since: 2003/4/17


It looks like there is an error in index.php on line 58. If you remove this piece of code from the query ORDER BY $classm, then it should run just fine. I'm not sure why it's having a problem. I guess that the $classm variable is not properly set to a value, so it's trying to sort on a column and the column isn't anything.

5
script_fu
Re:myAds module problems? Can you help...

Here is the code you spoke of. What all should be taken out?

$result=$xoopsDB->query("select cid, title, img FROM ".$xoopsDB->prefix("ann_categories")." WHERE pid = 0 ORDER BY $classm") or die("Error");
list($ncatp) = $xoopsDB->fetchRow($xoopsDB->query("select COUNT(*) FROM ".$xoopsDB->prefix("ann_categories")." WHERE pid=0"));

I've edited this a couple different ways... no luck?

----------------------------------------------------------

This is the d/l
http://aleron.dl.sourceforge.net/sourceforge/xoops/xoops2-mod-myads_2_0_4jp.tar.gz

Thank you for helping...

6
ajuden
Re:myAds module problems? Can you help...
  • 2004/10/5 19:12

  • ajuden

  • Just popping in

  • Posts: 87

  • Since: 2003/4/17


Of this code, the bold part should be removed:
$result=$xoopsDB->query("select cid, title, img FROM ".$xoopsDB->prefix("ann_categories")." WHERE pid = 0 ORDER BY $classm ") or die("Error");

7
ajuden
Re:myAds module problems? Can you help...
  • 2004/10/5 19:16

  • ajuden

  • Just popping in

  • Posts: 87

  • Since: 2003/4/17


I'm not sure if you're familiar with SQL or not, but that is part of the SQL query that is retrieving the category records. The part that I'm having you remove is the section of the sql query that actually sorts the categories. But for some reason, the sort column isn't being filled propertly. I guess if you wanted to still have them sorted, that you could replace it with this:

Original
$result=$xoopsDB->query("select cid, title, img FROM ".$xoopsDB->prefix("ann_categories")." WHERE pid = 0 ORDER BY $classm") or die("Error");

New
$result=$xoopsDB->query("select cid, title, img FROM ".$xoopsDB->prefix("ann_categories")." WHERE pid = 0 ORDER BY title") or die("Error");

All I did was replaced the $classm variable with the actual column that we want to sort by (title).

8
script_fu
Re:myAds module problems? Can you help...

That worked fine... Thank you for all the trouble.

--------------------------------------------------

I have one more problem. I've been all thru the module now and I still can't figure out how to add any content whatsoever. Am I truly missing something here?

9
ajuden
Re:myAds module problems? Can you help...
  • 2004/10/5 19:53

  • ajuden

  • Just popping in

  • Posts: 87

  • Since: 2003/4/17


It looks like all of the addition of ads is done through the front end. I just looked at it, and what you need to do is:

1. create a category from the admin side.
2. Go to the front end, and click on the link to myAds
3. Click on the category that you just added.
4. In the center of the page at the top, you should see a link that says Add An Advertisement in this category.
5. Click on that link, and you should be able to add some ads.

Good Luck!

10
wcrwcr
Re:myAds module problems? Can you help...
  • 2004/10/5 20:09

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi

Well, after a search on "myads" i could not find anymore an old, large and usefull thread regarding this mod and CHAD, the user who cracked a lot this mod

Where it is??????

Login

Who's Online

364 user(s) are online (289 user(s) are browsing Support Forums)


Members: 0


Guests: 364


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits