 | |  | | | Classifieds How do I...? Wondering how to do something in Classifieds? |
November 2nd, 2006, 04:15 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: May 2002 Location: Netherlands
Posts: 261
| Questions PP Classifieds as Personals
We have installed the latest PP Classifieds which we want to use as Personals. In Edit Ad Types we've only set Personals to 'yes' (Personals is all we need). We weren't sure how to also activate the Personals template so that the Personals would look like Personals instead of Classifieds but we figured out how to do it. We opened the category manager, edited the category and saved it without changing anything and then the personals template kicked in. Doing that also solved the problem that we had that when we clicked Place An Ad from the main page the dropdown menu was empty. The menu is showing the category now. So far, so good.
Eventhough the Personals template is being used now, it still says 'Ads from this Seller' in the personal ads. We want to change the word 'Seller' into 'User' for obvious reasons. Which file do we need to edit if we want to change the word Seller into User?
It also still says SOLD IT! Which looks kinda odd in Personals. We found that phrase in english.php. Is that the correct file to edit if we want to change SOLD IT! into UNLIST IT! ?
We want to make adjustments to the list that says Male Seeking Female etc. in the dropdown menu. We found those phrases in uploadproduct2.php. Can we simply adjust that file? Or do we need to edit more than one file?
Cheers.
|
| |
November 2nd, 2006, 06:54 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
You can edit the language files for that numeric filetype
showproduct2 showcat2 uploadproduct2 editproduct2 and place language strings to OVERRIDE THE DEFAULT language file english.php or you can edit that file directly
|
| |
November 2nd, 2006, 08:22 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: May 2002 Location: Netherlands
Posts: 261
|
Are you saying that I can change everything I mentioned ('Ads from this Seller', 'SOLD IT!', the contents of the menu that starts with 'Male Seeking Female') in english.php directly?
Which of the two options that you mentioned would you recommend? Or is it all the same?
Is one of the two options better (or easier) for when ugrading in the future perhaps?
|
| |
November 2nd, 2006, 08:42 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
If you use multiple template types you place language strings to override the default in the english subdirectory files showproduct2 etc etc
If your using only the personals template and no other templates you can edit the english.php file itself
On a normal site I recommend the first option cause thats how it is suppose to work but if your not using any other templates obviously the last option is easier.
|
| |
November 2nd, 2006, 10:14 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: May 2002 Location: Netherlands
Posts: 261
|
Okay I will try it. Thanks.
If I click Search then I see 'Specify a Price Range', Low Price, High Price, etc.
That doesn't belong in personals. How can I get rid of that?
|
| |
November 3rd, 2006, 08:37 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
You can always edit the search template and remove the html for the price search
|
| |
November 6th, 2006, 11:17 AM
|
#7 (permalink)
| | Member Verified Customer
Join Date: May 2002 Location: Netherlands
Posts: 261
| Quote:
Originally Posted by globalinsites Okay I will try it. Thanks.
If I click Search then I see 'Specify a Price Range', Low Price, High Price, etc.
That doesn't belong in personals. How can I get rid of that? | I removed this part from search.tmpl and re-uploaded the file in asci mode, checked it on the site but the 'Specify a Price Range', Low Price, High Price, etc.'-part is still there. What am I doing wrong?
<tr>
<td class="{$Style['menubar']}">
{$Globals['pp_lang']['pricerange']}
</td>
</tr>
<tr>
<td>
{$Globals['pp_lang']['low']}
<select name="low" class="{$Style['formboxes']}">
<option value=""></option>
<option value="0.00">{$Globals['pp_lang']['noneind']}</option>
<option value="25.00">{$Globals['pp_lang']['25']}</option>
<option value="50.00">{$Globals['pp_lang']['50']}</option>
<option value="100.00">{$Globals['pp_lang']['100']}</option>
<option value="250.00">{$Globals['pp_lang']['250']}</option>
<option value="500.00">{$Globals['pp_lang']['500']}</option>
<option value="1000.00">{$Globals['pp_lang']['1000']}</option>
</select>
<br />
<br />
</td>
<td>
{$Globals['pp_lang']['high']}
<select name="high" class="{$Style['formboxes']}">
<option value=""></option>
<option value="25.00">{$Globals['pp_lang']['25']}</option>
<option value="50.00">{$Globals['pp_lang']['50']}</option>
<option value="100.00">{$Globals['pp_lang']['100']}</option>
<option value="250.00">{$Globals['pp_lang']['250']}</option>
<option value="500.00">{$Globals['pp_lang']['500']}</option>
<option value="1000.00">{$Globals['pp_lang']['1000']}</option>
<option value="5000.00">{$Globals['pp_lang']['5000']}</option>
</select>
<br />
<br />
</td>
</tr>
|
| |
November 6th, 2006, 11:26 AM
|
#8 (permalink)
| | Member Verified Customer
Join Date: May 2002 Location: Netherlands
Posts: 261
|
Also, I couldn't find Male Seeking Female etc. in english.php but I did find it in languages/english/editproduct2.php and languages/english/uploadproduct2.php.
Should I edit both files?
|
| |
November 6th, 2006, 11:43 AM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
try editing the vb3enhanced search template
Try looking for the make female extra in the editproduct uploadproduct 2 template files not php files
|
| |
November 6th, 2006, 12:37 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: May 2002 Location: Netherlands
Posts: 261
| Quote:
Originally Posted by Chuck S Try looking for the make female extra in the editproduct uploadproduct 2 template files not php files | It says this in the .tmpl files:
<option selected="selected" value="{$Globals['pp_lang']['malefemale']}">{$Globals['pp_lang']['malefemale']}</option>
<option value="{$Globals['pp_lang']['femalemale']}">{$Globals['pp_lang']['femalemale']}</option>
<option value="{$Globals['pp_lang']['malemale']}">{$Globals['pp_lang']['malemale']}</option>
<option value="{$Globals['pp_lang']['femalefemale']}">{$Globals['pp_lang']['femalefemale']}</option>
<option value="{$Globals['pp_lang']['friends']}">{$Globals['pp_lang']['friends']}</option>
<option value="{$Globals['pp_lang']['other']}">{$Globals['pp_lang']['other']}</option>
But I don't think that if I will replace malefemale with somthing else that it will be displayed? It is displaying what is in the .php files or am I wrong? Just before you replied I had edited the .php files (and not the .tmpl files) and it seemed to work fine. I tried submitting an ad and it was displaying what I wanted it to display.
I mean, if I would edit the templates then I think I still would have to edit the .php files, no?
|
| |
November 6th, 2006, 12:42 PM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
You can change the language strings in the language file to say whatever you want otherwise you need to edit templates
|
| |
November 6th, 2006, 01:09 PM
|
#12 (permalink)
| | Member Verified Customer
Join Date: May 2002 Location: Netherlands
Posts: 261
|
And.. if I do a search then on the results page there is a Price and Condition field, which is also something that's not relevant in personals. Condition has to be renamed to In Search Of, and the Price table rows have to be removed I guess. Where/how do I do that? I searched in showcat2.tmpl but couldn't find it.
I also see a 'Sort By' dropdown menu on the search results page that contains Product Title, Lowest Price, Highest Price, ZipCode which are not relevant in personals. Where do I remove this?
Actually, ZipCode could be relevant for Personals but there doesn't seem to be an option to enter a ZipCode when submitting an ad.. I don't know if it will work if in the search option if I just add an extra field ZipCode.
Are there a lot more phrases that are not relevant in Personals that I haven't found out about yet? I didn't expect having to make al these changes when I was told that PP Classifieds could be used as Personals easily by using the Personals template.
|
| |
November 6th, 2006, 04:36 PM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
| Quote:
Originally Posted by globalinsites I didn't expect having to make al these changes when I was told that PP Classifieds could be used as Personals easily by using the Personals template. | How you see a personals template and how we see it is just different. The personals template provided is definately a personals template. You just dont want certain things and as such you would hack or mod your code.
Simple language string edits are nothing that is done from admin edit language. As far as editing your templates that on you to change it as you see fit. A search loads the default showcat template period since your not in a cat you cant load a personals template. You can always copy your showcat2 template contents to the showcat template
|
| |
November 6th, 2006, 09:57 PM
|
#14 (permalink)
| | Member Verified Customer
Join Date: May 2002 Location: Netherlands
Posts: 261
|
Okay, I just think that anyone who would use the script for personals only would want to make the same changes as me, but perhaps the script was never intented to be used for personals only.
Anywayz, I'm having a hard time understandig it all but little by little I'm getting there. At this point there are two things that I don't understand.
1.
In uploadproduct2.tmpl there is this code:
if ( $Globals['extra5name'] != "" ) {
echo<<<PPPRINT
<tr>
<td align="right" class="{$Style['tddetails']}">Your {$Globals['extra5name']}:</td>
<td class="{$Style['tddetails']}"><select name="extra5">
<option selected="selected" value="{$Globals['pp_lang']['slim']}">{$Globals['pp_lang']['slim']}</option>
<option value="{$Globals['pp_lang']['fit']}">{$Globals['pp_lang']['fit']}</option>
<option value="{$Globals['pp_lang']['muscular']}">{$Globals['pp_lang']['muscular']}</option>
<option value="{$Globals['pp_lang']['average']}">{$Globals['pp_lang']['average']}</option>
<option value="{$Globals['pp_lang']['extrapounds']}">{$Globals['pp_lang']['extrapounds']}</option>
<option value="{$Globals['pp_lang']['heavy']}">{$Globals['pp_lang']['heavy']}</option>
<option value="{$Globals['pp_lang']['noanswer']}">{$Globals['pp_lang']['noanswer']}</option>
</select></td>
</tr>
PPPRINT;
}
I am using uploadproduct2.tmpl from the vb3enhanced directory (appearantly), but when I replace the code for extrafield 5 with the code above, and add an extrafield5 in edit categories in the admin that I name 'Body Type', then when I go to my upload page it says 'Your Body Type' and I see an empty dropdown menu. I don't mind that the word Your is being added to it, I just don't understand why it's happening. And what I'd really like to know is: how can I get the dropdown menu to show 'slim', 'fit', 'muscular', etc.? In other words, what is it that I'm doing wrong that is causing the dropdown menu to be empty?
2.
I can't find the file that contains the contents of the dropdown menu that is on the search result page. I want to remove Product Title, Lowest Price, etc. Can you please tell me which file I need to edit? It's not in english.php, not in search.tmpl
I normally use search functions in HomeSite or DreamWeaver but it doesn't seem to work for .tmpl files. I also can't seem to preview .tmpl files which makes it a bit harder to understand what's what etc.
|
| |
November 7th, 2006, 08:22 AM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
In your language files do you have strings for those options? You can place strings in uploadproduct2.php language file in your english languages directory
all the drop downs are in search.tmpl and the language strings are definately in english.php
|
| |
November 9th, 2006, 11:06 AM
|
#16 (permalink)
| | Member Verified Customer
Join Date: May 2002 Location: Netherlands
Posts: 261
| Quote:
Originally Posted by Chuck S In your language files do you have strings for those options? You can place strings in uploadproduct2.php language file in your english languages directory | Okay thanks, I understand how this works now. One problem: when a user has submitted an ad and I want to edit it, then the option that he selected in one of the dropdown menu's is set to the field that contains selected="selected" on the page where I edit the ad. So, for example, if a user has set Body Type to Slim, then I don't see that on the page where I edit the ad. This means that before I edit an ad I have to see what the user selected from the dropdown menu's, then I edit the ad and have to select the options in the dropdown menu's again accordingly, because if I wouldn't do that then the field is set to the selected="selected" field after I edited the ad. What can I do to see what the user selected in the dropdowns on the page where I edit the ad? In other words, how can the selections from the dropdowns be saved so I don't have to re-enter them? Quote:
Originally Posted by Chuck S all the drop downs are in search.tmpl and the language strings are definately in english.php | I've searched for the strings from the Sort By dropdown menu (that I see on the search results page) in english.php again, but they are really not there.. I am looking in classifieds/languages/english.php and I searched for Product Title, Lowest Price, Highest Price and ZipCode and they are not in english.php, at least not in that exact same wording.
When I search for price then I do find 'high price' and 'low price' and some others but not Highest Price and Lowest Price. When I search for Zip I also find some matches but not 'ZipCode'. I can't find the exact same phrases in /classifieds/languages/english either.
|
| |
November 9th, 2006, 01:04 PM
|
#17 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
Well those are old hard coded options in the old days when Michael first made classifieds. I would do as I have instructed in other threads just remove all those hard coded options and replace those with the default extra4 and extra5 html from say the normal uploadproduct and editproduct templates. I would then suggest using 2.6 the new beta where you can define additional extra fields like Photopost per category you know the checkboxes dropdowns radio buttons and you wont have this issue
The language strings are definately there so honestly dont see how you miss them
$Globals['pp_lang']['high'] = "High Price";
$Globals['pp_lang']['low'] = "Low Price";
$Globals['pp_lang']['sortdist'] = "Enter your zipcode";
|
| |
November 9th, 2006, 01:21 PM
|
#18 (permalink)
| | Member Verified Customer
Join Date: May 2002 Location: Netherlands
Posts: 261
| Quote:
Originally Posted by Chuck S The language strings are definately there so honestly dont see how you miss them
$Globals['pp_lang']['high'] = "High Price";
$Globals['pp_lang']['low'] = "Low Price";
$Globals['pp_lang']['sortdist'] = "Enter your zipcode"; | Perhaps because "High Price" is not the same as Highest Price, and "Low Price" is not the same as Lowest Price etc. Which is what it says in the dropdown menu.
I did not miss those. Actually, I tried to remove those from english.php but Highest Price, Lowest Price etc. are still showing op in the dropdown menu on the search results page.
|
| |
November 9th, 2006, 01:44 PM
|
#19 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
There is no Highest Price or Lowest Price on a classifieds search page it is as I show here http://www.reeftalk.com/classifieds/search.php?cat=
Your talking about sorts in a sort box which shows many places in the program those are stored in the sort table of the database |
| |
November 9th, 2006, 02:34 PM
|
#20 (permalink)
| | Member Verified Customer
Join Date: May 2002 Location: Netherlands
Posts: 261
| Quote:
Originally Posted by Chuck S | I said the search results page, not the search page.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 10:21 PM. | |