vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - VB image Hosting (https://vborg.vbsupport.ru/showthread.php?t=123481)

turbo.:R 10-09-2007 01:49 AM

great hack too

bpool_lee 10-10-2007 01:52 PM

Thank you so much, this is perfect for what i need.

blind-eddie 10-10-2007 03:20 PM

Anyone know how to set this up so only select user groups see & use this. I know I can set it to user groups not being able to use it, but I don't want registered guest or unregistered guest to view it either. Thanks to whom ever get me the info.....

deezelpope 10-10-2007 03:28 PM

Put this line of code in before the line of code that links this on your navbar:

HTML Code:

<if condition="$show['member']">
And don't forget the </if> after!:)

tinycg 10-10-2007 07:20 PM

Does anybody know how I could go about adding a checkbox to the main file upload page, I've tried a number of times pulling the status of the checkbox through $vbulletin->GPC but it never seems to get it so when I run an if statement it doesnt work and passes to the else.

When I put a value in the checkbox and check for the value it seems to always report having that value whether checked or not.. forgive me if I'm wrong but an unchecked box shouldnt carry the value.

I'm trying to setup a way for people to select if they want the image public or private on that page on a per image basis, if checked, its private.. if not its public.

afullcup 10-12-2007 11:39 AM

Quote:

Originally Posted by blind-eddie (Post 1356945)
Anyone know how to set this up so only select user groups see & use this. I know I can set it to user groups not being able to use it, but I don't want registered guest or unregistered guest to view it either. Thanks to whom ever get me the info.....

here's what I did - I edited vbimghost.php.

Find:
PHP Code:

// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ######################################################################## 

Obviously, you could change this to whatever conditional you want.

hth

And put this directly after it:
PHP Code:

if ($vbulletin->userinfo['userid'] == 0)
{
      
print_no_permission();



blind-eddie 10-12-2007 01:35 PM

Quote:

Originally Posted by deezelpope (Post 1356950)
Put this line of code in before the line of code that links this on your navbar:

HTML Code:

<if condition="$show['member']">
And don't forget the </if> after!:)

This was allready there, I remember adding this ages ago.....



Quote:

Originally Posted by afullcup (Post 1358192)
here's what I did - I edited vbimghost.php.

Find:
PHP Code:

// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ######################################################################## 

Obviously, you could change this to whatever conditional you want.

hth

And put this directly after it:
PHP Code:

if ($vbulletin->userinfo['userid'] == 0)
{
      
print_no_permission();



Wouldnt work....got an error message....


I am confused....

MiahBeSmokin420 10-14-2007 05:26 AM

some help possiably?

everything is sup up correctly as far as i know and i install mods 24-7

but this is what im getting


Code:

Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib error in /includes/vbimghost_include.php on line 204

Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns error condition in /includes/vbimghost_include.php on line 204

Warning: imagecreatefrompng() [function.imagecreatefrompng]: gd-png: fatal libpng error: Read Error: truncated data in /includes/vbimghost_include.php on line 64

Warning: imagecreatefrompng() [function.imagecreatefrompng]: gd-png error: setjmp returns error condition in /includes/vbimghost_include.php on line 64

Warning: imagecreatefrompng() [function.imagecreatefrompng]: 'imagehosting/14711adf558c9c.png' is not a valid PNG file in /includes/vbimghost_include.php on line 64

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 67

Warning: imagedestroy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 86


theFAILURE 10-15-2007 02:48 AM

Quote:

Originally Posted by theFAILURE (Post 1292161)
The vbimage host list page is quite dull, I would love to know what code I would have to insert to make the member avatar show up besides their name!!

I fired up photoshop to give an example of what I mean:

https://vborg.vbsupport.ru/external/2007/10/27.jpg

Well I took some time tonight and figured it out, take a peek:

http://thescambaiter.com/forum/vbimg...hp?do=userlist

I set the Avatars at 50 pixels of the original size. Just change the 50 value in the code to your desire.

To do this find the vbimghost_usersbit template and exchange all the code with this:

Code:


<tr>
<td class="alt1" valign="center"><img src="image.php?u=$vbimghost[userid]" border="0" width="50" height="50">  <a href="vbimghost.php?do=viewimages&id=$vbimghost[userid]"><b>$vbimghost[username]</b></a></td>
<td class="alt2" align="center" valign="center"><b>
$vbimghost[imgcount]</b></td></tr>


yahoooh 10-18-2007 05:01 PM

on internet explorer 7
when i use quick upload it does not insert the image in post box


All times are GMT. The time now is 12:53 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.02292 seconds
  • Memory Usage 1,757KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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