3. It needs to be installed in the same database as vBulletin. It may be possible to get it working with another database but I've never tried it so I can't really support it, and for various reasons (performance, simplicity, lack of need) I suggest strongly against it.
everything is now fine, but we have getting problem website main page integration. (random images):
OK, Picture showing on my page no problem, but always showing following line 143:
Warning: Cannot modify header information - headers already sent by (output started at /home/mylogin/public_html/index_mainz.php:14) in /home/mylogin/public_html/galeri/end.php on line 143
how do i fix this problem?
we currently using for this php code:
<?php /* Supply the path to WSN and the name of your template on the lines as requested ----------------------------------------------------------------------- */ $pathtowsn = '/home/mylogin/public_html/galeri/'; // as listed on your settings->general configuation page but without the 'attachments/' part $custom = 'yes'; $TID = 'rndmphotos'; // the template, located in the 'custom' subdirectory of your templates directory, that you want to display $usewrapper = 'no'; // set to 'no' if you don't want to show the WSN wrapper
$curr_path = getcwd(); chdir($pathtowsn); // Go to the WSN directory require 'start.php'; require 'end.php'; chdir($curr_path); // Return to original directory ?>
and
our costom template:
<IF {SWITCH_RANDOMIMAGE}> <!-- BEGIN TOPLIST 1 --> <CONFIG>images,rand(),1,descending</CONFIG> <IF {IMAGEFILEFIELD}> <!-- BEGIN 1 LINK ATTACHMENTS --> <a href="galeri/{IMAGEDETAILSURL}"><img src="galeri/thumbnail.php?id={IMAGEID}&attachid={ATTACHID}&thumbwidth=150&thumbheight=113" border="0" alt="{IMAGEBOOKMARKTITLE}"></a> <!-- END LINK ATTACHMENTS --> </IF> <IF {SWITCH_TITLES}><br><a href="galeri/{IMAGEDETAILSURL}">{IMAGETITLE}</a></IF> <!-- END TOPLIST 1 --> </IF>
end.php Line 143 is:
if (!$downloading) header("Content-type: text/html");
Warning: Cannot modify header information - headers already sent by (output started at /home/mylogin/public_html/index_mainz.php:14) in /home/mylogin/public_html/galeri/end.php on line 143
This means you have a stray space or blank line above the top of the file. Any space before <?php prevents HTTP headers from being sent, because it displays the space in the browser as HTML before getting to the PHP part.
Comments on a few questions for wsn gallery
Member
Usergroup: Member
Joined: Sep 06, 2005
Total Topics: 5
Total Comments: 12
we interested wsn gallery product, and want to ask a few questions..
1. if public member registration is disabled, visitors can suggest any image? (admin approve style) ?
2. can i easy integration our website? (we want random images and latest uploaded images show our website main page.. is available?)
3. if wsngallery installed another mysql database, vbulletin member integration will work?
we hope get answer as soon as possible.. Thanks!
Best Regards,
Orhan Sevki
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
1. You can set your usergroup permissions to allow guest submissions, and require validation of them, yes.
2. See scripts.webmastersite.net/w...lery/manual/link.php?id=76 or just the 'JavaScript Export' page of the admin panel for integrating toplists into the rest of your site.
https://www.webmastersite.net/forums/thread/3937 may also be useful.
3. It needs to be installed in the same database as vBulletin. It may be possible to get it working with another database but I've never tried it so I can't really support it, and for various reasons (performance, simplicity, lack of need) I suggest strongly against it.
Member
Usergroup: Member
Joined: Sep 06, 2005
Total Topics: 5
Total Comments: 12
Dear Paul,
thank you for your reply, we have buyed today wsn gallery 2.24.
all features good for us, congratulations.
Best regards.
Member
Usergroup: Member
Joined: Sep 06, 2005
Total Topics: 5
Total Comments: 12
hello again,
everything is now fine, but we have getting problem website main page integration. (random images):
OK, Picture showing on my page no problem, but always showing following line 143:
Warning: Cannot modify header information - headers already sent by (output started at /home/mylogin/public_html/index_mainz.php:14) in /home/mylogin/public_html/galeri/end.php on line 143
how do i fix this problem?
we currently using for this php code:
<?php /* Supply the path to WSN and the name of your template on the lines as requested
----------------------------------------------------------------------- */
$pathtowsn = '/home/mylogin/public_html/galeri/'; // as listed on your settings->general configuation page but without the 'attachments/' part
$custom = 'yes';
$TID = 'rndmphotos'; // the template, located in the 'custom' subdirectory of your templates directory, that you want to display
$usewrapper = 'no'; // set to 'no' if you don't want to show the WSN wrapper
$curr_path = getcwd();
chdir($pathtowsn); // Go to the WSN directory
require 'start.php';
require 'end.php';
chdir($curr_path); // Return to original directory
?>
and
our costom template:
<IF {SWITCH_RANDOMIMAGE}>
<!-- BEGIN TOPLIST 1 -->
<CONFIG>images,rand(),1,descending</CONFIG>
<IF {IMAGEFILEFIELD}>
<!-- BEGIN 1 LINK ATTACHMENTS -->
<a href="galeri/{IMAGEDETAILSURL}"><img src="galeri/thumbnail.php?id={IMAGEID}&attachid={ATTACHID}&thumbwidth=150&thumbheight=113" border="0" alt="{IMAGEBOOKMARKTITLE}"></a>
<!-- END LINK ATTACHMENTS -->
</IF>
<IF {SWITCH_TITLES}><br><a href="galeri/{IMAGEDETAILSURL}">{IMAGETITLE}</a></IF>
<!-- END TOPLIST 1 -->
</IF>
end.php Line 143 is:
if (!$downloading) header("Content-type: text/html");
please any advice, thanks.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Warning: Cannot modify header information - headers already sent by (output started at /home/mylogin/public_html/index_mainz.php:14) in /home/mylogin/public_html/galeri/end.php on line 143
This means you have a stray space or blank line above the top of the file. Any space before <?php prevents HTTP headers from being sent, because it displays the space in the browser as HTML before getting to the PHP part.
Member
Usergroup: Member
Joined: Sep 06, 2005
Total Topics: 5
Total Comments: 12
thank you paul, problem solved.
sincerely.