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)

Koby 01-27-2005 07:00 AM

:cool:

Thanks a bunch, I'm completely new to PHP and doing my best to struggle and learn :-/

navbar template:

Code:

<script type="text/javascript">
<!--
function log_out()
{
        ht = document.getElementsByTagName("html");
        ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
        if (confirm('$vbphrase[sure_you_want_to_log_out]'))
        {
                return true;
        }
        else
        {
                ht[0].style.filter = "";
                return false;
        }
}
//-->
</script>

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td class="vbcm" align="$stylevar[left]"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>

               
                <if condition="$show['member']">
                        <td class="vbcm_b"><a href="usercp.php?$session[sessionurl]"><img border="0" src="$stylevar[imgdir_button]/top_profile.gif" alt="$vbphrase[user_cp]" /></a></td>
                </if>
                <if condition="$show['registerbutton']">
                        <td class="vbcm_b"><a href="register.php?$session[sessionurl]"><img border="0" src="$stylevar[imgdir_button]/top_register.gif" alt="$vbphrase[register]" /></a></td>
                </if>
                <td class="vbcm_b"><a href="faq.php?$session[sessionurl]" accesskey="5"><img border="0" src="$stylevar[imgdir_button]/top_faq.gif" alt="$vbphrase[faq]" /></a></td>
                <td class="vbcm_b"><a href="memberlist.php?$session[sessionurl]"><img border="0" src="$stylevar[imgdir_button]/top_members.gif" alt="$vbphrase[members_list]" /></a></td>



##################you can insert the timeslips here########################





                <td class="vbcm_b"><a href="calendar.php?$session[sessionurl]"><img border="0" src="$stylevar[imgdir_button]/top_calendar.gif" alt="$vbphrase[calendar]" /></a></td>
                        <if condition="$show['searchbuttons']">
                                <if condition="$show['member']">
                                <td class="vbcm_b"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2"><img border="0" src="$stylevar[imgdir_button]/top_new.gif" alt="$vbphrase[new_posts_nav]" /></a></td>
                                <else />
                                <td class="vbcm_b"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2"><img border="0" src="$stylevar[imgdir_button]/top_daily.gif" alt="$vbphrase[todays_posts]" /></a></td>
                                </if>
                                <td id="navbar_search" class="vbcm_b"><a href="search.php?$session[sessionurl]" accesskey="4"><img border="0" src="$stylevar[imgdir_button]/top_search.gif" alt="$vbphrase[search]" /></a><script type="text/javascript"> vbmenu_register("navbar_search", true); </script></td>
                        </if>
                        <if condition="$bbuserinfo['userid']">
                                                                <td id="usercptools" class="vbcm_b"><a href="#usercptools"><img border="0" src="$stylevar[imgdir_button]/top_links.gif" alt="$vbphrase[quick_links]" /></a><script type="text/javascript"> vbmenu_register("usercptools", true); </script></td>
                        </if>
                <else />               
                        <if condition="$show['searchbuttons']">
                                <td class="vbcm_b"><a href="search.php?$session[sessionurl]" accesskey="4">$vbphrase[search]</a></td>
                                <if condition="$show['member']">
                                <td class="vbcm_b"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                                <else />
                                <td class="vbcm_b"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                                </if>
                        </if>
                        <td class="vbcm_b"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td>
                        <if condition="$bbuserinfo['userid']">                       
                                <td class="vbcm_b"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>                       
                        </if>                       
                </if>
                <if condition="$bbuserinfo['userid']">
                        <td class="vbcm_b"><a href="login.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]" onclick="return log_out()"><img border="0" src="$stylevar[imgdir_button]/top_logout.gif" alt="$vbphrase[log_out]" /></a></td>
                </if>
        </tr>
        </table>
<!-- / nav buttons bar -->

        </td>
</tr>
</table>
<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->
       
        <if condition="$show['searchbuttons']">
        <!-- header quick search form -->
        <div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
                <table cellpadding="4" cellspacing="1" border="0">
                <tr>
                        <td class="thead">$vbphrase[search_forums]</td>
                </tr>
                <tr>
                        <td class="vbmenu_option" title="nohilite">
                        <form action="search.php" method="post">
                                <input type="hidden" name="do" value="process" />
                                <input type="hidden" name="showposts" value="0" />
                                <input type="text" class="bginput" name="query" size="20" />$gobutton<br />
                        </form>
                        </td>
                </tr>
                <tr>
                        <td class="vbmenu_option"><a href="search.php?$session[sessionurl]" accesskey="4">$vbphrase[advanced_search]</a></td>
                </tr>
                </table>
        </div>
        <!-- / header quick search form -->
        </if>

        <if condition="$show['member']">
        <!-- user cp tools menu -->
        <div class="vbmenu_popup" id="usercptools_menu" style="display:none">
                <table cellpadding="4" cellspacing="1" border="0">
               
                <tr><td class="thead">$vbphrase[quick_links]</td></tr>               
                <if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew">$vbphrase[new_posts_nav]</a></td></tr></if>
                <tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>
                               
                <tr><td class="thead"><a href="usercp.php?$session[sessionurl]">$vbphrase[user_control_panel]</a></td></tr>
                <if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
                <if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>
                <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
               
                <tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
                <if condition="$show['pmstats']"><tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]">$vbphrase[private_messages]</a></td></tr></if>
                <tr><td class="vbmenu_option"><a href="subscription.php?$session[sessionurl]">$vbphrase[subscribed_threads]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
                <if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php?$session[sessionurl]">$vbphrase[whos_online]</a></td></tr></if>
               
                </table>
        </div>
        <!-- / user cp tools menu -->
        </if>
<!-- / NAVBAR POPUP MENUS -->
</if>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output


Koby 01-27-2005 07:02 AM

I'll be glad to see how you edit it to make it work so I'll know how to do it in the future :)

EvilLS1 01-27-2005 07:08 AM

Find:
Code:

                <td class="vbcm_b"><a href="memberlist.php?$session[sessionurl]"><img border="0" src="$stylevar[imgdir_button]/top_members.gif" alt="$vbphrase[members_list]" /></a></td>
Below it add:
Code:

                <td class="vbcm_b"><a href="timeslips.php?$session[sessionurl]"><img border="0" src="http://www.posdsm.com/forums/classic_images/buttons/top_timeslips.gif" alt="Timeslip Database" /></a></td>

Koby 01-27-2005 07:14 AM

hey I got it on my own... i had the code ++++ed up myself... fixed it :cool:

Thanks anyways :)

Silver_2000_)! 01-27-2005 12:27 PM

Quote:

Originally Posted by EvilLS1
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

You rock - Timeslips works Great now...

The avatars are still screwed up though ..

When a member tries to upload an avatar they get this error

Quote:

Parse error: parse error, unexpected $ in /home/talonsv/public_html/forum/includes/functions_upload.php on line 414
Line 414 is the last line of the file

The avatars that are a red X have this code generating them -

Which pasted in a browser resulst in this
Quote:

Fatal error: Call to a member function on a non-object in /home/talonsv/public_html/forum/image.php on line 213
Line 213 is 8 lines below this modification

PHP Code:

else if ($_REQUEST['type'] == 'timeslip')
        {
            
$data 'timeslippicdata';
            
$table 'customtimeslippic'


Big Kahuna 01-28-2005 01:59 AM

I have a racing site at www.moparstyle.com and this would be the coolest hack yet. I just need to make sure it works before I install it. I'm running 3.0.6 with a couple of the standard hacks. Are the problems some of the people are reporting just loose nuts behind the keyboard and I won't have any trouble with vB Timeslip Database v2.1 (for vb 3.0.6 or later).zip -- or is there a problem that I need to let get ironed out?

EvilLS1 01-28-2005 03:35 AM

Silver_2000_)! ,
I'm still using vb 3.0.1 so I'll have to install a vb 3.0.6 test forum on my PC to see if I can figure out what has changed. It'll be a while before I have time to do this so in the mean time if you want to remove the edits to image.php and functions_upload.php you can still use the hack and there will be no errors with the avatars. Just disable timeslip uploads in the admincp (people can still link to them).

If anyone else has this hack installed on 3.0.6 with timeslip uploads enabled and not experiencing the errors with the avatars please let me know.

Koby,
The fetch_profilefields() function is called from your functions_user.php file. It sounds like something wasn't copied and pasted correctly in that file. Carefully re-apply the file edits to a fresh un-edited includes/functions_user.php and it should fix the error.

Big Kahuna,
The vb versions that this hack is confirmed to work with are 3.0.0 - 3.0.5. The jury is still out on 3.0.6. I'm still using 3.0.1 so I'm not sure if the error that Silver_2000_)! mentioned is site specific or a compatibility issue with the hack. I'll have to install a 3.0.6 test forum and see for myself when I get some free time.

Big Kahuna 01-28-2005 03:42 AM

I might give it a shot tomorrow on my testforum

EvilLS1 01-28-2005 03:44 AM

Quote:

Originally Posted by Big Kahuna
I might give it a shot tomorrow on my testforum

If you do, please let me know if you experience the same errors as Silver_2000_)!.

Thanks,
Dewayne

Silver_2000_)! 01-28-2005 04:10 AM

Quote:

Originally Posted by EvilLS1
If you do, please let me know if you experience the same errors as Silver_2000_)!.

Thanks,
Dewayne

Im embarrased to say that the avatars issue seemed to be related to having 2 versions of timeslips edits in the image.php

PHP Code:

// ######################### REQUIRE BACK-END ############################
if ($_GET['type'] == 'profile' or $_GET['type'] == 'timeslip')
if (
$_REQUEST['type'] == 'profile' or $_REQUEST['type'] == 'timeslip'

I had 2 similar lines there ... Removed the second line and the avatars went back to normal- What was weird was that it didnt affect all avatars...

Sorry for the fire drill.


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