Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
#317261 06/20/2008 11:50 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Name: ubb.links v7.3.1a

Description: Adds a links script to your site, integrated into your forum's styles, members and permissions

Demo: http://www.praisecafe.org/forum/ubbthreads.php/ubb/links/op/Links.html

Installation: DL and unzip the file. Upload the folders to the corresponding folders within your forum (ie: all files in the "scripts" folder should be uploaded to your forum's "scripts" folder).

If you are installing new, you're either going to have to manually create the tables using the code in admin script or wait until version 7.3.1 where the fix will be in for that.

If you are upgrading from Josh's 7.2 version, you're going to need to update a table's column's name:
Code

ALTER TABLE ubbt_links_categories
CHANGE title cat_title varchar(50)


Author: Plethora (see credits) - Mark Summerlin wrote the original (TLD) code 4-5 years ago, but not much is left of his work smile

Requirement: UBB.Threads 7.3.x - 7.5.x

Changelog:
7.3 alpha (released 6/20/2008):
- Now uses 7.3's SEO links
- Lots of template/design updates to look more like ubb.threads
- Removed some extraneous code, optimized some other
- ~95% of the wordlets are complete for public pages, more needs to be done for admin pages
- All public pages are xhtml-compliant

7.3 beta (released 6/25/2008):
- fixed web install, it's now a seperate file
- lots of html fixes in the admin area

7.3 gamma (released 6/28/2008):
- fixed cat sort order in cp
- lots of html fixes in the admin area
- code optimizations to match .threads 7.3 code

7.3 gold (released 6/29/2008):
- fixed bread crumb
- fixed stats
- more xhtml fixes
- css adjustments
- added censor check to new links

7.3.1 (released 6/30/2008):
- fixed invalid html characters
- added link submission sanitization

7.3.1a (released 7/2/2008):
- fixed xhtml issue with subcats
- added fave and rating submission sanitization

Known Bugs:
- cannot do web install to create table
- cat sort order
- need to fix stats at bottom
- bread crumb bug
- various html cleanups (ongoing)

Upcoming Features:
- search of links
- set up for unlimited subcat levels
- auto-fill options which pre-populate the fields with the meta data from the web site being submitted
- sticky links
- advanced sorting options
- 'report this link' - for broken, issues
- sprinkling of appropriate ajax
- Links CI (latest links, top 10, etc)
- CAPTCHA

NOTE: Above sections will be updated as we go and first post will always have most current released code.

Enjoy! smile
Attachments
ubbLinks.zip (31.97 KB, 70 downloads)
SHA1: 685a39db0e1d337eddb6c02ffa58ce9ba1681a9c

Last edited by AllenAyres; 10/05/2009 4:58 PM.

- Allen wavey
- What Drives You?
Sponsored Links
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
thanks, it works nice. I have to rename my old tables from w3t_ to ubbt_ first in the sql console (RENAME TABLE w3t_..... TO ubbt_.....) and then run the alter command. Now it work.
I will do a german language file.

Zarzal #317263 06/21/2008 10:56 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Thank you Zarzal smile


- Allen wavey
- What Drives You?
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
German language file in the attachment. Download and unzip it and put it in /languages/german
Attachments
links.zip (1.26 KB, 2 downloads)
SHA1: d543a15766ccd4179f8a3ff9d9ab2a1587543498

Zarzal #317269 06/22/2008 9:37 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
danke, I'll put it in the download file in the first post so it will be available - let me know if/when you update it smile


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
thanks. If I do changes I sent you a note.

Zarzal #317294 06/25/2008 10:49 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Original post updated: 7.3beta released - now you can do the web install if you haven't installed it before - the create tables routines were moved to a new file - to be safe delete after installation. I also fixed many xhtml issues in the admin area, a few bugs related to category titles, and added zarzal's german language file translation.

To upgrade if you've already installed just upload the files (skip the install file).


- Allen wavey
- What Drives You?
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
Thanks. Submitting the sortorder in the admin section dont work (seems to have no effect) and if it returned from submit sortorder to main the layout is confused.

The nav breadcrumb seems to have a problem in the first sublevel: Index » » Fun

Last edited by Zarzal; 06/26/2008 9:38 AM.
Zarzal #317300 06/26/2008 10:00 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
2 new bugs, thank you smile

Sortorder probably has to do with changing title to cat_title, I'll look at the navigation too smile


- Allen wavey
- What Drives You?
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
The sortorder on the main category never worked for me. In every version it was broken.

Sponsored Links
Zarzal #317303 06/26/2008 6:09 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Ah, ok smile I've never used that. I can see where it's needed tho. Will get it on the bugz list smile


- Allen wavey
- What Drives You?
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Found the bug, will post the fix plus some others this weekend


- Allen wavey
- What Drives You?
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
Hey, this sounds cool. Thank you.

Zarzal #317314 06/28/2008 7:41 AM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Your "submit" page should use the CSS from threads; I can't say much about you "light theme" guys, but let me tell you, white submit boxes on a dark background looks YIKES!

Also, when I go to make a submission, the category dropdown shows a blank entry at the top...

Additionally, once i submit a link, the page has a weird grey background; I'm guessing some bugglet in there that also throws off my table display.

Last edited by Gizmo; 06/28/2008 7:45 AM.

UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Gizmo #317315 06/28/2008 1:23 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
The blank entry at the top is intentional, so people will click and choose one instead of the default. smile I do need to update some css classes, and I've fixed a good number of html errors in the cp in my local version. I'll post it shortly smile


- Allen wavey
- What Drives You?
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
OK, updated original post to current code - fixed the cat sort order, optimized some more code and fixed lots of xhtml errors in the cp again.

Still need to fix the breadcrumb error, css class issues and the stats at the bottom before we can get much into the 7.3.1/7.4 version smile


- Allen wavey
- What Drives You?
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Anyone else getting charset issues? I have the little diamond questionmark on my UTF-8 install...

i'd recommend setting a language entry "Please Select" vs having it blank... else you get confused as to why theres a blank item wink...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Gizmo #317318 06/29/2008 1:42 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Which page do you see the diamond?


- Allen wavey
- What Drives You?
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
The "diamond" shows when there is a characterset conflict; you can test it here


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Gizmo #317321 06/29/2008 4:12 AM
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
Looks nicer. Submitting of the sortorder works now but on my links main page it have no effect. My categorys stuck everytime in same same order. Can it be that I have an very old db and missing some fields in it? Can this be?

Gizmo #317323 06/29/2008 8:15 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Originally Posted by Gizmo
The "diamond" shows when there is a characterset conflict; you can test it here


I don't see any 'diamonds' on your links install. Not sure how there would be any characterset conflicts since it takes the charset from the forum settings.


- Allen wavey
- What Drives You?
Zarzal #317324 06/29/2008 8:19 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Originally Posted by Zarzal
Looks nicer. Submitting of the sortorder works now but on my links main page it have no effect. My categorys stuck everytime in same same order. Can it be that I have an very old db and missing some fields in it? Can this be?


Thanks Zarzal. Maybe it's a caching issue, have they changed yet? I believe if you are able to set the order in the cp, then your database should be up to date.

The problem with the old way of setting the order (and the reason the changes never worked) was the original code was written back when people were using php 3 and 4 series - HTTP_POST_VARS has been deprecated for quite some time now and the command didn't mean anything for current versions of php - I used $_Post to get it running.


- Allen wavey
- What Drives You?
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
OK, Gold release in first post thumbsup

The last of the major bugs were fixed (I think smile ):
- fixed bread crumb
- fixed stats
- more xhtml fixes
- css adjustments

I also:
- added censor check to new links


- Allen wavey
- What Drives You?
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Well, I don't know what to tell you, cas they're there... Screencaps:
[Linked Image]
[Linked Image]

Additionally, tidy reports: "Page Error: This page contains invalid characters"


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Gizmo #317330 06/30/2008 8:36 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Those would only be viewable by the admin and why I couldn't see them on your site. They're ¤ symbols used by the original author. They don't throw errors at w3.validator.org, I'll update them on the next version. smile


- Allen wavey
- What Drives You?
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
7.3.1 (released 6/30/2008):
- fixed invalid html characters - Thanks Gizzy!
- added link submission sanitization - Thanks Yarp!
- minor code cleanup

Because of the sanitization addition/correction, everyone is urged to upgrade.

To upgrade from within 7.3.x, just upload files. For earlier versions follow info in first post.


- Allen wavey
- What Drives You?
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
Thank you, Allen.

I still have a sort problem. I attach some picturs. In picture lin1 you see my sort order in the admin section. In link2 you see the output of the main page. I can change the sortorder but it have no efect to the mainpage.

In picture link3 you can see 2 problems. It is a screenshot of inside a sub section. on the right side you can see a table problem in the layout.

Also I note (visibe in link3 too) that the statistic on the bottom count each section. In a subforum without links you count 0. Should this be that the counter is per page?
Attachments
link1.jpg (20.91 KB, 88 downloads)
Sortorder admin section
link2.jpg (46.79 KB, 13 downloads)
Main Windows output
link3.jpg (35.81 KB, 14 downloads)
inside subsection layout problem, db count problem

Zarzal #317339 06/30/2008 9:14 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Not sure what to say, it works on 2 different installs for me. Are you running php5?

And you are correct on the stats. It needs to be updated.

Most likely, we'll be pulling this apart and seperating the pages into their own scripts with their own templates. Right now we're running into conflicts trying to run it all from one script.


- Allen wavey
- What Drives You?
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Lol, bad characters to use wink

I like the idea of tearing it apart though wink

Last edited by Gizmo; 06/30/2008 10:20 PM.

UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Zarzal #317341 06/30/2008 10:31 PM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Hey AA, I wanted to test your installer for 7.3.1 but it's complaining that the tables don't exist... Which duah, I want to use the installer lol...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Zarzal #317342 06/30/2008 10:34 PM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Just noticed the note about the seperate file; I think the install docs need to mention they need to access it as:
ubbthreads.php?ubb=links_install

I also found a bug... When you're viewing the main index without any categories, it throws an html error which skews the tables for ubb

Last edited by Gizmo; 06/30/2008 10:36 PM.

UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Gizmo #317343 06/30/2008 10:48 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Yeah, I haven't looked to do anything with that error - if you don't have any categories you really haven't finished installing it yet smile I guess we could add a "General" category with the create table functions, but most would change it anyways.


- Allen wavey
- What Drives You?
Gizmo #317344 06/30/2008 10:51 PM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
I was thinking the images didn't look right, so I nuked them from my install, it doesn't look half bad now (clicky)

Also, AA, if you use tab's instead of spaces for separation in your files, you can cut out a lot of unneeded space... Check my example attached...
Attachments
links.zip (1.27 KB, 3 downloads)
SHA1: 54689bfdfb6ff0713d0c899b5e84e55a7fa10c06

Last edited by Gizmo; 06/30/2008 10:54 PM.

UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Most likely we'll be changing the design of the categories to more closely match the design of ubb.threads forums - being able to have an unlimited/random number of columns is pretty much guaranteed to have html errors like zarzal is seeing for some sites. It's pretty much impossible to make it work for everyone.


- Allen wavey
- What Drives You?
Gizmo #317346 06/30/2008 11:02 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Originally Posted by Gizmo
I was thinking the images didn't look right, so I nuked them from my install, it doesn't look half bad now (clicky)

Also, AA, if you use tab's instead of spaces for separation in your files, you can cut out a lot of unneeded space... Check my example attached...


Yeah, I used to do that, but it's generally recommended by the php/zend people to use tabs of 4 spaces - just so it's the same for everyone - some people use 2 spaces for tabs, others use tabs of differing sizes, others use 6 or 8 spaces for tabs. I can look it up on the zend site, but it's been a while and I just set it to 4 spaces and forget about it. smile Any part I've tabbed on is set to 4 spaces.

You're probably right about the images, it's one of those left-over things from the original code. They'll probably go away as we move closer to the forum-look. smile


- Allen wavey
- What Drives You?
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
I look at the formatting merely as what's being used in terms of keystrokes vs how zend feels about things wink...

As for the images, they're a smidge larger than the text, so it was causing me some grief... I don't really see much of a use of them for what I'd use it for; so reguardless I'd edit them out.

I moved the spaces to AFTER the previous entry vs in FRONT of the entry as it makes visibly looking for items a little easier.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Gizmo #317348 07/01/2008 8:58 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
I set my tabs to equal 4 spaces, it's no more keystrokes smile

Where do you mean moving the spaces? For subcats or ?


- Allen wavey
- What Drives You?
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
There is more keystrokes though...
One tab is One character.
4 spaces is 4 characters.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
Originally Posted by AllenAyres
Are you running php5?
yes: PHP Version 5.2.5-3

Gizmo #317351 07/01/2008 1:48 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Odd zarzal, not sure what to tell you. When you do a

SELECT * FROM ubbt_links_categories

does cat_order match up with what you are seeing in your links control panel?

Originally Posted by Gizmo
There is more keystrokes though...
One tab is One character.
4 spaces is 4 characters.


I know what you are trying to say... I used to be able to shrink photopost's filesize by half just by removing trailing spaces and converting leading spaces to tabs. The php/zend people recommend 4 spaces for each tab, so... you might bring your beef up with them and let me know if they make changes in those recommendations smile


- Allen wavey
- What Drives You?
Page 1 of 3 1 2 3

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
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
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)