Support Forums

seller list

This is a discussion on seller list within the Modules / Plugins / Modifications forums, part of the Developer Forums category; hi all , can someone help me with member list , i need to add a link to the home ...


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

Reply
 
Thread Tools Display Modes
Old 08-18-2010, 02:57 AM   #1
Customer
 
Join Date: Mar 2010
Posts: 5
Rep Power: 0
ehabkhriees is on a distinguished road
Default seller list

hi all ,

can someone help me with member list , i need to add a link to the home page to view the members list with logo and seller details and no of ads place by each member

while I'm searching on all the posted subject i found attached picture which i exactly i need but , i didn't found the module

thank you
Attached Images
File Type: png list_stores.png (102.7 KB, 13 views)
ehabkhriees is offline   Reply With Quote
Old 08-18-2010, 05:45 AM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

I am not really following the issue You want a link to this page below shown on your home page? Just put this piece of code into your home.tpl file or directly into the database via your admin control panel's page editor. Use the url of course that the documentation for the module actually suggests:


<a href = "http://www.mydomain.com/mypage.php" title = "the page title">link title</a>

If you want the link to be shown on every page you put it into your layout.tpl file. However, I am not sure looking at your picture that the module produces this page by default. I am not so familiar with this module.

I am presuming you have installed the module and configured it? The module is found here on classifiedmods.com as are all modules for 68 Classifieds.

ClassifiedMods Seller Store

but I notice the link to the download is broken. I also cannot find it on Eric's blog either. He probably has it somewhere.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting

Last edited by seymourjames; 08-18-2010 at 06:13 AM.
seymourjames is offline   Reply With Quote
Old 08-18-2010, 05:58 AM   #3
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

And indeed he has Downloads - elbmods - Project Hosting on Google Code . Found it on his googlecode repository.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting

Last edited by seymourjames; 08-18-2010 at 06:11 AM.
seymourjames is offline   Reply With Quote
Old 08-18-2010, 06:28 AM   #4
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 35
bowers01 is on a distinguished road
Default

something like Current Dealers - truckandmachinery.com.au


Regards,
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 08-18-2010, 12:17 PM   #5
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

That looks good Nick. what were the steps in doing this?
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 08-19-2010, 05:27 AM   #6
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 35
bowers01 is on a distinguished road
Default

Quote:
Originally Posted by seymourjames
That looks good Nick. what were the steps in doing this?
Create a php page, in this case dealers.php
PHP Code:
<?php
require_once('includes/init.php');
require_once(
FILESYSTEM_PATH .'modules/seller_store/includes/functions.php');
require_once(
FILESYSTEM_PATH .'includes/classes/kernel/Users.php');


        
$sSQL "SELECT s.sID,s.sUserID,s.sTitle,s.sDescription,s.sImage,u.city,u.state,u.phone FROM ".PREFIX."store AS s LEFT JOIN ".PREFIX."users AS u ON s.sUserID = u.id";
        
$result=$db->query($sSQL);
        
$data=array();
        while(
$rs $result->fetch())
        {
            
$data[]=$rs;
        }
        
$class_tpl->assign('results'$data);
        
$class_tpl->assign('body','dealers.tpl');
        
$class_tpl->display('layout.tpl');

?>
then a template file call dealers witht he following
Code:
<fieldset>
	<legend>Current Dealers</legend>
				<table width="100%"  border="0" cellspacing="0" cellpadding="3">
				<tr>
					<td align="center"><h3>Dealer Name</h3></td>
					<td align="center"><h3>Phone</h3></td>
					<td align="center"><h3>View Items</h3></td>
					<td align="center"><h3>Logo</h3></td>
				</tr>
				{foreach from=$results item="entry"}
				<tr>
		          	<td class="{cycle values="row1,row2" advance=false}" align="center"><a href="{$smarty.const.URL}/searchresults.php?owner={$entry.sUserID}"><br /><strong>{$entry.sTitle|replace:'&':'&'}</strong><br />{$entry.city}, {$entry.state}</a><br /><br /></td>
					<td class="{cycle values="row1,row2" advance=false}" align="center">{$entry.phone}</td>
					<td class="{cycle values="row1,row2" advance=false}" align="center"><a href="{$smarty.const.URL}/searchresults.php?owner={$entry.sUserID}">View Items</a></td>
					<td class="{cycle values="row1,row2" advance=true}" align="center"><a href="{$smarty.const.URL}/searchresults.php?owner={$entry.sUserID}">{if $entry.sImage == ""}{$entry.sTitle|replace:'&':'&'}{else}<img src="http://photos.truckandmachinery.com.au/{$entry.sImage}" width="400px" alt="{$entry.sTitle}" />{/if}</a></td>
				</tr>
				{foreachelse}
					<tr><td colspan="5">{$smarty.const.LANG_NO_RESULTS}</td></tr>
				{/foreach}
				</table>
</fieldset>
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 08-19-2010, 01:40 PM   #7
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

Did you modify any of the checkout steps?
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 08-19-2010, 06:25 PM   #8
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 35
bowers01 is on a distinguished road
Default

nope should work on a stock install with the latest seller store.
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 08-20-2010, 08:18 AM   #9
Customer
 
Join Date: Mar 2010
Posts: 5
Rep Power: 0
ehabkhriees is on a distinguished road
Lightbulb

Quote:
Originally Posted by bowers01
nope should work on a stock install with the latest seller store.
Nick
thank you nick , i will try and let you know

one more thing , what if i need to show all new member on the right column of the 3Col template , shall i use the same code which you send before ,
ehabkhriees is offline   Reply With Quote
Old 08-20-2010, 09:20 AM   #10
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

This is a very different requirement from your original request. I think it would be a good idea if you actually wrote down your actual requirement in one go. Nick's stuff is about putting the member list into the main content area of a page which he has called dealers.php . If you are seeking to have a new members list (what is the definition of a new member, how many, time period, etc?) in the sidebar on every page then you will almost certainly need to make your own module to do that. This module would need to be embedded into your layout.tpl file. If you only wish this module to appear on certain types of pages then you will need to also test in your layout.tpl file to determine which page you are actually on - either a page to display or a pay not to display.

I think you should look at the documentation on templates because it is generally only the middle part (the main content area) that changes from page to page. The exception being if you are logged in or not where the menu and sidebar content links are modified (if I remember correctly - well we do that in our templates).
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting

Last edited by seymourjames; 08-20-2010 at 11:00 AM.
seymourjames is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Generate List of Seller Stores bowers01 Modules / Plugins / Modifications 4 12-21-2008 12:56 PM
Private seller AND Commercial Seller !!! Respectful user Pre Sales Questions 5 09-05-2008 11:06 PM


All times are GMT -4. The time now is 07:32 AM.


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