This is a discussion on random listings - SEO within the v4 Modules / Modifications forums, part of the Help & Support category; Thought this may be useful for somebody who is into SEO and wishes to avoid duplicate empty pages which can ...
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 Last edited by seymourjames; 11-21-2008 at 08:01 PM. Reason: moving the lot into your new site |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
||||
|
||||
|
Quote:
So it would live here: yourclassifiedsite/includes/classes/smarty/plugins/css_random_listings_horizontal.php -Mike
__________________
Mike-N-Tosh v3.1.10 Developer IndianaPC.org - A community website Sandbox v4.0, 4.0.1, 4.0.4, 4.0.8, 4.1b3 Templates for sale | 68 Classifieds Customizations | My blog on 68 Web Hosting | Web Design & Development I am not a 68C employee, just a user and try to help out |
|
#4
|
||||
|
||||
|
Quote:
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 |
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
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) 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 |
|
#7
|
|||
|
|||
|
Thanks, I did not spot that. I just dumped it in too quickly. Nice to see someone else got this working.
|
|
#8
|
|||
|
|||
|
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 |
|
#9
|
|||
|
|||
|
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. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sort listings by... | crystal | v4 Questions & 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 | v4 Questions & 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 |