Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2000
Posts: 67
Member
Member
Offline
Joined: Jan 2000
Posts: 67
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!

Sponsored Links
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
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

Joined: Jan 2000
Posts: 67
Member
Member
Offline
Joined: Jan 2000
Posts: 67
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

Joined: Feb 2000
Posts: 1
Junior Member
Junior Member
Offline
Joined: Feb 2000
Posts: 1
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!

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
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]

Sponsored Links
Joined: Feb 2000
Posts: 49
ak Offline
Member
Member
Offline
Joined: Feb 2000
Posts: 49
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.

Joined: Feb 2000
Posts: 7
Junior Member
Junior Member
Offline
Joined: Feb 2000
Posts: 7
I get the same error as ak [Linked Image]

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

UBB 5.44a....

Arie

Joined: Jan 2000
Posts: 67
Member
Member
Offline
Joined: Jan 2000
Posts: 67
Sorry the file to edit is ubblibary2.pl

Joined: Feb 2000
Posts: 49
ak Offline
Member
Member
Offline
Joined: Feb 2000
Posts: 49
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]

Joined: Feb 2000
Posts: 7
Junior Member
Junior Member
Offline
Joined: Feb 2000
Posts: 7
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...


I'm just this guy you know...
Sponsored Links
Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
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

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
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]

Joined: Jan 2000
Posts: 103
Member
Member
Offline
Joined: Jan 2000
Posts: 103
Some bookmark icons:











I hate this guys! They stoled my credits from icon graphics. Do you hear me Cal and Leshrac!!!
Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
cal, ok.
Still, it needs to be fixed

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
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]

Joined: Feb 2000
Posts: 25
Member
Member
Offline
Joined: Feb 2000
Posts: 25
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/

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
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]


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
hatter
hatter
USA
Posts: 69
Joined: January 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)