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
  #112  
Old 10-21-2005, 07:22 AM
Acers's Avatar
Acers Acers is offline
 
Join Date: Feb 2005
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyway to make this work so that the images are shown only in a specific forumdisplay rather than the forumhome?
eg if i have a movie forum, then in that forumdisplay i want to show the images from the gallery (moovie subsection)
Reply With Quote
  #113  
Old 10-21-2005, 11:50 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 Acers
anyway to make this work so that the images are shown only in a specific forumdisplay rather than the forumhome?
eg if i have a movie forum, then in that forumdisplay i want to show the images from the gallery (moovie subsection)
The plugins will not be a problem to re-route. The only big thing @ the moment is the file(s) that need to be edited.

This hack edits forums/index.php. To show on a fourmdisplay there will have to be some edits to forumdisplay.php and/or showthread.php. Untill VB DEVS re-code $specialtemplates to allow a plugin.
Reply With Quote
  #114  
Old 10-21-2005, 12:16 PM
Acers's Avatar
Acers Acers is offline
 
Join Date: Feb 2005
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm ok ready to do file edits if that can be done.
can you give the code if its possible
Reply With Quote
  #115  
Old 10-21-2005, 02:35 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 Acers
hmm ok ready to do file edits if that can be done.
can you give the code if its possible
Try this out. ( I have not tested this yet)

1)
edit plugin: Forumhome: Gallery Main
change hook to: forumdisplay_complete

2)
edit forumdisplay.php
PHP Code:
Find:
 
'mailqueue'  

Replace with:

 
'mailqueue',  
 
'gallery_c_cache',  
 
'adv_gallery_opt',  
 
'gallery_ugroups' 
3)
Now add the following in your 'FORUMDISPLAY' template where you would like the images to appear change $forumid to forums you want.

Code:
<!-- start Gallery Images -->
<if condition="$forumid=1,2,3,4,5">
<if condition="$randomimagebits">
<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')">
        <img id="collapseimg_forumhome_gallery_random" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomtopic].gif" alt="" border="0"/>
     </a>
     <a href="$vba_options[gallery_url]">$vba_options[gallery_title]</a>
    </td>
</tr>
</thead>
<tbody id="collapseobj_forumhome_gallery_random" style="$vbcollapse[collapseobj_forumhome_gallery_random]">
<tr>$randomimagebits</tr>
</tbody>
</table><br /></if></if>
<!-- end Gallery Images -->
To show on every page of a thread vs. forum index
edit: showthread.php

HTML Code:
Find
'hidprofilecache'

Replace with:

 'hidprofilecache',  
 'gallery_c_cache',  
 'adv_gallery_opt',  
 'gallery_ugroups'
3)
Now add the following in your 'SHOWTHREAD' template where you would like the images to appear change $forumid to forums you want.

Code:
<!-- start Gallery Images -->
<if condition="$forumid=1,2,3,4,5">
<if condition="$randomimagebits">
<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')">
        <img id="collapseimg_forumhome_gallery_random" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomtopic].gif" alt="" border="0"/>
     </a>
     <a href="$vba_options[gallery_url]">$vba_options[gallery_title]</a>
    </td>
</tr>
</thead>
<tbody id="collapseobj_forumhome_gallery_random" style="$vbcollapse[collapseobj_forumhome_gallery_random]">
<tr>$randomimagebits</tr>
</tbody>
</table><br /></if></if>
<!-- end Gallery Images -->
Reply With Quote
  #116  
Old 10-21-2005, 08:15 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 Michael-DLR
I upgraded tonight and now I am in the same situation. Any time frame when we think we will have a fix?

Thank you,

Michael
Sir try this:


Plugin: Forumhome: Gallery Main

Find:
require_once('./includes/class_bbcode.php');

after add:
$show['category'] = true;
Reply With Quote
  #117  
Old 10-21-2005, 08:48 PM
Michael-DLR Michael-DLR is offline
 
Join Date: Feb 2002
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachariah
Sir try this:


Plugin: Forumhome: Gallery Main

Find:
require_once('./includes/class_bbcode.php');

after add:
$show['category'] = true;
Hi,

Thank you so much for looking into this for me. I have added the code as per your instructions and I get the same error.

Thank you,

Michael
Reply With Quote
  #118  
Old 10-21-2005, 10:48 PM
Michael-DLR Michael-DLR is offline
 
Join Date: Feb 2002
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I opted to use this http://www.vbadvanced.com/forum/showthread.php?t=10224

Until we can figure out why the call member function is not working correctly for me.

Thank you!

Michael
Reply With Quote
  #119  
Old 10-22-2005, 09:29 PM
cbr929rrerion cbr929rrerion is offline
 
Join Date: Oct 2005
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

where is this code located?
Reply With Quote
  #120  
Old 10-22-2005, 10:15 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 cbr929rrerion
where is this code located?
Please click " install " for updates

Old code: now looks like this.

USEAGE:

When you create the Module:
Title Row Colspan: image count (you choose a value)


Admincp => Plugin Manager => Hook Location : forumhome_complete => Forumhome: Gallery Main => EDIT



Code:
// 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 = 5; 

Added Extra Options
// If you DON'T want these fields to show then value = "0" (zerro)
    
$showfields['title'] = 0;
$showfields['description'] = 0;
$showfields['rating'] = 0;
$showfields['user'] = 0;
$showfields['dateline'] = 0;
$showfields['views'] = 0;
$showfields['dimensions'] = 0;
$showfields['filesize'] = 0;
$showfields['posts'] = 0;
$showfields['lastpost'] = 0;
$show['category'] = 0;
Reply With Quote
  #121  
Old 10-24-2005, 11:11 AM
lazytown lazytown is offline
 
Join Date: Feb 2004
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had some serious problems when I installed this. It worked at first, but then threw off my entire forum. I'd like to run it, so please let me know when there is an update or other people are running this stable.

-V
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 04:18 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.07028 seconds
  • Memory Usage 2,336KB
  • Queries Executed 25 (?)
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
  • (5)bbcode_code
  • (1)bbcode_html
  • (1)bbcode_php
  • (6)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_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