Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version: User Selectable Dateslip 1.0

Description: This will allow an individual user to override the forum's dateslip feature in their display preferences. The dateslip function determines if the posts are sorted by replies, or original post date on the postlist page.

Working Under: UBB.Threads 6.3

Mod Status: Beta

Any pre-requisites: none

Author(s): JoshPet

Date: 10/15/03

Credits: Commissioned by RocLobsta of www.mameworld.net

Files Altered: editdisplay.php, changedisplay.php, editdisplay.tmpl, postlist.php

New Files: none

Database Altered: New Field, U_DateSlip, added to the w3t_Users table.

Info/Instructions:

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attachments
97037-userdateslip1.0.txt (0 Bytes, 55 downloads)

Sponsored Links
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Users are always happy to get new toys.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Fantastic, some of my users will be really happy for this, at least when I've upgraded so that it can be installed. =]

Joined: Mar 2003
Posts: 215
Junior Member
Junior Member
Offline
Joined: Mar 2003
Posts: 215
Installed, some users are happy (cause our board is expanded thread view by default).

One suggested addition would be to add this to the admin's profile editor as well (admin/showoneuser.php)

Joined: Mar 2003
Posts: 215
Junior Member
Junior Member
Offline
Joined: Mar 2003
Posts: 215
Other scripts need altering too for this mod:

addpost.php - After adding a post the page to send them back to is based on dateslip.

showflat.php/showthreaded.php - queries for prev/next post are based on dateslip and if the default doesn't match the user's option prev/next won't go in the right order.

Sponsored Links
Joined: Dec 2004
Posts: 36
Junior Member
Junior Member
Offline
Joined: Dec 2004
Posts: 36
I get this SQL error (I run 6.5) after installing the mod:
How please can I correct this? can someone please give me the correct syntax? I'm no expert on mySQL.

Script: /home/ac2/public_html/board/changedisplay.php
Line#: 137
SQL Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'U_TimeFormat = 'short1' WHERE U_Username = 'bcc'' at line
SQL Error #: 1064
Query: UPDATE w3t_Users SET U_LastOn = '1103681073', U_Display = 'flat', U_View = 'collapsed', U_PostsPer = '40', U_TextCols = '60', U_TextRows = '5', U_StyleSheet = 'greenday', U_Preview = 'on', U_PictureView = 'on', U_PicturePosts = 'on', U_Language = 'english', U_FlatPosts = '40', U_TimeOffset = '0', U_FrontPage = 'ubbthreads', U_StartPage = 'mi', U_ShowSigs = 'yes', U_DateSlip = '2' U_TimeFormat = 'short1' WHERE U_Username = 'bcc'


nosleep
Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
In changedisplay.php...

CHANGE THIS:

Code
 <br />    U_ShowSigs       = '$ShowSigs_q', <br />    U_DateSlip = '$Dateslip_q' <br />  


TO THIS:

Code
 <br />    U_ShowSigs       = '$ShowSigs_q', <br />    U_DateSlip = '$Dateslip_q', <br />  


That error will occur if you aren't using v6.3 and apply the changes exactly as mentioned in the mod.

Joined: Dec 2004
Posts: 36
Junior Member
Junior Member
Offline
Joined: Dec 2004
Posts: 36
Thank you VERY much indeed. This solved the problem.


nosleep

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)