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)

mikelbeck 12-16-2005 03:29 PM

When I click on an old comment (one that was posted when I was running 1.0.3) I get this message:

"No Item or Item is Now in Moderation Queue - Check Back Later"

I'm logged in as the admin, I (and everybody else) has permission to view comments. And I looked in the moderation queues, there's nothing there.

How do I fix this?

If I post a new comment, I can click on it right away and see it.

{edit} Ah, I think I figured it out. The picture that the first comment was attached to was deleted, but it was still listed in the "last comment" column for the category it was in.

calorie 12-16-2005 03:38 PM

Oh okay, missed that, will fix.

allstar55 12-16-2005 04:21 PM

Quote:

Originally Posted by calorie
@allstar55: what browser are you using (see attachment)?

Standart IE6

DefenceTalk 12-16-2005 04:37 PM

Quote:

Originally Posted by allstar55
Standart IE6

No Search Engine Friendly URL support yet?

allstar55 12-16-2005 04:48 PM

OHOH Upload BUG

After my Test-Upload no picture to see, same in Admin:
Bug was in 1.0.4.1 and 1.0.4.2

Rhoads 12-16-2005 04:51 PM

Quote:

Originally Posted by calorie
@nitro: you need to do the globals thing, plus use the variable in a PhotoPlog template if said variable is not part of your vB header, navbar, or footer already.

FYI: PhotoPlog 1.0.4.1 released: divided queries, template changes, pound in letter bar, who's online, not sure what the future holds. See the README.txt in the new ZIP archive for upgrade instructions.

Thnx, works fine now

allstar55 12-16-2005 04:54 PM

Quote:

Originally Posted by drl2005
Thnx, works fine now

Can you upload files ?

Tefra 12-16-2005 05:13 PM

lmao it's kinda of fine to update every day the gallery , lol
i don't bother though until the update is so easy , keep it up

Art Andrews 12-16-2005 05:19 PM

Disregard. Problem Solved. :nervous:

Extension looks very promising. Thanks!

lordnex 12-16-2005 05:20 PM

Quote:

Originally Posted by calorie
@Lord Katsuhito: what type of problem, or perhaps a screenshot might help?

@lordnex: check category and user permissions for allowing/viewing comments.

yes. Admins have full permissions for everything (except no's to moderate files). The title is there, just the comment doesn't show up. Hmpf. Could it be a minor thing with 1.0.4.1 ?

lordnex 12-16-2005 05:22 PM

The updates are fantastically easy. upload the contents, run the product import and done. As long as we don't get burned by missing an update or two, this is fantastic.

Best support of a lot of hacks released. Good work dude!

nitro 12-16-2005 05:32 PM

Quote:

Originally Posted by calorie
@nitro: you need to do the globals thing, plus use the variable in a PhotoPlog template if said variable is not part of your vB header, navbar, or footer already.

FYI: PhotoPlog 1.0.4.1 released: divided queries, template changes, pound in letter bar, who's online, not sure what the future holds. See the README.txt in the new ZIP archive for upgrade instructions.

Well thing is thats exactly where these variables are called, is in the navbar and footer templates.

It does however call the portal home link in the navbar which uses an custom variable. I am going to hazard a guess @ maybe photplog is struggling with custom conditionals with some thing like <if condition="$show['leftcolumn']">$forumsideblocks</if>

I may also be cocking my leg up the wrong tree entirely ;)

allstar55 12-16-2005 05:50 PM

Quote:

Originally Posted by allstar55
OHOH Upload BUG

After my Test-Upload no picture to see, same in Admin:
Bug was in 1.0.4.1 and 1.0.4.2

Hello, have other users the same problem ?

calorie 12-16-2005 05:58 PM

@mikelbeck: fixed in 1.0.4.3, but you'll need to look at the photoplog_ratecomment table via say phpMyAdmin and delete any row for which there is no longer a file.

@allstar55: upgrade to 1.0.4.3 to take care of the HTML issues, hopefully, and you need vB canadminforums permission to see thumbs in moderation queue.

@lordnex: try reverting the PhotoPlog templates, if you made any changes, FTPing all the PHP files in the 1.0.4.3 ZIP /photoplog directory except config.php, over writing the old files, and then doing another product import, allowing overwrite.

@nitro: right before <if condition="$show['leftcolumn']">$forumsideblocks</if> appears in the template, add the following like so:
Code:

<!-- to see what the variables contain -->
<br />
XXXXX $show[leftcolumn] XXXXX
<br />
YYYYY $forumsideblocks YYYYY
<br />

<if condition="$show['leftcolumn']">$forumsideblocks</if>


allstar55 12-16-2005 06:14 PM

Quote:

@allstar55: upgrade to 1.0.4.3 to take care of the HTML issues, hopefully, and you need vB canadminforums permission to see thumbs in moderation queue.
What is vB canadminforums permission?
Ohh i have updated to 1.0.4.3, same problem :(

I'am the admin, and i updatet every version, templates are standart.
But at the moment we can't upload, empty files.

calorie 12-16-2005 06:31 PM

If you can access the vB Forum Manager, you have vB canadminforums permission. Look at the HTML souce of the ACP PhotoPlog Moderate Files page. What do you see where the thumbs should be?

allstar55 12-16-2005 06:39 PM

Quote:

Originally Posted by calorie
If you can access the vB Forum Manager, you have vB canadminforums permission. Look at the HTML souce of the ACP PhotoPlog Moderate Files page. What do you see where the thumbs should be?

Please see the Screenshots:
1. Shot.. I upload the Pic
2. Shot.. Moderate Files
3. Shot..Templates

What must i make?

calorie 12-16-2005 06:46 PM

1) Revert the PhotoPlog template, the one in red, 2) FTP all the PHP files in the 1.0.4.3 ZIP /photoplog directory except config.php, overwriting the old files, and 3) then do another product-photoplog.xml product import, do not uninstall, do allow overwrite.

allstar55 12-16-2005 06:53 PM

Quote:

Originally Posted by calorie
1) Revert the PhotoPlog template, the one in red, 2) FTP all the PHP files in the 1.0.4.3 ZIP /photoplog directory except config.php, overwriting the old files, and 3) then do another product-photoplog.xml product import, do not uninstall, do allow overwrite.

++++, i have made it. No chance ;(
No pictures to see after upload.

Please give me the 1.0.4.1 to test it.

calorie 12-16-2005 07:09 PM

The 1.0.4.1 is out, 1.0.4.3 is in, but I wonder if this is a space issue. How much space do you have available? How full is your /tmp directory? Also, right click on the ACP PhotoPlog Moderate Files page, and look at the HTML souce. What do you see where the thumbs should be?

allstar55 12-16-2005 07:15 PM

Quote:

Originally Posted by calorie
The 1.0.4.1 is out, 1.0.4.3 is in, but I wonder if this is a space issue. How much space do you have available? How full is your /tmp directory? Also, right click on the ACP PhotoPlog Moderate Files page, and look at the HTML souce. What do you see where the thumbs should be?

I am alone on this server, savemode is on. Server had 120GB.
http://www.nfs-center.de/showroom/file.php?n=59&w=s doesn't exist.
Source from moderated files is:

Quote:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" lang="de">
<head>
<title>NFS-Center.de - Forum - vBulletin Administrator-Kontrollzentrum</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" href="../cpstyles/vBulletin_3_Default/controlpanel.css" />
<script type="text/javascript">
<!--
var SESSIONHASH = "";
function set_cp_title()
{
if (typeof(parent.document) != 'undefined' && typeof(parent.document) != 'unknown' && typeof(parent.document.title) == 'string')
{
parent.document.title = (document.title != '' ? document.title : 'vBulletin');
}
}
//-->
</script>
<script type="text/javascript" src="../clientscript/vbulletin_global.js"></script>

</head>
<body style="margin:0px" onload="set_cp_title();">
<!-- END CONTROL PANEL HEADER -->


<!-- form started:7 queries executed -->
<form action="photoplog_file.php" name="cpform" method="post">
<input type="hidden" name="do" value="approve" />
<br />
<table cellpadding="4" cellspacing="0" border="0" align="center" width="90%" class="tborder">
<tr>
<td class="tcat" align="center" colspan="3"><b>Moderate Files</b></td>
</tr>
<tr valign="top" align="center">
<td class="thead" align="left"><nobr>Username / Titel</nobr></td>
<td class="thead" align="left"><nobr>Check to Approve</nobr></td>
</tr>

<tr><td colspan="2" class="tcat">Erstellt von <a href="http://www.nfs-center.de/forum/member.php?u=1" target="_blank">allstar</a> 16.12.2005 22:11 <strong>[<a href="http://www.nfs-center.de/showroom/index.php?n=59" target="_blank">Click Here to Delete</a>]</strong></td></tr>
<tr valign="top">
<td class="alt1"><label for="photoplog_approve[59]"><a href="http://www.nfs-center.de/showroom/index.php?n=59" target="_blank">fsdfsdf</a></label></td>
<td class="alt1"><label for="photoplog_approve[59]" class="smallfont"><input type="checkbox" name="photoplog_approve[59]" id="photoplog_approve[59]" value="1" tabindex="1" /><strong><a style="float: right;" href="http://www.nfs-center.de/showroom/index.php?n=59" target="_blank"><img src="http://www.nfs-center.de/showroom/file.php?n=59&amp;w=s" border="0" /></a></strong></label></td>
</tr>
<tr>
<td class="tfoot" colspan="2" align="center"> <input type="submit" class="button" tabindex="1" value="Speichern" accesskey="s" />
<input type="reset" class="button" tabindex="1" value="Zur?cksetzen" accesskey="r" />
</td>
</tr>
</table>
<input type="hidden" name="s" value="" />
</form>
<!-- form ended: 7 queries executed -->



<!-- START CONTROL PANEL FOOTER -->
<p align="center"><a href="http://www.vbulletin.com/" target="_blank" class="copyright">vBulletin v3.5.2, Copyright &copy;2000-2005, Jelsoft Enterprises Ltd.</a></p>
</div>
</body>
</html>

allstar55 12-16-2005 07:49 PM

With your old version 1.0.4 i have the same error. Hmm

calorie 12-16-2005 08:21 PM

Okay, not a space issue, but from your FTP, the image file permissions are -rw------- (600) but should be -rw-r--r-- (644) so that is why you no longer see images.

allstar55 12-16-2005 08:27 PM

Quote:

Originally Posted by calorie
Okay, not a space issue, but from your FTP, the image file permissions are -rw------- (600) but should be -rw-r--r-- (644) so that is why you no longer see images.

Other images have the same CHMOD, but you can see this images.
644 same problem, see shot.

allstar55 12-16-2005 08:41 PM

I have seen i have no thumbnails in

large, medium, small

calorie 12-16-2005 08:49 PM

What are your thumbnail sizes in the PhotoPlog settings?

allstar55 12-16-2005 08:57 PM

Quote:

Originally Posted by calorie
What are your thumbnail sizes in the PhotoPlog settings?

100kb 75%, i have upload a new picture and not auto set 644

calorie 12-16-2005 09:17 PM

The problem is that files are being set to -rw------- (600) permission but should be -rw-r--r-- (644) permission. A 600 permission means that, if you try to access the file via web, you get a 403 forbidden message. Somehow the default permission on your server is now set to 600 for files, but it needs to be 644 permission. With 600 permission, PhotoPlog does not have access to the original file to make thumbs, hence no large, medium, or small thumbs are made. Take a look at the umask function.
Code:

New files follow umask, in .login or .cshrc . The code follows:

  files directories
0  rw-  rwx
1  rw-  rw-
2  r--  r-x
3  r--  r--
4  -w-  -wx
5  -w-  -w-
6  ---  --x
7  ---  ---

umask 022 gives rw-r--r-- for files and rwxr-xr-x for directories.


nitro 12-16-2005 09:49 PM

on the photoplog main page i get this, its empty ?
XXXXX XXXXX
YYYYY YYYYY

On the forumhome I get
XXXXX 1 XXXXX
YYYYY
all the left column in wide tables till the
YYYYY

then the regular page content below of a left column to the left of the forums

and for the leftcolumn on off switch
photoplog page same as the other above but on forumhome

XXXXX 1 XXXXX
YYYYY Sidebar Off YYYYY

Im guessing now its not the conditional then as they come up empty outside of one on photoplog. At least thats ruled out.

In ibproarcade I had to add to its page output function global
$vbpoptions $vbplingual $forumsideblocks $switchdisplay $leftcolumn

And this is what I have added to both page and error page output globals in functions.php of photoplog.

calorie 12-16-2005 09:55 PM

What files are $show['leftcolumn'] and $forumsideblocks set? What templates contain:<if condition="$show['leftcolumn']">$forumsideblocks</if>

nitro 12-16-2005 10:08 PM

It seems the portals global.php is the file. Im pretty sure this is called via a plugin in vbulletin using require_once under global start with vbulletin for the product

The templates with the conditions in the above post is the navbar

The footer has the condition if $show['leftcolum'] then close left column tables /if

calorie 12-17-2005 02:00 AM

If $foo = "bar"; is set in global_start and $foo is used in navbar, then to have "bar" appear in PhotoPlog, global $foo; goes in the PhotoPlog functions. Without knowing your portal script, not sure what else to offer.

allstar55 12-17-2005 08:53 AM

Ok, i have a server problem.. script is ok.
But, can you import in next version, option to delete not used pictures?

Here in the ftp picture you can see it, all pictures are "deletet" per script.
But in the FTP you can see the old "deleted" pictures.

calorie 12-17-2005 02:54 PM

When the last comment issue was fixed, delete got broken for files with no comments, doh, so just manually delete files no longer in the photoplog_fileuploads table, and upgrade to v.1.0.4.4.
Code:

# run the following query via phpMyAdmin and view the list of file names

SELECT filename FROM photoplog_fileuploads;

# if a file in the PhotoPlog images directory is not on the list, then
# delete it from the PhotoPlog images directory via FTP

# DO NOT DELETE ANYTHING FROM THE photoplog_fileuploads TABLE


LJR 12-17-2005 03:30 PM

Okay, I just upgraded from 1.0.3 and I get the following SQL error. Looks like superfluous ) after the fileid in the query. Any suggestions? Thanks

Code:

Database error in vBulletin 3.5.2:

Invalid SQL:
SELECT *,
                                                                                        (SELECT COUNT(*) FROM photoplog_ratecomment WHERE fileid = 41) AS num,
                                                                                        (SELECT IF(SUM(photoplog_ratecomment.rating) > 0, SUM(photoplog_ratecomment.rating) / SUM(IF(photoplog_ratecomment.rating > 0, 1, 0)), 0) FROM photoplog_ratecomment WHERE fileid = 41) AS ave
                                                                                        FROM photoplog_ratecomment
                                                                                        WHERE fileid = 41
                                                                                        AND moderate = 0
                                                                                        ORDER BY dateline DESC
                                                                                        LIMIT 1;

MySQL Error  : You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT COUNT(*) FROM photoplog_ratecomment WHERE fileid = 41) A
Error Number : 1064
Date        : Saturday, December 17th 2005 @ 05:28:14 PM
Script      : http://www.ourspaceonthenet.com/osotn/community/photoplog/index.php
Referrer    : http://www.ourspaceonthenet.com/osotn/community/photoplog/index.php


LJR 12-17-2005 03:38 PM

Okay, this might be to do with me not upgrading to 1.0.3.1 and then from that to 1.0.4.4. Is there an archive where I can get hold of 1.0.3.1?

Sinistra 12-17-2005 03:51 PM

Quote:

Originally Posted by calorie
@Lord Katsuhito: what type of problem, or perhaps a screenshot might help?


I reuploaded everything it works now ^_^

calorie 12-17-2005 03:57 PM

@LJR: just follow the general upgrade instructions about 2/3 down the README.txt file, there's no need to go through all the steps.

wobbly 12-17-2005 04:18 PM

This is a great piece of coding. I installed without a hitch, nice work.

One question though. Is there anyway to add a module or something so you can see the latest images across the top of your forum?

calorie 12-17-2005 04:24 PM

Check the README.txt file, in the comments section.


All times are GMT. The time now is 11:46 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.03070 seconds
  • Memory Usage 1,850KB
  • 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
  • (4)bbcode_code_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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