WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

a few questions for wsn gallery

Version:
printPrint


a few questions for wsn gallery
orhan sevki
Member

Usergroup: Member
Joined: Sep 06, 2005
Total Topics: 5
Total Posts: 12
Posted 09/06/05 - 12:43 AM:
quote post
#1
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

Edited by orhan sevki on 09/06/05 - 02:16 AM
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5974
Posted 09/06/05 - 02:05 PM:
quote post
#2
1. You can set your usergroup permissions to allow guest submissions, and require validation of them, yes.

2. See http://scripts.webmastersite.net/wsngallery/manua... or just the 'JavaScript Export' page of the admin panel for integrating toplists into the rest of your site.
http://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.

Edited by Paul on 09/06/05 - 02:08 PM

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
orhan sevki
Member

Usergroup: Member
Joined: Sep 06, 2005
Total Topics: 5
Total Posts: 12
Posted 09/06/05 - 03:27 PM:
quote post
#3
Dear Paul,

thank you for your reply, we have buyed today wsn gallery 2.24.

all features good for us, congratulations.

Best regards.
orhan sevki
Member

Usergroup: Member
Joined: Sep 06, 2005
Total Topics: 5
Total Posts: 12
Posted 09/08/05 - 06:58 AM:
quote post
#4
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.

Edited by orhan sevki on 09/08/05 - 08:11 AM
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5974
Posted 09/09/05 - 03:42 PM:
quote post
#5
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.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
orhan sevki
Member

Usergroup: Member
Joined: Sep 06, 2005
Total Topics: 5
Total Posts: 12
Posted 09/10/05 - 03:25 AM:
quote post
#6
thank you paul, problem solved. wink

sincerely.
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.