PDA

View Full Version : Question and I hope someone can help


cbr929rrerion
10-29-2005, 11:54 PM
ok.. I have some gallery pages that are html and I have the thumbs and they link to the larger etc, how can I make it where the thumbs page is viewable but if the click for larger they have to log in to my forum.

These thumbs are in a html page, was on my site before, I just want to add them to the forum part.

Can I make a directory and put them in there and then they can use existing user info to get to them?

any help would be appreciated

harmor19
10-30-2005, 12:35 AM
The script that shows the larger image has to be in the forum root.

edit the script that show the person the large image.
<?php
require_once('./global.php');

if(!$vbulletin->userinfo['userid'])
{
print_no_permission();
}
else
{
\\the code to show the user the image
}
?>

cbr929rrerion
10-30-2005, 02:07 AM
ok.. I dont understand..

Here is the set up..
forum is in root....

then you have the thumb page in a folder say thumb, then the larger in another folder. all are html files...

so root/thumbs/larger_image/index.htm is where the large image is
and root/thumbs/index.htm is the thumbs page

so will that work, if so where do i need to put what, I can move it around and rename files, thats not a problem...

thanks for your help

harmor19
10-30-2005, 02:14 AM
Take the "index.htm" in "root/thumbs/larger_image/" to larger_image.php
Edit "larger_image.php" so it's similar to the code above.
Place "larger_image.php" in the root directory.

cbr929rrerion
10-30-2005, 02:25 AM
Parse error: parse error, unexpected T_STRING in /hsphere/local/home/crotchro/crotchrocketracing.com/melissa lincoln dscn_img_3234.php on line 12

Line 12 = the code to show the user the image

harmor19
10-30-2005, 02:38 AM
paste lines 8-14 on here

cbr929rrerion
10-30-2005, 02:41 AM
print_no_permission();
}
else
{
the code to show the user the image
}
?>

harmor19
10-30-2005, 02:46 AM
you have to replace "the code to show the user the image" with the actual code that shows the images.

cbr929rrerion
10-30-2005, 02:44 AM
its just a link like /images/pics.html

how would i word that

harmor19
10-30-2005, 02:56 AM
can you attach the file that shows the larger image please.

cbr929rrerion
10-30-2005, 02:59 AM
Here ya go.. thank you

harmor19
10-30-2005, 03:16 AM
it has to be uploaded to the root.

cbr929rrerion
10-31-2005, 10:21 AM
thanks man.. it works awesome..