Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Images in the news lightbox ?
Smtbcn
Posted on 05 Mar 2010, 19:56:46

Access: Member
Total Posts: 8
Joined: 2010-03-04

Hi I have written an article such as a suggestion gonna be me, and previously with a given code
Quote:
<?php
$image_maxwidth = '680' ; #400pixels width
$image_maxheight = '510' ; #200pixels height

include 'news/index.php' ;
?>
We set the size of the picture, but this picture of the picture itself is not when the user clicks to open the lightbox to provide application and want to do it.
#2040
Chris
Posted on 05 Mar 2010, 19:58:54

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Lightbox isn't incorporated in the news script, resized images get made into hyperlinks which open up the full size image in a new window. If you want to add lightbox you'll need to implement it yourself.
#2042
Smtbcn
Posted on 05 Mar 2010, 20:05:45

Access: Member
Total Posts: 8
Joined: 2010-03-04

How well without damaging the codes where you can add a script, or rather should I write?
#2044
Chris
Posted on 05 Mar 2010, 20:15:33

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

I'm afraid I can't help you integrate it. Your best bet would be to ask on the lightbox forums.
#2047
Smtbcn
Posted on 05 Mar 2010, 21:23:07

Access: Member
Total Posts: 8
Joined: 2010-03-04

If you want to display images in your news and then here's the method lightbox

open bbparser.php

found.
Quote:
return "<div class=\"image_container\" style=\"width: $new_width" . "px\"><a href=\"$str\"><img class=\"fullnewsimage\" alt=\"image\" src=\"" . $adminpath . "?action=options&mod=imageuploads&width=$new_width&height=$new_height&thumb=$str\" /></a><br style=\"clear: both\" /><span class=\"image_caption\">$caption</span></div>";

change.
Quote:
return "<div class=\"image_container\" style=\"width: $new_width" . "px\"><a href=\"$str\" \"rel='lightbox[roadtrip]'\" ><img class=\"fullnewsimage\" alt=\"image\" src=\"" . $adminpath . "?action=options&mod=imageuploads&width=$new_width&height=$new_height&thumb=$str\" /></a><br style=\"clear: both\" /><span class=\"image_caption\">$caption</span></div>";

Changes.
Quote:
<a href=\"$str\" \"rel='lightbox[roadtrip]'\" >
#2051
Network-13.com © 2013