Link in New window

Everything related to GBook PHP guestbook
Post Reply
PeteS
Posts: 8
Joined: Fri Mar 09, 2007 9:49 am

Link in New window

Post by PeteS »

/*************************************
Title: Guestbook
Version: 1.5
Author:
Demo:
Download:
Website:

Short description: Links to open in new window

*************************************/

Upgraded from 1.43 to 1.5 - is it possible to make any links on the board open in a new window as they used to? (Mainly the ones at the very bottom leading to PHPJunkyard website). They've been coded in gbook.php so can't add a target="_blank" or similar code to any of them...
Rhialto
Posts: 10
Joined: Thu May 03, 2007 2:53 am

Post by Rhialto »

Now that i start configuring to adapt it to my website look, I also found the link to PHPJunkYard irritating since it does not open in new window.

Now it is hardcoded and I understand that for the no alteration reason but now can we expect a simple fix anytime soon or with next release only? Because I know next release is really far with latest author reply I got in another thread.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

The reason for this is that XHTML valid code doesn't allow target="_blank". I'll add some Javascript in the future, but for now you can use:
http://www.phpjunkyard.com/extras/gbook ... window.zip
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Rhialto
Posts: 10
Joined: Thu May 03, 2007 2:53 am

Post by Rhialto »

Thanks a lot. I just needed the printDownHTML() function. :-)

btw, I don't know if I should discuss it here or start another thread but do you know why when only I get to bottom of page, I get a horizontal scrollbar? Like if it was 105% width. I'm displaying it in a frame.

Image

Whatever the size of the window, I get the same result.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

There could be a number of problems, I suggest you start a new thread in the appropriate forum (not in the "add-ons" forum). If you don't get the horizontal bar with the ORIGINAL files (non-edited) then the problem could be your customization.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
PeteS
Posts: 8
Joined: Fri Mar 09, 2007 9:49 am

Post by PeteS »

Thank you very much. That updated GBOOK.PHP works an absolute treat - as I say, thank you very much. :D

Big Ole Bike Bash...
Post Reply