Module - Ad Reporting

Discussion in 'Modules / Plugins / Modifications' started by Eric Barnes, Mar 11, 2008.

  1. Eric Barnes Guest

    Ad Reporting Module
    This allows users to report listings

    Requirements
    Minimum 68 Classifieds version 4.0.0

    Instructions
    Download the zip file and upload it to your modules directory. Next visit administration -> manage modules -> regenerate.

    Version History
    • V1.0.1 - Fixed template call.
    • V1 - First Release
    Instructions

    Add this to the viewlisting template file:
    Code:
    <a href="modules.php?mod=ad_reporting&id={$view}">Report this listing</a>
    
    Download

    Attached Files:

  2. ksuralta Customer

    Error

    I got this error when I click on the Report Bad Ad link: <a href="{$smarty.const.URL}/modules.php?mod=ad_reporting&id={$view}">Report Bad Ad</a>

  3. Eric Barnes Guest

    I just replaced the zip file with a fixed version.
  4. kushti Customer

    Can you please advise where best to place this in the template as I cannot get it to show.
  5. Eric Barnes Guest

    I just realized I didn't post the full html for the link. It should be:
    Code:
    <a href="modules.php?mod=ad_reporting&id={$view}">Report this ad</a>
    
  6. ksuralta Customer

    It's working now. Thanks a lot!
  7. cliff Customer

    This function is very nice, working smoothly
  8. centinel3 Customer

    how does this work

    I would like to know how this works? I noticed when I DL'd the script that it was vbulletin. Do the users have to register again through vbulletin in order to report an AD? Where does the report go/to whom (admin, or is this set up in the admin area?)?

    Any information would be appreciated. I'm running v.4

    chris
  9. Eric Barnes Guest

    Basically it uses the admin email setup in the administration.
    When a users want to report a listing it automatically fills out the contactus.php page with the listing id and will send an email to the admin.

    It doesn't have anything to do with vBulletin.
  10. philoo Customer

    Eric,

    According things I saw about this module in 911 classifieds it seems nice, but I think it could be nicer very easily

    1 - The report only gives the ID of the ad, not a link
    The admin will have to copy/paste this ID in a link or search for it in admin panel. It could be a better thing if the report email contains a direct URL to the reported ad...
    It could be easy to ad something like /viewlisting.php?view=ID :o [B]2... their spam email [inside] the email form ...
  11. bobbydiva Customer

    Where exactly do you place the link?
  12. Lhotch curmudgeon

    you place the link where you want it to appear on the page.
  13. bobbydiva Customer

    Ok, but what file am I editing?
    And whereabouts makes most sense?

    I tried editing viewlisting but got an error. I'd like it to go below "contact the owner"
  14. Lhotch curmudgeon

    As stated in the very first post....

    there are typically 2 viewlistings file, which you ad it to depends on which you have your sit set to use.
  15. bobbydiva Customer

    Thanks for setting me on the right track.
    I edited the listingextras2 file to get it exactly how I wanted.
  16. EnergyFreak Customer

    I have the designer license... Does this mean I cannot add this to my script? Because it adds as a module but I cannot add the extra line you posted just on top of the .zip on my ads page.
  17. Mike-N-Tosh Developer & Moderator

    As it states, it is added to the viewlisting TEMPLATE. You have full access to all the template files.
  18. seymourjames All Hands On Deck

    The process is this

    1. unzip the module download.

    2. upload the module into your modules folder

    3. go to the modules section on your 68C admin control panel and activate the module.

    4. go to your template folder and find the viewlisting template file. As you are using the purple template (I seem to remember) you need to go to the default template folder to find that file. Copy it into your purple template because you are going to make a change and it is good practice to always leave your default template folder unchanged.

    The system basically works like this. If the specific template file is found in the current (active template folder) then it will be used, else the system will search and use the template file sitting in the default template folder. This is why the purple template only appears to have a few files in it. Its because all the other files can be found in the default template folder and there is no need to have them exist twice. Many people however to make it easier for themselves, will copy all the files from the default template which are not in their current template (say purple) into their current template folder (say purple). Everything is then in one folder and it is not necessary to hunt it down in the default template next time.

    5. open the viewlisting.tpl file and add the line of code (link) into the page where you would like it to appear.

    Job done.
  19. EnergyFreak Customer

    Okay thanks but the template I am using only has like three .tpl files included. I may have to consider changing to the default one and modifying from there after my page issue is solved.
  20. Lhotch curmudgeon

    I think you should slow down just a little bit, you seem to be getting ahead of yourself.

    As David just explained, the template system uses a tiered approach. The default template folder contains ALL the template files needed.

    When you use a template other than the default (ie specify to use a different one in the sites admin) the front end will first look in its specified folder for the template needed and if it doesnt exist it then will use the template from the default folder.

    What I recommend when not using the default template is that any time you need to edit a template file, and it does not exist in your current template directory, COPY the needed template file from the default folder to your current template folder and edit that copy instead of the default.

    I also recommend you do NOT alter the default template at all. It can often be used for troubleshooting purposes so its nice to have it, in its unmodified state, to revert back to to see if an issue is template related. With that in mind if you want to customize the default template, create a new folder in your main template folder and copy the contents of the /default templates to it and in turn edit those.

    After copying the default files to your new template folder make sure to edit the config.php file in your new template folder.

Share This Page