UBB.Dev
Posted By: Dave# Release- Bookmark this thread hack - 02/24/2000 5:23 PM
In action: http://cpfc.org/ubb/Forum13/HTML/002704.html

Summary:
Places a hyperlink to bookmark individual threads (IE5 of higher). the aim is to promote your site

caveats:
uses javascript 1.2 and will only work with IE5 and the latest Netscape:

Graphics:

You will needd this one
Save as bookmark.gif and add to your UBB directory;

In order to get the most from this you should also upload a favicon.ico graphic to your root web directory- I am sure that someone will explain why in due course [Linked Image]

File to edit UBBlibary.pl

Find:
Quote
quote:
add after
Quote
quote:
Next

Find:
Quote
quote:
add
Quote
quote:
Simple!
Posted By: The Team Re: Release- Bookmark this thread hack - 02/25/2000 1:26 AM
wow dave, your really cranking them out >:0)

------------------
I wish I were a Canuck
All they have to do is drink beer, play hockey, and say "Eh"

* No offense meant to any Canadians
Posted By: Dave# Re: Release- Bookmark this thread hack - 02/26/2000 7:28 PM
Guys- i notice that a few of you have added this- however few of you are adding the fav icon

Read more here http://www.scriptkeeper.com/ubb/Forum10/HTML/000193.html
It really makes this hacklet
Posted By: NotaHacker Re: Release- Bookmark this thread hack - 02/26/2000 8:06 PM
Dave,

You have any idea how to make status levels function with version 5.44a? I'm going nuts trying different things, to no avail. I've had status levels that have worked through 5.42, and now, with the upgrade to 5.44a, nothing I try seems to work.

going nuts in new york!
Posted By: cal Re: Release- Bookmark this thread hack - 02/26/2000 8:33 PM
Is it possible to add a "Make Bookmark" function for Netscape. If not, I've changed the code as follows:

Code
code:

Also, don't the changes go in ubb_library2.pl not ubb_library.pl?

Just a thought [Linked Image]
Posted By: ak Re: Release- Bookmark this thread hack - 02/27/2000 7:07 AM
I get this error
Error including required files: syntax error at /usr/local/etc/httpd/htdocs/guyana/cgi-bin/ubb/ubb_library2.pl line 290, near ""$NonCGIURL/bookmark.gif" BORDER" Make sure these files exist, permissions are set properly, and paths are set correctly.
Posted By: Arie Re: Release- Bookmark this thread hack - 02/27/2000 11:43 AM
I get the same error as ak [Linked Image]

The icon exists, and permissions are set....

UBB 5.44a....

Arie
Posted By: Dave# Re: Release- Bookmark this thread hack - 02/27/2000 7:50 PM
Sorry the file to edit is ubblibary2.pl
Posted By: ak Re: Release- Bookmark this thread hack - 02/28/2000 3:07 AM
I did figure that much out, that the wrong file was listed, but I still get the above message I have posted.
No trouble though, I have decided not to use it[Linked Image]
Posted By: Digi-God Re: Release- Bookmark this thread hack - 02/29/2000 2:18 AM
I got the same error -- android as I amd though ... I figured it out!

Apparently, for some strange reason, there was one too many ");" in there.

To cure, just remove the ");" from after the top line of the block.

Easy-peasy.

- Philip

------------------
I'm just this guy you know...
Posted By: ilya Re: Release- Bookmark this thread hack - 03/16/2000 7:28 AM
Just found a problem with the hack. If a thread title contains quote (") in it, you'll get JavaScript error, since you need to backslash all special characters in perl/java/php.
You need to fix that
Posted By: cal Re: Release- Bookmark this thread hack - 03/16/2000 8:28 PM
No offence to your wonderfullness, but you're wrong.

The reason for the JS error is that the Javascript statement ends up like this:
Code
code:
This means that the string is terminated early, causing the error.

Just a thought [Linked Image]
Posted By: lascowiec Re: Release- Bookmark this thread hack - 03/16/2000 11:00 PM
Some bookmark icons:









Posted By: ilya Re: Release- Bookmark this thread hack - 03/17/2000 5:27 AM
cal, ok.
Still, it needs to be fixed
Posted By: cal Re: Release- Bookmark this thread hack - 03/17/2000 12:02 PM
Here's how to fix it:

find this:
Code
code:

add this ABOVE it:
Code
code:

find this:
Code
code:

replace with:
Code
code:

That's it!

Just a thought [Linked Image]
Cal-

Thanks for posting this fix, works great [Linked Image]

-Chris

------------------
Chris Schreiber
[email protected]
Fast 4GL Systems, Inc.
http://www.fast4gl.com/
UBB: http://www.progresstalk.com/
Posted By: cal Re: Release- Bookmark this thread hack - 03/17/2000 7:02 PM
Good.

To be honest I haven't tested it myself. I just wrote it straight into the posting window...

Thanks for being my guina pig.

Just a thought [Linked Image]
© UBB.Developers