Seller store MOD enhancement

This is a discussion on Seller store MOD enhancement within the Feature Requests forums, part of the Help & Support category; You could make a duplicate of smarty function featured listings and change SQL call to select ads where the user ...


Go Back   68 Classifieds Forums > Help & Support > Feature Requests

 
LinkBack Thread Tools Display Modes
  #11  
Old 09-18-2008, 11:49 AM
Maffo's Avatar
The Master
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,399
Rep Power: 41
Default

You could make a duplicate of smarty function featured listings and change SQL call to select ads where the user = $userid and remove the need for the ad to be featured.
__________________
Super Mod v4 Is out and ready for download. DEMO
Purchase V4 Super Mod BETA at Reduced Price

Visit Me @ Classified-Sofware.co.uk

**Important** - All modules with the exceptions of the Bulk Upload System will be removed from my modshop on Tuesday September 30th. If you require a module you must get it before that date.
Reply With Quote
  #12  
Old 09-18-2008, 07:23 PM
Fatih67's Avatar
Member
 
Join Date: Jun 2008
Location: TURKEY
Posts: 42
Rep Power: 3
Red face

Quote:
Originally Posted by Maffo View Post
You could make a duplicate of smarty function featured listings and change SQL call to select ads where the user = $userid and remove the need for the ad to be featured.
sorry but I dont understand.
Can you write step by step code which is we need?
I dont have php code knowledge very well also I dont know English very well

but I need this modification..

Thank you.

edit: Also I want to use featured listing too. I want to use them each other.
__________________
� 2007 68 Classifieds - A division of 68 Designs, LLC - v4.0.3 Developer
Another 68C site ; ikinci el kamyonlar
Reply With Quote
  #13  
Old 09-19-2008, 03:16 AM
Senior Member
 
Join Date: Apr 2008
Posts: 130
Rep Power: 6
Default

Larry

I tried your code, but I don't see the difference with the previous function suggested by Juven 14 ....

Quote:
Originally Posted by Lhotch View Post
here is another mod so that in addition to working as intended the seller store will appear on the same page as an ad.

Add thhe following smarty to the viewlisting.tpl template

Code:
{* user store display *}
	{if $storeImage<>""}
		<div align="center">
			<img src="photos/{$storeImage|escape:"url"}" alt="{$storeTitle}" />
		</div>
		<br />
	{else}
		<h3>{$storeTitle}</h3>
	{/if}
	<table width="80%" align="center">
		<tr>
			<td>{$storeDescription}</td>
		</tr>
	</table>
{* end user store display *}
Then open /modules/seller_store/mod_user.php and below the current function and just above the php closing tag add this new function.

Code:
function seller_store_view_listing()
{
	global $db, $class_tpl;
	$myVar = $class_tpl->get_template_vars('owner');
	if (isset($myVar) && $myVar<>"")
	{
		$owner=(int)$myVar;
		$storeSQL = "SELECT sID,sUserID,sTitle,sDescription,sImage  FROM ".PREFIX."store WHERE sUserID = '".$owner."'";
		$storeResult=$db->query($storeSQL);
		$rows=$storeResult->size();
			if($rows>0)
			{
				$rs = $storeResult->fetch();
				$class_tpl->assign('storeID', $rs['sID']);
				$class_tpl->assign('storeTitle', $rs['sTitle']);
				$class_tpl->assign('storeDescription', $rs['sDescription']);
				$class_tpl->assign('storeImage', $rs['sImage']);
			}
	}
}
__________________
v4.08 Developer
Reply With Quote
  #14  
Old 09-20-2008, 06:41 PM
Fatih67's Avatar
Member
 
Join Date: Jun 2008
Location: TURKEY
Posts: 42
Rep Power: 3
Default

Quote:
Originally Posted by Fatih67 View Post
is this possible like that?
in viewlisting.php
Ads will displayed from the user under ads..
sorry for my bad English. So I want to show my ideo on a photo.



I did it wit paint

is this possible ?

Thank YOU....
?? any idea ??
this is very important .
__________________
� 2007 68 Classifieds - A division of 68 Designs, LLC - v4.0.3 Developer
Another 68C site ; ikinci el kamyonlar

Last edited by Fatih67; 09-24-2008 at 10:10 PM.
Reply With Quote
  #15  
Old 10-22-2008, 06:03 PM
Fatih67's Avatar
Member
 
Join Date: Jun 2008
Location: TURKEY
Posts: 42
Rep Power: 3
Default

up
up
__________________
� 2007 68 Classifieds - A division of 68 Designs, LLC - v4.0.3 Developer
Another 68C site ; ikinci el kamyonlar
Reply With Quote
  #16  
Old 10-28-2008, 05:27 AM
bowers01's Avatar
Senior Member
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 589
Rep Power: 14
Default

@Fatih67
If i remember correctly this will be in 4.1? am i correct?
Nick
__________________
Nick Bowers
68c v4.09 Developer
Reply With Quote

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
Module - Seller Store Eric Barnes v4 Modules / Modifications 48 11-18-2008 07:04 AM
Wanted: Seller Store Enhancements systemaddict v4 Modules / Modifications 0 06-02-2008 03:29 AM
Seller Store goose v4 Questions & Support 3 08-16-2007 12:08 AM
Is there any fix to this Seller Store for V4 RC3 ? Syafi v4 Questions & Support 0 06-14-2007 01:03 PM
More Seller Store related questions. ginggs v3.1 Questions & Support 6 04-13-2007 06:46 AM


All times are GMT -4. The time now is 04:19 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