1
robertelo
Classifieds help Please
  • 2008/12/4 6:50

  • robertelo

  • Just popping in

  • Posts: 77

  • Since: 2008/11/28


Hi everyone, I use Classifieds module. As a visitor (before logging in) when i click on Classifieds module, i am faced with a block of categories.

What i want to do is to add a Button labelled "SUBMIT YOUR AD" just below "There are 1 Classified Ad(s) active in 28 categories "

Can you please tell me how to do this?

Thank you

2
tzvook
Re: Classifieds help Please
  • 2008/12/5 10:40

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


@ robertelo
Your question is about basics in XOOPS customization, so I'll answere a general answere ...
(almost) all the module's apearance acheived via it's _modules_/_your-module_/templates/whatever.php files.

Block apearance via it's _modules_/_your-module_/templates/blocks/whatever.php ....

So go there and edit the file you need to (you'll probably understand from the /templates/blocks/ file names which block file should be edited ...

Since Classifieds module need the user to submit the ADD from within a category, adding it to the block may be a bit useless

Don't forget to update the module afterwards (via Site Admin ==> modules admin)

Advice: read a beat @ Xoops FAQ

3
robertelo
Re: Classifieds help Please
  • 2008/12/5 10:52

  • robertelo

  • Just popping in

  • Posts: 77

  • Since: 2008/11/28


Thank you very much for your insights. I will try even if i am not a coder.

I will play with the code hoping it will get done.

4
Anonymous
Re: Classifieds help Please
  • 2008/12/5 12:08

  • Anonymous

  • Posts: 0

  • Since:


edit classifieds/templates/classifieds_category.html

then replace:
<{$add_listing}>
with:
<img src="<{$xoops_url}>/modules/classifieds/images/submit.jpg" alt="Submit Your Ad" width="200" />


and don't forget to upload submit.jpg to classifieds/images folder.


5
robertelo
Re: Classifieds help Please
  • 2008/12/5 13:17

  • robertelo

  • Just popping in

  • Posts: 77

  • Since: 2008/11/28


Hi Mowaffak thank you i did what you said but now when i click on classifieds in the main menu, i get this
Quote:
Sorry, you don't have the permission to access this area.

If the page does not automatically reload, please click here


I don't know why?

6
sailjapan
Re: Classifieds help Please

Have you set permissions to allow anonymous users to submit ads?
Never let a man who does not believe something can be done, talk to a man that is doing it.

7
robertelo
Re: Classifieds help Please
  • 2008/12/5 15:00

  • robertelo

  • Just popping in

  • Posts: 77

  • Since: 2008/11/28


Sailjapan Oh yes you are right thank you.

But, Mowaffak suggestion still didn't do what i need. It only showed the button image (submit.jpg) when i click on a category.

1.Unfortunately It is just an image = not a button. (It has no action)

2.It doesn't appear below There are x Classified Ad(s) active in 28 categories

It appears only if i click on a category.


Any suggestions are welcome.


8
Anonymous
Re: Classifieds help Please
  • 2008/12/5 20:53

  • Anonymous

  • Posts: 0

  • Since:


Try this:

<a href='addlisting.php?cid=<{$cat}>'><img src="<{$xoops_url}>/modules/classifieds/images/submit.jpg" alt="Submit Your Ad" width="200" />a>


9
sailjapan
Re: Classifieds help Please

How about adding a pop-up menu showing all the categories in which people can add an ad, or is there already one in the 'add an ad' dialogue box?

did I phrase that ok?
Never let a man who does not believe something can be done, talk to a man that is doing it.

10
robertelo
Re: Classifieds help Please
  • 2008/12/6 7:13

  • robertelo

  • Just popping in

  • Posts: 77

  • Since: 2008/11/28



Quote:
Submit Your Ad


Mowaffak, it didn't work either..

When I clicked on the button, i got at once this message even if i didn't write any ad.

Quote:
Your Classified Ad will start immediately
Since you are a Premium Member, you can choose how long your ad will last.

It will last 14 days, if you don't change it.



@Sailjapan sorry i didn't understand your point.

Login

Who's Online

349 user(s) are online (255 user(s) are browsing Support Forums)


Members: 0


Guests: 349


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