vb.org Archive

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

ImportPassion 10-31-2003 10:14 PM

in the separate page for to edit timeslip data instructions, there is an error

PHP Code:

###### Replace with:
  
$profilefields=$DB_site->query("SELECT profilefieldid,required,title,size,maxlength
                                  FROM profilefield
                                  WHERE editable = 1
                                  AND profilefieldid NOT IN (50,51,52,53,54,55,56,57"
); 

should be

PHP Code:

###### Replace with:
  
$profilefields=$DB_site->query("SELECT profilefieldid,required,title,size,maxlength
                                  FROM profilefield
                                  WHERE editable = 1
                                  AND profilefieldid NOT IN (50,51,52,53,54,55,56,57)"
); 

also, in this section

PHP Code:

  $templatesused 'redirect_updatethanks,error_fieldmissing,error_emailmismatch,error_emailtaken,error_fieldmissing,error_requiredfieldmissing,error_birthdayfield'

I don't think half these templates are actually used?

Still installing all the updates and fixes. Let you know the outcome soon.

One thing I will be adding for admins and possibly mods is a delete button to delete fake crap. It's already starting. :disappointed:

EvilLS1 10-31-2003 10:47 PM

7thgenCivic.Com,
Nice catch on the missing ). The profile fieldID #s on my own site are different than the ones posted in the hack instructions here. So I must have accidentally deleted it when I changed the IDs for the hack.

As for the templates used in the "updatetimeslip" action, those are just left overs from where I copied that bit of code from the original "updateprofile" action. I forgot to remove them, but it wouldn't hurt anything to leave them there. I just updated the instructions and removed them so not to cause any confusion though. Also added the missing ) to the query. Thanks again for pointing it out.

Quote:

One thing I will be adding for admins and possibly mods is a delete button to delete fake crap. It's already starting.
That sounds like a good idea.

I was thinking about making it possible to ban users from the "edit vehicle profile" page. This should help root out the users who insist on entering false data just to be funny.
If you want, I'll post the instructions for that addon here whenever I get around to making it.

drumsy 11-01-2003 03:09 AM

What's up with my font and table color???

www.honda-acura.net/forums/timeslips.php

drumsy 11-01-2003 03:59 AM

Fixed, had to modify templates.

drumsy 11-01-2003 04:10 AM

Quote:

Originally Posted by EvilLS1
Add-on: Separate "Vehicle Profile" page for submitting Timeslip Data.

Description: This add-on will remove the timeslip fields from your edit profle & registration pages and put them in thier own separate catagory called "Vehicle Profile".

This should help cut down the number of users who submit false data when registering or editing their profile since the vehicle info is edited on a completely separate page.

Instructions and screenshot attached:

Do you have instructions on how to do this for a 2.3.2 version? The lines are not matching up on my register.php page and I'm not comfortable trying to manually do it.

EvilLS1 11-01-2003 05:32 PM

drumsy,
Not sure why you had to edit the font and table color. Unless the replacements are different in 2.3.2, the hack should use the same font & table colors as the rest of your board.

I looked at a copy of register.php from 2.3.2, and the code is the same.. 2.3.2 just has some line breaks in different places.

In register.php Find:
Code:

        $profilefields = $DB_site->query("
                SELECT * FROM profilefield
                WHERE editable = 1 ORDER BY displayorder
        ");

Replace with:
Code:

  $profilefields=$DB_site->query("SELECT *
                                  FROM profilefield
                                  WHERE editable = 1
                                  AND profilefieldid NOT IN (50,51,52,53,54,55,56,57)     
                                  ORDER BY displayorder");

Find:
Code:

  $profilefields=$DB_site->query("SELECT maxlength,profilefieldid,required,title
                                  FROM profilefield
                                  WHERE editable = 1
                                  ORDER BY displayorder");

Replace with:
Code:

  $profilefields=$DB_site->query("SELECT maxlength,profilefieldid,required,title
                                  FROM profilefield
                                  WHERE editable = 1
                                  AND profilefieldid NOT IN (50,51,52,53,54,55,56,57)
                                  ORDER BY displayorder");

Then follow the rest of the hack instructions for editing member.php.

SIINSI 11-01-2003 05:36 PM

Awesome hack, thanks alot for this... Installed on http://www.jdmuniverse.com

Thanks again

EvilLS1 11-01-2003 05:45 PM

Thanks SIINSI. Glad you like it.

drumsy 11-01-2003 06:48 PM

Gracias senor for the code! :thumbup:

EvilLS1 11-02-2003 02:40 AM

NOTE: This comes standard with version 1.3!

Add-on: Ban users from editing their Vehicle Profile (Timeslip Info)

Description: This add-on will allow you to ban users from editing their Vehicle Profile. This comes in handy if you have some users who insist on entering false data into the Timeslip Database just to be funny.

I suggest putting a warning at the top of your Edit Vehicle Profile page that says something like "Vehicle Profile privileges will be taken away from users who enter false data". Then if they do it anyway, just click on the user's profile, then click "user options" and set "Can edit vehicle profile" to no. The user will still be able to edit his regular profile, but not his vehicle provile.

To use this add-on you must already have the Vehicle Profile add-on installed.

Instructions attached:


All times are GMT. The time now is 08:06 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.01154 seconds
  • Memory Usage 1,756KB
  • 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
  • (4)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
  • (1)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