UBB.Dev
Posted By: AllenAyres [6.7] [beta] ubb.links v2.5 - 11/26/2003 12:25 AM
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 thumbsup

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 wink Charles Capps for help and pointers smile LK, Burak, and Ian for bugfixes smile

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 smile
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. thumbsup
09/18/2004 - (v2.0.b, aka The Wedding Day Release tipsy ) - 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. thumbsup
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.
Posted By: Ed Re: [6.7] [beta] ubb.links v2.5 - 11/27/2003 7:49 PM
Requirements: nada
Does this work on 6.30?
Posted By: Charles Re: [6.7] [beta] ubb.links v2.5 - 11/27/2003 7:58 PM
Quote
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
Posted By: Ed Re: [6.7] [beta] ubb.links v2.5 - 11/27/2003 8:47 PM
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"
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 11/28/2003 8:35 AM
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.
Posted By: RandyM Re: [6.7] [beta] ubb.links v2.5 - 11/28/2003 9:42 AM
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}";
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 11/28/2003 9:55 AM
It should, I used 6.6.1 to base it on, tho I tested it on 6.5 (hence the title). smile

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 smile

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...
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 12/02/2003 8:36 PM
files updated with a couple bugfixes and some UI consistency issues smile
Posted By: Sky YYZ Re: [6.7] [beta] ubb.links v2.5 - 12/08/2003 3:53 AM
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.
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 12/08/2003 4:02 AM
I'm going to be installing the Wordlets mod this week, don't worry tipsy
Posted By: Sky YYZ Re: [6.7] [beta] ubb.links v2.5 - 12/08/2003 4:35 AM
okie
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 12/08/2003 6:05 AM
check the thread in this forum for the vars_wordlets_mods modification, I'll update the instructions here that it's required smile
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 02/11/2004 7:52 AM
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 smile
Posted By: Ellen Re: [6.7] [beta] ubb.links v2.5 - 02/12/2004 3:22 AM
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.
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 02/12/2004 3:49 AM
In links.cgi

FIND:
Code
	%vars_wordlets_games %opt
on the next line add

Code
  %vars_colorforums
Posted By: Ellen Re: [6.7] [beta] ubb.links v2.5 - 02/12/2004 4:07 AM
Sorry, but now I get:
The server encountered an internal error or misconfiguration and was unable to complete your request.
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 02/12/2004 4:19 AM
please post the most recent errors in your server's error log
Posted By: Ellen Re: [6.7] [beta] ubb.links v2.5 - 02/12/2004 4:37 AM
Premature end of script headers:
script not found or unable to stat:
/vars_wordlets_mods.cgi: Can't locate
Posted By: Ellen Re: [6.7] [beta] ubb.links v2.5 - 02/12/2004 4:55 AM
I removed

&RequireCode("$vars_config{VariablesPath}/vars_wordlets_mods.cgi");

from your code in links.cgi and I got it to work smile
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 02/12/2004 7:22 AM
arghhh... forgot that some people may not have the same mods installed. smash

I updated the zip after going through and removing the extra required files and cleaning up the "use vars" area smile
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 02/12/2004 8:03 PM
zip file updated again to fix an error with the link redirect for url's. To upgrade just upload links.cgi smile
Posted By: Ellen Re: [6.7] [beta] ubb.links v2.5 - 02/14/2004 3:12 PM
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.
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 02/15/2004 2:11 AM
Got a link to what's happening? It's working on 2 sites for me.
Posted By: ADWOFF Re: [6.7] [beta] ubb.links v2.5 - 02/29/2004 9:35 PM
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.

help

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 tipsy )

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
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 03/22/2004 10:21 AM
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 smile
Posted By: ADWOFF Re: [6.7] [beta] ubb.links v2.5 - 03/22/2004 11:23 AM
Cool, Allen. I can be patient. smile
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 03/28/2004 2:24 AM
Updated the zip with a few small bugfixes smile

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.
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 03/28/2004 2:35 AM
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.
Posted By: ADWOFF Re: [6.7] [beta] ubb.links v2.5 - 03/28/2004 8:31 AM
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!
Posted By: Valkyrie Re: [6.7] [beta] ubb.links v2.5 - 03/30/2004 5:25 AM
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
Posted By: ADWOFF Re: [6.7] [beta] ubb.links v2.5 - 03/30/2004 7:59 AM
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
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
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
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.
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 03/30/2004 7:45 PM
go into your error log and paste the actual errors
Posted By: ADWOFF Re: [6.7] [beta] ubb.links v2.5 - 03/31/2004 5:02 AM
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: tipsy

So that issue is *fixed.* laugh


-------

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 tipsy ) 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?
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 03/31/2004 6:19 AM
Makes sense, right now it loads the most recent up top, much like a forum does.
Posted By: Valkyrie Re: [6.7] [beta] ubb.links v2.5 - 03/31/2004 6:20 AM
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
Posted By: ADWOFF Re: [6.7] [beta] ubb.links v2.5 - 03/31/2004 6:25 AM
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!)
Posted By: Valkyrie Re: [6.7] [beta] ubb.links v2.5 - 03/31/2004 6:44 AM
I have done the same editing the files. Was hoping there may be a simple solution that someone already knows. Thanks
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 03/31/2004 7:58 AM
hehe, ok. I'll see if it's something that jumps out at me smile
Posted By: ADWOFF Re: [6.7] [beta] ubb.links v2.5 - 04/05/2004 4:27 AM
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. frown

-------

In the spoiler hack, I was supposed to find this code in ubb_lib.cgi

Code
$check =~ s/(^|s)(www.S+)(.|,|))?/$1<a href="http://$2" target="_blank">$2</a>$3/isg;  
and add this after it ...

Code
    $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. laugh There are some women who get mighty mad if their stories are spoiled in any way, shape, or form. tipsy

----

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:

Code
		$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! eek

Here's an example of the message I get:

Quote
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. frown
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 04/05/2004 4:31 AM
add %vars_wordlets_mods to the use vars list at the top of links.cgi, and add
Code
&RequireVars("$vars_config{VariablesPath}/vars_wordlets_mods.cgi");
near all the lines that are like it
Posted By: ADWOFF Re: [6.7] [beta] ubb.links v2.5 - 04/05/2004 4:41 AM
Thank YOU, Ian! smile
Posted By: eXtremeTim Re: [6.7] [beta] ubb.links v2.5 - 05/05/2004 7:11 AM
So did all the bugs ever get fixed allen? Like the not being able to edit the categories and such.
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 05/05/2004 5:50 PM
Nope, not there yet... it's a bit over my head, but I hope to plug away at it in the next week or so smile
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 05/10/2004 7:23 PM
Besides not being able to edit categories, what other bugs have you guys found? I'll work on getting them fixed smile
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 05/11/2004 7:15 PM
go Allen go... I've been waiting ever so patiently for this mod to get a little more polish, it will be very useful on my site someday! plus I'm about sick of members constantly asking if I'm ever gonna have a links page.

a small suggestion from way out here in left field for future enhancements (after bug fixes), it would be really REALLY cool if we could somehow have ratings on the links managed by this mod just like we have on member profiles.
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 06/25/2004 1:17 AM
Many thanks to LK, the file has been updated with fixes for the categories problems. Please check and let me know if they work for you smile
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 06/25/2004 1:29 AM
ps: made the 'add link' page require login, eventually the link will only show to those logged in.
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 06/25/2004 1:45 AM
other misc. bugfixes smile
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 06/25/2004 4:53 AM
Allen, you could just add around the link
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 06/25/2004 5:59 AM
really? that works on ubb.classic's in general?
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 06/25/2004 6:07 AM
ah, cool smile

Will update files once I get a couple other things done - those that 'need' it now can add the spans around the 2-3 spots that have:

$vars_wordlets_links{links_add_afile}
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 06/29/2004 2:01 AM
Files updated for (v1.6) - breadcrumb bugfix/patch done and (Go!) links added for category view.
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 06/30/2004 9:19 PM
file updated (v1.7) for search-engine-friendly links.

To upgrade, just upload links.cgi
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/02/2004 6:49 AM
how and where could i stick an if() in this script to politely screen out a particular link that i want to block folks from adding?
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/02/2004 9:19 AM
One thing the script does need is to run entries through the censored words filter. If your link is entered in the banned words list it should block it then.
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/02/2004 7:13 PM
hmmmmm... never thought of doing that, and that would actually solve several problems. thanks!
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/19/2004 4:05 AM
shuckz, i'm getting the following error with this mod on my 6.7.1 site

Quote
quote:
Software error:
(RequireCode) C:/websites/ubb6_dragboatalley/cgi-bin/vars_wordlets_links.cgi: Can't locate C:/websites/ubb6_dragboatalley/cgi-bin/vars_wordlets_links.cgi in @INC (@INC contains: ./Modules . C:websitesubb6_dragboatalleycgi-bin C:websitesubb6_dragboatalleycgi-binModules C:/Perl/lib C:/Perl/site/lib) at ubb_lib.cgi line 931.
http://dragboatalley.com/cgi-bin/links.cgi

i swear i never get anything right the first time frown
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 07/19/2004 5:09 AM
did you make sure to upload vars_wordlets_links.cgi?
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/19/2004 5:30 AM
its not in the zip currently on the download link (page 1) ?
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/19/2004 6:29 AM
Files updated to 07/18/2004 - (v1.8.5) Censor check added to add/edit link pages and using ubb-based verification for the same pages smile Anything (including url's) you have in your ubb's bad word filter will be filtered here.

I fixed some other misc. bugs, but don't remember right now. To update, just upload the links.cgi file. (zip contains the wordlet file now, please check it smile )
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/19/2004 6:51 AM
ok, I uploaded new links.cgi and wordlet file but now I'm getting a HTTP 400 bad request error?

http://dragboatalley.com/cgi-bin/links.cgi
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/19/2004 7:38 AM
Very strange, you mind deleting the file and uploading it fresh?
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/19/2004 8:00 AM
still nada, and i reuploaded everything twice. Perhaps this is my problem...

Quote
Originally posted by AllenAyres:

Instructions / Other Info: [list]

[*]Set permissions to 755 on the .cgi files and 777 on the /links/ files
What's the Win2k/NT translation for 777?
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/19/2004 8:35 AM
Full permissions for the IUSR_machinename and Everyone accts smile THO that should throw a 500, not a 400, but it wouldn't hurt to try it smile
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/19/2004 8:57 AM
so ok, write/modifiy wasnt on for IUSR in thelinks folder, but that didnt help any. And I see no W3SVC errors in the event log of any kind to lend a clue. even got in remotely and looked at all the files and it seems loaded fine, except maybe that db.cgi is 0K and the other stuff in links folder is 1K. any more thoughts?
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/19/2004 3:28 PM
Hey Allen, perhaps this will help...

I deleted everything, uploaded again. The very first hit to links.cgi to test it and I get a non-standard, plain-jane HTTP 400 Error page with a simple "Bad response from sever" message. Then I try to hit links.cgi?action=admin and I get standard HTTP 400 error page. Go back to the regular links.cgi and from there on out it's the standard HTTP 400 error page.

Exact same behavior as last night but I was tired and just thought I hit the link too quick the first time - first hit to the script looks to give a cgi generated error, and there after it coughs up 400 hairball frown

And still no web server related errors in the event log frown anyone else having trouble with the new v1.8.5 script?

couple shot in the dark grasps here...
  • the .db files are supposed to be uploaded in ASCII mode right?
  • In IIS the /ubb/links folder is inheriting read and execute rights (Scipts and Executables), I dont need to also turn on write rights as well do I?
  • Is the zip still missing something thats maybe causing a problem for a fresh install: I have 2 files in cgi-bin and 7 files in non-cgi/links.
  • Is the 0K db.cgi file supposed to have a little sumthin-sumthin in it to get started with?
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/19/2004 4:53 PM
Lemme check on your other questions, but the files will need write access to be able to update/edit/delete them, I'm pretty sure smile

I've got a Win2k box at home, I'll try to test it tonight if I get home before 1 or 2am from work smash
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/22/2004 6:35 AM
OK, I loaded the current files on my win2k box at home and for some reason got the same error tipsy

In using Beyond Compare, there's quite a bit different now from what I had a couple months ago, so I started at the top with plans to work down and see which section it was gonna choke on.

I changed the first line from :

#!/usr/bin/perl -w

back to the old:

#!/usr/bin/perl

and it works now tipsy

Try it and let me know how it works for you smile
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/22/2004 7:22 AM
good, thats actually a relief to know you got same error... I'm not a server person yet am my own host, so when something weird happens on serverside i get worried

off to test...
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/22/2004 7:34 AM
shoot... that fix didnt seem to help me frown but thanks so much for trying.

I'm running ActiveState Perl v 5.8.0.804 and php v 4.3.4.4 on Win2k SP4 server os, how's that compare to your machine where this fix seemed to help?
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/22/2004 7:39 AM
I using a newer version of perl .810 - not sure if that's the problem, but it's where I'm at. A good number of bugs were fixed and modules updated to the latest version.

http://aspn.activestate.com/ASPN/docs/ActivePerl/CHANGES.html

My OS is win2k sp4 server, not sure about php but I don't think it should matter here.
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/22/2004 7:41 AM
hmmm... your perl is more than a year and a half old - millions of internet years, that's a long list of bugfixes there tipsy
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/22/2004 7:46 AM
YEAH - I'm good!!!! restarted IIS and loosing the -w did help! And I've seen IIS5 need semi-frequent restarts with custom non-asp web apps, so good to know it applies to my ubb stuff as well

thankyouthankyouthankyou. for both fix and perl update pointer as well.

(ponders whether to care enuff to go here. yeah why not..) i thought that dang perl declaration line wasnt supposed to mean anything on windows confused
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/22/2004 8:32 AM
latest perl loaded, script is atleast running now so no hurry here but we still got some buglets. Sorry Allen...

In admin page I tried to edit the canned categories and started adding new ones and it began to merge the first and second cat together, doubling up titles and descriptions and creating a nice little mess smile

http://dragboatalley.com/cgi-bin/links.cgi

More I tried to fix the more it doubled up, and delete cat doesnt seem to submit.

Click on a cat from index page and I get HTTP 404 page not found.

Add a link page is a really W I D E load, makes me scroll over sideway to get the Add button, and scroll way way way over to see my side bar laugh
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/22/2004 4:32 PM
I think the SE-friendly page url's are causing the grief for the 404's. I'll see how ubb does it smile

The doubling part may be related to permissions, but I'll check it out later tonight. smile
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/22/2004 6:17 PM
Thank you Allen. Sidenote question on this mod for ya...

Once I get this working and load it up with a few popular links for each category that folks in my community frequent often before I surface it to the public; would it be possible to edit one of the db files so that I can assign those preloaded links to member names/numbers they belong too?

eg: I initially enter a link for a national magazine everybody in the sport reads, and since the editor of said mag is a regular on my site, I'd like to make it so that she can edit her own link if need be (and not bug me wink )
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/23/2004 10:32 PM
You should be able manually edit files without problem.

links.cgi file updated to fix url's that kept getting longer and longer with each click tipsy
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/24/2004 3:08 AM
Thanks Allen! add/edit categories working good now... but when I tried to delete last category it removed two cats, first and last.
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/24/2004 3:46 AM
correction - still a minor bugging on adding categories but it only starts showing up once you have more than 4 cats... add cat 5 or 6, and cats 1 and 4 gets combined/doubled up. Fix that up, go back to adding cats and get to my last one (cat 7) and again cats 1 and 4 get merged/doubled up.

(sorry allen)
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/24/2004 9:00 AM
No problem... tho I see you are still getting the 404's smirk
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/24/2004 5:17 PM
yes... the category links still a problem so I havent been able to fully test stuff. But the add link page no longer so wide.
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 07/24/2004 5:25 PM
http://dragboatalley.com/cgi-bin/links.cgi?/action/cat/id/7

you'll need to add a ? after .cgi to imitate compatibility mode
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/24/2004 9:42 PM
Compat mode on IIS has me stumped right now. smirk
Posted By: driv Re: [6.7] [beta] ubb.links v2.5 - 07/24/2004 9:59 PM
Outstanding Mod!

Has anyone noticed that sometimes the link count is incorrect?

In one category where I have one link - the count is zero.

In another where I have two links the count is one.

d.
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/25/2004 1:54 AM
Quote
Originally posted by Ian Spence:

http://dragboatalley.com/cgi-bin/links.cgi?/action/cat/id/7

you'll need to add a ? after .cgi to imitate compatibility mode
Thanks Ian! that fixed it!!

In links.cgi Find:
Code
<td bgcolor="$vars_style{AltColumnColor1}"><b><a href="$vars_config{CGIURL}/links.cgi?/action/cat/id/$linearray[0]">$linearray[1]</a>
and insert ? after links.cgi as shown to fix problem on category links on index page... looks to be needed as well on category page for link pages.
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/25/2004 2:01 AM
or better yet... Find several occurences in links.cgi of links.cgi/action and replace all with links.cgi?/action

and that fixes everything I believe smile
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/25/2004 3:31 AM
For IIS, I think that breaks the SE-Friendliness of the mod tho smirk

Thanks driv, yeah, there's some buglets with the counting, it can get off and there's no mechanism to correct it.
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/25/2004 5:27 AM
Allen, different buglet... On Category pages the "Added by" links to user profile page dont work and gets rendered like this on my site:

http://dragboatalley.com/cgi-bin/ultimatebb.cgi/profile/.html

Plus, i dont think the light bulbs are working on the index page (they didnt seem to turn "on" once I added some links)
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/26/2004 4:15 PM
k, will check that smile

links.cgi file updated with fix for IIS and SEF compatibility, thanks to Ian smile
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/26/2004 7:37 PM
Hi Allen, thanks for all these fixes! Hope I'm not driving you crazy wink

Here's my v1.8.8 on IIS testing feedback:
  • IIS compatibility in general - good!
  • Friendly URL fixes - links.cgi urls all work well except in two places: 1st from Admin page, the links on Category name look to have xtra ? after links.cgi and dont go anwywhere... http://dragboatalley.com/cgi-bin/links.cgi??action=admincat;id=1

    2nd place is on "Add a Link" link (regular links index page -> click on cat), and it's got similar double ?'s: http://dragboatalley.com/cgi-bin/links.cgi??action=add;cat=6
  • Add new category, and after so many cats it's starts to double up entries. This weirdness still exists, and it seems to be that once it hits id=7 (and creates a db7.cgi file), any cats added after that dont actually trigger a new id... it's stuck on id=7 and merges data for original id=7 cat with the newly created cat.
  • i didnt retest the issue with delete a cat and it removes two cats... I think this actually side-effect of above issue (it's removing multiple cats that all have same id=7)
  • and last two bugs still apply of course: bulbs not "on" on index (but oddly enough they are when i take a printscreen screenshot), and "Added by" profile links busted.


plus I have one small question errr... suggestion :rolleyes: In sub ShowCat, how hard would it be to replace this line:
Code
@datafile = reverse @datafile;
With a @datafile = sort... and sort the list of links for category by the number of hits instead of flipping it over to list newest on top?

thanks again for all your work!!!
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/26/2004 7:57 PM
P.S.
temporarily reverting back to v1.8.6 since we got some broken links in this latest one... my advertisers will all be looking at my links page later today/tonight and i dont want them to hit a bad link when navigating around.
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/27/2004 5:53 AM
v1.8.9 - text color and double ?? bugs fixed smile

To upgrade, upload links.cgi.

Sorting links in the category by number of hits will guarantee the ones with more hits will get more hits and the new ones won't be found unless you scroll forever tipsy Topten sorts by hits may be a better choice wink

I see what you mean with the cats corrupting after 6 - have no idea how or why that would happen... smash
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/27/2004 6:29 AM
ok cool - nebbermind on the sorting, your right - better as is. Also I'm plenty happy with 6 cats for time being. Alternative suggestion; how about wordletizing "Forum Home" link on the confirmation page given post Add Link form?

off to test...
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/27/2004 7:02 AM
v1.8.9 buglets:

- busted link when you drill down to link detail page, the "Category" link on breadcrumb trail now shy a ? mark: http://dragboatalley.com/cgi-bin/links.cgi/action/cat/id/1

plus the dead bulbs on main index page and busted Added By profile links from before. other stuff reported as fixed in this one checks out fine.

thanks again Allen - this is great mod!!! I'm lovin it, and methinks it feels nearly ready for prime time thumbsup
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/27/2004 7:47 AM
k, I think the category and profile links should be fixed by now smile
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/27/2004 8:00 AM
one more profile buglet fixed smile
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/27/2004 8:26 AM
scratch the previous wordlet comment... I did find the "Forum Home" link available for changing in CP on vars_wordlets_links list.

Other possible wordlet nuances:

- Find
Code
$indexurl = "<a href="$vars_config{CGIURL}/links.cgi">Index</a>";
Shouldnt 'Index' label inside that anchor tag be
Code
 $vars_wordlets_links{links_index} 
?

- Also looks like we're missing a
Code
 $vars_wordlets_links{links_index_intro} 
near the beginning of sub ShowMain?

off to get v1.9.1...
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/27/2004 8:51 AM
ok in v1.9.1, the "Category" link in bread crumb is fixed

But profile links still goofy... they go somewhere now, a funky profile page. Doesnt seem to be looking up the member number correctly
Click to see here
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/28/2004 5:46 AM
It's possible that bug you're seeing is related to the login name and public name being different. I think the prog is still saving the login name and the it's trying to find the public name or something tipsy

It works on my test forum on IIS and here on linux or something. Do you see the same bugs on old as well as new links?

http://66.25.230.104/ubbcgi/links.cgi

and
https://www.ubbdev.com/db/cgi/links.cgi
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/28/2004 5:54 AM
ahhh, your right... the Added by links work fine for profiles where the public name and login name are the same. When its different you get the funky profile page like shown in my screenshot. And this happens consistenly on both old and new links.

And it's definitely saving Public Name in db files, so must be trying to lookup login name.
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/28/2004 7:21 AM
thanks... that shouldn't be too difficult to fix, so I'll try to get it done soon smile
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 07/28/2004 7:38 AM
Quote
Originally posted by AllenAyres:

thanks... that shouldn't be too difficult to fix, so I'll try to get it done soon smile

*raised hand*

Why not just store the number instead of looking for it every page view? You could also use the pdn index to look up the usernames, and then you've got no.. err.. less problems
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/28/2004 7:39 AM
So, store both the pubname and number?
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 07/28/2004 7:43 AM
smile sure

Edit: and that's what I post for post #2500
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/28/2004 8:01 AM
smile

Works well, but kills the links added for old links.

hmm.. I am storing the pubname and usernumber, but how do I "use the pdn index to look up the usernames"?
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 07/28/2004 8:02 AM
if you're storing both, there's no need for the pdn index.
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/28/2004 8:18 AM
ok smile

I need to store the cat number too, to fix the new bug just created in the topten page smile
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/28/2004 8:40 AM
07/28/2004 - (v1.9.3) Added the catnumber and usernumber to the link data stored.

This should repair the profile links, speed up general browsing a bit, and make it a bit more flexible for future data storage. Thanks to Ian for suggesting storing the usernumber.

Caveat, will break profile links in old links and in the topten. You can fix this manually by adding the usernumber and catnumber in each line of the db$cat.cgi file.

Code
$DataLine = "$id&#0124;&#0124;$sitetitle&#0124;&#0124;$siteurl&#0124;&#0124;$desc&#0124;&#0124;$pubname&#0124;&#0124;$time&#0124;&#0124;0&#0124;&#0124;$user_number&#0124;&#0124;$cat";
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/28/2004 9:16 AM
will topten.cgi need fixed?
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/28/2004 5:34 PM
Yes smile
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/28/2004 9:17 PM
ish... stupid me loaded up 50 links already between rounds of testing frown and fixing topten.cgi is the pesty one, because I dont readily know cat id. Howza about I just wipe the entries in topten out, will it repopulate itself ok over time if I just upload a blank one?
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/29/2004 3:18 AM
v1.9.3 tested and the profile links work great now, thanks Allen!!! Light bulbs fixed next maybe? smile

And another pesty question... Listing links in reverse order is still a concern for my site *sigh* the advertisers wanted to be able to have 'featured links' that always show up at the top of the list (like featured topics in a forum so that their link is always listed first). But some other moderators and key members convinced them otherwise with argument that once you have more than a dozen links in a category its hard to find something your looking for - they want alphabetical order by title. ( example long cat )

And there's concern that since the nature of folks in our community (drag racers) is very competitive/aggressive to begin with, chances are if we keep reverse order - people will add their link more than once just to put it at the top of a long list.

So it looks like I can better keep everybody happy if I could tweak this script to sort links by title in sub ShowCat. How hard would that be?
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/29/2004 5:09 AM
Alpha by Title may be something do-able, but then you'll have people with AAAwebsitename.com and 111websitename.com if they want a high link tipsy

Something to prevent duplicate links should be on the list too, to prevent spammers from adding their site in each category or more than once anywhere.

A 'featured' site may be useful too, but bugfixes are in order right now and I'm guessing the lightbulbs should be looked at next. Any others pressing?
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/29/2004 7:04 AM
Since I can edit links easily I'm not too worried about poking at the occaisional title thats put in kinda funny to get top listing.

And I agree - Preventing dup links and Featured Links are great ideas for later on! Although with the dup links, I already got two links in my index that squarely fit in two categories and its a situation I can see happening often with these two cats... so I wouldnt necessary want to block dups that are in a different category. Plus too, big directory sites often let you pick multiple cats when posting a link.

But screening dups in the same category would be very helpful. And I can see 2 or 3 people from the same race team on my site all attempting to post their boat's link and not scanning a big long list first to see it's already in there. But with hall monitors assigned to each category who will keep a daily eye on their list, I can easily wait on this a good while.

So no, I see nothing else pressing other than light bulbs and Alpha sort by Title. Great job Allen and thanks again for all your hard work on this script! thumbsup Swapping links is a big thing in my community, so I have no doubt this mod will be a very popular feature on my site once I take it live!
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 07/29/2004 4:39 PM
sorry Allen I shoulda knocked wood, I think I might found one more buglet frown

I had a Moderator test to make sure they could edit/delete a link and when trying to save changes from a Edit they got "An error has occurred: You must be a moderator or the person who added this link, to edit the record"

The link they tested with just happened to be Added By my account (Admin). So unless you got this setup slick enough that a Moderator cant Edit on an Admin's link - I think we may have a bug. Let me know if you want me test again with a different non-admin link.
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 07/30/2004 6:44 AM
You might try another link added by a non-moderator/admin, I don't think a moderator can edit a link by another mod or admin smile
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 08/01/2004 12:06 AM
Did it work? tipsy
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/14/2004 1:42 AM
sorry it took me awhile to get back to this.

nope - didnt work. moderator's cant edit any links, including their own. Also can't delete regular member links, they get the message "You must be a Forum Leader or Moderator..."

So only my Admin acct is able to edit/delete links frown
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 08/14/2004 2:03 AM
Probably related to them not being the moderator of the links forum tipsy

OK, I'll need to look at their profile and see if there's a simple solution to it.
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/14/2004 2:08 AM
Quote
Originally posted by AllenAyres:

OK, I'll need to look at their profile and see if there's a simple solution to it.
note my test moderator account is setup as a mod on only one forum (all other real mods are mods on all/most forums). let me know if you need login access for that account or anything else, and thanks!
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 08/14/2004 2:37 AM
ahem,

Code
if (($user_profile[8] ne 'Administrator') && ($username ne $linearray[3])) {&StandardHTML2("$vars_wordlets_links{links_edit_error}"); exit;}
Where does it check for Moderators?
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/14/2004 3:11 AM
lol, I guess the Links forum doesnt have moderators wink

Hey Allen... how about slapping sort links alphabetically (instead of reversed) up in there when poking at it? tipsy

Those two fixeys would make this script good enuff for me take it live awhile (i can live without main page lite bulbs for time being). TIA!
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 08/15/2004 2:58 AM
Quote
Originally posted by Ian Spence:

ahem,

Code
if (($user_profile[8] ne 'Administrator') && ($username ne $linearray[3])) {&StandardHTML2("$vars_wordlets_links{links_edit_error}"); exit;}
Where does it check for Moderators?

that's my point... tipsy
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 08/15/2004 3:58 AM
right, so change the wordlet so it doesn't mention "moderator" and there's no longer a bug wink
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/18/2004 4:11 AM
here's the few fixes I'm using on v1.9.3

- To allow moderators and admins to edit links
Find:
Code
 if (($user_profile[8] ne 'Administrator') && ($username ne $linearray[4])) {&StandardHTML2("You must be a moderator or the person who added this link, to edit the record"); exit;}
Replace With:
Code
 if (($user_profile[8] ne 'Administrator') && ($user_profile[8] ne 'Moderator') && ($username ne $linearray[4])) {&StandardHTML2("You must be a moderator or the person who added this link, to edit the record"); exit;} 
- To include the links_index_intro wordlet found in CP
Find:
Code
 		print header(
-charset => "$masterCharset",
-type => "text/html",
);
print qq(
$hf->[0]




$TBT
<tr bgcolor="$vars_style{TableBorderColor}">
Replace with:
Code
 		print header(
-charset => "$masterCharset",
-type => "text/html",
);
print qq(
$hf->[0]



$vars_wordlets_links{links_index_intro}


$TBT
<tr bgcolor="$vars_style{TableBorderColor}">
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 08/18/2004 5:54 AM
Thanx Rox smile

The first one is the one I had in mind for the moderator editing.

The intro text I had in there in earlier versions but it it seemed a bit out of place at the time. It looks good on your site smile

I see you are running 1.8.9, you file compare the changes in?
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/18/2004 6:26 AM
oh crap... i poked at the backup copy instead of the 1.9 copy.

lol, yeah I'll be beyond comparing now dang it
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/18/2004 6:29 AM
p.s. - i put a blockquote in my intro text wordlet to make it look so nice.
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/18/2004 5:01 PM
ok now if i could just figure out how in heck to sort @datafile in sub ShowCat by the second column ascending (hint hint... nudge nudge... poke poke) wink
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 08/19/2004 6:43 AM
tipsy I'll update the zip file to current code by tomorrow smile
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/19/2004 7:30 AM
hey allen, there's still a buglet with editing links. regular member (not an admin nor mod) can't edit their own links, so I'm wondering if this bit

Code
 && ($username ne $linearray[4]) 
is kosher?
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/19/2004 8:11 PM
ahh - I bet the above logic it isnt kosher when profile has a different login name / public name (which most of my members do).

so now I'm testing this revision to my tweak posted above:

Quote
Originally posted by RoxSeibert:

here's the few fixes I'm using on v1.9.3

- To allow moderators and admins to edit links
Find:
Code
 if (($user_profile[8] ne 'Administrator') && ($username ne $linearray[4])) {&StandardHTML2("You must be a moderator or the person who added this link, to edit the record"); exit;}
Replace with
Code
 if (($user_profile[8] ne 'Administrator') && ($user_profile[8] ne 'Moderator') && ($pubname ne $linearray[4])) {&StandardHTML2("You must be a moderator or the person who added this link, to edit the record"); exit;}
$pubname instead of $username smile
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/19/2004 11:39 PM
fix confirmed - using $pubname instead of $username did solve the problem that regular members couldnt edit their own links
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 08/20/2004 4:56 AM
that works wink
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 08/20/2004 8:19 AM
hmmm.. there's lots of places where $username is used. I'll need to re-check every one of them to make sure pubname isn't needed instead.
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 08/20/2004 8:33 AM
I changed the 2 related to editing and deleting links... I don't think they needed to be changed anywhere else. smile
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/20/2004 6:10 PM
Allen - we put v1.9.4 thru a full round of testing and recent fixes all checked out perfectly and we found no 'new' buglets. thumbsup

Leftover/Remaining issues from previous discussions:
1. Lite bulbs on main page dont turn on (although they work fine on category level pages)
2. List of Links in sub ShowCat sorted alpha by title

my sponsors are really anxious for me to release this as a new feature on my site, any chance you can give me ETA on when you might have a chance to look at these last nits? and thanks again for all your hard work!!
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 08/26/2004 7:01 PM
I'm not sure why the light bulbs aren't working... I'll try to compare coding and see where the break is. Alpha-by-title... hmmm... mebbe ian has an idea smile
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 08/26/2004 7:37 PM
Allen, I just downloaded the dbcats.cgi file and I think I know the problem.

Code
3&#0124;&#0124;Category One&#0124;&#0124;description for catone&#0124;&#0124;4&#0124;&#0124;1069737583&#0124;&#0124;1
You check spot 5 for the time, but remember, numbering starts at 0, so the time is 1 here. Check $linearray[4] instead
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 08/26/2004 8:08 PM
As for sorting alpha by title, give this a shot.

In links.cgi
FIND:
Code
	@datafile = &OpenFileAsArray("$vars_config{NonCGIPath}/links/db$id.cgi");
@datafile = reverse @datafile;
foreach $thisline(@datafile){
chomp($thisline);
if ($thisline ne '')
{
@linearray = split(/||/,$thisline);
##output it

$on = qq(<img src="$vars_config{NonCGIURL}/on.gif" border="0" alt="$vars_wordlets_links{links_on}" />);
$off = qq(<img src="$vars_config{NonCGIURL}/off.gif" border="0" alt="$vars_wordlets_links{links_off}" />);

if (($linearray[5]+(7*24*60*60))>time) {$off=$on;}

$free = 0;

if ($free != 1){
print qq(
<tr valign="top">
<td bgcolor="$vars_style{AltColumnColor2}" align="center">$off</td>
<td bgcolor="$vars_style{AltColumnColor1}"><b><a href="$base_url/action/info/cat/$catarray[0]/id/$linearray[0]">$linearray[1]</a></b> - $linearray[2]   <font size="$vars_style{FDTextSize}"><b><a href="$base_url/action/get/cat/$catarray[0]/id/$linearray[0]" target="_blank">(Go!)</a></b></font>
<font size="$vars_style{FDTextSize}">$linearray[3]</font></td>
<td bgcolor="$vars_style{AltColumnColor2}" valign="middle"><a href="$profile_base_url/profile/$linearray[7].html"><b>$linearray[4]</b></a></td>
<td bgcolor="$vars_style{AltColumnColor1}" valign="middle" align="center">$linearray[6]</td>
</tr>
);
}
}
}
REPLACE WITH:
Code
	@datafile = &OpenFileAsArray("$vars_config{NonCGIPath}/links/db$id.cgi");
@datafile = reverse @datafile;
my @sorted;
foreach $thisline(@datafile){
chomp($thisline);
if ($thisline ne '') {
@linearray = split(/||/,$thisline);
##output it
push(@sorted, @linearray);
}
}


my @newsorted = sort { $a[1] cmp $b[1] } @sorted;


foreach my $link(@newsorted){

$on = qq(<img src="$vars_config{NonCGIURL}/on.gif" border="0" alt="$vars_wordlets_links{links_on}" />);
$off = qq(<img src="$vars_config{NonCGIURL}/off.gif" border="0" alt="$vars_wordlets_links{links_off}" />);

if (($link[5]+(7*24*60*60))>time) {$off=$on;}

$free = 0;

if ($free != 1){
print qq(
<tr valign="top">
<td bgcolor="$vars_style{AltColumnColor2}" align="center">$off</td>
<td bgcolor="$vars_style{AltColumnColor1}"><b><a href="$base_url/action/info/cat/$catarray[0]/id/$link[0]">$link[1]</a></b> - $link[2]   <font size="$vars_style{FDTextSize}"><b><a href="$base_url/action/get/cat/$catarray[0]/id/$link[0]" target="_blank">(Go!)</a></b></font>
<font size="$vars_style{FDTextSize}">$link[3]</font></td>
<td bgcolor="$vars_style{AltColumnColor2}" valign="middle"><a href="$profile_base_url/profile/$link[7].html"><b>$link[4]</b></a></td>
<td bgcolor="$vars_style{AltColumnColor1}" valign="middle" align="center">$link[6]</td>
</tr>
);
}
}
}
Untested, but should work
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 1:46 AM
heck, I planned to spend at least until October trying to figure this out and you did it today...


tipsy

Thank you smile
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 1:57 AM
Thanks Ian! i tested sorting fix and get the following

Quote
quote:
Software error:
Global symbol "@a" requires explicit package name at C:websitesubb6_dragboatalleycgi-binlinks.cgi line 835. Global symbol "@b" requires explicit package name at C:websitesubb6_dragboatalleycgi-binlinks.cgi line 835. Global symbol "@link" requires explicit package name at C:websitesubb6_dragboatalleycgi-binlinks.cgi line 843. Global symbol "@link" requires explicit package name at C:websitesubb6_dragboatalleycgi-binlinks.cgi line 848. Global symbol "@link" requires explicit package name at C:websitesubb6_dragboatalleycgi-binlinks.cgi line 848. Global symbol "@link" requires explicit package name at C:websitesubb6_dragboatalleycgi-binlinks.cgi line 848. Global symbol "@link" requires explicit package name at C:websitesubb6_dragboatalleycgi-binlinks.cgi line 848. Global symbol "@link" requires explicit package name at C:websitesubb6_dragboatalleycgi-binlinks.cgi line 848. Global symbol "@link" requires explicit package name at C:websitesubb6_dragboatalleycgi-binlinks.cgi line 848. Global symbol "@link" requires explicit package name at C:websitesubb6_dragboatalleycgi-binlinks.cgi line 848. Global symbol "@link" requires explicit package name at C:websitesubb6_dragboatalleycgi-binlinks.cgi line 848. Global symbol "$hf" requires explicit package name at C:websitesubb6_dragboatalleycgi-binlinks.cgi line 860. Unmatched right curly bracket at C:websitesubb6_dragboatalleycgi-binlinks.cgi line 881, at end of line (Might be a runaway multi-line () string starting on line 860) C:websitesubb6_dragboatalleycgi-binlinks.cgi has too many errors.
and there's a copy of the source file for reference at http://dragboatalley.com/links.txt
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 2:26 AM
ugh, try removing one of the final }'s from what I told you to add
Posted By: Gizmo Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 2:33 AM
Quote
Originally posted by AllenAyres:

heck, I planned to spend at least until October trying to figure this out and you did it today...


tipsy

Thank you smile
Yeh he's a quick monkey like that...
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 2:41 AM
ok that trims the mess abit, but I still get the slew of explicit package name whining... until i comment out "use strict" at beginning and it works fine smile

but i gather its better to have strictness on?
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 2:43 AM
correction... doesnt exactly work fine without use strict, just doesnt error out.

html output is whack-a-moled smile
http://dragboatalley.com/cgi-bin/links.cgi?/action/cat/id/6
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 2:45 AM
try changing
Code
	foreach my $link(@newsorted){
to

Code
	foreach my @link(@newsorted){
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 3:00 AM
that gives me
Quote
quote:
Software error:
Missing $ on loop variable at C:websitesubb6_dragboatalleycgi-binlinks.cgi line 838.
and line 838 is...
Code
 foreach my @link(@newsorted){
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 3:24 AM
ugh.

Code
	@datafile = &OpenFileAsArray("$vars_config{NonCGIPath}/links/db$id.cgi");
@datafile = reverse @datafile;
my @sorted;
foreach $thisline(@datafile){
chomp($thisline);
if ($thisline ne '') {
@linearray = split(/||/,$thisline);
##output it
push(@sorted, @linearray);
}
}


my @newsorted = sort { $a[1] cmp $b[1] } @sorted;


foreach my $link(@newsorted){

$on = qq(<img src="$vars_config{NonCGIURL}/on.gif" border="0" alt="$vars_wordlets_links{links_on}" />);
$off = qq(<img src="$vars_config{NonCGIURL}/off.gif" border="0" alt="$vars_wordlets_links{links_off}" />);

if (($link->[5]+(7*24*60*60))>time) {$off=$on;}
$free = 0;

if ($free != 1){
print qq(
<tr valign="top">
<td bgcolor="$vars_style{AltColumnColor2}" align="center">$off</td>
<td bgcolor="$vars_style{AltColumnColor1}"><b><a href="$base_url/action/info/cat/$catarray[0]/id/$link->[0]">$link->[1]</a></b> - $link->[2]   <font size="$vars_style{FDTextSize}"><b><a href="$base_url/action/get/cat/$catarray[0]/id/$link->[0]" target="_blank">(Go!)</a></b></font>
<font size="$vars_style{FDTextSize}">$link->[3]</font></td>
<td bgcolor="$vars_style{AltColumnColor2}" valign="middle"><a href="$profile_base_url/profile/$link->[7].html"><b>$link->[4]</b></a></td>
<td bgcolor="$vars_style{AltColumnColor1}" valign="middle" align="center">$link->[6]</td>
</tr>
);
}
}
see if that works
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 4:51 AM
thanks Ian. that got rid of the error, but something is still getting whacked. it looks like it's loosing data and gaining lots of blanks in the shuffle between @linearray, @sorted, and @newsorted

http://dragboatalley.com/cgi-bin/links.cgi?/action/cat/id/6

there should be 7 links listed there, and instead we got 63 blanks. Another cat with 4 links shows 36 blanks. almost like its a bug with nine lives smile

note - i still have use strict commented out if that matters
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 5:04 AM
08/26/2004 - (v1.9.5) Fixed bug with lightbulbs(thanks Ian Spence smile )
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 5:43 AM
Roxy, remove what I told you to do so it works. I'm gonna install the index and see if I can fix it before breaking your links anymore tipsy
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 6:32 AM
Allen, in ShowCat, [5] was the time.

In main page, [4] was the time, so you might want to change showcat back
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 6:47 AM
there's not a public link to my links page... its still in test mode, so no matter if we break it
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 7:19 AM
Quote
Originally posted by Ian Spence:

Allen, in ShowCat, [5] was the time.

In main page, [4] was the time, so you might want to change showcat back
fixed, thanks smile
Posted By: Gizmo Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 11:45 AM
Ian, you make me so :sniff: proud...
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 4:11 PM
ok, got the sorting to work.

In links.cgi,
Find:
Code
	@datafile = &OpenFileAsArray("$vars_config{NonCGIPath}/links/db$id.cgi");
@datafile = reverse @datafile;
REPLACE WITH:
Code
	@datafile = &OpenFileAsArray("$vars_config{NonCGIPath}/links/db$id.cgi");

my @temp = sort { &rotorooter($a, 1) cmp &rotorooter($b, 1) } @datafile;
@datafile = @temp;
# @datafile = reverse @datafile;
FIND:
Code
$hf->[1]
);
} #end ShowTopTen
Add after:
Code
sub rotorooter {
my($line, $sorder) = @_;
my @temp = split(/||/, $line);
return $temp[$sorder];
}
Allen, that sub could allow for sorting at will if you wanted to add that ability for users.
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 6:26 PM
[giggles] rotorooter. lol, how appropriate!

goes off to test....
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 7:11 PM
v1.9.5+ fixes verified!!

Lite bulbs now work on main page (and still work on cat pages). And Sorting is working perfectly as well!

Bravo Ian [Linked Image] and thanks!!!

Alan I think you almost got a 'finished' v1x script! smile But dont forget - there was still one last weirdness spot on the Admin page when you add more 6 cats that I had to fudge in the text files to clean up before we moved onto the other stuff. Thanks again for all your hard work!
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 7:32 PM
I could not recreate any of those problems, however, I reset my files when I got them, so it could be an issue with how the links were set up beforehand in the files.
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 8:55 PM
Ian looks like you got 6 cats on your links page... see if you can add a 7th and 8th test category and still have next consecutive cat id created/assigned right?

careful if it does get screwy... you wanna edit you data files to clean it up and not try to delete new cats with admin page (otherwise good cats get nixed too because id's are crossed)
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 9:16 PM
still seems to be working fine for me.
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/27/2004 11:42 PM
ok, here's another minor little quirk I never noticed before...

top ten page always adds an entry when 'Go' links are used, but if the link is already in the top ten it shouldn't it be updating just the hit counter confused otherwise you see several entries in the top ten for same link

http://dragboatalley.com/cgi-bin/links.cgi?/action/topten

I cleaned out dups a few times now, thinking maybe is was from previous datafile change but nada - click a Go and top ten is always added too.
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/28/2004 3:24 AM
fix for dups on top ten page

Find (compares link id and hit count)
Code
	##should we push this old line?
if (!(($tendata[0] == $ourarray[0]) && ($tendata[6] == $ourarray[6]))){
push(@updated,$line);
}
Replace with (compares link id and cat id)
Code
	##should we push this old line?
if (!(($tendata[0] == $ourarray[0]) && ($tendata[9] == $ourarray[9]))){
push(@updated,$line);
}
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 08/28/2004 8:46 AM
hmmm.... can you post a link to a links.txt file? I'm getting something weird with my topten page now... it's getting the user profile number and the link's cat number switched or something confused
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/28/2004 9:09 AM
http://dragboatalley.com/links.txt

similar thing happened to me awhile back, right after you changed data structures and added xtra fields... i had to wipe out topten file and start with a fresh empty one because fields got crossed.
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 08/31/2004 9:14 AM
props to Allen and Ian, I released this script on my site a few days ago and my members love it, my sponsors are happy, and I've gotten more than a dozen compliments.

Now Granted my members are turning the top ten feature into a virtual drag race to get/keep their favorites sites on the list, but hey thats what us dragboaters do best smile

thanks again!
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 08/31/2004 9:24 AM
cool I'm glad it working for you smile
Posted By: Tiger66 Re: [6.7] [beta] ubb.links v2.5 - 09/01/2004 3:12 AM
Is it possible prevent from everyone to add links and that only admins will be able to do so?
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 09/01/2004 9:11 AM
I just noticed that if a link is added without the http:// the "Go" link doesnt redirect correctly.

And it seems common on my site that people put their link in like "wwww.whatever.com" and without the http:// it no likey.
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 09/02/2004 7:28 AM
I'm sure it can be Tiger, will be a while before I can get to it unless someone else has some time...

Roxy, which "Go!" link do you mean? I believe there are 2...
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 09/02/2004 8:02 AM
both... same behavior if you click Go on cat page, and Go on link details page. see ubbdev link here

http://dragboatalley.com/cgi-bin/links.cgi?/action/cat/id/6
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 09/02/2004 3:03 PM
Untested fix.
FIND:
Code
			print redirect("$linearray[2]");
ADD ABOVE
Code
			if($linearray[2] !~ m/^(http|ftp|https):///) {
$linearray[2] = "http://" . $linearray[2];
}
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 09/03/2004 1:34 AM
verified - that fixes it!!! thanks Ian!
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 09/03/2004 7:22 AM
merci Ian, I'll update the zip file tomorrow smile
Posted By: PhillipBurum Re: [6.7] [beta] ubb.links v2.5 - 09/06/2004 7:11 PM
Help me, I'm drowning in frustration. Ever since I moved ot a "Host" from my own server, I have had problems. Here is my most recent...

Error message:
Premature end of script headers: links.cgi

I get this when trying to admin this mod and all I've done is upload the files.

TIA!!!!
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 09/06/2004 7:31 PM
did you CHMOD is to 755? also, did you make sure to upload it in ascii?
Posted By: PhillipBurum Re: [6.7] [beta] ubb.links v2.5 - 09/06/2004 7:41 PM
I did indeed upload in ASCII and The CGI-BIN are 755, while the ubb/links/*.cgi are set to 777.

I'm getting the afore mentioned Error 500.

frown
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 09/06/2004 8:21 PM
Error 500 is the least helpful thing you can tell us.

There's nothing more I can guess without having ftp access
Posted By: PhillipBurum Re: [6.7] [beta] ubb.links v2.5 - 09/06/2004 9:19 PM
PM'd
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 09/06/2004 9:39 PM
uploaded a fresh file from the zip and it's working great.
Posted By: PhillipBurum Re: [6.7] [beta] ubb.links v2.5 - 09/07/2004 12:35 AM
Hmm, I wonder what the difference was/is.

I really appreciate your help. I thought that maybe it was a configuration error. I will try and upload a fresh file nextime I have a melt down. wink
Posted By: PhillipBurum Re: [6.7] [beta] ubb.links v2.5 - 09/07/2004 12:51 AM
How would I integrate this with my forum? Would i just add a link at the top with The other buttuns like Search, FAQs, Statistics... ETC?

Is there anyway to make it integrate into Ultiamtebb.cgi/Public_Common.pl so that it appears as another forum?

Thanks!
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 09/07/2004 3:18 AM
09/06/2004 - ( v1.9.6) Fixed bug with redirect (thanks Ian smile ) and added a blank index.html file to /links directory
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 09/08/2004 6:01 PM
note - v1.9.6 also includes fix for top ten dups
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 09/09/2004 2:29 AM
Yes, thanks Rox smile
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 09/11/2004 9:09 AM
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.

thumbsup

There's a bug (moderate/major) right now where the category shows all links, not just the ones assigned to that category smile

http://www.praisecafe.org/ubbcgi/links.cgi/action/cat/id/1

Would be nice to show the category name rather than cat number when editing links too smile

alpha now, couple bugs fixed will push us to beta smile
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 09/18/2004 9:52 AM
09/18/2004 - (v2.0.b, aka The Wedding Day Release tipsy ) - major bug fixed by Burak (thank you) in picking and choosing the links for each category.

Next bugs to fix will be:

- allowing links to be moved to a different category (started not finished yet).
- 'cleanliness' issues with code (some old links persist but aren't shown in the index summary)
- numbers aren't always correct (hits, number of links, etc)

Features to be added:
- related to above, a way to rebuild stats and topten info off current information.
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 10/01/2004 5:48 AM
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.
Posted By: Tiger66 Re: [6.7] [beta] ubb.links v2.5 - 10/02/2004 1:50 AM
In case someone is interested, the code for allowing only admins to add sites:

in DoAdd function
Find:
Code
if ($siteurl !~ /^http/) { $siteurl = ('http://' . $siteurl); }
Add After:
Code
#admin-only posting of links
@user_profile = &OpenProfile(&GetUserNumber($username));
if ($user_profile[8] ne 'Administrator') {&StandardHTML2("You must be an admin to add links"); exit;}
I would like to know if it's possible to give to this ubb links a style sheet of it's own?
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 10/02/2004 2:59 AM
Thanks for the code smile

As for css, it's possible, tho it might require a bit of work to do since we're using ubb's header code.
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 10/02/2004 7:38 PM
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. thumbsup

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.

Thank you to all the developers who've helped me get ubb.links this far - Ian, LK, Burak, Charles, and cal and Mark, even Roxy - very appreciated thumbsup
Posted By: Tiger66 Re: [6.7] [beta] ubb.links v2.5 - 10/03/2004 1:30 AM
Quote
Originally posted by AllenAyres:

As for css, it's possible, tho it might require a bit of work to do since we're using ubb's header code.
Is there a simple way to use a different header, or does it always use the default styles setup?
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 10/03/2004 4:18 PM
It wouldn't be a simple thing to change, but if you have a different style in your forum somewhere you'd like to incorporate, you could set that on line 96:

%vars_style = &LoadStyleTemplate("summary_page");
Posted By: Tiger66 Re: [6.7] [beta] ubb.links v2.5 - 10/05/2004 6:00 AM
Ok got that, thanks smile

Another thing, I like the integration with the lightbulbs on the links page, but when I changed the style to different light bulbs, I noticed the page didn't change. I had to change lightbulbs in the links.cgi file. Do the lightbulbs not get brought in with the style page, or was this an oversight that is fixed in v2?
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 10/05/2004 6:09 AM
Should be the same lightbulbs, I believe the code is the same for both this and ubb smile
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 10/05/2004 3:55 PM
you hardcoded the images instead of using $vars_styles{forum_summ_(on|off)}
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 10/05/2004 8:16 PM
bah, I woulda done it too if it hadn't been for you pesky meddlin' kids smash

I'll update it by this weekend smile
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 10/06/2004 5:31 AM
10/05/2004 - (v2.0.1) - buglet fixed with lightbulbs and a bit of code cleanup
Posted By: Tiger66 Re: [6.7] [beta] ubb.links v2.5 - 10/07/2004 3:58 AM
Thanks Ian smile
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 10/07/2004 5:50 AM
You're welcome?
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 10/07/2004 4:31 PM
smile Thanks Allen
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 10/08/2004 6:03 AM
wink

Thanks for all your help, very appreciated thumbsup
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 10/12/2004 5:35 AM
wow allen - congrats! this has come along nicely while I've been away!!!

But I need/want to preserve my v1.9.6 links data and be able to convert it to v2 format when loading this. And it looks to be a pretty easy task for me to roll out a fixlinks.exe using my win32 developer tools... but I need some file structure details (old vs. new). If you have a chance could you give me some basic direction on how records would need walked over from old files to new? TIA!

Then when I get a converter utility exe built to work on my own data, I'll post a link for others to who might have similar need.
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 10/13/2004 12:06 AM
Hey Rox smile

As long as your current data has the cat number at the end of the data line, then it should be just a matter of making a links_data.cgi file, adding all the data in there (from each cat's data file) and set permissions to '777' (or 'full' for windows).

You might want to look at the example data and see how it compares to your current setup.
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 10/13/2004 12:08 AM
oh, you'll probably have to re-number the first field for each data line to keep the $id straight. smile
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 10/13/2004 5:37 PM
cool - so it's a simple munge then...

A) Walk legacy data from dbcats.cgi over to links_cats.cgi

B) Merge legacy data from all db#.cgi files, reindex a fresh pk (field 1) and write to links_data.cgi

and that looks to be it?

Question on A) - i have data in my next to last field not included in sample links_cats. Looks like: 1093664686, 1093653314, 1093648096 etc. What is that?

and what's gonna happen to my top ten list after pre-loading legacy link list in like this?

thanks!
Posted By: Ian Spence Re: [6.7] [beta] ubb.links v2.5 - 10/13/2004 7:35 PM
those large numbers tend to be the time
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 10/13/2004 7:39 PM
That data is the time the links were added (used for lightbulbs). The link data line is:

Code
$DataLine = "$id&#0124;&#0124;$sitetitle&#0124;&#0124;$siteurl&#0124;&#0124;$desc&#0124;&#0124;$pubname&#0124;&#0124;$time&#0124;&#0124;0&#0124;&#0124;$user_number&#0124;&#0124;$cat";
If $time is your next-to-last bit of data then you're a bit behind smile You can manually add the info if you like... The '0' is the number of hits.

You're topten list will be more accurate since it now reads the dataline directly.
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 10/19/2004 7:04 PM
Need some help converting?
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 01/31/2005 6:21 AM
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.
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 03/15/2005 6:04 PM
Google has all 35 links from my personal site indexed :

cool
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 06/19/2005 3:08 AM
Heya Allen! Soon to have my links page upgraded to latest version, uhhh hopefully.. i sorta got lost along the way smile

and here's why - nowadays my links page has a custom RSS feed server side utility (Win32) in the works, that generates a "Random Link Showcase" xml file (every 2hrs or however often i like) that looks like this...

EDIT: Live Example

the idea being to bounce that rss feed thru www.rss2html.com w/ proper html template to look like my sidebar rss newsfeed iframe seen here (scroll down)

finish result being a cool lil sidebar island for rotating Random Links that drive up hit counters. if anyone's interested in this utility (only for privatey hosted / Windows Admin access) i'll gladly make available, but first i need to get my links.cgi up to date wink
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 06/20/2005 6:08 AM
looks good to me cool
Posted By: RoxSeibert Re: [6.7] [beta] ubb.links v2.5 - 06/23/2005 8:02 PM
thanks! i got my random links rss feed live on my site now and folks are loving it! and seems to be driving up lurker registrations... folks who never had a need to login now want to join to get their link added to our index for the random showcase smile

fwiw - my links rss feeds was just a practice exercise for my Calendar RSS Feeds
Posted By: twslex Re: [6.7] [beta] ubb.links v2.5 - 08/03/2005 9:18 AM
Hiya,

I have updated link oldie towardss links 2.5

The only think that does not want to work is the first catagory (0).

All the others work fine.

I can see that the entry does exist in the data file, cats gets updated but if i look into it it does not show anything.
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 08/03/2005 8:35 PM
got a link?

you might download a copy of your data file, rename it with a .txt extension so I can see where the issue is. pm me with it if you don't want to post it publicly.
Posted By: twslex Re: [6.7] [beta] ubb.links v2.5 - 08/04/2005 12:32 AM
Nothing to hide laugh

links_data.cgi:
Code
1&#0124;&#0124;ZTT&#0124;&#0124;www.ztt.com&#0124;&#0124;ZTT&#0124;&#0124;Just Administrator&#0124;&#0124;1123048008&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;2
2&#0124;&#0124;Frankie goes to Hollywood&#0124;&#0124;www.fgth.net&#0124;&#0124;Frankie goes to Hollywood, the 80's&#0124;&#0124;Just Administrator&#0124;&#0124;1123048040&#0124;&#0124;1&#0124;&#0124;00000001&#0124;&#0124;1
3&#0124;&#0124;Seal&#0124;&#0124;http://www.seal.com&#0124;&#0124;Official page of seal&#0124;&#0124;twslex&#0124;&#0124;1069708032&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;1
4&#0124;&#0124;Nasher&#0124;&#0124;http://www.nasher.co.uk&#0124;&#0124;Official site of Nasher&#0124;&#0124;twslex&#0124;&#0124;1069880213&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;1
5&#0124;&#0124;Andrew Poppy&#0124;&#0124;http://www.andrewpoppy.com&#0124;&#0124;Andrew Poppy&#0124;&#0124;jd&#0124;&#0124;1069890083&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;1
6&#0124;&#0124;Anne Pigalle&#0124;&#0124;http://www.annepigalle.com/&#0124;&#0124;official page of Anne (items for sale and some facts) [small but ...]&#0124;&#0124;ha&#0124;&#0124;1069916053&#0124;&#0124;1&#0124;&#0124;00000001&#0124;&#0124;1
7&#0124;&#0124;808state&#0124;&#0124;http://www.808state.com/&#0124;&#0124;official homepage (music downloads, up-to-date infos, etc. -> great resouce)&#0124;&#0124;ha&#0124;&#0124;1069954698&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;1
8&#0124;&#0124;Shane MacGowan&#0124;&#0124;http://www.shanemacgowan.com/&#0124;&#0124;official hompage (very good resource)&#0124;&#0124;ha&#0124;&#0124;1069955058&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;1
9&#0124;&#0124;Holly Johnson&#0124;&#0124;http://www.hollyjohnson.com&#0124;&#0124;official homepage&#0124;&#0124;ha&#0124;&#0124;1069956779&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;1
10&#0124;&#0124;the Warriors Return&#0124;&#0124;http://www.fgth.net/&#0124;&#0124;official site of Frankie Goes To Hollywood (illustrious, famous -> contrieved and maintained by IRV)&#0124;&#0124;ha&#0124;&#0124;1069959544&#0124;&#0124;1&#0124;&#0124;00000001&#0124;&#0124;1
11&#0124;&#0124;Trevor Horn&#0124;&#0124;http://www.trevorhorn.com&#0124;&#0124;Official site, not much there yet&#0124;&#0124;jd&#0124;&#0124;1069979155&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;1
12&#0124;&#0124;Anne Dudley&#0124;&#0124;http://www.annedudley.co.uk&#0124;&#0124;Official site, news, biography, discography&#0124;&#0124;jd&#0124;&#0124;1069979265&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;1
13&#0124;&#0124;THERE (there)&#0124;&#0124;http://www.theremusic.com/&#0124;&#0124;onetwo and other Brücken / Humpheys projects&#0124;&#0124;jd&#0124;&#0124;1070538247&#0124;&#0124;1&#0124;&#0124;00000001&#0124;&#0124;1
14&#0124;&#0124;Thomas Leer&#0124;&#0124;http://www.thomasleer.co.uk&#0124;&#0124;his official website&#0124;&#0124;ian peel&#0124;&#0124;1095208610&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;1
15&#0124;&#0124;Lisa Stansfield Info site&#0124;&#0124;http://www.lisastansfield.info&#0124;&#0124;Lisa's OFFICAL "info" site&#0124;&#0124;bevnathan&#0124;&#0124;1100637039&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;1
16&#0124;&#0124;Service Audio Visual&#0124;&#0124;http://www.serviceav.com/&#0124;&#0124;Paul Morley and James Banbury&#0124;&#0124;jd&#0124;&#0124;1106345075&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;1
17&#0124;&#0124;MC Tunes&#0124;&#0124;http://www.nickylockett.com&#0124;&#0124;Official Nicky Lockett home pages&#0124;&#0124;ha&#0124;&#0124;1113941783&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;1
18&#0124;&#0124;Propaganda&#0124;&#0124;http://www.p-fan.de/&#0124;&#0124;Propaganda fan page (Karl Hirschberger's famous place of knowledge -> best one)&#0124;&#0124;ha&#0124;&#0124;1123049110&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;3
19&#0124;&#0124;Seal "FutureLoveParadise"&#0124;&#0124;http://futureloveparadise.co.uk/&#0124;&#0124;nicely made fan page (maintained by Gareth Edwards)&#0124;&#0124;ha&#0124;&#0124;1123049110&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;3
20&#0124;&#0124;Hoodlum Priest&#0124;&#0124;http://www.atdot.demon.co.uk/hoodlum/contents.html&#0124;&#0124;not much to say ... not updated since years ... but the only one with information, I suppose&#0124;&#0124;ha&#0124;&#0124;1123049110&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;3
21&#0124;&#0124;ZTT (FISONIC)&#0124;&#0124;http://www.soundslogic.com/fisonic/_legacy/&#0124;&#0124;Jörg Fitzner's fanpages (very good resource of ZTT, TCH, Diversions of Songs, Catalogue Numbers etc. etc.)&#0124;&#0124;ha&#0124;&#0124;1123049110&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;3
22&#0124;&#0124;FGTH Discography&#0124;&#0124;http://www.fgthq.de&#0124;&#0124;Completest Discography Source of FGTH Related Material&#0124;&#0124;Pleasurehome&#0124;&#0124;1123049110&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;3
23&#0124;&#0124;The Art of Noise&#0124;&#0124;http://www.theartofnoise.be&#0124;&#0124;My own site. Thanks to repertoire to mention it on the into battle release.&#0124;&#0124;guido&#0124;&#0124;1123049110&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;3
24&#0124;&#0124;tch - The Trevor Charles Horn Worship Hall&#0124;&#0124;http://www.trevor-horn.de/&#0124;&#0124;unofficial Trevor Horn Site&#0124;&#0124;jd&#0124;&#0124;1123049110&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;3
25&#0124;&#0124;FGTH Online&#0124;&#0124;http://www.fgthonline.org.uk&#0124;&#0124;Frankie Goes To Hollywood Online&#0124;&#0124;davidl2&#0124;&#0124;1123049110&#0124;&#0124;1&#0124;&#0124;00000001&#0124;&#0124;3
26&#0124;&#0124;A Ghost In The Machine&#0124;&#0124;http://www.aghostinthemachine.co.uk&#0124;&#0124;Frankie galleries inc promtional ads, press articles and calendar plus my own home spun ZTT covers.&#0124;&#0124;paul adams&#0124;&#0124;1123049110&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;3
27&#0124;&#0124;ZTT - Two Decades&#0124;&#0124;http://ztt-info.de&#0124;&#0124;ZTT's artists - in full BLUE --> draft(y) version - but in continious update --> now v.0.2(5) --> latest update: 6 July 2005&#0124;&#0124;ha&#0124;&#0124;1123049110&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;3
28&#0124;&#0124;Lisa Stansfield "UK's No.1 Soul Diva"&#0124;&#0124;http://lisastansfield.moonfruit.com/&#0124;&#0124;This is an A-Z look at the UK's No.1 undisputed soul diva "Lisa Stansfield". Her brand new album "The Moment" includes the smash hit singles "Treat Me Like A Woman" & "If I Hadn't Got You". Expect to have Lisa around for a very long time to come!&#0124;&#0124;bevnathan&#0124;&#0124;1123049110&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;3
29&#0124;&#0124;Lisa Stansfield "All Woman"&#0124;&#0124;http://lisa-stansfield.com/&#0124;&#0124;Lisa's OFFICIAL fan site&#0124;&#0124;bevnathan&#0124;&#0124;1123049110&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;3
30&#0124;&#0124;Buggles - 24 Carat Plastic&#0124;&#0124;http://thebuggles.4t.com&#0124;&#0124;Buggles Bio / Gallery / Articles / Lyrics&#0124;&#0124;jd&#0124;&#0124;1123049110&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;3
31&#0124;&#0124;Zang Tuum Tumb and all that&#0124;&#0124;http://www.zttaat.com/&#0124;&#0124;For all your Zang Tuum Tumb needs&#0124;&#0124;bob.com&#0124;&#0124;1123049110&#0124;&#0124;0&#0124;&#0124;00000001&#0124;&#0124;3
32&#0124;&#0124;Pleasuredome&#0124;&#0124;http://www.pleasuredome.co.uk&#0124;&#0124;Holly's record label &#0124;&#0124;davidl2&#0124;&#0124;1069882385&#0124;&#0124;60&#0124;&#0124;00000001&#0124;&#0124;2
33&#0124;&#0124;therethere Records&#0124;&#0124;http://www.theremusic.com&#0124;&#0124;onetwo and other Brücken / Humpheys projects&#0124;&#0124;jd&#0124;&#0124;1081534900&#0124;&#0124;63&#0124;&#0124;00000001&#0124;&#0124;2
34&#0124;&#0124;Karvavena Records&#0124;&#0124;http://www.karvavena.com&#0124;&#0124;record label that released "The Abduction of the Art of Noise" and has releases in plan from Thomas Leer, JJ Jeczalik and others...&#0124;&#0124;ian peel&#0124;&#0124;1095208566&#0124;&#0124;30&#0124;&#0124;00000001&#0124;&#0124;2
35&#0124;&#0124;Repertoire Records&#0124;&#0124;http://www.thirstymoon.de/Unternehmen/press%20information/wieallesanfing/repertoire%20records.htm&#0124;&#0124;German re-issuer of various ZTT releases&#0124;&#0124;jd&#0124;&#0124;1108303277&#0124;&#0124;9&#0124;&#0124;00000001&#0124;&#0124;2
36&#0124;&#0124;test&#0124;&#0124;test.com&#0124;&#0124;test&#0124;&#0124;TwsLex&#0124;&#0124;1123104659&#0124;&#0124;0&#0124;&#0124;00000002&#0124;&#0124;0
On the main page it neatly says:

general 1
but if i click on general, an empty list is shown.
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 08/06/2005 3:36 AM
hmmm.. have you tried the 'rebuild cats' link at the bottom of the admin page?
Posted By: twslex Re: [6.7] [beta] ubb.links v2.5 - 08/06/2005 2:11 PM
Yup,

does not fix it frown
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 08/06/2005 7:43 PM
what info does links_cats.cgi have? It's got something messed up.
Posted By: twslex Re: [6.7] [beta] ubb.links v2.5 - 08/07/2005 11:21 AM
He u go sir.

Code
0&#0124;&#0124;General&#0124;&#0124;General&#0124;&#0124;1&#0124;&#0124;1123104659&#0124;&#0124;1
1&#0124;&#0124;Artists Websites&#0124;&#0124;Artists Websites&#0124;&#0124;16&#0124;&#0124;1123048357&#0124;&#0124;2
2&#0124;&#0124;Record Labels&#0124;&#0124;Record Labels&#0124;&#0124;5&#0124;&#0124;1123048008&#0124;&#0124;3
3&#0124;&#0124;Members related&#0124;&#0124;Members Homepages and Fanpages&#0124;&#0124;14&#0124;&#0124;1123049339&#0124;&#0124;4
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 08/09/2005 5:43 PM
hmm.. ok, will look at this by this weekend smile
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 08/22/2005 7:09 PM
I still haven't seen where the problem is, sorry smirk
Posted By: twslex Re: [6.7] [beta] ubb.links v2.5 - 08/23/2005 11:36 AM
worst things can happen, ain't it smile
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 08/23/2005 6:24 PM
yeah - you might create a new category, add the link to it and delete the old one - it could possibly be that its number is "0" - just grasping but everything else looks good to me.
Posted By: AshtarRose Re: [6.7] [beta] ubb.links v2.5 - 09/24/2005 4:40 AM
I try to edit the categories but it keeps doubling up on me and I don't know how to fix it.. eek

http://hogwartsbynight.com/cgi-bin/ubb/links.cgi
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 09/24/2005 7:22 PM
it looks good to me, log out and see if it looks the same to you.
Posted By: AshtarRose Re: [6.7] [beta] ubb.links v2.5 - 09/24/2005 8:09 PM
well I had issues like adding a link to one place and it shows up in the other place, or when I try to fix it, everything multiplies, then I logged out then back in and it was fine again.. really confusing.
Posted By: twslex Re: [6.7] [beta] ubb.links v2.5 - 12/23/2005 12:15 PM
Grmbl,

Somehow links does not want to work any more.

if some one could have a look:

http://www.fgth.nl/cgibin/links.cgi

The first page shows up, but the rest does not want to work.
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 12/24/2005 9:36 AM
Check permissions on your data files... I don't think I've seen that error before smile
Posted By: twslex Re: [6.7] [beta] ubb.links v2.5 - 12/28/2005 1:12 AM
Check and double checked. It ain't that frown
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 12/28/2005 7:07 AM
hmmm... maybe there's a bug in your version - try uploading a fresh copy from the zip in the first post. smile
Posted By: twslex Re: [6.7] [beta] ubb.links v2.5 - 12/28/2005 12:43 PM
just put up a fresh install, same error frown
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 12/29/2005 10:48 PM
spider-friendly url's don't work on your server -

http://www.fgth.nl/cgibin/links.cgi?action=topten

new changes recently?
Posted By: twslex Re: [6.7] [beta] ubb.links v2.5 - 12/30/2005 1:18 AM
uuuhh, changed towards 6.7.3 that was the last biggest change.
Posted By: Gizmo Re: [6.7] [beta] ubb.links v2.5 - 12/30/2005 2:04 AM
If SEFriendly URLs worked in 6.7.2 then they should work without an issue in 6.7.3 (as the functionality wasn't touched in the maintenance upgrade)... Has your HOST made any changes recently?
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 12/30/2005 6:33 AM
that's what I meant smile
Posted By: twslex Re: [6.7] [beta] ubb.links v2.5 - 12/31/2005 12:57 AM
i host the board on my own machine.
It's still a windows 2003 machine which is running iis 6 and perl 5.8.latest

So i know that no changes were done without my knowledge.

As u all could have read, the board will transfer to a new server which i helped to build a week ago. Also this new server has got the same fact.

So i'm still puzzeld about the fact that it is not working.

One extra thing, i skipped 6.7.2. in the past.
Posted By: twslex Re: [6.7] [beta] ubb.links v2.5 - 12/31/2005 1:03 AM
Yahoo, thanks, spider friendly was the option which was disabled.

OK, enabeling spider friendly option does do the trick.

But we do not want spiders to get the topics in the forums....

What would u recon on this part?
Posted By: PTK Re: [6.7] [beta] ubb.links v2.5 - 01/26/2006 4:56 AM
Might there be a way to restrict adding links to admin only?

Or possibly restricting this to only select members?
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 01/26/2006 5:42 AM
in links.cgi, find in sub ShowAdd:

Code
	if ($username eq '') {
&StandardHTML(qq!$vars_wordlets_err{not_logged_in}

<a href="$ULTIMATEBB{"ubb=login"}">$vars_wordlets{login_now}</a>!);
}
and change it to:

Code
	&RequireUserLogin(1);
@profile = &verify_id_num($username, $password, $user_number);
unless ($profile[8] eq 'Administrator') { &StandardHTML2("$vars_wordlets_err{no_access}"); exit;}
Posted By: PTK Re: [6.7] [beta] ubb.links v2.5 - 01/26/2006 6:25 AM
Excellent!
Thank you
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 01/26/2006 10:32 PM
you're welcome smile
Posted By: PTK Re: [6.7] [beta] ubb.links v2.5 - 02/10/2006 8:01 PM
Is this possible:

Restrict viewing of the links page to only members who have access to forum #2

i.e. $profile[4] would contain the number 2 but would also have other numbers.
Posted By: PTK Re: [6.7] [beta] ubb.links v2.5 - 02/10/2006 9:02 PM
Wow I think I figured it our myself LOL
I'm kind of starting to understand this stuff.
Does this sound correct

In links.cgi I found:
Code
if (@ubber) {
@checkTheProfile = &verify_id_num_2($username, $password, $user_number);
unless ($checkTheProfile[4] =~ /Write/) {
print header(
-charset => "$masterCharset",
-type => "text/html",
);
&StandardHTML($vars_wordlets_err{user_not_approved});
And changed to:
Code
if (@ubber) {
@checkTheProfile = &verify_id_num_2($username, $password, $user_number);
unless ($checkTheProfile[4] =~ /2/) {
print header(
-charset => "$masterCharset",
-type => "text/html",
);
&StandardHTML($vars_wordlets_err{user_not_approved});
Posted By: AllenAyres Re: [6.7] [beta] ubb.links v2.5 - 02/11/2006 7:26 PM
it looks right, did it work? smile
Posted By: PTK Re: [6.7] [beta] ubb.links v2.5 - 02/17/2006 4:33 PM
Yeap It seems to be working great
© UBB.Developers