vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Home Enhancements - vBGallery - Forum Home (https://vborg.vbsupport.ru/showthread.php?t=123490)

Zachariah 08-08-2006 10:00 PM

vBGallery - Forum Home
 
/* -----------------8/9/2006 6:20am -----------------
Add Gallery Images to your Forum Index v1.8

Tested on:
vBulletin 3.6
PhotoPost vBGallery v2.0 Beta

Zachariah - http://www.gzhq.net

// ---------------------------------------------------------

DEMO

- Feedback Please :squareeyed:

Overview:
  • import Product XML
  • 1 file edit
  • 2 file uploads
  • 1 image upload
  • Adds 1 Query to FORUMHOME

Hack includes:
- Hack Active (yes / no)
- Enable Navbar (yes / no)
- Image Count (number of images)
- Image Order (Random, Newest, Most Views, Most Comment, Highest Rated)
- Column Span (Choice of column count accross)
- Locations (Above Header, Below Header, Under Navbar, Above What's going on, Inside What's going on, Below What's going on, Custom)
- Exclude Catagories
- Only Catagories
- On/Off options for all of the "info" per image
- If gallery is not active hack will vanish (all usergroups)
- Admin will get "Alert: The gallery is currently turned off!" on FORUMHOME
- If gallery settings of a usergroup does not see "thumbnails" the hack will vanish
- No Template edits

Change Log
===========
1.8 - 8/9/2006
- Column Span: Choice of column count across.
- Locations: (were should be displayed on the forumhome)
  • Above Header
  • Below Header
  • Under Navbar
  • Above What's going on
  • Inside What's going on
  • Below What's going on
  • Custom
Select "Custom" and place $vbgallery in FORUMHOME template for custom location.


1.7 Beta 2 - 01.17.06
- Fixed usergroups not able to see the hack
- Fixed sort order problems

1.7
- Install w/ product and 2 edits in 1 file.
- Killed the need for FORUMHOME template edit.
- AdminCP options to change the hack settings
- Added: Parts of the gallery's Nav bar w/ dropdowns
(My Stuff*, What's New, What's Popular,Search) to the hack with on/off option.
* My Stuff will not be seen if you are a guest.

1.6
- Added: If the gallery is off or disabled the hack not show up.
- Added: templates to support the hack vs. gallery templates
(allows you to customize the templates for the look and feel you want vs. mess up the way your gallery templates look.)

--------------------------------------------------*/

Zachariah 08-09-2006 01:01 PM

1st Post - FAQ's

08-15-06

Update: (no version change)
- Fixed last reply
- Fixed reply count
- Fixed error with php5x

re-upload:
includes/vbgallery/forumhome_complete.php

Betablocker 08-09-2006 01:03 PM

Good man :)

Goes to install...

Work great cheers :cool:

cclaerhout 08-09-2006 01:31 PM

Third post ;)

projectego 08-09-2006 01:34 PM

Very cool! Thanks Zachariah. :)

Zachariah 08-09-2006 01:35 PM

Re download
- XML was missing a few settings.

MotoUp 08-09-2006 02:34 PM

Sweet! I've been waiting for this! Thanks a ton.

Where do I go to change the color of the navbar? Or for that matter, add a background image for the navbar?

EDIT: Nevermind, finally found the templates.

Freakpyromaniac 08-09-2006 03:13 PM

Is this also working with photopost Pro ???

KevNJ 08-09-2006 03:32 PM

No coloum span vertical ? Thought you mentioned in another thread that would be included in the next version.

Ill install when I get home. Looking forward to this.

Thanks!

Zachariah 08-09-2006 04:09 PM

Quote:

Originally Posted by KevNJ
No coloum span vertical ? Thought you mentioned in another thread that would be included in the next version.

Ill install when I get home. Looking forward to this.

Thanks!

Column Span
How many columns of images would you like to show?

Set to '1' one

DJ XtAzY 08-09-2006 04:38 PM

i got this error msg

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/vbgallery/forumhome_complete.php on line 166

also no matter what i do, when the images has comments/replies to it, it always ends up showing 0 on forumhome. It shows up fine in vbgallery, but not in forumhome =[

i have checked that i have the Replies boxes ticked in vbgallery admin and have replies counts towards their post, but it just dont show the correct # of replies on forumhome

Zachariah 08-09-2006 05:07 PM

Quote:

Originally Posted by XtAzY
i got this error msg

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/vbgallery/forumhome_complete.php on line 166

also no matter what i do, when the images has comments/replies to it, it always ends up showing 0 on forumhome. It shows up fine in vbgallery, but not in forumhome =[

i have checked that i have the Replies boxes ticked in vbgallery admin and have replies counts towards their post, but it just dont show the correct # of replies on forumhome

Ahh - PHP5x error

try this:
/includes/vbgallery/forumhome_complete.php on line 166

replace:
Code:

$privatecatids = iif(empty($privatecatids), $vba_options['gallery_homeexcats'], array_merge((array)$privatecatids, (array)$vba_options['gallery_homeexcats']));

DJ XtAzY 08-09-2006 05:39 PM

Quote:

Originally Posted by Zachariah
Ahh - PHP5x error

try this:
/includes/vbgallery/forumhome_complete.php on line 166

replace:
Code:

$privatecatids = iif(empty($privatecatids), $vba_options['gallery_homeexcats'], array_merge((array)$privatecatids, (array)$vba_options['gallery_homeexcats']));

works like a charm

woody200456 08-09-2006 06:10 PM

EDIT: Never Mind :P

PixelFx 08-09-2006 06:34 PM

very nice :D

Tork64 08-09-2006 06:55 PM

sweet! and thanks

Edit: lol, okay i take it you need to buy vbgallery to install this right ? If so where i can buy it from.

Zachariah 08-09-2006 07:35 PM

Quote:

Originally Posted by Tork64
sweet! and thanks

Edit: lol, okay i take it you need to buy vbgallery to install this right ? If so where i can buy it from.

Untill a price sheet is made.

Tyegurl 08-09-2006 08:03 PM

does this have personal galleries?

Neal-UK 08-09-2006 08:50 PM

I'm getting this, my site is on the root:

Quote:

Warning: Unknown(./includes/vbgallery/forumhome_complete.php): failed to open stream: No such file or directory in /index.php(485) : eval()'d code on line 45

Warning: Unknown(./includes/vbgallery/forumhome_complete.php): failed to open stream: No such file or directory in /index.php(485) : eval()'d code on line 45

Fatal error: (null)(): Failed opening required './includes/vbgallery/forumhome_complete.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nealpar2/public_html/index.php(485) : eval()'d code on line 45
EDIT: This was because I was a numpty and uploaded the files to the wrong server! Working now!

MotoUp 08-10-2006 04:20 PM

Not sure if I'm doing something wrong or not, but When I enable Last Post under the image, it shows never even after I post a reply.

bandoftheweek 08-10-2006 07:12 PM

Will this work with 3.5?

Zachariah 08-10-2006 07:25 PM

Quote:

Originally Posted by bandoftheweek
Will this work with 3.5?

- I think the XML file will not work. I will update the 3.5x ver soon :)

P.Jackson 08-10-2006 07:36 PM

im still using the 3.5 addon for this hack and still works :D only thing that dont work properly is Users posts show as guests

MotoUp 08-10-2006 07:36 PM

Quote:

Originally Posted by MotoUp
Not sure if I'm doing something wrong or not, but When I enable Last Post under the image, it shows never even after I post a reply.

Well, I've looked at everything I can possibly think of, and can't find that I'm doing anything wrong, but it still doesn't show the last post...any ideas?

Freakpyromaniac 08-10-2006 07:45 PM

Is this also for Photopost pro...Thats the one i have. And on the photo post site i see anyware a Vbgallery product..

bonjurkes 08-10-2006 08:40 PM

do i need to install photopost pro for this hack?

I uploaded files upload product make edit and got an error like

Quote:

Database error in vBulletin 3.6.0:

Invalid SQL:

SELECT administrator.*,
userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid,
language.phrasegroup_cphome AS phrasegroup_cphome,
language.phrasegroup_cpglobal AS phrasegroup_cpglobal,
language.phrasegroup_adv_gallery AS phrasegroup_adv_gallery,
language.phrasegroup_global AS phrasegroup_global,
language.options AS lang_options,
language.languagecode AS lang_code,
language.charset AS lang_charset,
language.locale AS lang_locale,
language.imagesoverride AS lang_imagesoverride,
language.dateoverride AS lang_dateoverride,
language.timeoverride AS lang_timeoverride,
language.registereddateoverride AS lang_registereddateoverride,
language.calformat1override AS lang_calformat1override,
language.calformat2override AS lang_calformat2override,
language.logdateoverride AS lang_logdateoverride,
language.decimalsep AS lang_decimalsep,
language.thousandsep AS lang_thousandsep

FROM user AS user
LEFT JOIN userfield AS userfield ON (user.userid = userfield.userid)
LEFT JOIN usertextfield AS usertextfield ON (usertextfield.userid = user.userid) LEFT JOIN administrator AS administrator ON (administrator.userid = user.userid) INNER JOIN language AS language ON (language.languageid = IF(user.languageid = 0, 3, user.languageid))

WHERE user.userid = 1;

MySQL Error : Unknown column 'language.phrasegroup_adv_gallery' in 'field list'

did i forget doing someting?

and at index.php

Quote:

Warning: main(./includes/functions_gallery.php): failed to open stream: No such file or directory in /includes/vbgallery/forumhome_complete.php on line 16

Fatal error: main(): Failed opening required './includes/functions_gallery.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*/public_html/forum/includes/vbgallery/forumhome_complete.php on line 16

MotoUp 08-10-2006 08:55 PM

I believe it's just for vbGallery, not Pro.

sensimilla 08-10-2006 10:10 PM

Quote:

Originally Posted by MotoUp
I believe it's just for vbGallery, not Pro.


Exactly, its for a completely different product.

icemanic 08-11-2006 01:49 AM

i seem to be having a problem editting the forums/includes/init.php file, once i make the edit, the forum cant connect to database and all sorts of weird problems just when i add that one line

what am i doing wrong??????? someone help me!!!!!

wEbAddEr 08-11-2006 09:02 PM

Quote:

Originally Posted by icemanic
i seem to be having a problem editting the forums/includes/init.php file, once i make the edit, the forum cant connect to database and all sorts of weird problems just when i add that one line

what am i doing wrong??????? someone help me!!!!!

same with my forum :confused:

thablewprnt 08-12-2006 08:26 AM

It really makes me sick when people put up these seemingly cool hacks. But never give proper instructions for people who don't do this everyday!

I didn't see a file call init.php to edit. Does that mean to open the folder and edit the files that are "in it"?! Also the instructions don't say what directories the files should go.
Please excuse my frustration, but I have been working on my board day and night for two weeks straight, and when I don't have easy to follow instructions for mods, that just makes my day even longer.

I give myself some credit for the things I have accomplished, because I literally just picked this up two weeks ago. But most of you guys give instructions that assume a person has prior knowledge, and understands all the tech talk, and jargon.
That's like giving a person a can of paint, and saying...OKaaay....run along now, and go put a new clear coat on your Mercedes! :mad:

Neal-UK 08-12-2006 08:45 AM

Quote:

Originally Posted by thablewprnt
It really makes me sick when people put up these seemingly cool hacks. But never give proper instructions for people who don't do this everyday!

I didn't see a file call init.php to edit. Does that mean to open the folder and edit the files that are "in it"?! Also the instructions don't say what directories the files should go.
Please excuse my frustration, but I have been working on my board day and night for two weeks straight, and when I don't have easy to follow instructions for mods, that just makes my day even longer.

I give myself some credit for the things I have accomplished, because I literally just picked this up two weeks ago. But most of you guys give instructions that assume a person has prior knowledge, and understands all the tech talk, and jargon.
That's like giving a person a can of paint, and saying...OKaaay....run along now, and go put a new clear coat on your Mercedes!

connect to your server, navigate to the INCLUDES folder and download the INIT.PHP file inside that folder and open it in wordpad or notepad and edit it as it says.

Then upload it again back to the INCLUDES folder.

Folder: includes
File: init.php (Inside "includes" folder)

redstaing.net 08-12-2006 04:41 PM

HMMM
MySQL Error : Unknown column 'language.phrasegroup_adv_gallery' in 'field list'
Error Number : 1054
Date : Saturday, August 12th 2006 @ 07:39:58 PM

bonjurkes 08-12-2006 05:26 PM

you can use it with photopost, otherwise it wont work.

you can buy photopost for 59 bucks

uninstalled...

Zachariah 08-12-2006 08:23 PM

Quote:

Originally Posted by bonjurkes
you can use it with photopost, otherwise it wont work.

you can buy photopost for 59 bucks

uninstalled...

Correct

Reason @ the top of the thread:

Quote:

Add Gallery Images to your Forum Index v1.8

Tested on:
vBulletin 3.6
PhotoPost vBGallery v2.0

dt~ 08-13-2006 12:05 PM

uninstalled.

parajsa 08-15-2006 09:41 AM

Hey there Zack is there any possibility to integrate this hack with the "Add PhotoPost vBGallery to each forum for vb3.5.4" and make them work as one?

thank u

Zachariah 08-15-2006 02:06 PM

Update: (no version change)
- Fixed last reply
- Fixed reply count
- Fixed error with php5x

re-upload:
includes/vbgallery/forumhome_complete.php

Delw 08-15-2006 02:30 PM

I installed it last night and it worked perfectly, mine was a new install since its on a test board. I added the requiered code to below like said in the instructions.

Quote:

2)
================================================== =====
Edit: php file|
================

**** If you have made this edit before from a different vBgallery hack you can skip this step.

- Edit:
forums/includes/init.php

- Find:
require_once(CWD . '/includes/class_core.php');

- Below Add:
require_once(CWD . '/includes/functions_gallery_store.php');
I dont have any other vbgallery hacks

MotoUp 08-15-2006 03:42 PM

Quote:

Originally Posted by Zachariah
Update: (no version change)
- Fixed last reply
- Fixed reply count
- Fixed error with php5x

re-upload:
includes/vbgallery/forumhome_complete.php

Thanks for the fix. It's greatly appreciated. :)


All times are GMT. The time now is 06:05 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.01344 seconds
  • Memory Usage 1,846KB
  • 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
  • (2)bbcode_code_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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