Support Forums

css_listings_horizontal

This is a discussion on css_listings_horizontal within the TemplateCodes forums, part of the Third Party Support category; Hi, I would like to display in my userindex.tpl a listing with images like css_listing_horizontal can do but doing it ...


Go Back   68 Classifieds Forums > Third Party Support > TemplateCodes

This topic is closed.

This topic is closed to new replies.

 
Thread Tools Display Modes
Old 05-10-2010, 11:12 AM   #1
Customer
 
Join Date: Apr 2009
Location: South of Spain
Posts: 205
Rep Power: 13
magicosta is on a distinguished road
Default css_listings_horizontal

Hi,

I would like to display in my userindex.tpl a listing with images like css_listing_horizontal can do but doing it for each owner.

I put the following code {css_listings_horizontal number="20" owner=$smarty.session.uid} but it doesn't work. What I am doing wrong? Thanks for your help
__________________
Default Template - V 4.1.10 - Developper
magicosta is offline  
Old 05-11-2010, 05:20 AM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,175
Rep Power: 78
seymourjames is a jewel in the rough
Default

Is the variable for owner available to that template file? What happens if you do a specific owner like this

{css_listings_horizontal number="20" owner="5"}
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates and list your 68C site on ClassifiedCodes.com
seymourjames is online now  
Old 05-11-2010, 11:56 AM   #3
Customer
 
Join Date: Apr 2009
Location: South of Spain
Posts: 205
Rep Power: 13
magicosta is on a distinguished road
Default

Hi,

thank you for your reply.

In fact, the result with a number is "No result found" as a number is for a particular owner.
__________________
Default Template - V 4.1.10 - Developper
magicosta is offline  
Old 05-12-2010, 09:54 AM   #4
TemplateCodes
 
TemplateCodes-Mike's Avatar
 
Join Date: Apr 2010
Posts: 41
Rep Power: 5
TemplateCodes-Mike is on a distinguished road
Default

I believe the issue here is in the syntax of your smarty call. When you are inputing an integer (number) you do not use quotes ("5"), Quotes should only be used for text inputs (type="new").

So I believe this should be like this:
{css_listings_horizontal number=20 owner=5} <-- No quotes for the number inputs
__________________
TemplateCodes - Complete 68 Classifieds solutions and more
TemplateCodes-Mike is offline  
Old 05-12-2010, 05:42 PM   #5
Customer
 
Join Date: Apr 2009
Location: South of Spain
Posts: 205
Rep Power: 13
magicosta is on a distinguished road
Default

Thank you for your answer.

It does't work eather like that.
__________________
Default Template - V 4.1.10 - Developper
magicosta is offline  
Old 05-13-2010, 07:12 AM   #6
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,175
Rep Power: 78
seymourjames is a jewel in the rough
Default

I just tried this on our demo site

{css_listings_horizontal number="20" owner=219}


It correctly displayed 2 listings in userindex.tpl

However owner 219 is a registered user and not an admin. I notice if an owner is an admin it does not display anything. Have you tried working from a registered user account rather than admin status.

I will take another look and see why.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates and list your 68C site on ClassifiedCodes.com

Last edited by seymourjames; 05-13-2010 at 07:30 AM.
seymourjames is online now  
Old 05-14-2010, 10:54 AM   #7
Customer
 
Join Date: Apr 2009
Location: South of Spain
Posts: 205
Rep Power: 13
magicosta is on a distinguished road
Default

hi,

Thank you for your reply.

I am not sure I explain what I would like to display correctly.

I would like when an owner, any owner, enter its private account, he can see like with the 68 classifieds horizontal plugin:

{feature_listings_horizontal owner=$smarty.session.uid featured="N" number=15 cols=5 table_attr='style="border: 1px solid #996633; background: url(templates/default/images/anuncios_classificados.jpg) repeat; border-width: thin; padding: 2px;" align="center" width="90%" cellpadding="15" cellspacing="1"' td_attr='style="border: 1px solid #CC9966;" align="center" width="20%"' order_by='dateadded' order='desc'}

the ads he has placed.

Now, I would like to use the template code horizontal module to do it.

So, I tried to put the following code {css_listings_horizontal owner=$smarty.session.uid featured="N"} and it displays the ads but minus one!

Is there a reason for that? I suppose that with a number in place of "$smarty.session.uid" it works correctly but this is just for one particular owner and what I would like is a solution for every owner.
__________________
Default Template - V 4.1.10 - Developper
magicosta is offline  
Old 05-14-2010, 10:58 AM   #8
curmudgeon
 
Join Date: Mar 2006
Posts: 5,386
Rep Power: 135
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 magicosta

Now, I would like to use the template code horizontal module to do it.

So, I tried to put the following code {css_listings_horizontal owner=$smarty.session.uid featured="N"} and it displays the ads but minus one!

Is there a reason for that? I suppose that with a number in place of "$smarty.session.uid" it works correctly but this is just for one particular owner and what I would like is a solution for every owner.
Is the one ad you say it doesnt display a featured ad? The reason I ask is because your saying you want to display all a user ads BUT are also specifying "featured=N".
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 05-14-2010, 02:12 PM   #9
Customer
 
Join Date: Apr 2009
Location: South of Spain
Posts: 205
Rep Power: 13
magicosta is on a distinguished road
Default

Hi Larry,

Thank you for your reply.

No, "featured" was a mistake from my part. Anyway, even without that it not displays all ads. I just place a new simple ad and the plugin code from 68 classifieds works fine, there is one more ad now but the same code from templatecode plugin doesn't add any other ad. It's like it was limited to three ads!
__________________
Default Template - V 4.1.10 - Developper
magicosta is offline  
Old 05-14-2010, 02:52 PM   #10
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,175
Rep Power: 78
seymourjames is a jewel in the rough
Default

Read my post. I tested it and it works for me. This means code has perhaps ben modified somewhere else.

{css_listings_horizontal number="20" owner=$smarty.session.uid }

Does this show only 3 ads?

{css_listings_horizontal number="5"}

It should show 5 random ads.

now try this on your home page for example

{css_listings_horizontal number="5" owner=$smarty.session.uid }

what does it show?
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates and list your 68C site on ClassifiedCodes.com
seymourjames is online now  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
function.css_listings_horizontal plugin jason1971 TemplateCodes 1 03-20-2010 04:59 PM
function.css_listings_horizontal rubpay73 TemplateCodes 7 01-17-2010 06:42 PM


All times are GMT -4. The time now is 06:24 AM.


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