vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Major Additions - PhotoPlog: The Lite Gallery (https://vborg.vbsupport.ru/showthread.php?t=101368)

Jaynesh 01-03-2006 08:49 AM

In my photoplog guests cant see the pictures...
how do i make it so they can see all uploaded pictures, ive checked the permission, but still not working...

lasor 01-03-2006 10:22 AM

Quote:

Originally Posted by calorie
Use the following to add a link to a user's PhotoPlog gallery in the vB postbit(_legacy) template:
Code:

<!-- change the text in capitals to your site information -->

<a href="http://www.YOUR-DOMAIN.com/YOUR-PHOTOPLOG-DIR/index.php?$session[sessionurl]u=$post[userid]">Gallery</a>

Use the following to add a link to a user's PhotoPlog gallery in the vB MEMBERINFO template:
Code:

<!-- change the text in capitals to your site information -->

<a href="http://www.YOUR-DOMAIN.com/YOUR-PHOTOPLOG-DIR/index.php?$session[sessionurl]u=$userinfo[userid]">Gallery</a>


Where in these templates is the best place to add the above?

Thanks

BlasterT3 01-03-2006 10:47 AM

hey calorie,

this is somthing i would really like, but all i get is the login of death. i checked all my settings for spelling errors.

http://teletran3.net/forums/photoplog

thanks!

harry1951 01-03-2006 11:32 AM

Hey calorie or somebody else who can help me :)

I followed the instructions in the readme but the only thing I get is a white page without content. No errors nothing at all....

http://test.cuma.nl/photoplog/index.php

Marris 01-03-2006 04:51 PM

Thanks for the great work on this addon.

In this Lite version, is there any way to set upload permissions for a specific category based on user groups? As far as I can tell, the existing permissions settings apply across all Photoplog categories.

I would like to make one category that has uploading permissions restricted to a certain usergroup. All other categories would be open to all usergroups.

Is there a file edit or database entry I can make to set restrict uploads for one specific existing category?

If not, is there a simple way to hide the restricted category from all groups but one with a conditional in the category pulldown options on the upload page?

calorie 01-03-2006 08:18 PM

@ConKien: http://www.domain.com/forum is prepended to relative links, after removing any dupe dir, but if this makes an incorrect link, try setting the absolute link. The $navbar is set in functions.php and uses the vB navbar.

@furst: in settings.php you could try and set $photoplog_location to whatever link you'd like.

@Jaynesh: guests need 'can view files' permissions, try: admincp/index.php?do=buildbitfields

@lasor: place the anchor tags wherever you'd like the links to appear.

@BlasterT3: check the PhotoPlog permissions in the usergroup manager.

@harry1951: check that the config file full path to forum setting is correct.

@Marris: the lite version doesn't have category based permission levels. The photoplog_list_categories function makes the category list if you want to try and edit there.

Marris 01-04-2006 12:47 AM

Quote:

Originally Posted by calorie
@Marris: the lite version doesn't have category based permission levels. The photoplog_list_categories function makes the category list if you want to try and edit there.

I poked around there a bit without getting too far, then I came up with a quick and dirty solution.

I edited photoplog_upload_form and photoplog_edit_form templates:

Code:

// replaced
$photoplog_select_row

// with:

<if condition="is_member_of($bbuserinfo, 12)">
$photoplog_select_row
<else />
<tr valign="top">
        <td class="alt2">Category</td>
        <td class="alt2"><select name="userfileinfo[catid]" id="sel_userfileinfo[catid]" tabindex="1" class="">
                <option value="1" selected="selected"> General </option>
</select>
</td>
</tr>
</if>

This makes it so only members of usergroup 12 will be able to upload to all categories, while all other members will only be able to upload to 'General' (category 1). Of course, you can add more groups and category options.

iTaLiAnBoY165 01-04-2006 03:03 AM

i know this may sound stupid but can some one help me
i can't figout how to fix this i try to do it my sefl acoupkle times
but nothing seems to be working for me..

i keep getthing the same error allover and over,....

how can i fix thins step by step.!!

please.!!!
[*] Onscreen Error
Code:

Sorry, UserName: Bad Open
It means that PhotoPlog cannot fopen the 'images' directory. Check for 777, write and ownership permissions on the 'images' directory.

harry1951 01-04-2006 12:39 PM

Quote:

Originally Posted by calorie
@harry1951: check that the config file full path to forum setting is correct.

The full path in the config file is set correctly.
Code:

/var/www/vhosts/test.cuma.nl/httpdocs/forums

Gizmo5h1t3 01-04-2006 03:43 PM

im desperate for help here...
the actual gallery itself works a treat...all uploads etc working fine...

but my forum border is totally goosed on the gallery page...

all my other hacks display the border correctly.....except for the photoplog hack...

weird..

any help at all??

indie 01-04-2006 04:03 PM

Quote:

Originally Posted by Gizmo5h1t3
im desperate for help here...
the actual gallery itself works a treat...all uploads etc working fine...

but my forum border is totally goosed on the gallery page...


all my other hacks display the border correctly.....except for the photoplog hack...

weird..

any help at all??

This happened to me too and Calorie helped me a few posts back, check it out. Change the background properties to inline style properties for those images.

Gizmo5h1t3 01-04-2006 04:24 PM

cheers m8, i read those posts indie, but im not sure where to change the properties???

calorie 01-04-2006 05:06 PM

@iTaLiAnBoY165: set 777 permission on the 'images' directory and check that the PhotoPlog directory settings are correct paths, not full links.

@harry1951: check that the PhotoPlog directory settings are correct paths, not full links.

@Gizmo5h1t3: try setting the absolute links manually in the templates for those images.

Gizmo5h1t3 01-04-2006 05:24 PM

Quote:

Originally Posted by calorie
@iTaLiAnBoY165: set 777 permission on the 'images' directory and check that the PhotoPlog directory settings are correct paths, not full links.

@harry1951: check that the PhotoPlog directory settings are correct paths, not full links.

@Gizmo5h1t3: try setting the absolute links manually in the templates for those images.


PM sent m8..heres what i have now.....

calorie 01-04-2006 05:42 PM

Check your footer template too.

iTaLiAnBoY165 01-04-2006 10:17 PM

Quote:

Originally Posted by calorie
@iTaLiAnBoY165: set 777 permission on the 'images' directory and check that the PhotoPlog directory settings are correct paths, not full links.

ok the permision is on..
but how would be the right way to put the upload directory path ???

/forums/uploads/images

or

http://www.mysite.com/forums/uploads/images


wich one will be the right way.!!!

cuz the path of y fourm is this
/forums/photoplogso so i don't know whic is the right way
i still getthngthe same error....

calorie 01-05-2006 12:25 AM

Code:

http://www.example.com/photoplog/index.php => /photoplog
http://www.example.com/dir/photoplog/index.php => /dir/photoplog

http://www.example.com/photoplog/images/index.html => images
http://www.example.com/dir/photoplog/images/index.html => images


iTaLiAnBoY165 01-05-2006 12:57 AM

Quote:

Originally Posted by calorie
Code:

http://www.example.com/photoplog/index.php => /photoplog
http://www.example.com/dir/photoplog/index.php => /dir/photoplog

http://www.example.com/photoplog/images/index.html => images
http://www.example.com/dir/photoplog/images/index.html => images


can you help me out more simple.!!!
the fourmpaht i got it right,
but the image path don't i still have the same message error.!!!

" Sorry, UserName: Bad Open "

unenergizer 01-05-2006 02:39 AM

when i view the gallery page all i get is a login screen...

www.gamehaxs.com/gallery/index.php

I checked the permissions and they are fine...

calorie 01-05-2006 04:14 AM

@iTaLiAnBoY165: see the highlighted area in attached

@UNEnergizer: try admincp/index.php?do=buildbitfields

harry1951 01-05-2006 06:02 AM

Quote:

Originally Posted by calorie
@harry1951: check that the PhotoPlog directory settings are correct paths, not full links.

They are correct, see attachment...
path to forums = /forums
path to photoplog = /photoplog

calorie 01-05-2006 06:19 AM

If you place...
Code:

<?php
echo getcwd();
?>

At...
Code:

http://test.cuma.nl/photoplog/test.php
Do you see...
Code:

/var/www/vhosts/test.cuma.nl/httpdocs/photoplog

harry1951 01-05-2006 06:26 AM

yep, shell I PM you an userid with adminaccess?

calorie 01-05-2006 06:30 AM

Sure, and FTP too if you will so I can echo out stuff.

harry1951 01-05-2006 06:40 AM

PM is send :)

calorie 01-05-2006 06:53 AM

Okay, done. You had a typo in the PhotoPlog config file:
Code:

//define('PHOTOPLOG_FWD',/var/www/vhosts/test.cuma.nl/httpdocs/forums');

define('PHOTOPLOG_FWD','/var/www/vhosts/test.cuma.nl/httpdocs/forums');

Also, your PhotoPlog dupe dir setting was changed from blank to /forums but if/when you move off of test, you may have to change that to something else.

harry1951 01-05-2006 07:02 AM

Ok thnx a lot. I looked over and over and didn't see it :(

seany1 01-05-2006 09:02 AM

Thanks for this works perfectly :D

harry1951 01-05-2006 02:35 PM

I installed it now on my live-board without problems :) The only thing is a problem with my navbar on de photoplog-page. I installed this hack https://vborg.vbsupport.ru/showthread.php?t=65198 (second navbar) but this is not showing up on the photoplog page. Any idea???

Attached the translation into dutch :)

Gizmo5h1t3 01-05-2006 04:18 PM

Quote:

Originally Posted by calorie
Check your footer template too.


that sorted it mate..many thanks...............for the best gallery ive seen on VB yet...nice work

calorie 01-05-2006 04:55 PM

Thanks for the thanks. :)

@harry1951: globalize $navbar2 in the photoplog_output_error and photoplog_output_page functions, located in PhotoPlog's functions.php file:
Code:

global $navbar2;

harry1951 01-05-2006 08:40 PM

Quote:

Originally Posted by calorie
Thanks for the thanks. :)

@harry1951: globalize $navbar2 in the photoplog_output_error and photoplog_output_page functions, located in PhotoPlog's functions.php file:
Code:

global $navbar2;

This fixed it :)
Thnx for the support

I don't know if it is asked earlier. It would be great if usergroups could be assigned per category. I need that very strongly. We organize events. Every event get's is own usergroup and forum. On the event a lot of people are taking pictures and want to share these, but only with people who were present at the event. So for every event I want to create an catagory (or child-catagory), which is only visible for participants. Can this be done???

silurius 01-05-2006 08:50 PM

Quote:

Originally Posted by harry1951
I don't know if it is asked earlier. It would be great if usergroups could be assigned per category. I need that very strongly. We organize events. Every event get's is own usergroup and forum. On the event a lot of people are taking pictures and want to share these, but only with people who were present at the event. So for every event I want to create an catagory (or child-catagory), which is only visible for participants. Can this be done???

PhotoPost Pro can do the usergroup thing, although I'm not sure about events. I'd personally love to see the feature here though.

MrNase 01-05-2006 09:00 PM

Update went without problems..

One small thing: I couldn't revert the old templates so I left them and just installed the new plugin file and it worked.
The documentation tells to revert the template but it's also working the way I did it :)

harry1951 01-05-2006 09:06 PM

Silurius, what would live be easy for webmasters if hacks could be integrated :)...In my situation it would be great if it goes as follows. Event created - forum created -secundairy usergroup created- attendance subbcription - photoplog catagory created. Only attendees (members of secondary usergroup)are allowed to see forum and photo-category. I think it will be a dream :)

harry1951 01-06-2006 06:46 AM

Quote:

Originally Posted by calorie
[b]Use the following to add a link to a user's PhotoPlog gallery in the vB postbit(_legacy) template:
Code:

<!-- change the text in capitals to your site information -->

<a href="http://www.YOUR-DOMAIN.com/YOUR-PHOTOPLOG-DIR/index.php?$session[sessionurl]u=$post[userid]">Gallery</a>

Use the following to add a link to a user's PhotoPlog gallery in the vB MEMBERINFO template:
Code:

<!-- change the text in capitals to your site information -->

<a href="http://www.YOUR-DOMAIN.com/YOUR-PHOTOPLOG-DIR/index.php?$session[sessionurl]u=$userinfo[userid]">Gallery</a>


Can you tell me where to put this in the templates. I'm not a coder. Something like find .... put after this

calorie 01-06-2006 10:09 PM

There is no absolute spot to places such things, just place the anchor tags wherever you'd like the links to appear.

harry1951 01-06-2006 10:16 PM

Do a for exemple...

Code Monkey 01-06-2006 10:43 PM

You can get rid of that whole config.php script and the user edit that comes with it.

Find in settings.php

PHP Code:

// ######################## GRAB THE FULL PATH ############################
require_once('./config.php'); 


replace with

PHP Code:

// ######################## GRAB THE FULL PATH ############################
define('PHOTOPLOG_FWD'dirname(dirname(__FILE__))); 


calorie 01-06-2006 11:06 PM

That'll only work if PhotoPlog is installed one level inside the forum directory. It won't find the forum directory for when PhotoPlog is installed elsewhere, i.e., it's not a general solution.


All times are GMT. The time now is 04:01 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05212 seconds
  • Memory Usage 1,845KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (15)bbcode_code_printable
  • (2)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete