Our Sponsors



PHP Nuke Downloads
The latest and best in php nuke downloads.
www.westernstudios.net

PHP Nuke Services
Need work done on your site? View our services for the best in phpnuke services.
www.westernstudios.net

Theme Shop
Get the best in phpnuke themes, stock photos, icons from Western Studios themes shop.
shop.westernstudios.net

Live Tutorials
PHP, Photoshop, flash, illustrator tutorials.
www.live-tutorials.com

PHP Nuke Subscription
The #1 php nuke subscription module.
www.westernstudios.net




Western Studios :: View topic - I wanted a Block for Aser's Shop
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups     ProfileProfile   Log inLog in 


I wanted a Block for Aser's Shop


Goto page 1, 2  Next
 
Post new topic   Reply to topicprinter friendly version    Western Studios Forum Index -> General
Western Studios

WS Newbie
WS Newbie
~PHP Nuke User~


Posts: 13
Next Group: 37 posts
bababoy wrote:

Hi everybody!

I need a block for Aser's Shop module Crying or Very sad

Somebody help me! Please.

Posted: Wed Jan 31, 2007 4:17 am

Western Studios

X-perienced
X-perienced
~PHP Nuke User~


Posts: 55
Next Group: 95 posts
Unit1 wrote:

bababoy wrote:
Hi everybody!

I need a block for Aser's Shop module Crying or Very sad

Somebody help me! Please.


What one would you need ? Just the basic block or one of the others like Last Added Products or Top10 Products

Here is the code for the basic one
Code:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* Andrei Orlov http://www.x-prices.com                                 */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
/* Additional security checking code 2003 by chatserv                   */
/* http://www.nukefixes.com -- http://www.nukeresources.com             */
/************************************************************************/

if (eregi("block-Aser_Shop.php",$_SERVER[PHP_SELF])) {
    Header("Location: index.php");
    die();
}

global $db, $user, $cookie;

   $Asers_Shop = "Asers_Shop";    //Module name as folder name
      if(is_user($user)) {
      cookiedecode($user);
      $auth_name = $cookie[1];
      $result = $db->sql_query("SELECT * FROM asershop_orders WHERE uname='$auth_name'");
         $numrows = $db->sql_numrows($result);
         if($numrows > 0) {
            $content_c .= "<br><center><a href=\"modules.php?name=$Asers_Shop&amp;s_op=vieworders\"><img src = \"modules/$Asers_Shop/images/your_orders.gif\" border =\"0\"></a></center>";
         }
      }      
   
   $cid = $_GET['cid'];
   $lid = $_GET['lid'];
   $name = $_GET['name'];
   if(!isset($cid) && isset($lid) && $name == "$Asers_Shop") {
       $result = $db->sql_query("SELECT cid FROM asershop_products WHERE lid = '$lid'");
       list($cid)=$db->sql_fetchrow($result);
   }
   $content .= "<center><a href=\"modules.php?name=$Asers_Shop&amp;s_op=viewcart\"><img src = \"modules/$Asers_Shop/images/your_cart.gif\" border =\"0\"></a></center>";
   $content .= "<font class=\"option\"><strong><big>·;</big></strong> ;;<a href=\"modules.php?name=$Asers_Shop\">à¢éÒÃéÒ¹</a></font><br>";
   if ($name != "$Asers_Shop" || !isset($cid)) {
      $result = $db->sql_query("SELECT cid, title FROM asershop_categories WHERE parentid='0' order by title");
      while(list($cid, $title) = $db->sql_fetchrow($result)) {
          $content .= "<font class=\"content\"><strong><big>·;</big></strong> ;<a href=\"modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid\">$title</a></font><br>";
      }
       $content .= $content_c;
   } else {
      $result = $db->sql_query("SELECT parentid, title FROM asershop_categories WHERE cid='$cid'");
      $row = $db->sql_fetchrow($result);
       $parentid = intval($row['parentid']);
       $title = $row['title'];
       $title3 = "<img src=\"images/arrow.gif\" border=\"0\"><font class=\"content\"><strong><big> ;;</big></strong><a href=modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid>$title</a></font>";
      $ptitle = getparentmenulink($parentid,"",$Asers_Shop);
      $content .= $ptitle;
      $content .= $title3;
      $result = $db->sql_query("SELECT cid, title FROM asershop_categories WHERE parentid='$cid' order by title");
      while($row = $db->sql_fetchrow($result)) {
            $cid1 = intval($row['cid']);
            $title = $row['title'];
            $content .= "<br><font class=\"content\"> ;; ;; ;; ;;<a href=modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid1>$title</a>";
      }
       $sql = "SELECT cid, title, parentid FROM asershop_categories WHERE parentid='$parentid' and cid != '$cid'";
         $result1 = $db->sql_query($sql);
         while($row = $db->sql_fetchrow($result1)) {
            $cid1 = intval($row['cid']);
            $ptitle1 = $row['title'];
            $parentid = $row['parentid'];
            $parentmenu .= "<br><font class=\"content\"><strong><big>+</big></strong> ;;<a href=modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid1>$ptitle1</a>";
         }
      $content .= $parentmenu;
      if ($parentid != 0) {
         while($parentid != 0) {
            $result = $db->sql_query("SELECT cid, parentid FROM asershop_categories WHERE cid='$parentid'");
            $row = $db->sql_fetchrow($result);
            $parentid = $row['parentid'];
            $cid3 = $row['cid'];
         }
         $result = $db->sql_query("SELECT cid, title FROM asershop_categories WHERE parentid='0' and cid != '$cid3' order by title");
         while(list($cid, $title) = $db->sql_fetchrow($result)) {
             $endcontent .= "<br><font class=\"content\"><strong><big>·;</big></strong> ;;<a href=\"modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid\">$title</a></font>";
         }
      }
      $content .= $endcontent;
      $content .= "<br>".$content_c;
   }
   
function getparentmenulink($parentid,$ptitle,$Asers_Shop) {
    global $db;
    $parentid = intval($parentid);
    if ($parentid!=0) {
       $sql = "SELECT cid, title, parentid FROM asershop_categories WHERE cid='$parentid'";
       $result = $db->sql_query($sql);
       $row = $db->sql_fetchrow($result);
       $cid = intval($row['cid']);
       $title = $row['title'];
       $parentid = $row['parentid'];
       $ptitle="<font class=\"content\"><strong><big>·;</big></strong> ;;<a href=modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid>$title</a></font><br>".$ptitle;
    }   
    if ($parentid!=0) {
      $ptitle=getparentmenulink($parentid,$ptitle,$Asers_Shop);
    }
    return $ptitle;
}

?>


Posted: Wed Jan 31, 2007 4:13 pm

Western Studios

WS Newbie
WS Newbie
~PHP Nuke User~


Posts: 13
Next Group: 37 posts
bababoy wrote:

Thank you!

I have a problem my Aser's Shop:

When enter is a product keyword in Nuke search block, then not find Aser's Shop products Sad

Any Idea?

Posted: Thu Feb 01, 2007 2:21 am

Western Studios

X-perienced
X-perienced
~PHP Nuke User~


Posts: 55
Next Group: 95 posts
Unit1 wrote:

I have never used the product but I will try my best to help you I need your web site address so I can do some testing to see for myself what the problem is

Posted: Thu Feb 01, 2007 12:17 pm

Western Studios

WS Newbie
WS Newbie
~PHP Nuke User~


Posts: 13
Next Group: 37 posts
bababoy wrote:

Unit1 wrote:
I have never used the product but I will try my best to help you I need your web site address so I can do some testing to see for myself what the problem is


My Website address is: http://www.gsmstudio.hu (hungarian, english language support)

Thank You Very Much! Wink

Posted: Thu Feb 01, 2007 4:53 pm

Post new topic   Reply to topic    Western Studios Forum Index -> The hangout -> General All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Photoshop Help!! 2 _RoNNiE_ 645 Wed Jun 29, 2005 8:02 pm
_RoNNiE_ View latest post
No new posts help 4 devilsoulblack 808 Mon May 30, 2005 9:07 am
devilsoulblack View latest post
No new posts Game or 3D help website? 0 admin 717 Thu Jul 29, 2004 8:13 pm
admin View latest post
No new posts PHP-Nuke themes help 0 admin 623 Tue Jun 08, 2004 7:06 pm
admin View latest post
 
Forums ©