|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Modification Name: ubb.links v2.5 Beta Author(s): AllenAyres Description: This mod gives you a basic ubb-integrated links script. New for v2.5: A basic Gossamer-Threads Links 2.0 importer - much thanks go to Ian Spence and Burak Demo: https://www.ubbdev.com/db/cgi/links.cgi Requirements: 6.7+ Download Link: https://www.ubbdev.com/ubb/upload/00000494/links.zip Credits: cal and mark for the little bits of hacks.cgi still in the code  Charles Capps for help and pointers  LK, Burak, and Ian for bugfixes Instructions / Other Info: - Extract
- Upload (.cgi to your forum cgi directory, the rest to your noncgi folder (keep in the /links/ folder).
- Set permissions to 755 on the .cgi files and 777 on the /links/ files
- You can access the admin with this url: /links.cgi?action=admin
- Set your paths and urls for the importer on line 99-101 in links_importer.cgi before beginning and upload to your ubb cgi directory
- You can access the importer at /links_importer.cgi
More features are coming, the next one to work out will be adding subcats. Please test and let me know if you see any bugs in the current files. History: 11/23/2003 - original release 02/09/2004 - Updated for 6.7 with lots of bugfixes and code improvements. 06/24/2004 - updated with bugfixes for categories 06/28/2004 - (v1.6) breadcrumb bugfix and (Go!) links added for category view 06/30/2004 - (v1.7) search engine friendly links added 07/18/2004 - (v1.8.5) Censor check added to add/edit link pages and using ubb-based verification for the same pages 07/23/2004 - (v1.8.6) Bugfixes for URL's - thanks Ian 07/25/2004 - (v1.8.8) Bugfixes for SEF and IIS - thanks Ian 07/26/2004 - (v1.8.9) Bugfixes for text color and the double ?? 07/26/2004 - (v1.9.1) More bugfixes 07/28/2004 - (v1.9.3) Added the catnumber and usernumber to the link data stored. 08/20/2004 - (v1.9.4) Fixed bug with editing and deleting entries (thanks RoxSeibert) 08/26/2004 - (v1.9.5) Fixed bug with lightbulbs(thanks Ian Spence) 09/06/2004 - ( v1.9.6) Fixed bug with redirect (thanks Ian), fixed dup topten bug (thanks roxy) and added a blank index.html file to /links directory 09/11/2004 - (v2.0.a) Alpha-release of v2. db$id has all been moved to one file - links_data.cgi. The dbcats.cgi file is now links_cats.cgi too. Added the ability to edit the category the link is assigned to. 09/18/2004 - (v2.0.b, aka The Wedding Day Release  ) - major bug fixed by Burak (thank you) in picking and choosing the links for each category. 09/30/2004 - (v2.0.g) - features added (thanks to Ian) to allow the user to sort the category page by link name/ added by name, or # of hits. Also cleaned up the top ten code (with major help by Ian) to remove the redundant code since we're now using one file. You can now delete the tenlinks.cgi file. A few buglets remain before 2.0 final. 10/02/2004 - (v2.0 Gold) - bug cleaned up to allow selection of cat name instead of number upon edit when moving link to another category. Major feature added with a lot of help by LK, Charles Capps, and Ian Spence to rebuild the number of links in each category - you'll find a link to do so at the bottom of the admin page. 10/05/2004 - (v2.0.1) - buglet fixed with lightbulbs and a bit of code cleanup 01/30/2005 - (v2.5 beta) - A beta version of a gossamer-threads links 2.0 importer added, much thanks goes to Ian Spence and Burak for assitance. With the release of 2.0 Gold it is moved to 'finished' status and the ubb.classic version supported is 6.7+ (I don't think it'll work out of the box with 6.6 anymore). There's probably a buglet or 3 left, but they're pretty much inconsequential and will be fixed shortly. Future plans include possibly a yahoo-style interface.
|
|
|
|
Joined: Dec 2000
Posts: 78
Member
|
Member
Joined: Dec 2000
Posts: 78 |
Requirements: nada Does this work on 6.30?
|
|
|
|
Joined: Oct 2000
Posts: 2,667
Veteran
|
Veteran
Joined: Oct 2000
Posts: 2,667 |
quote: Originally posted by Ed: Requirements: nada Does this work on 6.30? depends if it uses the cookie or not as the password was encrypted in V6.4 otherwise it should work
Do you believe in love at first sight, or should I walk by again?
|
|
|
|
Joined: Dec 2000
Posts: 78
Member
|
Member
Joined: Dec 2000
Posts: 78 |
I get this error when trying to access admin "Software error: Undefined subroutine &main::RequireUserLogin called at links.cgi line 619. For help, please send mail to the webmaster ( [email protected]), giving this error message and the time and date of the error. Content-type: text/html"
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
hmmm.. you'll probably need to upgrade as this uses several subroutines from newer versions. The requirelogin sub is to ensure only the right people have access to the admin parts.
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
Will this work on 6.6.1?
Edit: it does so far but in the links.cgi files this line;
$DataPath = "$vars_config{NonCGIPath}/uploads";
Should read;
$DataPath = "$vars_config{NonCGIPath}";
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
It should, I used 6.6.1 to base it on, tho I tested it on 6.5 (hence the title). I hope to get subcats moving this coming week, so I recommend uploading and testing, but I'm not sure if adding the subcats will mess up current links/categories or not. I'll also work on an alternate style to make it look like google/yahoo, I think, unless this ubb-style grows on me more in the meantime I still wanna move to using as many of the ubb subs already written in the base code as possible - not sure why '$show_logout' won't pull over from public_common, something I am missing...
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
files updated with a couple bugfixes and some UI consistency issues 
|
|
|
|
Joined: Dec 2003
Posts: 123
Junior Member
|
Junior Member
Joined: Dec 2003
Posts: 123 |
I tried installing it, but when trying to run /links.cgi?action=admin I figured out it is looking for a vars_wordlets_mods.cgi file that's not there. So, green like I am, I created an empty vars_wordlets_mods.cgi, set permissions to 777 and tried again. Nope! Is the d/l missing this cgi file?
Thanks! Looking forward to trying it out.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
I'm going to be installing the Wordlets mod this week, don't worry 
|
|
|
|
Joined: Dec 2003
Posts: 123
Junior Member
|
Junior Member
Joined: Dec 2003
Posts: 123 |
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
check the thread in this forum for the vars_wordlets_mods modification, I'll update the instructions here that it's required 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Files updated for 6.7 with lots of bugfixes and code improvements. lib_links.cgi is no longer needed. To upgrade just upload links.cgi and vars_wordlets_links.cgi. Subcats are next, they may take me a while 
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
I just installed 6.7.
The first modification I installed was Colorforums, and everything seems to be working fine. I next tried your awesome links modification, but I got this message:
"Global symbol "%vars_colorforums" requires explicit package name at ubb_lib.cgi line 2477. BEGIN not safe after errors--compilation aborted at ubb_lib.cgi line 2608.
[Wed Feb 11 19:13:58 2004] links.cgi: Global symbol "%vars_colorforums" requires explicit package name at ubb_lib.cgi line 2477. [Wed Feb 11 19:13:58 2004] links.cgi: BEGIN not safe after errors--compilation aborted at ubb_lib.cgi line 2608. Compilation failed in require at links.cgi line 85."
Is this incompatible with colorforums? Thanks for any help.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
In links.cgi FIND: %vars_wordlets_games %opt on the next line add
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
Sorry, but now I get: The server encountered an internal error or misconfiguration and was unable to complete your request.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
please post the most recent errors in your server's error log
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
Premature end of script headers: script not found or unable to stat: /vars_wordlets_mods.cgi: Can't locate
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
I removed &RequireCode("$vars_config{VariablesPath}/vars_wordlets_mods.cgi"); from your code in links.cgi and I got it to work 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
arghhh... forgot that some people may not have the same mods installed. I updated the zip after going through and removing the extra required files and cleaning up the "use vars" area 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
zip file updated again to fix an error with the link redirect for url's. To upgrade just upload links.cgi 
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
Sorry, but that didn't help me. It worked on the original version, but the links didn't work at the top. Now all I get is an internal error.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Got a link to what's happening? It's working on 2 sites for me.
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
Well, this is just a tad frustrating. I took a look at Allen's hack, and I thought it was an AWEsome idea ... so I downloaded the zip and followed the directions for the install. Allen's database from his site was there, and, with all due respect to Allen, those links wouldn't necessarily "work" for me and my site. So I tried deleting them. Wouldn't work. So I rechecked how I chmoded stuff, and it appeared as if I hadn't done so properly. So I went and made sure that all the files were chmoded, and I still could not get it to delete and/or change the categories, their names, descriptions, et al. So then I went into the "guts" of the database files and I manually changed it. It kinda worked, but in the grand scheme of things, this isn't how I think Allen intended his mod to respond. So then I tried to play around with the permissions--thinking that maybe something was out of whack there ... Now all I get are Internal Server Error Messages. No matter what I do. The first two files in the cgi-bin folder are links.cgi vars_wordlets_links.cgi They should be uploaded to my cgi folder, and chmoded to 755, right? Or, should the variable file be 777? In the ubb portion, there is the folder called "links" ... this is supposed to be uploaded to the ubb files, correct? This file folder is supposed to be 777? And the files within the folder are db.cgi db1.cgi db2.cgi db3.cgi dbcats.cgi tendb.cgi tenlinks.cgi Correct? If I'm reading Allen's directions correctly, they are also supposed to be chmoded to 777 ... is this correct? ---- I've done all this (at least, I think I have  ) I get that blasted Server Error; I delete the files and reload them. I still get the blasted Server Error. What am I doing wrong?! ----- I'm trying to install this to my test site ... which is upgrade to 6.7
Sue adwoff.com
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Sorry Sue, still working on this. Let me get another version done before using this on a live site. Was reading an interesting article: http://www.sitepoint.com/article/brandy-google-update Seems google loves outbound and inbound links even more... a good SE-friendly links script should help at least some 
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
Cool, Allen. I can be patient. 
Sue adwoff.com
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Updated the zip with a few small bugfixes Sue, you might check with your webhost. It's possible they don't allow folders to be set to 777 - you might have to choose 755 and the files within to 777.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Sue, would you mind going into your error log and posting the actual error you get? It would be very helpful in finding a solution.
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
Hey Guys~
I'm rehacking my test site ... once I get some bugs ironed out, I'll give this one another shot and see what happens.
Thanks!
Sue adwoff.com
|
|
|
|
Joined: Mar 2002
Posts: 17
Newbie
|
Newbie
Joined: Mar 2002
Posts: 17 |
I downloaded it on March 29th and installed it in 6.7.
Here are some problems I am having.
I can add categories fine but can not edit or delete present ones.
The numbers in the "Links" column is not accurate. One even shows a negative number.
I can edit a listing in a category fine. I can aslo delete a listing.
Tried clearing the cache also but not sure if that even works for this feature.
Any ideas? Thanks, Mark
MK
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
Okay, I've tried playing with this again tonight. Here's the error I get when I try to access the links.cgi file: quote:
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. -------------------------------------------------- Apache/1.3.27 Server at adwoff.com Port 80
---- I run the error script, and these are some of the results I get: quote: [qb]Please Wait.....
CGI / PERL CHECKER OUTPUT WITH WARNINGS TURNED OFF:
/home/adwoff/ubb-test/cgi/links.cgi syntax OK
END OF PERL CHECKER OUTPUT:
[/qb] I turn the warnings on, and this is what is generated: quote:
Please Wait..... CGI / PERL CHECKER OUTPUT WITH WARNINGS TURNED ON: Subroutine Carp::longmess redefined at /home/adwoff/ubb-test/cgi/Modules/UBBCGI/Carp.pm line 377. Subroutine Carp::shortmess redefined at /home/adwoff/ubb-test/cgi/Modules/UBBCGI/Carp.pm line 378. [Mon Mar 29 20:49:06 2004] links.cgi: "my" variable $i masks earlier declaration in same scope at /home/adwoff/ubb-test/cgi/links.cgi line 367, line 64. [Mon Mar 29 20:49:06 2004] links.cgi: "my" variable $i masks earlier declaration in same scope at /home/adwoff/ubb-test/cgi/links.cgi line 591, line 64. [Mon Mar 29 20:49:06 2004] links.cgi: "my" variable $i masks earlier declaration in same scope at /home/adwoff/ubb-test/cgi/links.cgi line 897, line 64. /home/adwoff/ubb-test/cgi/links.cgi syntax OK
END OF PERL CHECKER OUTPUT:
----
Now I run it on the files folder
This is what I get with the error message turned ON:
quote: [qb]Please Wait.....
CGI / PERL CHECKER OUTPUT WITH WARNINGS TURNED ON:
/home/adwoff/ubb-test/ubb/links/ syntax OK
END OF PERL CHECKER OUTPUT:
[/qb] and with it turned off ... quote: Please Wait.....
CGI / PERL CHECKER OUTPUT WITH WARNINGS TURNED OFF:
/home/adwoff/ubb-test/ubb/links/ syntax OK
END OF PERL CHECKER OUTPUT:
---- I've tried to chmod the links folder to both 777 and 775 I'm utterly clueless about how to read these error reports ... how to *fix* things ... if it's a matter of contacting my host, I can try to do that ... if it's something else, I'm open to suggestions. Thanks.
Sue adwoff.com
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
go into your error log and paste the actual errors
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
Weird. I contacted my host about getting an error report, and they informed me that I had chmoded the links.cgi file wrong. I honestly thought I had it at 755, but somehow it was at 777. I know, I know. :rolleyes: So that issue is *fixed.* ------- Allen, I have played around with it a bit, and I literally had to physically go into the dbcats.cgi file and remove your old info; it wouldn't change OR delete for me via the edit in the admin area. I'm not sure why that is. I have that file and (I believe  ) the rest in that folder AND the folder at 777 I have been able to add categories and add links ... so that is not an *issue* ... I'll continue to play with it a little more and have my mods do the same. Thanks! ----- Edit to add: one feature that I'd love to see, Allen, is when you add new links to the different categories, the one added first would STAY FIRST. Does that make sense?
Sue adwoff.com
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Makes sense, right now it loads the most recent up top, much like a forum does.
|
|
|
|
Joined: Mar 2002
Posts: 17
Newbie
|
Newbie
Joined: Mar 2002
Posts: 17 |
I downloaded it on March 29th and installed it in 6.7.
Here are some problems I am having.
I can add categories fine but can not edit or delete present ones.
The numbers in the "Links" column is not accurate. One even shows a negative number.
I can edit a listing in a category fine. I can aslo delete a listing.
Tried clearing the cache also but not sure if that even works for this feature.
Any ideas? Thanks, Mark
MK
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
Mark,
I had the same problems you described with deleting categories/links ... what I ended up doing is going into the dbcats.cgi manually and getting rid of the old categories.
However, this is a *bug* that Allen does need to tackle. (Sorry, Allen!)
Sue adwoff.com
|
|
|
|
Joined: Mar 2002
Posts: 17
Newbie
|
Newbie
Joined: Mar 2002
Posts: 17 |
I have done the same editing the files. Was hoping there may be a simple solution that someone already knows. Thanks
MK
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
hehe, ok. I'll see if it's something that jumps out at me 
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
Shoot. I'm having a conflict problem. My community is one of readers; because of this, we need a mechanism in place to provide for *spoiler code* so that things won't appear in active topics. Last year, with the help of Fahd, I was able to install a spoiler hack into the Instant UBB_code --> https://www.ubbdev.com/ubb/ultimatebb.php/topic/8/3481.html#000000 This year, I was able to port that hack to 6.7.0, but I am finding that when I do so, it conflicts with this modification for links. ------- In the spoiler hack, I was supposed to find this code in ubb_lib.cgi $check =~ s/(^|s)(www.S+)(.|,|))?/$1<a href="http://$2" target="_blank">$2</a>$3/isg; and add this after it ... $check =~ s/([SPOILER])/ $vars_wordlets_mods{spoiler} /isg; ... that, along with Fahd's suggestions, allowed me to have the spoiler code within our posts. Trust me. It's a life-saver.  There are some women who get mighty  if their stories are spoiled in any way, shape, or form. ---- Because of where this code is added seemed *weird* compared to the Advanced Ubb_code, I decided to see if I could play with it. I came up with this: $match++ if $_[0] =~ s/([SPOILER])/$vars_wordlets_mods{spoiler}/isg; On straight replies, this WOULD NOT work; however, if I replied with quote, it would. Weird, eh? So I thought I'd come over here and seek out your shared brilliance in how to fix this problem. But I also took another look at the links.cgi page, and wouldn't you know it? CONFLICT! Here's an example of the message I get: quote:
Software error: Global symbol "%vars_wordlets_mods" requires explicit package name at ubb_lib.cgi line 2051, line 64. BEGIN not safe after errors--compilation aborted at ubb_lib.cgi line 2593, line 64. and
quote: [qb][Sun Apr 4 18:18:58 2004] links.cgi: Global symbol "%vars_wordlets_mods" requires explicit package name at ubb_lib.cgi line 2051, line 64. [Sun Apr 4 18:18:58 2004] links.cgi: BEGIN not safe after errors--compilation aborted at ubb_lib.cgi line 2593, line 64. Compilation failed in require at links.cgi line 80, line 64. [/qb] ------ Needless to say, I need the spoiler hack badly for my community, so unless someone can see a way to help me make it *instant code* AND have it compatible with this add-on, there's no way I can have the links.cgi page. 
Sue adwoff.com
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
add %vars_wordlets_mods to the use vars list at the top of links.cgi, and add &RequireVars("$vars_config{VariablesPath}/vars_wordlets_mods.cgi"); near all the lines that are like it
|
|
|
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.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|