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)

funinthesun 12-04-2005 10:44 AM

It's when I try to set the usergroup permissions that I get the error??

calorie 12-04-2005 11:01 AM

@ChrisBaktis: When you click on upload, what link/page does it take you to?

@smokering: drat, the instructions were out of order (move four to one)

@funinthesun: run domain.com/forum/admincp/index.php?do=buildbitfields

My vB plugin.php file has fetch_table_info (not fetchtableinfo) but I'm wondering because I messed up the order of the instructions, whether that is causing smokering's problem. For funinthesun, it is because bitfields weren't rebuilt using the new group.

FYI: Instructions have been updated.

funinthesun 12-04-2005 11:11 AM

Thank you, that worked :) Maybe you should add to rebuild bitfields in the instructions ;)

calorie 12-04-2005 11:22 AM

It should have done it automatically, but because the instructions were out of order, it didn't rebuild bitfields using the new group. Instructions are now fixed.

bmoods 12-04-2005 12:07 PM

Small problem:


The tables categories and upload are empty, but the view of the categories on the index always indicates elder categories.

How to make to repair?

Thank you very much

funinthesun 12-04-2005 12:23 PM

How do I link this onto the navbar?

ChrisBaktis 12-04-2005 02:08 PM

Quote:

Originally Posted by calorie
@ChrisBaktis: When you click on upload, what link/page does it take you to?

@smokering: drat, the instructions were out of order (move four to one)

@funinthesun: run domain.com/forum/admincp/index.php?do=buildbitfields

My vB plugin.php file has fetch_table_info (not fetchtableinfo) but I'm wondering because I messed up the order of the instructions, whether that is causing smokering's problem. For funinthesun, it is because bitfields weren't rebuilt using the new group.

FYI: Instructions have been updated.

In the status bar it takes me to www.site.com/photoplug/upload.php - it takes a minute or two then comes back page cant be found.

lordnex 12-04-2005 05:11 PM

Quote:

Originally Posted by funinthesun
How do I link this onto the navbar?

I can answer this one.. :)
Open up your nav bar and search for something that's on your particular Nav bar. Like say "Log Out" ..
should look like:

<td class="vbmenu_option"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></td>

put

<td class="vbmenu_control"><a href="/photoplog/index.php">Photo Gallery</a></td>

Save and reload and in another view see if it's where you want it to be. Until you're used to adding things to your nav bar have 2 browsers open and look at the changes as you do them.

smokering 12-04-2005 05:11 PM

Quote:

Originally Posted by calorie
It should have done it automatically, but because the instructions were out of order, it didn't rebuild bitfields using the new group. Instructions are now fixed.

I did as you said and it again failed so i checked my plugin.php file and found it was the 3.5.0 version then checked my orig download of the 3.5.1 update it was also a 3.5.0 version so i re-downloaded vb 3.5.1 and yep you guessed it the plugin.php is diferent so i manually replaced it and that fixed the problem thanks for all the help off to now install the hack

Allan 12-04-2005 08:53 PM

The BBcode don't with if we upload not in a precise category.

Suggestion:
- what would be very well would be to be able to have the image of origin when one clicks above
- One cannot make comments on the images, it's a pity

But, it's a great job Calorie :)

File attach: French Language for actual version ;)

calorie 12-04-2005 11:29 PM

@bmoods: if you make a category or subcategory, it will show even if there are no files, sort of like how a forum shows even if it contains no posts.

@ChrisBaktis: it looks to be a loop. Maybe you have been affected by the category as its own parent now fixed bug. Run the following query and let me know what you see:
Code:

SELECT * FROM photoplog_categories WHERE catid = parentid;
@Allan: how does the BBcode not work? Can you make a screenshot for me to see?

ChrisBaktis 12-04-2005 11:38 PM

Quote:

Originally Posted by calorie
@bmoods: if you make a category or subcategory, it will show even if there are no files, sort of like how a forum shows even if it contains no posts.

@ChrisBaktis: it looks to be a loop. Maybe you have been affected by the category as its own parent now fixed bug. Run the following query and let me know what you see:
Code:

SELECT * FROM photoplog_categories WHERE catid = parentid;
@Allan: how does the BBcode not work? Can you make a screenshot for me to see?

I get this error:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table 'xrustysoaptraders.photoplog_categories' doesn't exist

calorie 12-05-2005 12:04 AM

Okay, download PhotoPlog again to make sure you have the latest version and in the readme file redo the install or upgrade instructions because a step or two got missed in there.

ChrisBaktis 12-05-2005 12:45 AM

Quote:

Originally Posted by calorie
Okay, download PhotoPlog again to make sure you have the latest version and in the readme file redo the install or upgrade instructions because a step or two got missed in there.

I downloaded - reinstalled and now when I go to the forums page it is down and I get this error


PHP Code:

Invalid SQL:
SELECT *
                    
FROM photoplog_fileuploads
                    WHERE moderate 
0
                    ORDER BY RAND
()
                    
LIMIT 5;

MySQL Error  Table 'xrustysoaptraders.photoplog_fileuploads' doesn't exist
Error Number : 1146
Date         : Sunday, December 4th 2005 @ 09:44:23 PM
Script       : http://rustysoaptraders.com/forums/index.php?
Referrer     : 
IP Address   : 
Username     : poongamer
Classname    : vb_database 


calorie 12-05-2005 02:19 AM

I'd guess that you used the upgrade XML instead of the install XML this time around, so the photoplog_fileuploads table wasn't created. Do the uninstall procedure as in the readme, and then do the new install procedure.

Allan 12-05-2005 04:46 AM

screenies ;)

calorie 12-05-2005 05:14 AM

Right, if a file is uploaded but no category is selected, then it shows 'not available' because there is no category name to show.

Allan 12-05-2005 09:51 AM

which is the relationship with the fact that the bbcodes are not taken into account when one does not select categories

calorie 12-05-2005 10:17 AM

Oh oh oh, I see what you mean. Yeah, when you set categories, there aren't options for 'No one / Not available' so nothing is done for BBcode, but if you edit the functions.php file...

Code:

        $do_html = false;
        $do_smilies = false;
        $do_bbcode = false;
        $do_imgcode = false;
        $do_parseurl = false;
        $do_comments = false;
        $do_ratings = false;

You can set the defaults to whatever, true or false, for the 'No one / Not available' category.

nitro 12-05-2005 05:27 PM

Now it has categories I have tried it on my test box. Full path is set, photoplog path is set in cp settings, photoplog page is taking sometime to load, it has no header (seems to be adding wierd doubleups to the paths: http://192.168.xxx.xxx/portal-35x/fo...logo_white.gif)

Maybe this is also linked to the cant load page when I try and select a category or upload page ?

calorie 12-05-2005 06:21 PM

It's probably the absolute links function doubling up the paths. What is the relative path in the HTML source to your logo on a non PhotoPlog page, and what is your vB options bburl set to? Not yet sure about that other page load problem: the require vB global.php is made, but it doesn't seem to return.

r6bbie 12-05-2005 06:38 PM

Calorie rocks!!

Works great...again thanks for everything

nitro 12-05-2005 07:30 PM

Logo path for the style I was in is <img src="/portal-35x/forums/images/misc/vbPortal_logo_white.gif"

Title image path is set to /portal-35x/forums/images/misc/vbPortal_logo_white.gif in vb css, has to be this way so the title image displays in vbportal pages aswell as forum pages, same as all other css image paths for the various buttons icons etc, require the full webpath there.

forums url in adminCP is http://192.168.xxx.xxx/portal-35x/forums

calorie 12-05-2005 07:44 PM

For now, in the absolute links function, set the following right near the top of the function to hardcode in what it needs for your setup.
Code:

$src_link = "http://192.168.xxx.xxx";

nitro 12-06-2005 12:10 AM

Heh :oooops:

Sorry Calorie I think I had better start again, I had the IP set 1 digit out in bburl which really was not helping, was still set to the old range I used to use and then I switched sometime ago as it happens.

Ok portal-35x is my portal dir and I have placed photplog dir here, if I set in admincp photoplog settings /portal-35x/photoplog the links in photoplog have a double up of the portal-35x dir ie /portal-35x/portal-35x/photoplog. Setting that setting to just /photoplog and the links are dandy. :)

Placing your fix as the top line inside that function would appear to have repaired the style image paths what I have seen so far.

Meaning I'm really down to a single problem now which is when uploading a pic I get Sorry Nitro bad file. Does this use vb image file size restrictions as I have changed the photoplog large thumb to cater for the images width/height. I will backtrack thru the thread as I know this has come up before, but my photoplog/images dir is definately world writeable.

Scrap that photoplog file size perms are in usergroup permissions.

Seem to be looking all good. I shall test some more over the next days

Allan 12-06-2005 05:33 AM

Calorie, changed the link to french language please (https://vborg.vbsupport.ru/showpost....03&postcount=2)

the new link: https://vborg.vbsupport.ru/showpost....&postcount=130

;)

wii 12-06-2005 10:04 AM

Any idea when this is out of beta ?

Looks really good.

zsmom 12-06-2005 12:53 PM

Working great for me, thanks!

Just one thing I noticed -- when I use the supplied bbcode under the photos in PhotoPlog in a post elsewhere on the board, it only shows the thumbnail, not the full size picture. Is this something with PhotoPlog or maybe just my settings? (I've checked them and don't see an obvious problem...)

Thanks!

Lamby1973 12-06-2005 12:56 PM

I still keep getting Sorry ... : Bad Open...

Its not the permissions and its not Safe Mode....what can i be???

calorie 12-06-2005 02:53 PM

@nitro: glad you having it working. I might add an option to specifiy path to remove double path cases.

@Allan: post2 is the original stuff, nothing there for the current version. Next version I'll rearrange stuff.

@wii: not until I get the add-ons like the attached working for the current beta version.

@zsmom: see this attachment: https://vborg.vbsupport.ru/attachmen...chmentid=38510

@Lamby1973: that 'bad open' message only happens when the following in edit or upload fails.
Code:

$photoplog_handle = @fopen($photoplog_directory_name."/index.html","w")

// try taking off the @ to see what error message PHP gives


funinthesun 12-06-2005 03:55 PM

I'm still having problems with this mod :( When I click on upload it justs goes to a "this page cannot be displayed" page and since installing this a lot of my members can't seem to log in? They say it shows them as logged in but when they try to reply to a post of send a PM it redirects them back to the login page? :confused:

calorie 12-06-2005 04:07 PM

Wouldn't think this mod would mess with logins.
For 404s check the PhotoPlog directory setting:
Code:

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


Lamby1973 12-06-2005 06:34 PM

Quote:

$photoplog_handle = @fopen($photoplog_directory_name."/index.html","w")
Where bouts am i looking for this?

Lamby1973 12-06-2005 06:44 PM

Ok tried that in both of those files and it still comes up the same. Just gonna delete this and find something else....if there is something else... lol not many free galleries around tho!

warrez 12-06-2005 07:01 PM

pls help http://downfresh.com/photoplog/ its not working for me i try to add all paths in my forum but failed pls help

funinthesun 12-06-2005 07:08 PM

OK Calorie but you haven't answered my question about why I get a "page cannot be displayed" page when I click on upload or home ;) Thanks ;)

Robru 12-06-2005 07:18 PM

Thanks for this great hack, it's works really perfect, also the upgrade works fine :speechless:

calorie 12-06-2005 08:01 PM

@warrez: check the PhotoPlog directory setting:
Code:

// correct examples
http://www.example.com/photoplog/index.php => /photoplog
http://www.example.com/wherever/photoplog/index.php => /wherever/photoplog

// incorrect examples
http://www.example.com/photoplog/index.php => /photoplog/index.php
http://www.example.com/wherever/photoplog/index.php => /wherever/photoplog/index.php

@funinthesun: it's hard to say without seeing your setup, maybe running some tests.

Allan 12-06-2005 08:39 PM

highly a final version bus has each update, I loses the data to enter :(

Jrain157 12-07-2005 01:01 PM

OK, this is kind of a wierd issue. I have photoplog installed and am able to create categories and set permissions. I'm even able to go to the photoplog gallery and see the categories I've made, but when I go to upload a file, as soon as I hit upload the entire page goes blank. The files are being uploaded properly and are being put into a directory called "1". The problem is, none of the photos show up in the gallery. Is there a setting somewhere I'm missing?


All times are GMT. The time now is 04:25 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.02756 seconds
  • Memory Usage 1,837KB
  • 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
  • (7)bbcode_code_printable
  • (1)bbcode_php_printable
  • (6)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