vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   PhotoPost vBGallery - Forum Home (https://vborg.vbsupport.ru/showthread.php?t=96152)

Zachariah 10-08-2005 10:25 PM

Change Log
===========
1.3
- Display images from specific categories.

// If you HASH out "$catlimit" images will pull from all categories.
// Useage: $catlimit = 3,5,10,30,70;

// $catlimit = 3;

PennylessZ28 10-09-2005 01:41 AM

BAM, new error message when I try to import

"XML Error: XML_WAR_UNKNOWN_VERSION at Line 27"

Zachariah 10-09-2005 08:53 AM

Quote:

Originally Posted by HR3rdGen
BAM, new error message when I try to import

"XML Error: XML_WAR_UNKNOWN_VERSION at Line 27"

I have tested the curent file and have no problems.

AdminCP => Plugin System => Manage Products => [Add/Import Product]

Nutz 10-09-2005 11:21 AM

Thanks :)

I'm having a little problem, only admins can see the images on the forum home :ermm:
I've tried setting the gallery usergroup permissions to the same as the admin usergroups with no luck, I?m sure this is me again due to your example working fine.

Any help would be appreciated :)

Thanks,
Mat

PennylessZ28 10-10-2005 03:34 AM

Quote:

Originally Posted by Zachariah
I have tested the curent file and have no problems.

AdminCP => Plugin System => Manage Products => [Add/Import Product]

Oh you don't say becuase

BAM!
XML Error: XML_WAR_UNKNOWN_VERSION at Line 27

What would be a root cuase of this? I'm amazed that you have no problems becuase your system probably ain't the same as mine. :rolleyes:

PennylessZ28 10-10-2005 03:37 AM

I had this installed before hand, but becuase it through an error, I uninstalled, but since you upgraded it I reinstalled it.

REFERENCE POST #34

Quote:

Originally Posted by HR3rdGen
Plugin seems to work, but with it on I get this at the top of my page

Code:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /forum.php(462) : eval()'d code on line 284


Zachariah 10-10-2005 11:19 AM

Quote:

Originally Posted by HR3rdGen
I had this installed before hand, but becuase it through an error, I uninstalled, but since you upgraded it I reinstalled it.

REFERENCE POST #34

I have installed it 30-40 times on forums. I have never seen this error. I have found some other code errors, but never a problem on install.

Have you made the file Edits ?

Quote:

First, open your forum/index.php file and find:

'mailqueue'

Replace with:

'mailqueue',
'gallery_c_cache',
'adv_gallery_opt',
'gallery_ugroups'
I have a few bugs to crush - Hit me up on IM if your still stuck.

sensimilla 10-10-2005 12:12 PM

how can I setup usergroups to see it or not ?

and I really need it under navbar in CMPS... thanks ;)

it works like a charm

jluerken 10-10-2005 12:12 PM

Installing this hack brings me:
Parse error: parse error in /xyz/html/forum/index.php(470) : eval()'d code on line 173

Yes, I have made the file edit!

Zachariah 10-10-2005 12:16 PM

Quote:

Originally Posted by jluerken
Installing this hack brings me:
Parse error: parse error in /xyz/html/forum/index.php(470) : eval()'d code on line 173

Yes, I have made the file edit!

That's so weird . I'll plug on it and see what I can find out. :disappointed: :tired:

Quote:

Originally Posted by sensimilla
how can I setup usergroups to see it or not ?

and I really need it under navbar in CMPS... thanks ;)

it works like a charm

That should carry over from the gallery.

thedvs 10-10-2005 01:04 PM

If i have....

//Number of Images to Display
$galleryimagelimit = 4;

...in my config then on the home display page the collapse menu bar only goes above 3 images and not over the 4th image.

its fine if I set it to $galleryimagelimit = 3;

Zachariah 10-10-2005 01:08 PM

Quote:

Originally Posted by thedvs
If i have....

//Number of Images to Display
$galleryimagelimit = 4;

...in my config then on the home display page the collapse menu bar only goes above 3 images and not over the 4th image.

its fine if I set it to $galleryimagelimit = 3;


Number of Columns
The number of columns to display in a single row before splitting down to the next one.

AdminCP - vBa Gallery - Modify Settings - Browse Category Options - Number of Columns:


If that changes other things on your site you do not want Changed below to the # of images you wish to show up.


This is the code you were told to paste into your forumhome.
Code:

<!-- start Gallery Images -->
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
    <td class="tcat" colspan="$vba_options[gallery_columns]">
    <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_gallery_random')">


thedvs 10-10-2005 01:14 PM

This also seems not work with Firefox or netscape?

The display when viewing forum home with mozilla firefox (or netscape) its completely collapsed and not showing the images (even with clicking the collapse button nothing shows). - Yet both browsers have no problem with other collapsables, only this hacks one.

Zachariah 10-10-2005 02:15 PM

Quote:

Originally Posted by thedvs
This also seems not work with Firefox or netscape?

The display when viewing forum home with mozilla firefox (or netscape) its completely collapsed and not showing the images (even with clicking the collapse button nothing shows). - Yet both browsers have no problem with other collapsables, only this hacks one.

I am doing a revamp of the code - There is a lot of garbage in there from 5 other people that made edits to the code since it was 1st designed.

I'll have something soon.

thedvs 10-10-2005 02:18 PM

Quote:

Originally Posted by Zachariah
I am doing a revamp of the code - There is a lot of garbage in there from 5 other people that made edits to the code since it was 1st designed.

I'll have something soon.

That's great, that issue is the only thing letting this down.

*INSTALLED*

jluerken 10-10-2005 02:49 PM

Quote:

Originally Posted by Zachariah
I am doing a revamp of the code - There is a lot of garbage in there from 5 other people that made edits to the code since it was 1st designed.

I'll have something soon.

Yes thats great. Could you send an update around when this is done?

Zachariah 10-10-2005 02:57 PM

Quote:

Originally Posted by jluerken
Yes thats great. Could you send an update around when this is done?

Edited: Beta removed.

Blackhat 10-10-2005 03:06 PM

I'm trying to add this to my sidebar but nothing shows up :(
I guess its because I'm trying to add it to my sidebar custom template so how can I make it work there?

http://www.librarium-online.com/forums/index.php

Zachariah 10-10-2005 03:19 PM

Quote:

Originally Posted by Blackhat
I'm trying to add this to my sidebar but nothing shows up :(
I guess its because I'm trying to add it to my sidebar custom template so how can I make it work there?

http://www.librarium-online.com/forums/index.php

How did you add the sidebar ?

thedvs 10-10-2005 03:20 PM

Quote:

Originally Posted by Zachariah
Sure, I have something done now. Anyone care to test before I SPAM all the installers of the new ver ?

Beta Only:
Everyone in general, please do not upgrade your hacks. This is not an "update".
It is for beta testers only.

I need browser compatability and test of $catlimit.

I know of a few phrases that are missing.

Works okay now in Firefox & Netscape :)

Zachariah 10-10-2005 03:29 PM

Beta testers:
If anyone has some time I am in the vb.org IRC server. For a while. It would be better than mass messages here.

https://vborg.vbsupport.ru/chat.php?

/join #help

Blackhat 10-10-2005 04:23 PM

Quote:

Originally Posted by Zachariah
How did you add the sidebar ?

I just made a custom template and modified FORUMHOME with tables then made a hook for the $sidebar template that I included in the FORUMHOME custom table.

GrendelKhan{TSU 10-10-2005 04:52 PM

love this hack and its continued improvements...
one problem...

the replies don't seem to actually work in the forumhome display. I turned it on to show 1 reply. And no matter what it always has "never" for the replies.

anyone else get this to actually work?

Blackhat 10-10-2005 06:11 PM

My picture is stuck, same over and over again and it does not work in explorer. The latest comments and rating does not work either

Zachariah 10-10-2005 08:04 PM

Quote:

Originally Posted by Blackhat
My picture is stuck, same over and over again and it does not work in explorer. The latest comments and rating does not work either

Good to note, there is still a lot to work out :) - The 1st time the hack was made it had a lot of problems. You are reporting on the beta file ?


EDIT:
The only problems I see so bar w/ the beta is:

phrases:
Filesize
Dimensions
Category

And to kill the table that is on the forumhome when a user/usergroup can not see thumbnails.

patsalko 10-10-2005 08:27 PM

I installed the hack and it works fine except only admin can see it on FORUMHOME.
All users can see images when they go directly to the gallery.

Any ideas why???

Nutz 10-10-2005 08:32 PM

Hi patsalko,

I had just the same issue. Try the new Beta here:
https://vborg.vbsupport.ru/showpost....2&postcount=57

That did the trick for me :)

Thanks,
Mat

PennylessZ28 10-10-2005 09:39 PM

Quote:

Originally Posted by Zachariah
I have installed it 30-40 times on forums. I have never seen this error. I have found some other code errors, but never a problem on install.

Have you made the file Edits ?



I have a few bugs to crush - Hit me up on IM if your still stuck.

Yup I made file edits, this error is given when I try to import the XML file only. Could this be related to a previous install or perhapps another plugin?

I already had one other plugin in that seemed to conflict with another one.

PennylessZ28 10-10-2005 09:42 PM

Ok, the only thing I did different since last night was try to install the beta. Seems to be working, it's possible my download was corupt.

Zachariah 10-10-2005 09:44 PM

Quote:

Originally Posted by HR3rdGen
Ok, the only thing I did different since last night was try to install the beta. Seems to be working, it's possible my download was corupt.

The beta is closer to being gold. The other file does have a lot of junk. I seen you in chat, then you left. :p

- I pop in and out reason for no responce instant, trying to code also ;D
Quote:

* HR3rdGen has joined #help
<HR3rdGen> Vambam
<HR3rdGen> I'm in
<HR3rdGen> Zac
* HR3rdGen has quit IRC (Visit the Dev|Core IRC Java Chat: http://irc.devcore.co.uk/chat/)

PennylessZ28 10-10-2005 09:51 PM

Yeah someone called me, then they hung up. Blah.

Ok, new question, how do I exclude categories from being show in the random? In my vbgallery settings I am excluding too categories which contain NSFW content. On the vbgallery index it works, on my forumhome page using this, they show up. Is there an option in the orginal code?

PennylessZ28 10-10-2005 09:53 PM

Quote:

Originally Posted by Zachariah
Plugin - Forumhome: Gallery Main

Try this:

Find:
Code:

    $getrand =  $db->query_read(" 
                SELECT imageid, images.title, filename, thumbname, originalname, extension, images.catid $query[fields] 
                FROM " . TABLE_PREFIX . "adv_gallery_images AS images 
                $query[tables] 
                WHERE $privcatids valid = 1 $ignquery 
                ORDER BY $galleryorderby 
                LIMIT $galleryimagelimit
        ");

Replace
Code:

$getrand =  $db->query_read(" 
                SELECT imageid, catid, images.title, filename, thumbname, originalname, extension, images.catid $query[fields] 
                FROM " . TABLE_PREFIX . "adv_gallery_images AS images 
                $query[tables] 
                WHERE $privcatids valid = 1 $ignquery 
                AND catid in (1,2,3,4,5,6,7,8,9)
              ORDER BY $galleryorderby 
                LIMIT $galleryimagelimit
        ");

The RED can be filled in by Cat ID's


True, but limits of cats is handy to promote ideas you wish to convay to the plublic vs. random all cats.

Nevermind, should read first, I'm just junking up this thread.

Zachariah 10-10-2005 09:56 PM

no problem :D but dont use that.

Plugin - Forumhome: Gallery Main

// If you HASH out "$catlimit" images will pull from all categories.
// Useage: $catlimit = 3,5,10,30,70;

//$catlimit = 3;

// Enter 1 newest, 2 most viewed, 3 most comments, 4 highest rated, 5 random.
$galleryorderby = 1;

//Number of Images to Display
$galleryimagelimit = 4;


I will have the full blown ver and out of beta soon, there are a few more things I am worken on.

PennylessZ28 10-10-2005 10:04 PM

:( ok they are still showing up :(

PennylessZ28 10-10-2005 10:05 PM

Crap, too late

PennylessZ28 10-10-2005 10:05 PM

Ok that does it, I'll just wait. :)

GrendelKhan{TSU 10-11-2005 05:00 AM

Quote:

Originally Posted by GrendelKhan{TSU
love this hack and its continued improvements...
one problem...

the replies don't seem to actually work in the forumhome display. I turned it on to show 1 reply. And no matter what it always has "never" for the replies.

anyone else get this to actually work?

is this a bug? did anyone get it to work?

again, the show last "last post" doesn't work. it always shows never.

any ideas?

GrendelKhan{TSU 10-11-2005 03:55 PM

also.... is there a way to limit/control the size of the thumbnail?

or does follow the vbGallery setting?

Zachariah 10-11-2005 04:56 PM

Quote:

Originally Posted by GrendelKhan{TSU
also.... is there a way to limit/control the size of the thumbnail?

or does follow the vbGallery setting?

gallery setting ( it pulls the thumbnails already made)

Have you tryed the Beta ?
https://vborg.vbsupport.ru/showpost....2&postcount=57

I also have more info on the missing Phrases. Soon to be fixed.

Rukas 10-12-2005 03:20 AM

Im getting this error:

Warning: array_keys(): The first argument should be an array in /includes/functions_gallery.php on line 427

Warning: Invalid argument supplied for foreach() in /includes/functions_gallery.php on line 427

Warning: Division by zero in /includes/functions_gallery.php on line 1134


All times are GMT. The time now is 11:16 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.02436 seconds
  • Memory Usage 1,844KB
  • 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
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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