Support Forums

random listings - SEO

This is a discussion on random listings - SEO within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Thought this may be useful for somebody who is into SEO and wishes to avoid duplicate empty pages which can ...


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

Reply
 
Thread Tools Display Modes
Old 07-23-2008, 07:53 PM   #1
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,233
Rep Power: 53
seymourjames has a spectacular aura about
Default random listings - SEO

Thought this may be useful for somebody who is into SEO and wishes to avoid duplicate empty pages which can get generated by searchresults. Details of this plugin can be found here

http://classifiedmods.com/viewlisting.php?view=32
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds, Matching WordPress Themes & Magento Online Stores

Last edited by seymourjames; 11-21-2008 at 08:01 PM. Reason: moving the lot into your new site
seymourjames is offline   Reply With Quote
Old 07-29-2008, 07:52 PM   #2
Member
 
Fatih67's Avatar
 
Join Date: Jun 2008
Location: TURKEY
Posts: 58
Rep Power: 8
Fatih67 is on a distinguished road
Red face

Quote:
Originally Posted by seymourjames

and create a function in the plugins directory as follows:
sorry , i didnt understand here.

can you say here with details.

what will i create ? what will its name ?

Cheers
__________________
� 2007 68 Classifieds - A division of 68 Designs, LLC - v4.0.3 Developer
Another 68C site ; ikinci el kamyonlar
Fatih67 is offline   Reply With Quote
Old 07-29-2008, 08:22 PM   #3
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,747
Rep Power: 51
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Quote:
Originally Posted by Fatih67
sorry , i didnt understand here.

can you say here with details.

what will i create ? what will its name ?

Cheers
The code that was listed should be saved in a file called "css_random_listings_horizontal.php". The file should be uploaded to your smarty plugins folder in your site.

So it would live here:
yourclassifiedsite/includes/classes/smarty/plugins/css_random_listings_horizontal.php

-Mike
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified)
Sandbox (v3.1.10, v4.0.9, 4.1.5)
Visit My blog for tips, tricks, tutorials, reviews for 68 Classifieds as well as 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 07-30-2008, 07:58 AM   #4
Member
 
Fatih67's Avatar
 
Join Date: Jun 2008
Location: TURKEY
Posts: 58
Rep Power: 8
Fatih67 is on a distinguished road
Cool

Quote:
Originally Posted by Mike-N-Tosh
The code that was listed should be saved in a file called "css_random_listings_horizontal.php". The file should be uploaded to your smarty plugins folder in your site.

So it would live here:
yourclassifiedsite/includes/classes/smarty/plugins/css_random_listings_horizontal.php

-Mike
thanks for your reply ,
but i didnt do it

i created css_random_listings_horizontal.php
and i add some codes to style.css but when i open my site i encountered white page...
by the way i dont have seo module


thanks Mike
__________________
� 2007 68 Classifieds - A division of 68 Designs, LLC - v4.0.3 Developer
Another 68C site ; ikinci el kamyonlar
Fatih67 is offline   Reply With Quote
Old 07-30-2008, 09:21 AM   #5
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,233
Rep Power: 53
seymourjames has a spectacular aura about
Default

Thanks Mike for making it clearer about file creation and placement.

It works well for me (visit the link to see) whether the SEF module is on or off. Google is biting as well. It is seeing lots of fresh and non-duplicate content.

Perhaps someone without the SEF module can quickly try. It really is a nice way to proceed when there are empty results pages, etc.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds, Matching WordPress Themes & Magento Online Stores
seymourjames is offline   Reply With Quote
Old 11-14-2008, 11:52 AM   #6
Senior Member
 
Join Date: Jan 2007
Posts: 119
Rep Power: 15
HotAir is on a distinguished road
Default Fixed a couple typos

I just added this to my V4.1.0 Beta 2 test.

There were two minor changes I had to make for this to work:

1. Line 3 in the code above has an extra space that needs to be removed. The correct line is:
Code:
function smarty_function_css_random_listings_horizontal($params, &$smarty)
(original code had "$pa rams" -- it should be "$params" as shown above)


2. The correct file name is:
function.css_random_listings_horizontal.php

It works great without the seo mod with those two changes.

Regards,
Jim
__________________
V3.1.10 Developer - live
V4.1.0 Beta 2 - sandbox
HotAir is offline   Reply With Quote
Old 11-14-2008, 02:14 PM   #7
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,233
Rep Power: 53
seymourjames has a spectacular aura about
Default

Thanks, I did not spot that. I just dumped it in too quickly. Nice to see someone else got this working.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds, Matching WordPress Themes & Magento Online Stores
seymourjames is offline   Reply With Quote
Old 11-14-2008, 06:55 PM   #8
Senior Member
 
Join Date: Jan 2007
Posts: 119
Rep Power: 15
HotAir is on a distinguished road
Default Adding extra fields

Now that I have this working, I've like to change what is shown. I've got some extra fields that I'd like to display in the output of this mod.

I've added the extra fields in showlistins.tpl per this thread: Link

But now I'd like to do the same for this 'function.css_random_listings_horizontal.php'. I don't know how to pull the extra fields and assign them to variables so I'll have access to them - anybody care to give this a go??

Regards,
Jim
__________________
V3.1.10 Developer - live
V4.1.0 Beta 2 - sandbox
HotAir is offline   Reply With Quote
Old 11-14-2008, 07:10 PM   #9
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,233
Rep Power: 53
seymourjames has a spectacular aura about
Default

First of all, the downloads are to be found here. Better to use the maintained source than copy the code out of the forum pages.

http://www.68classifieds.com/forums/...s-styling.html

All these modules do work with and without the SEO module with quite a bit of testing now. Secondly, the error in the file was commented out so I am unsure if that was the reason why one of the plugins was not working for one or two people. However, most people seem to have it working.


Unfortunately, I am not sure if there is a quick answer to your request but it would seem to be possible with a bit of trial and error.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds, Matching WordPress Themes & Magento Online Stores
seymourjames is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sort listings by... crystal Technical Support 4 06-02-2008 04:43 PM
Random Featured and Normal listings CHRD v3.1 Modules & Modifications 4 03-02-2008 08:58 PM
V4 Changes Eric Barnes Technical Support 24 11-12-2007 02:35 AM
How to display category total listings? dankellaway v3.1 Questions & Support 2 03-13-2007 02:25 PM
Top Listings sbuell20 v3.1 Questions & Support 0 09-02-2006 01:11 PM


All times are GMT -4. The time now is 05:04 AM.


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