Previous Thread
Next Thread
Print Thread
Rate Thread
Page 5 of 7 1 2 3 4 5 6 7
Joined: Feb 2003
Posts: 179
Member
Member
Offline
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)

Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
still seems to be working fine for me.

Joined: Feb 2003
Posts: 179
Member
Member
Offline
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 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.

Joined: Feb 2003
Posts: 179
Member
Member
Offline
Joined: Feb 2003
Posts: 179
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);
}

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 confused


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Feb 2003
Posts: 179
Member
Member
Offline
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
Offline
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 smile

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
cool I'm glad it working for you smile


- Allen wavey
- What Drives You?
Joined: Mar 2004
Posts: 58
Member
Member
Offline
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
Offline
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.

Sponsored Links
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...


- Allen wavey
- What Drives You?
Joined: Feb 2003
Posts: 179
Member
Member
Offline
Joined: Feb 2003
Posts: 179
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

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Untested fix.
FIND:
Code
			print redirect("$linearray[2]");
ADD ABOVE
Code
			if($linearray[2] !~ m/^(http|ftp|https):///) {
$linearray[2] = "http://" . $linearray[2];
}

Joined: Feb 2003
Posts: 179
Member
Member
Offline
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 smile


- Allen wavey
- What Drives You?
Joined: Nov 2003
Posts: 156
Member
Member
Offline
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
Offline
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
Offline
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.

frown

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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
Offline
Joined: Nov 2003
Posts: 156
PM'd

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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
Offline
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. wink

Joined: Nov 2003
Posts: 156
Member
Member
Offline
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 smile ) and added a blank index.html file to /links directory


- Allen wavey
- What Drives You?
Joined: Feb 2003
Posts: 179
Member
Member
Offline
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 smile


- Allen wavey
- What Drives You?
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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


- Allen wavey
- What Drives You?
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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.


- Allen wavey
- What Drives You?
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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.


- Allen wavey
- What Drives You?
Joined: Mar 2004
Posts: 58
Member
Member
Offline
Joined: Mar 2004
Posts: 58
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?

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 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.


- Allen wavey
- What Drives You?
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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


- Allen wavey
- What Drives You?
Joined: Mar 2004
Posts: 58
Member
Member
Offline
Joined: Mar 2004
Posts: 58
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?

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");


- Allen wavey
- What Drives You?
Joined: Mar 2004
Posts: 58
Member
Member
Offline
Joined: Mar 2004
Posts: 58
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?

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 smile


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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 smash

I'll update it by this weekend smile


- Allen wavey
- What Drives You?
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
10/05/2004 - (v2.0.1) - buglet fixed with lightbulbs and a bit of code cleanup


- Allen wavey
- What Drives You?
Joined: Mar 2004
Posts: 58
Member
Member
Offline
Joined: Mar 2004
Posts: 58
Thanks Ian smile

Page 5 of 7 1 2 3 4 5 6 7

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)