The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vB Timeslip Database - for Automotive websites Details »» | ||||||||||||||||||||||||||||
vB Timeslip Database - for Automotive websites
Developer Last Online: Jul 2011
Yes, finally I can release it here the converted version off Timeslips database for vbulletin 3.5.x. I made it as a product, try to change the file edits into plugin as best as I could but you still need to edit 2 files (optional). I can't think of an easy way to remove that but if anyone can, please pop in.
I've made the timeslips.php page XHTML valid. Of course the look has not been changed. Also made it fully phrased. The permission is granted here Please let me copy what EvilLS1 posted in the 3.0 hack Quote:
Files to edit: (2)- member.php (1), functions_user.php (2), image.php(2) Files to upload: (2)- timeslips.php, slipicon.gif Templates to edit: (2)- USERCP_SHELL, navbar Templates to add: 0 Phrases to add: 0 Why do I still have to edit files ? The reasons for those editions are because you don't want users to see the timeslips profile fields in the memberlist/member profile/edit profile and just that. So that means if you exclude those the hack will still work whatever Installation instructions: BACK UP EVERYTHING BEFORE INSTALLING ANY HACK Firstly please read the file Instructions.txt file on how to install this hack. the steps are: Import the product-timeslips.xml file. Do file and template editions. Upload files to correct folder. Then enjoy it ! I have tried all that I can by installing this hack on a fresh board and solved *almost* all the problem. But if you find any errors, please post it here (just do not duplicate things :P ). Upgrading I haven't had a chance to do the upgrade because I convert this for a fresh vb3.5 board. I've set up things that I think it's ready for the upgrade. I'm willing to test the upgrade on your board if anyone can give. For the upgrade to work, you must use the latest version of timeslips which can be taken from here: https://vborg.vbsupport.ru/showthread.php?t=60945 Support I'll try my best to give supports. But please understand due to my heavy busy I may miss your post. Please understand. Screenshots? The shots from its 3.0 version are fine. here's the link: https://vborg.vbsupport.ru/showthrea...ight=timeslips Changes Logs 03/18/2006: version 1.1 Fully phrased the hack. 03/19/2006: fix the problem showing your current timeslip image when editing your timeslip. To upgrade simply re-import product-timeslips.xml. 03/19/2006: fixed a few bugs in this post: https://vborg.vbsupport.ru/showpost....9&postcount=31 . Again to upgrade just reimport the product file. 03/20/2006: Hack version change to 1.1.3: Changed the field of field 52,53,55 to decimal (6,3). Added one more file editions into the instructions file to fix showing proper image. So bad to add another file edit but this is becaus there is no hook in image.php. this is how to do it: PHP Code:
03/23/2006: Update: fix a JS error when submitting the new timeslip. (Thanks Sidewindr). Also the new product will attempt to remove your old vb3.0 options then add the new ones, this is for upgrading from timeslips for vb3.0 to vb3.5 . I didn't test that tho. 12/05/2006: Version 1.2 for vb3.6 released. 12/09/2006: minor fix for missing adding field50. 12/12/2006: fix the error: Fatal error: Call to undefined function build_hiddenprofilefield_cache() in C:\Program Files\xampp\htdocs\folder\admincp\plugin.php(1468) : eval()'d code on line 6 Please click install if you use this hack for updates. https://vborg.vbsupport.ru/vborg_mis...hreadid=110717 This hack is free (why not?) but donation are welcome, my paypal is bloodynightcrawler@gmail.com . Thank you. end of presentation, hope I don't miss anything. Show Your Support
|
Благодарность от: | ||
too_cool_3 |
Comments |
#42
|
|||
|
|||
Quote:
|
#43
|
|||
|
|||
so just to be sure, since its phrased I can change this over to use it on a 4x4 offroading site and as an example change " 60' " to "lift amount" or "1/8 Mile ET & MPH" to "tire size" etc etc ?
|
#44
|
|||||
|
|||||
Quote:
etc etc etc Actually the issue appears to be in the modifytimeslip template, the java validation script appears not to run/execute properly. It should also check that if a link is given it is to a jpg or gif file not to a htm etc. Quote:
Find in image.php Code:
// ######################### REQUIRE BACK-END ############################ if ($_REQUEST['type'] == 'profile') // do not modify this $_REQUEST { require_once('./global.php'); } Code:
// ######################### REQUIRE BACK-END ############################ // if ($_REQUEST['type'] == 'profile') // do not modify this $_REQUEST if ($_REQUEST['type'] == 'profile' or $_REQUEST['type'] == 'timeslip') // do not modify this $_REQUEST { Code:
if ($vbulletin->GPC['type'] == 'profile') { $table = 'customprofilepic'; // No permissions to see profile pics if (!$vbulletin->options['profilepicenabled'] OR (!($vbulletin->userinfo['permissions']['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canseeprofilepic']) AND $vbulletin->userinfo['userid'] != $vbulletin->GPC['userid'])) { exec_shut_down(); // Update location with 'No permission to view profile picture' header('Content-type: image/gif'); readfile(DIR . '/' . $vbulletin->options['cleargifurl']); exit; } } Code:
if ($vbulletin->GPC['type'] == 'profile') { $table = 'customprofilepic'; // No permissions to see profile pics if (!$vbulletin->options['profilepicenabled'] OR (!($vbulletin->userinfo['permissions']['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canseeprofilepic']) AND $vbulletin->userinfo['userid'] != $vbulletin->GPC['userid'])) { exec_shut_down(); // Update location with 'No permission to view profile picture' header('Content-type: image/gif'); readfile(DIR . '/' . $vbulletin->options['cleargifurl']); exit; } } else if ($vbulletin->GPC['type'] == 'timeslip') { $table = 'customfile'; } Quote:
Quote:
Quote:
|
#45
|
|||
|
|||
Quote:
|
#46
|
||||
|
||||
Quote:
Thanks for those, I did miss the edit on image.php. but as Gary's site I did not. Anyway, added. Another user has requested to change the decimal range, so I changed it too. |
#47
|
|||
|
|||
I am looking at the java code in the modifytimeslip template.
It appears that the if statment cannot evaluate the values for theform.field55.value etc. I tested the IF with 1==1 and 2<=3 and it behaves as expected .. Changing the if statement to just Code:
if (theform.field55.value<=$vboptions[tdsliprequired]) { |
#48
|
|||
|
|||
Almost fixed it .. will post up when I have
|
#49
|
|||
|
|||
Ok the problem in the javascript is that where the variable is "theform.field55.value" it should be "theform.ctb_field55.value" and the smae for all other fieldNN.value's ...
I am wrestling with the logic there at the moment as if you have upload slip pic allowed it will not let woy use a url instead. |
#50
|
|||
|
|||
First I just want to say this hack is awesome and thanks for porting it. I am still testing it on my test board.
I found an issue with removing a timeslip image. It removes the timeslip icon but the image is still there if you follow the original link. My concern is that the database will hold this data and keep growing. Can someone try this too. Upload an image, view the image via the timeslip page, save the url, then remove the image and then follow the original URL. Is it still there? |
#51
|
|||
|
|||
I have some problems.... I imported the product, I get the following when visiting the php file and I also found that none of the fields have been imported...
Code:
Database error in vBulletin 3.5.2: Invalid SQL: SELECT COUNT(*) AS users FROM TM_VBuser AS user, TM_VBuserfield AS userfield WHERE userfield.field55>0 AND user.userid = userfield.userid; MySQL Error : Unknown column 'userfield.field55' in 'where clause' Error Number : 1054 Date : Monday, March 20th 2006 @ 08:09:13 AM Script : http://www.turbo-mopar.com/forums/timeslips.php Referrer : IP Address : 32.60.71.66 Username : Frank Classname : vb_database |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|