Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2009
Posts: 4
Lurker
Lurker
Offline
Joined: Nov 2009
Posts: 4
Gizmo,

1. The perl script excels at the detecting verses part, via a regex. However, it was not a database-driven script in the least, and currently has no database-related code.

It does use an external file which is basically a tab-delimited list of Bible books and their potential representations (e.g. abbreviations, alternate names/spellings, etc.).

2. I have zero experience in PHP when it comes to writing it myself from scratch--I would just rather use Perl. I have some (a couple eight-hour days' worth) PHP experience in terms of editing existing PHP to perform some modifications of my own (such as adding some Qmail functions to Webmin).

The admin of the UBB forum where I participate has not opened it up for me to access--and perhaps he cannot share any of the files with me for the same reasons you have stated above. I understand the need to protect your software with a license, but this does make development difficult.

This script could work in more than one way. It could be applied to new posts as they are being received into the DB, such that scripture references were converted to links before insertion into the DB. In that case, the actual posts would be altered, however, and the feature would not be able to be switched off from old posts later. I would rather not change actual posts.

The way I would recommend this working is to simply parse the server output before going to the browser, and adding the links on the fly. This would not require any special arrangement with the DB, it would merely act as a filter on output.

Sponsored Links
Entire Thread
Subject Posted By Posted
Auto-link generation for Scripture references AsiaWired 11/27/2009 4:30 PM
Re: Auto-link generation for Scripture references Gizmo 11/29/2009 12:48 AM
Re: Auto-link generation for Scripture references AsiaWired 11/29/2009 2:19 AM
Re: Auto-link generation for Scripture references Ruben Rocha 11/29/2009 2:56 AM
Re: Auto-link generation for Scripture references AsiaWired 11/29/2009 3:50 AM
Re: Auto-link generation for Scripture references AsiaWired 11/29/2009 3:03 AM

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:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,825
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 1383
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 13
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
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-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)