Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > uCash & uShop
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Allow Guests to view the ushop Details »»
Allow Guests to view the ushop
Version: , by Polo Polo is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-15-2005 Last Update: Never Installs: 0
 
No support by the author.

Whenever a guest click on the link to ushop.php he gets the permission error... i would like for guests to view this page only and everything else work the same..... i'm pretty sure is quite simple to accomplish... I just would like for guest to view all the good stuff they are missing

hope someone can help me out...

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-15-2005, 10:05 PM
hollyboy's Avatar
hollyboy hollyboy is offline
 
Join Date: Mar 2004
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Polo
here
:ermm: There is something wrong then...
The page I don't want the guest to view is this one: http://www.interfans.org/forum/profil_pic.php


Here's the code, as u can see there is no the code mentioned before

Code:
<?php
error_reporting(E_ALL & ~E_NOTICE);

// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'profil_pic');

// get special phrase groups
$phrasegroups = array('cpglobal','forum','user');

// get special data templates from the datastore
$specialtemplates = array();

// on met en cache les templates
$globaltemplates = array('PROFIL_PIC','profil_pic_lettres','profil_pic_liste');

// pre-cache templates used by specific actions
$actiontemplates = array();

require_once('./global.php');

globalize($_REQUEST, array(
                           'lettre' => STR,
                            'usergroup' => STR,
                            'ordre' => STR
                            ));



if (!$ordre)
  {
    $ordre="ASC";
    $image="desc";
  }

if ($ordre == "ASC")
  {
    $ordre2 = "DESC";
    $image="desc";
  } else {
    $ordre2 = "ASC";
    $image = "asc";
  }

if ($lettre!="")
  {
    $condition = "AND user.username LIKE ('$lettre%')";
    $tri = "ORDER BY user.username";
    if (!$ordre)
      {
        $ordre = "ASC";
        $ordre2 = "DESC";
      }
      }

if ($usergroup != "")
  {
    $tri = "ORDER BY user.usergroupid";
    if ($ordre=="DESC")
      {
        $ordre2 = "ASC";
        $image = "asc";
      }  else
      {$ordre2 = "DESC";
       $image="desc";
       }

       } else $tri = "ORDER BY user.username";

$pagenumber = $_REQUEST['page'];
if ($pagenumber == "") $pagenumber=1;
            $page_start=($pagenumber-1)*10;

$listes = $DB_site->query("
  SELECT profil.userid, profil.profilepicdata, profil.filename, user.username AS username, user.usergroupid AS usergroupid, usergroup.title AS title, usergroup.opentag AS open, usergroup.closetag AS fin
  FROM ". TABLE_PREFIX ."customprofilepic AS profil
  LEFT JOIN ". TABLE_PREFIX ."user AS user ON (user.userid=profil.userid)
  LEFT JOIN ". TABLE_PREFIX ."usergroup AS usergroup ON (user.usergroupid = usergroup.usergroupid)
  WHERE profil.visible='1' $condition
  $tri $ordre LIMIT $page_start,10 ");

  $result= $DB_site->query_first("SELECT COUNT(profil.userid) AS nb FROM ". TABLE_PREFIX ."customprofilepic AS profil LEFT JOIN ". TABLE_PREFIX ."user AS user ON (user.userid=profil.userid)
  LEFT JOIN ". TABLE_PREFIX ."usergroup AS usergroup ON (user.usergroupid = usergroup.usergroupid)
  WHERE profil.visible='1' $condition
  $tri $ordre");

  // on construit maintenant la navigation entre les pages
		   $totalpages=ceil(($result[nb])/10);

     $alt = "1";
     $show['first'] = "1";
     $show['prev'] = "1";
     $show['next'] = "1";
     $show['last'] = "1";
     $firstnumbers[first] = "1";
     $firstnumbers['last'] = $totalpages;
     $total = $totalpages;

     if ($pagenumber==1) $show['prev'] = "0";
       else $prevpage=$pagenumber-1;
     if ($pagenumber == $total) $show['next'] = "0";
       else $nextpage=$pagenumber+1;

		    for($i=0;$i<$totalpages;$i++) {
			 $curpage=$i+1;
             if($pagenumber==$curpage) {
               eval("\$pagenav .= \"".fetch_template('pagenav_curpage')."\";");
   	           } else {
                 if ($usergroup!="")
                  {
                    $address = "profil_pic.php?usergroup=oui&amp;ordre=$ordre";
                    eval("\$pagenav .= \"".fetch_template('pagenav_pagelink')."\";");
                  }
                  else if ($lettre != "")
                  {
                    $address = "profil_pic.php?lettre=$lettre";
                    eval("\$pagenav .= \"".fetch_template('pagenav_pagelink')."\";");
                  }
                  else {
                    $address = "profil_pic.php?";
                    eval("\$pagenav .= \"".fetch_template('pagenav_pagelink')."\";");
                  }
			 }
		    }


  eval("\$navigation = \"".fetch_template('pagenav')."\";");

  while ($liste=$DB_site->fetch_array($listes))
   {
     eval("\$pic .= \"".fetch_template('profil_pic_liste')."\";");
     $alt++;
     if ($alt>2) $alt="1";
   }

  $navbits[lastelement] = "Gallery";

  for ($i=65; $i < 91; $i++)
    {
      $currentletter = chr($i);
      if($currentletter==$lettre)
        {
		  $thisletter="1";
   		} else
        {
		  $thisletter="0";
   		}
        eval("\$lettres  .= \"".fetch_template('profil_pic_lettres')."\";");
    }

  eval("\$navbar = \"".fetch_template('navbar')."\";");
  eval("print_output(\"".fetch_template('PROFIL_PIC')."\");");

?>
Reply With Quote
  #13  
Old 03-15-2005, 10:07 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well then you are in the wrong forum, because this is just for the ushop ucash hack... anyways, i wouldnt know the answer... and I dont know if someone will help you since as I said, this forum is for the ushop, ucash hack...
Reply With Quote
  #14  
Old 03-15-2005, 10:09 PM
hollyboy's Avatar
hollyboy hollyboy is offline
 
Join Date: Mar 2004
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I thought it was the same problem, sorry
Reply With Quote
  #15  
Old 03-15-2005, 10:10 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh dont worry... maybe you should try the general modifications forum... i'm pretty sure someone will be able to help you out...
Reply With Quote
  #16  
Old 03-15-2005, 10:13 PM
hollyboy's Avatar
hollyboy hollyboy is offline
 
Join Date: Mar 2004
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok polo thank u
Reply With Quote
  #17  
Old 03-15-2005, 10:14 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hollyboy
ok polo thank u
Your welcome, and hope you find a solution.
Reply With Quote
  #18  
Old 03-22-2005, 11:00 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried what you said zachery.. however... guests arent able to see the shop even when I applied what you told me
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 11:45 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04052 seconds
  • Memory Usage 2,277KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete