|
Joined: Feb 2003
Posts: 179
Member
|
Member
Joined: Feb 2003
Posts: 179 |
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)
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
still seems to be working fine for me.
|
|
|
|
Joined: Feb 2003
Posts: 179
Member
|
Member
Joined: Feb 2003
Posts: 179 |
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  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.
|
|
|
|
Joined: Feb 2003
Posts: 179
Member
|
Member
Joined: Feb 2003
Posts: 179 |
fix for dups on top ten page Find (compares link id and hit count) ##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) ##should we push this old line? if (!(($tendata[0] == $ourarray[0]) && ($tendata[9] == $ourarray[9]))){ push(@updated,$line); }
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
hmmm.... 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 
|
|
|
|
Joined: Feb 2003
Posts: 179
Member
|
Member
Joined: Feb 2003
Posts: 179 |
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.
|
|
|
|
Joined: Feb 2003
Posts: 179
Member
|
Member
Joined: Feb 2003
Posts: 179 |
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 thanks again!
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
 I'm glad it working for you 
|
|
|
|
Joined: Mar 2004
Posts: 58
Member
|
Member
Joined: Mar 2004
Posts: 58 |
Is it possible prevent from everyone to add links and that only admins will be able to do so?
|
|
|
|
Joined: Feb 2003
Posts: 179
Member
|
Member
Joined: Feb 2003
Posts: 179 |
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.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
I'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...
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Untested fix. FIND: print redirect("$linearray[2]"); ADD ABOVE if($linearray[2] !~ m/^(http|ftp|https):///) { $linearray[2] = "http://" . $linearray[2]; }
|
|
|
|
Joined: Feb 2003
Posts: 179
Member
|
Member
Joined: Feb 2003
Posts: 179 |
verified - that fixes it!!! thanks Ian!
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
merci Ian, I'll update the zip file tomorrow 
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
Joined: Nov 2003
Posts: 156 |
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!!!!
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
did you CHMOD is to 755? also, did you make sure to upload it in ascii?
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
Joined: Nov 2003
Posts: 156 |
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. 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Error 500 is the least helpful thing you can tell us.
There's nothing more I can guess without having ftp access
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
Joined: Nov 2003
Posts: 156 |
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
uploaded a fresh file from the zip and it's working great.
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
Joined: Nov 2003
Posts: 156 |
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. 
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
Joined: Nov 2003
Posts: 156 |
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!
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
09/06/2004 - ( v1.9.6) Fixed bug with redirect (thanks Ian  ) and added a blank index.html file to /links directory
|
|
|
|
Joined: Feb 2003
Posts: 179
Member
|
Member
Joined: Feb 2003
Posts: 179 |
note - v1.9.6 also includes fix for top ten dups
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Yes, thanks Rox 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
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. There's a bug (moderate/major) right now where the category shows all links, not just the ones assigned to that category 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 alpha now, couple bugs fixed will push us to beta 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
09/18/2004 - (v2.0.b, aka The Wedding Day Release  ) - major bug fixed by Burak (thank you) in picking and choosing the links for each category. 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.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
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.
|
|
|
|
Joined: Mar 2004
Posts: 58
Member
|
Member
Joined: Mar 2004
Posts: 58 |
In case someone is interested, the code for allowing only admins to add sites: in DoAdd function Find: if ($siteurl !~ /^http/) { $siteurl = ('http://' . $siteurl); } Add After: #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?
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Thanks for the code As for css, it's possible, tho it might require a bit of work to do since we're using ubb's header code.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
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. 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 
|
|
|
|
Joined: Mar 2004
Posts: 58
Member
|
Member
Joined: Mar 2004
Posts: 58 |
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?
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
It 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");
|
|
|
|
Joined: Mar 2004
Posts: 58
Member
|
Member
Joined: Mar 2004
Posts: 58 |
Ok got that, thanks 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?
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Should be the same lightbulbs, I believe the code is the same for both this and ubb 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
you hardcoded the images instead of using $vars_styles{forum_summ_(on|off)}
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
bah, I woulda done it too if it hadn't been for you pesky meddlin' kids I'll update it by this weekend 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
10/05/2004 - (v2.0.1) - buglet fixed with lightbulbs and a bit of code cleanup
|
|
|
|
Joined: Mar 2004
Posts: 58
Member
|
Member
Joined: Mar 2004
Posts: 58 |
Thanks Ian 
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|