Support Forums

Module - Ad Reporting

This is a discussion on Module - Ad Reporting within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Where exactly do you place the link?...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 08-04-2009, 11:10 AM   #11
Member
 
Join Date: Jul 2009
Posts: 42
Rep Power: 9
bobbydiva is on a distinguished road
Default

Where exactly do you place the link?
bobbydiva is offline   Reply With Quote
Old 08-04-2009, 11:36 AM   #12
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by bobbydiva
Where exactly do you place the link?
you place the link where you want it to appear on the page.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 08-04-2009, 11:41 AM   #13
Member
 
Join Date: Jul 2009
Posts: 42
Rep Power: 9
bobbydiva is on a distinguished road
Default

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"
bobbydiva is offline   Reply With Quote
Old 08-04-2009, 11:50 AM   #14
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by bobbydiva
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"
As stated in the very first post....

Quote:
Add this to the viewlisting template file:
there are typically 2 viewlistings file, which you ad it to depends on which you have your sit set to use.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 08-04-2009, 12:05 PM   #15
Member
 
Join Date: Jul 2009
Posts: 42
Rep Power: 9
bobbydiva is on a distinguished road
Default

Thanks for setting me on the right track.
I edited the listingextras2 file to get it exactly how I wanted.
bobbydiva is offline   Reply With Quote
Old 02-17-2010, 08:57 PM   #16
Customer
 
Join Date: Feb 2010
Location: Montreal, QC
Posts: 285
Rep Power: 12
EnergyFreak is on a distinguished road
Default

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.
EnergyFreak is offline   Reply With Quote
Old 02-17-2010, 09:41 PM   #17
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

As it states, it is added to the viewlisting TEMPLATE. You have full access to all the template files.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 02-18-2010, 04:06 AM   #18
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

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.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 02-18-2010, 09:22 AM   #19
Customer
 
Join Date: Feb 2010
Location: Montreal, QC
Posts: 285
Rep Power: 12
EnergyFreak is on a distinguished road
Default

Quote:
Originally Posted by seymourjames
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.
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.
EnergyFreak is offline   Reply With Quote
Old 02-18-2010, 09:33 AM   #20
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by EnergyFreak
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.
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.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 07:31 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0