Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
PhotoPost vBGallery - Forum Home Details »»
PhotoPost vBGallery - Forum Home
Version: 1.7 Beta, by Zachariah Zachariah is offline
Developer Last Online: Jan 2020 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 09-12-2005 Last Update: 08-12-2006 Installs: 219
Uses Plugins Template Edits
Code Changes Is in Beta Stage  
No support by the author.

Ok it's Beta time !!!!!
Please only install to beta test. Even thow I have it running there may be problems still in the works. (there were many countless errors in the past)

- Feedback Please :squareeyed:

/* -----------------12/13/2005 6:41pm -----------------
Add Gallery Images to your Forum Index v1.7 (vB 3.5)

Tested on:
  • vBulletin 3.5 - 3.5.3
  • PhotoPost vBGallery v1.0.1 - 1.0.2

Demo:
- http://www.gzhq.net/forums/index.php

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

Overview:
  • Import Product XML
  • 1 file edit in 2 places
  • 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)
- 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.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.)

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

Whats Going On


Please click " install " for updates

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #262  
Old 01-06-2006, 01:52 AM
loonytune15's Avatar
loonytune15 loonytune15 is offline
 
Join Date: Mar 2003
Location: Loony Bin
Posts: 357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool worked great thanks. and installed
Reply With Quote
  #263  
Old 01-09-2006, 02:31 AM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Snitz
i've done it and it's below the forums
but how can I put it inside the "what's going on"
I'd really like that!
Should be an opton in the next update:

Edit plugin: Forumhome: Gallery Cache Templates


From:
Code:
if (THIS_SCRIPT == 'index'){
	$globaltemplates  = array_merge($globaltemplates, array('adv_gallery_imagebit','forumhome_vbgallery','forumhome_vbgallery_newestbits','forumhome_vbgallery_nav',));
}
To:
Code:
if (THIS_SCRIPT == 'index'){
	$globaltemplates  = array_merge($globaltemplates, array('adv_gallery_imagebit','forumhome_vbgallery','forumhome_vbgallery_newestbits','forumhome_vbgallery_nav','forumhome_vbgallery_who',));
}
Edit plugin: Forumhome: Gallery Main

Change:
Code:
$search_text = '$navbar';
$vbulletin->templatecache['FORUMHOME'] = str_replace($search_text,
$search_text.fetch_template('forumhome_vbgallery'),$vbulletin->templatecache['FORUMHOME']);
To:
Code:
$search_text = '<!-- end logged-in users -->';
$vbulletin->templatecache['FORUMHOME'] = str_replace($search_text,
$search_text.fetch_template('forumhome_vbgallery_who'),$vbulletin->templatecache['FORUMHOME']);
Make template: forumhome_vbgallery_who
Code:
<if condition="$gal_imagebits">
<tbody>
<tr>
<td class="thead" width="100%" colspan="6">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_gal')"><img id="collapseimg_forumhome_gal" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_gal].gif" alt="" border="0" /></a>
<div class="smallfont"><b><a href="$vba_options[gallery_url]">$vba_options[gallery_title]</a></b></div>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_gal" style="$vbcollapse[collapseobj_forumhome_gal]">
<tr> 
<td rowspan="3" class="alt2" align="center"><img src="$stylevar[imgdir_misc]/gallery.gif" alt="" /></td>
<td valign="top" align="left" class="alt1"> 
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" width="100%">
<if condition="$vboptions[vbgnavbar] == '1'">
<td class="alt2" style="padding-top: 0; padding-bottom: 0" colspan="$vboptions[vbglimit]">$gallerynav</td>
</if>
<tr>$gal_imagebits</tr>
</table>
</td>
</tr>
</tbody>
</if>
Upload image: $stylevar[imgdir_misc]/gallery.gif
- images/misc folder of each style
Reply With Quote
  #264  
Old 01-11-2006, 10:32 AM
soulface's Avatar
soulface soulface is offline
 
Join Date: Sep 2005
Location: Dhaka, BD
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't know why.. but its not working on my forum (vb3.5.3 with photopost vbgallery 1.0.1). there is old hack for vBa Gallery which is still working even i updated to photopost vbgallery, but this hack not working :/
Reply With Quote
  #265  
Old 01-11-2006, 12:59 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by soulface
Don't know why.. but its not working on my forum (vb3.5.3 with photopost vbgallery 1.0.1). there is old hack for vBa Gallery which is still working even i updated to photopost vbgallery, but this hack not working :/
For now Try:

Hook Location : forumhome_complete
- Edit: Forumhome: Gallery Main

- Remove.

Code:
	if ($privatecatids = fetch_private_categories())
	{
		$privatecatids = explode(',', $privatecatids);
	}

	if ($vba_options['gallery_homeexcats'])
        {
            $vba_options['gallery_homeexcats'] = explode(',', $vba_options['gallery_homeexcats']);
            if(empty($privatecatids))
            {
                $privatecatids = $vba_options['gallery_homeexcats'];
            }
            else
            {
                $privatecatids = array_merge($privatecatids, $vba_options['gallery_homeexcats']);
            }
        }

	if (!empty($privatecatids))
	{
		$privcatids = 'images.catid NOT IN(' . implode(',', $privatecatids) . ') AND ';
	}
Reply With Quote
  #266  
Old 01-12-2006, 12:10 PM
boske boske is offline
 
Join Date: Jul 2005
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some reason guest's still cannot view the gallery.

I have followed all of the instructions on setting permission, I have set them thousands of times, I have even set the guests to have admin permission, but it still won't show up.

Anyone know what I'm doing wrong? (attached)
Reply With Quote
  #267  
Old 01-12-2006, 01:16 PM
soulface's Avatar
soulface soulface is offline
 
Join Date: Sep 2005
Location: Dhaka, BD
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachariah
For now Try:

Hook Location : forumhome_complete
- Edit: Forumhome: Gallery Main

- Remove.

Code:
	if ($privatecatids = fetch_private_categories())
	{
		$privatecatids = explode(',', $privatecatids);
	}

	if ($vba_options['gallery_homeexcats'])
        {
            $vba_options['gallery_homeexcats'] = explode(',', $vba_options['gallery_homeexcats']);
            if(empty($privatecatids))
            {
                $privatecatids = $vba_options['gallery_homeexcats'];
            }
            else
            {
                $privatecatids = array_merge($privatecatids, $vba_options['gallery_homeexcats']);
            }
        }

	if (!empty($privatecatids))
	{
		$privcatids = 'images.catid NOT IN(' . implode(',', $privatecatids) . ') AND ';
	}
In Hook Location : forumhome_complete
- Edit: Forumhome: Gallery Main, i've found bellow code, not those above. but i removed bellow codes, still same. not working :S

Code:
if ($privatecatids = fetch_private_categories())
	{
		$privatecatids = explode(',', $privatecatids);
	}

	if ($vba_options['gallery_homeexcats'])
	{
		$vba_options['gallery_homeexcats'] = explode(',', $vba_options['gallery_homeexcats']);
		$privatecatids = iif(empty($privatecatids), $vba_options['gallery_homeexcats'], array_merge($privatecatids, $vba_options['gallery_homeexcats']));
	}

	if (!empty($privatecatids))
	{
		$privcatids = 'images.catid NOT IN(' . implode(',', $privatecatids) . ') AND ';
	}
Reply With Quote
  #268  
Old 01-13-2006, 02:44 AM
boske boske is offline
 
Join Date: Jul 2005
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^^^ that does it
Reply With Quote
  #269  
Old 01-13-2006, 09:50 AM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GrendelKhan{TSU
any word on these bugs?
when I choose "Newest" for image order in admincp:
.... it doesn't work for registered users (doesn't show newest...just some old ones). It only shows newest images when logged in as admin.
Reply With Quote
  #270  
Old 01-14-2006, 05:57 AM
lazytown lazytown is offline
 
Join Date: Feb 2004
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone who has this installed -- do you get a huge error on your forum home if you set it to show the top rated images? The only options that appears to work properly for all users is random.

-vissa
Reply With Quote
  #271  
Old 01-14-2006, 08:06 AM
Masiello's Avatar
Masiello Masiello is offline
 
Join Date: Jul 2005
Location: Italy
Posts: 426
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, I'm using vba and vbulletin, this is my structure:

http://www.lottosqueeze.org (vba index)
http://www.lottosqueeze.org/forum (forum home)

The version of my board is vb 3.5.3

I have follow this steps:

HTML Code:
*** How to Install:
======================

In your Admin Control Panel

1)
Admincp => Plugin System => Manage Products
Click [Add/Import Product]
Browse for the file "product-gallery_home.xml"
Allow Overwrite: On
Import



2)
// *Note: If you are doing an upgrade skip step "b" 
//        - it should already be done.


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'
3)
Admincp => vBulletin Options => vBGallery - Forumhome
Change setting
Save

And all is done, If i try to open my forum home, I showing this page because dont work db comunication:

http://www.lottosqueeze.org/garbage/snap.gif

Why that? I like that Hack but how I fix this issue to works fine?

Thanks in advance and Thanks for sharing this hack.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:50 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05427 seconds
  • Memory Usage 2,333KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_code
  • (1)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete