![]() |
i could be wrong but when i installed this users were able to upload avatars as big as timeslips..
its seems to be the graphic type it enables it for a larger size in the functions_upload file? i turned it back to the original one and it worked for the avatars |
Quote:
Anyway, heres the fix (only needed if you have v2.1): In includes/functions_upload.php find: Code:
if ($type=="timeslippic") { Code:
if ($type=="timeslippic") { |
ok i added a new column to the userfield database, however i can't seem to find where this adds the variables, or inserts them to the database? this is for the "classing" addon that i asked for help 2 days ago.
i added 1 line to profilefields, and now Warning: Invalid argument supplied for foreach() in /home/dsmdragtimes/includes/functions_user.php on line 575 |
Quote:
I'm still not clear on exactly what you're trying to do. If you can give me a better description I'll try to help you when I get time. If I'm understanding correctly, you want to add a drop down menu to the edit vehicle profile page which allows the user to select a class. Then you want to add the ability to sort by classes to timeslips.php? If so, tell me the name of each class that can be selected. Also, it would be much easier for me to just add this myself rather than trying to explain how to add it. If you'll set me up a temporary admin account and FTP account I'll add it for you. Quote:
"Support: I will support basic installation and troubleshooting only. I will not be offering support for customizing or adding new features." It would be nearly impossible for me to help customize this hack for everyone who installs it. I work 6 days per week and simply don't have time. |
Quote:
sorry... what files do you need to edit so i can arrange for them to be "editable" but yes, thats all i want, is to have different classing, for lets say, street, and full drag or whatever. |
Quote:
Also, I need to know the exact name of all classes that you want availible in the drop down menu. You can email me at webmaster@modernmusclecars.net |
dcevoclub,
First go to your admincp and add a new custom profile field. The names of the classes must be exactly as I list them or it won't work when sorting on the timeslips page. Go to: admincp >> User Profile Fields >> Add New User Profile Field Profile Field Type: Single Selection Menu Click Continue. Title: Class Description: whatever you want Options: Street Outlaw Full Drag Set Default: Yes, include a first blank option. Display Order: Whatever you want Field Required: No Field Editable by User? Yes Field Hidden on Profile? No Field Searchable on Members List? No Show on Members List? No Allow user to input their own value for this option? No Max length of allowed user input: 15 Display Size: 15 Regular Expression: 0 Which page displays this option? Edit Profile Click Save. Now on the next screen (the user profile field manager screen) find the new field that you just added. Over to the right of the new field you'll see a link that says [Edit]. Hold your mouse over that link (don't click it) and look at the bottom of your browser where it shows the url. Make a note of the field ID # for the field you just added. Assuming that you're still using v2.0 in member.php and includes/functions_user.php find all instances of this (there will be several): Code:
(50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65) Code:
(50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,XX) Now open timeslips.php and find this: Code:
$natasp='N/A'; Code:
$street = 'Street'; Code:
} Code:
} Still in timeslips.php find: Code:
$spacer=" - "; Code:
$class = "---"; Code:
$pos++; Code:
$class = $userinfo[fieldXX]; Save and upload timeslips.php In your timeslips template find: Code:
<td bgcolor="{categorybackcolor}" colspan="5" class="tcat"><b> Timeslip Database Code:
<td bgcolor="{categorybackcolor}" colspan="6" class="tcat"><b> Timeslip Database Code:
<option value="timeslips.php?$session[sessionurl]&do=na">N/A cars only</option> Code:
<option value="timeslips.php?$session[sessionurl]&do=street">Street Class</option> Code:
<td class="thead" align="center">$bracket13<b>Induction</b>$bracket14</td> Code:
<td class="thead" align="center">$bracket133<b>Class</b>$bracket143</td> Code:
<td class="tfoot" colspan="10"> Code:
<td class="tfoot" colspan="11"> In your timeslipsbit template find: Code:
<td class="alt2">$induction</td> Code:
<td class="alt1">$class</td> Now you know why I said it would be much easier if I just do it myself. ;) |
ok thanks man, i got it in, but when you go to submit time slip it doesn't show, on the main page it shows the "class" column... do i need to edit profile.php?
|
Quote:
|
Quote:
|
Quote:
Code:
(50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65) |
Quote:
Just to verify that it works I followed my own instructions and added the classes bit to my test forum. It worked flawlessly (check the screenshot). I don't know what else to suggest other than to check your settings for the new class profile field and make sure they're exactly as I posted above. Unless you want me to add it for you theres nothing else I can do. |
i pm'd you a logon, to check the settings....
|
Quote:
|
i got it, i'm a retard thanks for all your help
|
Quote:
|
haha i selected make it required
|
oh man, don't kill me...
but i never tested this until now... when you submit a timeslip it goes into the db, but its not displayed on timeslips.php |
Quote:
|
no when i enter a new timeslip...it doesn't show on the list..
|
Quote:
Let me know and I'll help you with it when I get home from work this afternoon. |
the timeslips, and this is on another page i'm working on. and the info for the timeslip
|
Quote:
|
For some reason, I'm not able to manually change profile info via the admincp for members. I changed their usergroup and it erased their vehicle info. When I tried to re-input the data, it will not take. Any idea if this is related to the hack? or maybe it's a permissions thing?
|
Quote:
https://vborg.vbsupport.ru/showpost....&postcount=177 |
Quote:
|
Just added it to http://www.eurotechniks.com ... now if I can figure out how the heck to add that Torque field. My head is spinning from reading all these posts :)
|
Quote:
https://vborg.vbsupport.ru/showpost....&postcount=247 |
Quote:
|
Quote:
In admincp/usergroup.php find: Code:
print_yes_no_row($vbphrase['can_view_others_profile_pictures'], 'usergroup[canseeprofilepic]', $ug_bitfield['canseeprofilepic']); Code:
print_yes_no_row($vbphrase['can_edit_vehicle_profile'], 'usergroup[cantimeslip]', $ug_bitfield['cantimeslip']); In includes/init.php find: Code:
'caneditownusernotes' => 131072 Code:
'caneditownusernotes' => 131072, {edit} If you're using v3.0.3 or later skip the edit above and use this edit instead: In includes/init.php find: Code:
'canseehiddencustomfields' => 262144, Code:
'canseehiddencustomfields' => 262144, In profile.php find: Code:
if ($_REQUEST['do'] == 'edittimeslip') Code:
if (!($permissions['genericpermissions'] & CANTIMESLIP)) |
Worked a treat ... however I upgraded to 3.03 and now when I list the timeslips it displays ALL members even those with no ET info...
Where is the code that does not display users with not info (ie ET is 0) |
Quote:
|
I upgraded to 3.0.2 then 3.0.3 ..
Fresh copy of timeslips.php made no difference :( |
If you had already installed vB Timeslip Database before upgrading your forums to v3.0.2 or later you'll need to upload the attached file (TD302.php) to your admincp directory and run it. The upgrade script for vB 3.0.2 and newer versions sets the custom user fields to medium text. Some of the timeslip fields must be set to DECIMAL in order for the timeslips page to sort & display them correctly. The attached file (TD302.php) will correct that for you.
|
Seems to have done the trick :) Top stuff!! :banana:
|
I have one more suggestion :)
How about a Diff Ratio field ?? :) Also it seems as an Admin I cannot uload a timeslip for a user, only link to a URL whereas the user can upload a timeslip into the forum database. Any ideas? |
Quote:
|
For anyone who has recently upgraded to vB 3.0.2 or later please read this post:
https://vborg.vbsupport.ru/showpost....&postcount=274 |
Quote:
Sidewindr & Logan, Be sure to read the last part of this post to completely fix sorting problems after upgrading to vb 3.0.2 or later. |
Roger wilco :)
Any idea on when you might be looking at the next version ?? :nervous: :o |
All times are GMT. The time now is 05:50 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|