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)

AzianStang 04-01-2006 08:24 PM

*slaps himself*

OK now I feel stupid!

But I followed the rest of the steps, and for some reason, I'm now getting a forum database error... imported the product and made the two index.php changes, and now I'm getting a database error page.

FYI, I ran a query earlier today for another gallery mod: https://vborg.vbsupport.ru/showthread.php?t=92875

Would this have anything to do with this error?

hotwheels 04-11-2006 12:52 AM

Zachariah? Is there a way to shut off the image to the public when you are logged off of the site? Right now when you log off, and clear your cookies. Go back to the site and open it, you see the photo bar with the images. I would like to be able to have that option, so that it can't be viewed when a person isn't a registered viewer........

hotwheels

Zachariah 04-12-2006 12:56 PM

Quote:

Originally Posted by hotwheels
Zachariah? Is there a way to shut off the image to the public when you are logged off of the site? Right now when you log off, and clear your cookies. Go back to the site and open it, you see the photo bar with the images. I would like to be able to have that option, so that it can't be viewed when a person isn't a registered viewer........

hotwheels

Hello Sir.

No images for guests ?

Plugin: Forumhome: Gallery Main
Hook Locaton: forumhome_complete

Code:

if ($vbulletin->userinfo['userid']) {

Plugin here

}

Place the code around all that is in that plugin.

hotwheels 04-13-2006 12:37 AM

Thank you very much sir.............worked like a charm.

RaceJunkie 04-17-2006 04:50 PM

When I click on a picture on the forum home it does not go to that users Gallery. Is this the way it is supose to be?

http://www.localracechat.com/forums/index.php

Zachariah 04-17-2006 07:19 PM

Quote:

Originally Posted by RaceJunkie
When I click on a picture on the forum home it does not go to that users Gallery. Is this the way it is supose to be?

http://www.localracechat.com/forums/index.php

Your images on the hack point to:
Code:

http://www.localracechat.com/gallery/index.php?/showimage.php?i=1236&catid=3
vs.

Code:

http://www.localracechat.com/gallery/showimage.php?i=1236&catid=3
Take a look at something for me.

AdminCP => vBa Gallery => Modify Settings => Gallery URL

Should be: http://www.localracechat.com/gallery

RaceJunkie 04-17-2006 07:43 PM

Quote:

Originally Posted by Zachariah
Your images on the hack point to:
Code:

http://www.localracechat.com/gallery/index.php?/showimage.php?i=1236&catid=3
vs.

Code:

http://www.localracechat.com/gallery/showimage.php?i=1236&catid=3
Take a look at something for me.

AdminCP => vBa Gallery => Modify Settings => Gallery URL

Should be: http://www.localracechat.com/gallery

yup you hit it right on the mark. Changed link and it works..

Thanks

petersweb 04-18-2006 11:30 PM

I'm unable to see the images on my Forum Homepage. It was working fine until I upgraded vBulletin. I've upgraded to vBulletin 3.5.4 and have made the edits to '/forums/index.php' and re-uploaded the 'product-gallery_home.xml' and allowed it to overwrite.

Any suggestions greatly appreciated!

Zachariah 04-19-2006 12:26 AM

Quote:

Originally Posted by petersweb
I'm unable to see the images on my Forum Homepage. It was working fine until I upgraded vBulletin. I've upgraded to vBulletin 3.5.4 and have made the edits to '/forums/index.php' and re-uploaded the 'product-gallery_home.xml' and allowed it to overwrite.

Any suggestions greatly appreciated!

Do you have a custom style that moved the VB (navbar / breadcrumb) out of the FORUMHOME ? (IE: $navbar)

petersweb 04-19-2006 12:40 AM

Quote:

Originally Posted by Zachariah
Do you have a custom style that moved the VB (navbar / breadcrumb) out of the FORUMHOME ? (IE: $navbar)

I'm using vBPortal - but I was also using that before the upgrade to 3.5.4. The navbar template is still in the same location.

TheAllusionist 04-23-2006 02:06 AM

Zachariah,
Great hack, I have used it for awhile along with the block of yours for my portal. I recently re-designed my forums and notice anymore that the forum home version of the block doesn't have the text above anymore, the arrows are there and the one block without an arrow shows search. Could you point me in the direction to figure out why the text is missing anymore?

http://www.3dallusions.com/forums/index.php?

Tiny little boxes or a bar pop up when an arrow is selected, so I guess I hosed the code somewhere, but this is plugin form these days (I believe originally it was a template modification) and I am just not certian where to look.

Thanks in advance!

Russell

Zachariah 04-23-2006 04:10 AM

Quote:

Originally Posted by TheAllusionist
Zachariah,
Great hack, I have used it for awhile along with the block of yours for my portal. I recently re-designed my forums and notice anymore that the forum home version of the block doesn't have the text above anymore, the arrows are there and the one block without an arrow shows search. Could you point me in the direction to figure out why the text is missing anymore?

http://www.3dallusions.com/forums/index.php?

Tiny little boxes or a bar pop up when an arrow is selected, so I guess I hosed the code somewhere, but this is plugin form these days (I believe originally it was a template modification) and I am just not certian where to look.

Thanks in advance!

Russell

Hello Sir.

forums/index.php
- Add: RED
Code:

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array('holiday','adv_gallery');


TheAllusionist 04-23-2006 04:28 AM

Brilliant! Worked like a charm, thank you! ;)

wii 04-23-2006 09:52 PM

Latest Beta works well - please check the 4 missing tags in the code, according to: http://validator.w3.org/

wii 04-24-2006 06:44 AM

Is there anyway to edit this hack so all images have the same heigth ?

wii 04-25-2006 04:43 AM

Btw, the hack conflicts with this one:

https://vborg.vbsupport.ru/showthread.php?t=111631

So, I had to remove the polls at forum home to view the images from this hack correctly.

blkatt 04-26-2006 05:20 PM

Running:
vBulletin 3.54
PhotoPost vBGallery v1.0.2

Getting thsi error:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/username/public_html/forum/index.php on line 31

Ideas?

Thanx.

blkatt 04-26-2006 05:42 PM

Quote:

Originally Posted by blkatt
Running:
vBulletin 3.54
PhotoPost vBGallery v1.0.2


Getting thsi error:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/username/public_html/forum/index.php on line 31

Ideas?

Thanx.

Got it, I left out a comma in my index.php file edit.
Works fine. Thanks Zach.

blkatt 04-26-2006 05:49 PM

Quote:

Originally Posted by blkatt
Got it, I left out a comma in my index.php file edit.
Works fine. Thanks Zach.


i meant to say I left out a quote (') sign in my index.php file edit.

blkatt 04-26-2006 06:07 PM

Is there a way to limit the number of columns of images .

When I display 6 images it displays 6 images (columns) on 1 row even though Gallery is set to break into another row after 3 images (columns).

I want to break into another row of images after 3 images are displayed.

Murty 05-11-2006 08:53 AM

Quote:

Originally Posted by AzianStang
*slaps himself*

OK now I feel stupid!

But I followed the rest of the steps, and for some reason, I'm now getting a forum database error... imported the product and made the two index.php changes, and now I'm getting a database error page.

FYI, I ran a query earlier today for another gallery mod: https://vborg.vbsupport.ru/showthread.php?t=92875

Would this have anything to do with this error?

I am having the exact same problem (after uninstalling vbi_gallery) any thoughts?

Zachariah 05-12-2006 05:01 PM

Added:
- functions_gallery_store.php

This method works for PHP4x , 5x. I have tested this and it works.

This will "globalize" the needed $phrasegroup and $specialtemplates with 1 file edit so no other file edits are needed on hacks that need the gallery's:

- $phrasegroups
- $specialtemplates

--------------------------------

* This will add all the needed file edits for gallery add-ons.
* This will work on ALL VB powered pages
* This will work on vBAdvanced CMPS pages
* This will work on vPortal pages and Blocks
* This only needs to be done once

- I will update any hack I create with this method. The file will be with every hack until a standard can be added to the main build.

http://www.photopost.com/forum/showthread.php?t=123315

wii 05-15-2006 08:41 PM

Latest version works fine, but could you please add the missing table tags in the code?

Error Line 762 column 9: end tag for "table" which is not finished.
</table>

Error Line 790 column 9: end tag for "table" which is not finished.
</table>

Error Line 818 column 9: end tag for "table" which is not finished.
</table>

Error Line 846 column 9: end tag for "table" which is not finished.
</table>

parabat 05-17-2006 12:42 AM

Hi Zachariah

When I add the line
> - Edit:
>forums/includes/init.php
>- Find:
>require_once(CWD . '/includes/class_core.php');
>- Below Add:
>require_once(CWD . '/includes/functions_gallery_store.php');"

I get the following error.
There seems to have been a problem with the Forums database.
Please try again by clicking the Refresh button in your web browser.

Email says:
Database error in vBulletin 3.5.4:

Invalid SQL:

SELECT
userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid,
language.phrasegroup_holiday AS phrasegroup_holiday,
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) INNER JOIN language AS language ON (language.languageid = IF(user.languageid = 0, 1, user.languageid))

Also, the include file is incorrect in your xml.
Code is:
//Latest Images In ForumHome BEGIN

require_once('./includes/functions_gallery.php');
require_once('./includes/class_bbcode.php');

Should be:
//Latest Images In ForumHome BEGIN

require_once('./includes/functions_gallery_store.php');
require_once('./includes/class_bbcode.php');

Any help would be great.

Zachariah 05-17-2006 12:38 PM

VB 3.5 - 3.5.4
forums/includes/init.php -- Not the XML file that came with the package.

Code:

#############################################################################
// fetch the core includes
require_once(CWD . '/includes/class_core.php');
require_once(CWD . '/includes/functions_gallery_store.php');

// initialize the data registry
$vbulletin =& new vB_Registry();

// parse the configuration ini file
$vbulletin->fetch_config();

Upload: forums/includes/functions_gallery_store.php

This works on my website.
This step is done so that there is no need to edit forums/index.php. This one edit will also stop the the need to edit any other VB powered pages to show gallery data on them.

In the past you had to do this to show data on FORUMHOME page.
Code:

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

---------------------------------------------------
a)

Find:

$phrasegroups = array('holiday');

Replace with:

$phrasegroups = array('holiday','adv_gallery');
---------------------------------------------------
b)


Find
 
 'mailqueue' 

---------------------------------------------------

Replace with:

 'mailqueue', 
 'gallery_c_cache', 
 'adv_gallery_opt', 
 'gallery_ugroups'

I found myself with 10 VB core php files with edits to show gallery data. This was a total pain when the forums did an upgrade or the portal system needed an upgrade and file edits were needed again. This way only 1 file edit is needed for site wide availability of data.

parabat 05-17-2006 01:16 PM

Quote:

Originally Posted by Zachariah
VB 3.5 - 3.5.4
forums/includes/init.php -- Not the XML file that came with the package.

Code:

Also, the include file is incorrect in your xml.
Code is:
//Latest Images In ForumHome BEGIN

require_once('./includes/functions_gallery.php');
require_once('./includes/class_bbcode.php');

Should be:
//Latest Images In ForumHome BEGIN

require_once('./includes/functions_gallery_store.php');  (the "_store" is missing from the xml file. Not sure wot line. Am I wrong in my assumption?)
require_once('./includes/class_bbcode.php');

If I don't make this change, there is an error saying the file function_gallery.php can't be found.

Once I've made this change in the xml file the error I get only occures once I add that include file in init.php.

parabat 05-18-2006 12:20 AM

Never mind, I sorted it out :banana:

H@K@N 05-19-2006 10:18 PM

Didn't find it on the whole Thread :

How can i display the Images in the Footer instead in the Header ?

thx

Zachariah 05-19-2006 11:05 PM

Quote:

Originally Posted by H@K@N
Didn't find it on the whole Thread :

How can i display the Images in the Footer instead in the Header ?

thx

Place where you want on forumhome w/ 1 template edit

You will want to edit the forumhome template and place the block where you want vs. use an anchor:

Edit plugin: Forumhome: Gallery Main

Replace:
Code:

$search_text = '$navbar';
$vbulletin->templatecache['FORUMHOME'] = str_replace($search_text,
$search_text.fetch_template('forumhome_vbgallery'),$vbulletin->templatecache['FORUMHOME']);

with

Code:

eval('$vbgallery = "' . fetch_template('forumhome_vbgallery') . '";');
Edit FORUMHOME: Place in location of choice.
Code:

$vbgallery

sensimilla 05-24-2006 08:46 AM

I did upgraded it today and the border is broken now.. Any ideas ? TIA

Sean James 05-26-2006 05:27 AM

Quote:

Originally Posted by wii
Latest version works fine, but could you please add the missing table tags in the code?

Error Line 762 column 9: end tag for "table" which is not finished.
</table>

Error Line 790 column 9: end tag for "table" which is not finished.
</table>

Error Line 818 column 9: end tag for "table" which is not finished.
</table>

Error Line 846 column 9: end tag for "table" which is not finished.
</table>

Is there a way we can modify this ourselves.

Zachariah 05-26-2006 12:03 PM

Griffin80 - I'll take a look and get back to ya
- setting up a new DEV install. :)

Sean James 05-26-2006 12:26 PM

thx Zach, whenever u can ;)

Zachariah 05-26-2006 01:28 PM

Adding option to have independent "gallery_columns" at the moment.
- by default the column is linked to the count in gallery settings.

:D

ConqSoft 05-30-2006 02:31 AM

If you have this display on every page, instead of just on forum home, it seems to interfere with the displaying of Poll results. Any ideas?

Zachariah 05-30-2006 11:56 AM

Quote:

Originally Posted by ConqSoft
If you have this display on every page, instead of just on forum home, it seems to interfere with the displaying of Poll results. Any ideas?

I have not had reports on that issue, but I'll do some testing and see whats up.

ConqSoft 05-30-2006 01:26 PM

Well, I know the hack was only designed for Forum Home, but I like having the thumbnails at the top of every page. It has to be a simple conflict of variables or something, but nothing is jumping out at me.

I changed the plugin to execute at global_start, and I have the output variable at the bottom of my navbar template.

Here's an example of a poll:
http://www.fireblades.org/forums/new...-you-wear.html

All the choices should be brand names, and as you can see, only numbers show up. The graphs, number of votes, and percentages are also wrong. If I disable the plugin, it looks correct.

Any ideas on what the conflict could be?

Zachariah 05-30-2006 01:31 PM

Not off hand, but i'll explore it should not be a big deal.

DJ XtAzY 06-11-2006 01:05 AM

for some reason i have this error

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

if i enabled this hack

jdingman 06-15-2006 02:56 AM

I'm getting some wicked SQL errors...

Quote:

Invalid SQL:

SELECT
userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid,
language.phrasegroup_holiday AS phrasegroup_holiday,
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 vb_user AS user
LEFT JOIN vb_userfield AS userfield ON (user.userid = userfield.userid)
LEFT JOIN vb_usertextfield AS usertextfield ON (usertextfield.userid = user.userid) INNER JOIN vb_language AS language ON (language.languageid = IF(user.languageid = 0, 1, user.languageid))

WHERE user.userid = 1;

MySQL Error : Unknown column 'language.phrasegroup_adv_gallery' in 'field list'
Error Number : 1054
Date : Wednesday, June 14th 2006 @ 08:52:20 PM
any ideas how to fix this? my board is inactive because this is broken =(

Edit: I was able to get my forum back online, but that problem still exists...


All times are GMT. The time now is 11:34 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.01895 seconds
  • Memory Usage 1,860KB
  • 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
  • (12)bbcode_code_printable
  • (14)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