vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   uCash & uShop (https://vborg.vbsupport.ru/forumdisplay.php?f=100)
-   -   uCash & uShop old support and thank you thread (https://vborg.vbsupport.ru/showthread.php?t=73736)

sabret00the 05-18-2004 07:19 PM

Quote:

Originally Posted by Intex
sabret00the - Thx for the reply.

From what I can see you've put the $specialtemplates); on it's own line. Would this really make that much difference? BTW: the line where I said THIS IS LINE 508 was only put in there for posting here. It's not in the template at all.

hopefully

sabret00the 05-18-2004 07:20 PM

Quote:

Originally Posted by Flow Fusion
Ok here are the errors I'm getting from the includes/functions.php

Parse error: parse error in /home/giftedso/public_html/gs/includes/functions.php on line 1871

Fatal error: Call to undefined function: is_browser() in /home/giftedso/public_html/gs/global.php on line 59


And this is the last file I need to upload. This is the mofo that is causeing the points to not move correctly I assume?

can you paste your functions.php around line 1870 to 1890

Flow Fusion 05-18-2004 07:37 PM

$debughtml .= "\n<form name=\"debugger\" action=\"\">\n<div align=\"center\">\n<!--querycount-->Executed <b>$query_count</b> queries<!--/querycount-->" . iif($_TEMPLATEQUERIES, " (<b>" . sizeof($_TEMPLATEQUERIES) . "</b> queries for uncached templates)", '') . " . ";
$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')'?')'?')'?')'?')=== false, '?', '?','?','?','?','?','?','?','&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')'?')'?')'?')'?')=== false, '?', '?','?','?','?','?','?','?','&amp;') . "explain=1\">Explain</a>)<br />\n";
$debughtml .= "<select>\n\t<option>(Page Generated in $totaltime Seconds)</option>\n$messages</select>\n";
if (is_array($tempusagecache))
{
global $vbcollapse;
$debughtml .= "\n<br /><br />\n<table class=\"tborder\" cellpadding=\"3\" cellspacing=\"1\" align=\"center\" width=\"40%\">\n";
$debughtml .= "<thead><tr align=\"$stylevar[left]\"><td class=\"thead\"><a style=\"float:$stylevar[right]\" href=\"#\" onclick=\"return toggle_collapse('templateusage')\"><img src=\"$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_templateusage].gif\" alt=\"\" border=\"0\" /></a>Template Usage</td></tr></thead><tbody id=\"collapseobj_templateusage\" style=\"$vbcollapse[collapseobj_templateusage]\">\n";
$hiddentemps = '';

ksort($tempusagecache);
foreach ($tempusagecache AS $tempname => $times)
{
$debughtml .= "<tr><td class=\"alt1\" align=\"$stylevar[left]\"><span class=\"smallfont\">" . iif($_TEMPLATEQUERIES["$tempname"], "<font color=\"red\"><b>$tempname</b></font>", $tempname) . " ($times)</span></td></tr>\n";
$hiddentemps .= "'$tempname',\n";

// this is only for vbulletin.com
$countsql .= "\tWHEN '" . addslashes($tempname) . "' THEN usecount + $times\n";
$namesql .= ", '" . addslashes($tempname) . "'";
}

PixelFx 05-18-2004 07:40 PM

any updates planned soon? :) or version updates with fixes in the last few posts?

Intex 05-18-2004 08:10 PM

OK, I've solved the problem that I had in post 889. If you look at the code on the page you will see there was a comma missing at the end of the list of items, i.e. 'stylecache', 'utt_store_act', etc.

The code below shows the correction:

PHP Code:

        // add default special templates
        
$specialtemplates array_merge(array(
            
'options',
            
'cron',
            
'forumcache',
            
'usergroupcache',
            
'stylecache',
            
'utt_store_act',
            
'arcadesettings'
        
), 


sabret00the 05-18-2004 08:19 PM

Quote:

Originally Posted by Flow Fusion
$debughtml .= "\n<form name=\"debugger\" action=\"\">\n<div align=\"center\">\n<!--querycount-->Executed <b>$query_count</b> queries<!--/querycount-->" . iif($_TEMPLATEQUERIES, " (<b>" . sizeof($_TEMPLATEQUERIES) . "</b> queries for uncached templates)", '') . " . ";
$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')'?')'?')'?')'?')=== false, '?', '?','?','?','?','?','?','?','&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')'?')'?')'?')'?')=== false, '?', '?','?','?','?','?','?','?','&amp;') . "explain=1\">Explain</a>)<br />\n";
$debughtml .= "<select>\n\t<option>(Page Generated in $totaltime Seconds)</option>\n$messages</select>\n";
if (is_array($tempusagecache))
{
global $vbcollapse;
$debughtml .= "\n<br /><br />\n<table class=\"tborder\" cellpadding=\"3\" cellspacing=\"1\" align=\"center\" width=\"40%\">\n";
$debughtml .= "<thead><tr align=\"$stylevar[left]\"><td class=\"thead\"><a style=\"float:$stylevar[right]\" href=\"#\" onclick=\"return toggle_collapse('templateusage')\"><img src=\"$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_templateusage].gif\" alt=\"\" border=\"0\" /></a>Template Usage</td></tr></thead><tbody id=\"collapseobj_templateusage\" style=\"$vbcollapse[collapseobj_templateusage]\">\n";
$hiddentemps = '';

ksort($tempusagecache);
foreach ($tempusagecache AS $tempname => $times)
{
$debughtml .= "<tr><td class=\"alt1\" align=\"$stylevar[left]\"><span class=\"smallfont\">" . iif($_TEMPLATEQUERIES["$tempname"], "<font color=\"red\"><b>$tempname</b></font>", $tempname) . " ($times)</span></td></tr>\n";
$hiddentemps .= "'$tempname',\n";

// this is only for vbulletin.com
$countsql .= "\tWHEN '" . addslashes($tempname) . "' THEN usecount + $times\n";
$namesql .= ", '" . addslashes($tempname) . "'";
}

could you encapsoluate that in a php tag please

Intex 05-18-2004 08:21 PM

Sabret00the - thx. for your input - it pointed me in the right direction :).

Intex 05-18-2004 08:27 PM

Installed successfully now. Working fine on 3.0.1.

Nice work GeekyDesigns :). /me clicks INSTALL.

Flow Fusion 05-18-2004 08:29 PM

Quote:

Originally Posted by sabret00the
could you encapsoluate that in a php tag please

Huh?

Intex 05-18-2004 08:32 PM

Flow Fushion - he means go back to your post where you pasted all that code and put [ PHP ] at the front of it and [ /PHP ] at the end of it. This makes the code more visible.

Make sure you take out the spaces before and after the [ and ] above.


All times are GMT. The time now is 04:52 PM.

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.02795 seconds
  • Memory Usage 1,757KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete