Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

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
  #102  
Old 10-17-2005, 09:46 AM
mooj mooj is offline
 
Join Date: Jul 2005
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i tried to cedit (each) group permission and save it as it is, in order to change it from (Default Permissions ) to (Custom Permissions) .. ( and it works properly .. )

Nutzz,
try to do it from (Category Permissions > and change the yellow color to red ) ..

Reply With Quote
  #103  
Old 10-17-2005, 12:09 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@mooj and others.

The only thing that will stop the images from showing up on the forumhome is in ver. 1.5 of the hack.

1.5
- <If> usergroup can not see thunbnails FORUMHOME edit will not show up.

AdminCP => vBa Gallery => Usergroup Permissions => Modify Permissions =>

Can view thumbnails: [ ]yes [x]no
Reply With Quote
  #104  
Old 10-17-2005, 03:03 PM
Jason McConnell Jason McConnell is offline
 
Join Date: Jun 2004
Location: Syracuse NY
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachariah
Line 1082:
$images['description'] = $bbcode_parser->do_parse(stripslashes($images[' .........................

(there is more, but i killed the rest)



Set:
$showfields['description'] = 0;

There may be problems with the "description" part of the hack. Try that to see if it works.
Back when KW802 first released this hack, he had a problem with the word stripslashes... for some reason they were getting an extra space added in there somewhere.

I'm also glad to say it's working fine on this end Any plans on releasing this as a CMPS Module?
Reply With Quote
  #105  
Old 10-17-2005, 06:36 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 Jason McConnell
Back when KW802 first released this hack, he had a problem with the word stripslashes... for some reason they were getting an extra space added in there somewhere.

I'm also glad to say it's working fine on this end Any plans on releasing this as a CMPS Module?
Yes sir. on the Module - ill look on the error to see if KW got an fix on that error.
Reply With Quote
  #106  
Old 10-18-2005, 06:17 AM
jlaine jlaine is offline
 
Join Date: Nov 2001
Location: Morris, MN
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachariah
Line 1082:
$images['description'] = $bbcode_parser->do_parse(stripslashes($images[' .........................

(there is more, but i killed the rest)



Set:
$showfields['description'] = 0;

There may be problems with the "description" part of the hack. Try that to see if it works.
It doesn't (at least not for me - I'm having the same issue) - looking into the comment on the whitespace issue above though...
Reply With Quote
  #107  
Old 10-18-2005, 09:05 PM
MotoUp MotoUp is offline
 
Join Date: Jul 2004
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great, thanks.
Reply With Quote
  #108  
Old 10-18-2005, 11:45 PM
Michael-DLR Michael-DLR is offline
 
Join Date: Feb 2002
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Blackhat
I get this:

Fatal error: Call to a member function on a non-object in /home/usr/public_html/forums/includes/functions_gallery.php on line 1082
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
Reply With Quote
  #109  
Old 10-19-2005, 12:16 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
I found this @ Vbadvanced.com. My personal Gallery already has this edit, but it might help.

Quote:
Quote:
Fatal error: Call to a member function on a non-object in /path/to/forums/includes/functions_gallery.php on line 1082


... un-ticking the "Descriptions" on the Gallery Settings, Main Page display, allows the front page to load up fine. Thoughts?

If you'll look in your includes/functions_gallery.php file for this code:
PHP Code:
    global $vba_options$stylevar$vbulletin$vbphrase$show$adv_sorturl$catinfo$counter$cellwidth$categoryperms$showfields$categorycache$catopts
Replace with:
PHP Code:
    global $vba_options$stylevar$vbulletin$vbphrase$show$adv_sorturl$catinfo$counter$cellwidth$categoryperms$showfields$categorycache$catopts$bbcode_parser
Then find:
PHP Code:
        $images['description'] = parse_bbcode2(stripslashes($images['description']), $catopts["$images[catid]"]['allow_desc_html'], $catopts["$images[catid]"]['allow_desc_bbimgcode'], $catopts["$images[catid]"]['allow_desc_smilies'], $catopts["$images[catid]"]['allow_desc_bbcode']); 
Replace with:
PHP Code:
        $images['description'] = $bbcode_parser->do_parse(stripslashes($images['description']), $catopts["$images[catid]"]['allow_desc_html'], $catopts["$images[catid]"]['allow_desc_smilies'], $catopts["$images[catid]"]['allow_desc_bbcode'], $catopts["$images[catid]"]['allow_desc_bbimgcode']); 
And that should take care of the problem.
Reply With Quote
  #110  
Old 10-19-2005, 12:40 PM
Michael-DLR Michael-DLR is offline
 
Join Date: Feb 2002
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachariah
I found this @ Vbadvanced.com. My personal Gallery already has this edit, but it might help.




If you'll look in your includes/functions_gallery.php file for this code:
PHP Code:
    global $vba_options$stylevar$vbulletin$vbphrase$show$adv_sorturl$catinfo$counter$cellwidth$categoryperms$showfields$categorycache$catopts
Replace with:
PHP Code:
    global $vba_options$stylevar$vbulletin$vbphrase$show$adv_sorturl$catinfo$counter$cellwidth$categoryperms$showfields$categorycache$catopts$bbcode_parser
Then find:
PHP Code:
        $images['description'] = parse_bbcode2(stripslashes($images['description']), $catopts["$images[catid]"]['allow_desc_html'], $catopts["$images[catid]"]['allow_desc_bbimgcode'], $catopts["$images[catid]"]['allow_desc_smilies'], $catopts["$images[catid]"]['allow_desc_bbcode']); 
Replace with:
PHP Code:
        $images['description'] = $bbcode_parser->do_parse(stripslashes($images['description']), $catopts["$images[catid]"]['allow_desc_html'], $catopts["$images[catid]"]['allow_desc_smilies'], $catopts["$images[catid]"]['allow_desc_bbcode'], $catopts["$images[catid]"]['allow_desc_bbimgcode']); 
And that should take care of the problem.
Thank you so much for helping. My file already has these changes in it as well. I wonder what the problem could be?
Reply With Quote
  #111  
Old 10-21-2005, 04:02 AM
jlaine jlaine is offline
 
Join Date: Nov 2001
Location: Morris, MN
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There definitely was a whitespace error inside my functions_gallery - but it did not remedy the situation. Zachariah - can I send you my existing functions_gallery.php file so you can compare it to yours? (or the other way around, whichever...)

Perhaps you can do a live swap to see if there is another whitespace error somewhere inside that file that I didn't see - at least it could be ruled out that way anyway. Seems to have to do something with the actual parsing function itself - because I've found if the images it pulls up have no image descriptions at all - the page loads fine. Doesn't seem to effect it one way or the other if I disable or enable the display descriptions inside the mod you've made though.
Reply With Quote
Reply

Thread Tools

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:21 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.04956 seconds
  • Memory Usage 2,365KB
  • 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
  • (8)bbcode_php
  • (7)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
  • (1)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