vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB Timeslip Database -for Automotive websites (https://vborg.vbsupport.ru/showthread.php?t=60945)

EvilLS1 01-25-2005 11:18 PM

Quote:

Originally Posted by joeychgo
I dont know what that command was suppose to do - It all worked without it - but thanks. I made the change. What does it do??

It just includes the global file for timeslip images.

Silver_2000_)! 01-26-2005 01:22 PM

In looking to fix the TD on 3.06
This section of member.php has changed from this

PHP Code:

// CUSTOM PROFILE FIELDS
$profilefields $DB_site->query("
    SELECT profilefieldid, required, title, type, data, def, height
    FROM " 
TABLE_PREFIX "profilefield
    WHERE form = 0 " 
iif(!can_moderate(), "
        AND hidden = 0"
) . "
    ORDER BY displayorder
"
); 



to this

>>>>>>>>>>>>>>>>

PHP Code:

// CUSTOM PROFILE FIELDS
$profilefields $DB_site->query("
    SELECT profilefieldid, required, title, type, data, def, height
    FROM " 
TABLE_PREFIX "profilefield
    WHERE form = 0 " 
iif(!($permissions['genericpermissions'] & CANSEEHIDDENCUSTOMFIELDS), "
        AND hidden = 0"
) . "
    ORDER BY displayorder
"
); 

Im no coder so I cant merge the changes

Thanks

Doug

Silver_2000_)! 01-26-2005 04:05 PM

looks like it has also broken some avatars

the avatars end up in red x

If I get properties of the rex x and paste it to a new browser window I get this

Fatal error: Call to a member function on a non-object in /home/talonsv/public_html/forum/image.php on line 211

211 is right after on of the timeslip modifications and 211 is last line in this code

PHP Code:

    if ($_REQUEST['type'] == 'profile')
        {
            
$data 'profilepicdata';
            
$table 'customprofilepic';
            
// No permissions to see profile pics
            
if (!$vboptions['profilepicenabled'] OR (!($permissions['genericpermissions'] & CANSEEPROFILEPIC) AND $bbuserinfo['userid'] != $userid))
            {
                
header('Content-type: image/gif');
                
readfile("./$vboptions[cleargifurl]");
                exit;
            }
        }
        else if (
$_REQUEST['type'] == 'timeslip')
        {
            
$data 'timeslippicdata';
            
$table 'customtimeslippic';
        }
        else
        {
            
$data 'avatardata';
            
$table 'customavatar';
    }

    if (
$imageinfo $DB_site->query_first(


EvilLS1 01-26-2005 08:21 PM

I will take a look at the files from 3.0.6 and post an update later tonight or tomorrow.

EvilLS1 01-27-2005 05:02 AM

Silver_2000_)! ,
I've added some new instructions for vb 3.0.6. Be sure to re-do all the file edits to image.php, member.php, and includes/functions_user.php.

joeychgo and anyone else who has installed on vb 3.0.6 should re-do the file edits to the 3 files listed above aswell.

Instructions for vb 3.0.6 (BETA)

Koby 01-27-2005 06:20 AM

Thanks, just installed... working good on my first try :cool:

Only problem I had was the very last line of code:

###### In your navbar template find:

<td class="vbmenu_control"><a href="memberlist.php?$session[sessionurl]">$vbphrase[members_list]</a></td>



###### Below it add:

<td class="vbmenu_control"><a href="timeslips.php?$session[sessionurl]">$vbphrase[timeslips]</a></td>



----------------------------------------------------------------------------------


I guess my installed template (VBclassic) didn't have the first line to add the new line under :-/

I'll figure it out I suppose

EvilLS1 01-27-2005 06:25 AM

Koby,
That bit of code just adds a link to the Timeslip Database in your navbar. You can put the link anywhere or make a button to match your classic style.

Koby 01-27-2005 06:29 AM

Found your icon too now for the classic style, now I just have to figure out how to add it. Great stuff :)

Koby 01-27-2005 06:52 AM

Blah, I thought I had it figured out... I am trying to add the icon in... by copying and editing the same lines of code for the other buttons to suit the location of this icon/link... but this happens:



Code:

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/kobycole/public_html/forums/includes/adminfunctions_template.php(3054) : eval()'d code on line 105


EvilLS1 01-27-2005 06:55 AM

Quote:

Originally Posted by Koby
Blah, I thought I had it figured out... I am trying to add the icon in... by copying and editing the same lines of code for the other buttons to suit the location of this icon/link... but this happens:



Code:

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/kobycole/public_html/forums/includes/adminfunctions_template.php(3054) : eval()'d code on line 105


If you will post your navbar template along with the link to the button you want to use I'll add it for you.


All times are GMT. The time now is 04:48 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.01721 seconds
  • Memory Usage 1,763KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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