Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-31-2011, 12:28 PM
fxwoody's Avatar
fxwoody fxwoody is offline
 
Join Date: Jun 2010
Location: On Earth
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Need help with forumid array

Ok, totally stuck here!
I'm trying to get those darn thumbnail to work in specified forums with the option "required"
As far as it goes, it works fine in every specified forumid's from the list and the thumb is showing fine, tho, when i go into a forum that is not in that array list, the thread doesn't get posted because it's being automatically block for missing the "thumbnail" input!
It's not in that main list of forumids that thumbnails should be shown in !!!

Any ideas why the (in_array......) is not excluding these forums?

Here's the code from the mod for "New Thread - Show Text Box?" and it's use the Hook location "newthread_start"

Code:
else if ($vbulletin->options['thread_thumbnails_forum_list'] AND $vbulletin->options['thread_thumbnails_forum_list'] != "") {
                    $forumsallowed = explode(",", $vbulletin->options['thread_thumbnails_forum_list']);
                    if (in_array($foruminfo['forumid'], $forumsallowed))
                    {
                        if($vbulletin->options['thread_thumbnails_thumbnail_source'] == '0')
                        {
                            $show['thumbnailurl']= true;
                        }
I have tried replacing the $foruminfo with $GLOBAL.....same results
Badly need your inputs with this guys! I'm trying to fix some options from "Product Thread thumbnails" from Null that lots of members wants but with no good results with this option

Tks
Reply With Quote
  #2  
Old 05-31-2011, 02:07 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The in_array part looks right. I think maybe the problem is with the newpost_process code. It seems to check for required thumbnails but doesn't check the list of forums.
Reply With Quote
  #3  
Old 06-01-2011, 09:13 AM
fxwoody's Avatar
fxwoody fxwoody is offline
 
Join Date: Jun 2010
Location: On Earth
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess this is a lost cause
I'm really trying to find out the troubles of this mod but freaking stuck! Is there a global reference chart for the new vb4's variable etc etc??

I know i'ved seen a few changes that were made in V4 for some strings or so like this one i thing should be modified to accommodate the new version

Code:
if($dothumbnail)

should be replace by:

if ($_REQUEST['do'] == 'not sure what to write in here')
etc etc etc

There's a few options that i would like to add to this mod, like, in the posbit_quickreply, adding the edit box to change the thumbs but when i add the code for it in the template, it doesn't show anything as it doesn't seem to hook to the plugin's function.

Anyway, a lot could be done but i'm a freaking newb with this part

I'm not a coder but trying to understand how it should work.
If anyone could give me a hand i would appreciate a lot

Cheers
Reply With Quote
  #4  
Old 06-01-2011, 02:14 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When you created the option "thread_thumbnails_forum_list", what datatype is it (it shoudl be free, I believe)?
Reply With Quote
  #5  
Old 06-01-2011, 08:45 PM
fxwoody's Avatar
fxwoody fxwoody is offline
 
Join Date: Jun 2010
Location: On Earth
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes it is Lynne. either yes or no.

What do you have in mind?
Do you think it could be related to this? As far as the rest goes, it works on every selected forum to show the thumbs, only when i go into a none selected one that it still ask for an image .

sad because NullP is not going to update this plugin and it's a good one

tks for helping out
Reply With Quote
  #6  
Old 06-02-2011, 12:33 AM
nitra1000's Avatar
nitra1000 nitra1000 is offline
 
Join Date: Dec 2009
Location: uk
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try hardcoding the array see if it works then? Should narrow down the problem
Reply With Quote
  #7  
Old 06-03-2011, 06:51 AM
fxwoody's Avatar
fxwoody fxwoody is offline
 
Join Date: Jun 2010
Location: On Earth
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nitra1000 View Post
Try hardcoding the array see if it works then? Should narrow down the problem
Nitra, could you give me more info about this :erm:

Not the top of my class to code

tks
Reply With Quote
  #8  
Old 06-04-2011, 12:47 PM
fxwoody's Avatar
fxwoody fxwoody is offline
 
Join Date: Jun 2010
Location: On Earth
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok never mind guys! tks for some help here, i found the problems

Thread close
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 05:53 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.04387 seconds
  • Memory Usage 2,235KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete