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)

calorie 12-20-2005 02:52 AM

Can't see, no guests allowed.

indie 12-20-2005 03:09 AM

Opps sorry, try now :)

Aaron RV 12-20-2005 06:51 AM

:disappointed: sorry but description unavailable why?

in the Thumbs and in the image (see attachments)

allstar55 12-20-2005 09:15 AM

Quote:

Originally Posted by Aaron RV
:disappointed: sorry but description unavailable why?

in the Thumbs and in the image (see attachments)

I Have Description in v.1.0.5.1, but in new files i don't know.

calorie 12-20-2005 01:45 PM

@indie: upgrade to v.1.0.5.2 as it handles tags differently. Upgrade instructions, some quick FTPing, are in the new zip.

@Aaron RV: what description did you enter for the file? If you didn't enter a description, then it is marked as unavailable.

allstar55 12-20-2005 02:02 PM

Update 1.0.5.2 OK, old version number: Powered by PhotoPlog v.1.0.5.1

calorie 12-20-2005 02:06 PM

FTP again, the zip has v.1.0.5.2.

indie 12-20-2005 05:06 PM

Thanks, the upgrade fixed the issue.

1. When you view a file, you can click Gallery, and it shows all that member's uploads. If I want to put this link in the postbit and memberinfo pages how can I do that?

Also, to have it only show if they have images.

2. How can we have the usernames in the replies look like the postbit (with HTML mark-up enabled)? I believe the code is musername, but don't know where to put it.

3. Oh, and rank images in postbit area too, would be nice. How to do that?

Thanks!

Aaron RV 12-20-2005 05:32 PM

Quote:

Originally Posted by calorie
@Aaron RV: what description did you enter for the file? If you didn't enter a description, then it is marked as unavailable.

ok now with 1.0.5.2 :banana:

aggiefan 12-20-2005 06:41 PM

Any chance you might add functionality in the "upload" section where you could enter a url and have the script pull that picture in as your upload (instead of having to download each picture to your computer and then uploading)?

I do like this gallery the best because its easy to install/use but one thing that would make it much more useful for me is to be able to enter a url to upload the picture (thats already on the internet).

calorie 12-20-2005 11:34 PM

@indie: post2 has been updated to show how to do those links.

@Aaron RV: oh good, glad it's now working. Two birds, one stone.

@aggiefan: not sure, ATM am taking a code break, save for bugs.

Not exactly clear what the future holds, lite versus pro and all that, but will stick requests and suggestions on a think-about, might-do list.

ATM just taking a break...

chrisisonfire 12-20-2005 11:54 PM

I installed this as best as I could understand your readme, so I must have misinterpreted something, because when I view the /photoplog directory in my browser, I get a blank page. The Photoplog group in AdminCP is there and works fine, so I imagine I installed it correctly... well, the /forum directory, anyway.

Any ideas?

calorie 12-20-2005 11:57 PM

What is your PhotoPlog directory setting?

indie 12-21-2005 12:10 AM

Quick question - how can we make the description input box bigger, in post and edit mode, thanks!

calorie 12-21-2005 12:13 AM

PhotoPlog templates: photoplog_upload_form, photoplog_edit_form: cols="40" rows="6"

indie 12-21-2005 12:16 AM

Quote:

Originally Posted by calorie
@indie: post2 has been updated to show how to do those links.

ATM just taking a break...

Is there a way to only make it show if they have images? Or bold if they do?
And, you deserve a break -- thanks. :)

calorie 12-21-2005 12:26 AM

Not without coding something up, maybe storing count in the user table. What you might do instead is make a custom yes/no profile field, and only show the link if the user selects yes.

indie 12-21-2005 12:28 AM

Unfortunately I'm not skilled enough. Perhaps someone could take it on. I think the best way would be a number (of images) next to Gallery. Like, Gallery(0) .. Gallery(8), that would be nice!

chrisisonfire 12-21-2005 12:49 AM

My photoplog directory is CHMOD'd 755, and is located in a similar path to this example:
http://www.mysite.com/photoplog
and my forums are located at http://www.mysite.com/forums. Is that correctly placed, or should I have uploaded my photoplog directory into my forums directory, or what? Thanks for paying attention calorie!

calorie 12-21-2005 12:56 AM

PhotoPlog does not need to be within your forums direcotry. If http://www.mysite.com/photoplog/index.php is the web address, then the PhotoPlog Directory setting in the ACP should be: /photoplog

chrisisonfire 12-21-2005 09:14 AM

Yep, that's what it is set to. Well, for the sake of troubleshooting, what would be the directory path to write in the config.php file?

medw1974 12-21-2005 01:19 PM

How can I make the welcome headers hack appear on my photoplog pages. I know that functions.php calls the header template but wont display &welcomeheaders.

calorie 12-21-2005 01:31 PM

@chrisisonfire: the config setting should look something like this:
Code:

define('PHOTOPLOG_FWD','/home/wherever/public_html/forum');
@medw1974: try this near the top of the photoplog_output_error and photoplog_output_page functions:
Code:

global $welcomeheaders;

furst 12-21-2005 03:01 PM

Is there a way to put the random thumb gallery on forum home the same way that vbadvanced gallery does it?

medw1974 12-21-2005 04:05 PM

Quote:

Originally Posted by calorie
@medw1974: try this near the top of the photoplog_output_error and photoplog_output_page functions:
Code:

global $welcomeheaders;

Thanks for the suggestion calorie but that doesnt appear to work unfortunately.

calorie 12-21-2005 04:34 PM

@furst: check the comments section of the readme, it tells how to get thumbs on forum home.

@medw1974: did you stick global $welcomeheaders; with the other globals in those functions?

medw1974 12-21-2005 04:43 PM

Quote:

Originally Posted by calorie

@medw1974: did you stick global $welcomeheaders; with the other globals in those functions?

Yes I tried it on its own line at the top of the function and also like this
PHP Code:

global $spacer_open$_phpinclude_output$welcomeheaders$scriptpath$show$pmbox$foruminfo$gobutton$spacer_close

The only reason I chose that particular line is that it follows $spacer_open & $_phpinclude_output in the main header template.

calorie 12-21-2005 04:55 PM

Okay, in the PhotoPlog functions, right before fetch_template('header') occurs, print $welcomeheaders to see if it has content:
Code:

echo "<br />WLECOME STARTS<br />";
echo $welcomeheaders;
echo "<br />WLECOME ENDS<br />";


medw1974 12-21-2005 05:11 PM

I've tried that and it appears $welcomeheaders is not returning any value.

calorie 12-21-2005 05:33 PM

Okay, in the PhotoPlog config add this somewhere:
Code:

define('THIS_SCRIPT','photoplog');
And use the following in the PhotoPlog functions:
Code:

global $welcomeheaders;

medw1974 12-21-2005 05:41 PM

Excellent work Calorie

That works a treat.

Many Thanks

nitro 12-21-2005 08:24 PM

Quote:

Originally Posted by calorie
Okay, in the PhotoPlog config add this somewhere:
Code:

define('THIS_SCRIPT','photoplog');

That sorted the empty vbportal variables. awsome left column and left column on/off switch now exists in photoplog :D

Slight bug with some portal specific images, which is a little more wierd path issue than a dual dir. maybe I will just cp the images as a cheepie way for now. ;)

Feckie (Roger) 12-21-2005 08:27 PM

Have A Problem I set all the forum permissions to not require moderation
but all user groups still do even Admins

any Idea

allstar55 12-21-2005 08:36 PM

calorie, please look here with right click on the picture:
http://www.nfs-center.de/showroom/index.php?n=21

Size is 143770 Bytes (140kb)
But i don't have this picture with "this size" in my FTP.

Max is 100kb
This picture is in my FTP max 96kb.
medium is 18 and small 5.

Why is the pic so big in the URL?

calorie 12-21-2005 09:24 PM

@nitro: cool, glad the side bar is now working.

@Feckie (Roger): first call admincp/index.php?do=buildbitfields and then go to ACP -> PhotoPlog -> Usergroup Manager -> Click Go -> Scroll to Bottom -> Set PhotoPlog Permissions -> Click Save

@allstar55: who knows how your browser determines size when the image is coming from a PHP script. Trust the numbers you see via FTP.

indie 12-21-2005 10:14 PM

How could we create a vBadvanced CMPS module? I know how to create a module (the template part), but how could we call random photos, or new photos. The one for forumhome is too wide. The vBa CMPS one should be vertical, not horizontal, with a choice of how many photos to show, and perhaps, random, newest, and highest rated as choices. If that's too much, just random is good. Can anyone create one? Thanks

Quote:

Originally Posted by calorie
Not without coding something up, maybe storing count in the user table.

RE: Having member's Gallery links in postbit/profile only show if they have images, or show a number next to it.
Any tips on how to do this for a non-coder? I think this would be useful. On my forum there's already been members that have suggested this. Thanks

nitro 12-22-2005 06:37 AM

@Calorie Ye its great that it will show, however some of the main menu links that lead to portal pages, ones that are template coded as opposed to soft added in the portal cp are not taking any notice of the duplicate directory setting and I am sure that is the same as the images problem for portal images having looked at it all a bit closer now.

Any tips on how this can be cured ? I know its not easy when its not a portal you have used. Allways open to suggestions tho ;)

allstar55 12-22-2005 07:26 AM

Quote:

@allstar55: who knows how your browser determines size when the image is coming from a PHP script. Trust the numbers you see via FTP.
Can you fix it? That cost much traffic.

calorie 12-22-2005 01:01 PM

@indie: will put your requests on a think-about, might-do list, but for the second, maybe try a profile field as an alternative.

@nitro:
Code:

If I am on http://www.domain.com/portal/forums/index.php the first menu link is <a href="/portal/modules.php?name=Fig">Somewhere</a> which leads to
http://www.domain.com/portal/modules.php?name=Fig but your dupe dir is /portal/forums so when I'm on http://www.domain.com/portal/photoplog/index.php
that same first link in the menu becomes <a href="http://www.domain.com/portal/forums/portal/modules.php?name=Fig">Somewhere</a> because
<a href="/portal/modules.php?name=Fig">Somewhere</a> is a relative link. As <a href="/portal/modules.php?name=Fig">Somewhere</a> is meant to lead to
http://www.domain.com/portal/modules.php?name=Fig go into the templates and set the absolute link so that <a href="/portal/modules.php?name=Fig">Somewhere</a>
becomes <a href="http://www.domain.com/portal/modules.php?name=Fig">Somewhere</a> in the template. Remember that when PhotoPlog makes absolute links, it
prepends http://www.domain.com/portal/forums on the relative links, after removing dupe dir if present, but if this makes an incorrect link, then you need to
set the absolute link manually as no prepending of http://www.domain.com/portal/forums is done on absolute links.

@allstar55: look in the following directories via FTP:
  • /images/469/
  • /images/469/large
  • /images/469/medium
  • /images/469/small
Is the max still 96 KB for the image?

allstar55 12-22-2005 01:51 PM

Quote:

@allstar55: look in the following directories via FTP:
/images/469/
/images/469/large
/images/469/medium
/images/469/small
Is the max still 96 KB for the image?
Here you can see it :(


All times are GMT. The time now is 02:51 AM.

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.02773 seconds
  • Memory Usage 1,831KB
  • 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
  • (8)bbcode_code_printable
  • (1)bbcode_php_printable
  • (9)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