68 Classifieds Forums

random listings - SEO

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 ...


Go Back   68 Classifieds Forums > Help & Support > v4 Modules / Modifications

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 07-23-2008, 07:53 PM
Moderator
 
Join Date: Mar 2008
Posts: 551
Rep Power: 16
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

__________________
Version 4.09
TemplatesCodes.com For 68C

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

Quote:
Originally Posted by seymourjames View Post

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
Reply With Quote
  #3  
Old 07-29-2008, 08:22 PM
Mike-N-Tosh's Avatar
Moderator
 
Join Date: Jan 2007
Posts: 988
Rep Power: 30
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

Quote:
Originally Posted by Fatih67 View Post
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
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
Reply With Quote
  #4  
Old 07-30-2008, 07:58 AM
Fatih67's Avatar
Member
 
Join Date: Jun 2008
Location: TURKEY
Posts: 42
Rep Power: 3
Fatih67 is on a distinguished road
Send a message via MSN to Fatih67
Cool

Quote:
Originally Posted by Mike-N-Tosh View Post
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
Reply With Quote
  #5  
Old 07-30-2008, 09:21 AM
Moderator
 
Join Date: Mar 2008
Posts: 551
Rep Power: 16
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.
__________________
Version 4.09
TemplatesCodes.com For 68C
Reply With Quote
  #6  
Old 11-14-2008, 11:52 AM
Senior Member
 
Join Date: Jan 2007
Posts: 123
Rep Power: 11
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
Reply With Quote
  #7  
Old 11-14-2008, 02:14 PM
Moderator
 
Join Date: Mar 2008
Posts: 551
Rep Power: 16
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.
__________________
Version 4.09
TemplatesCodes.com For 68C
Reply With Quote
  #8  
Old 11-14-2008, 06:55 PM
Senior Member
 
Join Date: Jan 2007
Posts: 123
Rep Power: 11
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
Reply With Quote
  #9  
Old 11-14-2008, 07:10 PM
Moderator
 
Join Date: Mar 2008
Posts: 551
Rep Power: 16
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.
__________________
Version 4.09
TemplatesCodes.com For 68C
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -4. The time now is 03:21 PM.


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22