Support Forums


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

Notices

 
LinkBack Thread Tools Display Modes
Old 09-18-2008, 08:55 PM   #1
Coder
 
Join Date: Mar 2006
Posts: 4,546
Rep Power: 110
Lhotch is just really niceLhotch is just really nice
Default Modification: Display seller store above sellers ads.

tested with 4.0.7

Add the 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']);
      }
    }
  }
__________________
Larry.
Lhotch is offline   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 Modules / Plugins / Modifications 63 Yesterday 10:25 AM
Seller store MOD enhancement philoo Feature Requests 15 10-28-2008 04:27 AM
How Do I Display A Seller Store antboy v3.1 Questions & Support 4 04-23-2008 08:35 AM
Modification: Seller Store Eric Barnes v3.1 Modules & Modifications 41 12-20-2007 01:48 PM
More Seller Store related questions. ginggs v3.1 Questions & Support 6 04-13-2007 05:46 AM


All times are GMT -4. The time now is 10:37 PM.


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