vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - vbuserbar for 3.6.x (https://vborg.vbsupport.ru/showthread.php?t=132629)

stonyarc 11-26-2006 10:00 PM

vbuserbar for 3.6.x
 
This modification contains a security vulnerability, you are hereby advised to uninstall until further notice.
- vBulletin.org Staff


vbuserbar by StonyArc
I'm proud to announce that the new version 1.1.0 for vbulletin 3.6.x is currently available to you all !!!

https://vborg.vbsupport.ru/

You can now nominate hacks yourself for hacks of the month. There is a link on the right of hacks on top of the files.

Function
A userbar is a small image (350*19) typically used in the signatures of forum users, to show their support for software, hardware, food, pretty much anything. The new application allows you to dynamically create userbars including several plugins to display text.

Don't forget to hit install !!!!!!!
Please read the guide before asking for support !!!!!!!

Special

- Read the attached PDF for more information. The pdf is also included in the zip file.
- Some directories must be chmod to 777 (list included in pdf)
- vbuserbar requires PHP and the GD2 image library.
- The mod_rewrite module must be loaded as well. This is most of time on by default. If you run your own Server you can load it yourself in the php.ini. If not, please contact your hosting provider to activate it.

Feel free to support this mod and make a paypal donation to admin@stonyarc.com

Detailed installation instructions are in the included pdf file.

https://vborg.vbsupport.ru/


Current Features

Userbars for Vbulletin is created by StonyArc. The application is inspired and partially driven by the Dynabars scripts by Kenneth Watson.

Userbars for Vbulletin takes full advantage of direct integration with Vbulletin and allows users to directly create usersbars (both single and rotating as animated gif).

By using plugins other integrations are possible. The plugin creation guide is available on request.

This has taken quite some work and still will take a lot more. Please give credit where credit is due. You cannot remove any notice without prior written permission.

Changes in this version

1.0.0
Initial version
1.1.0
Additional options added to limit max number of bars
Improved phrase support
Added a new plugin to display browser and OS information
IE javascript error
Top statistics option


Planned Features
- TBD



Demonstration
http://www.xboxusersgroup.com/forums/vbuserbar.php (registration required)
(screenshot in pdf)

Samples

Static

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/

Or combined dynamically:

https://vborg.vbsupport.ru/


Credits

This has taken quite some work and still will take a lot more. Please give credit where credit is due. You cannot remove any notice without prior written permission. Instructions are included in the pdf file
Special credits to Kenneth Watson for the initial Dynabar script.


FAQ

The FAQ is included in the pdf file.

https://vborg.vbsupport.ru/


Feel free to support this mod and make a paypal donation to admin@stonyarc.com

https://vborg.vbsupport.ru/external/2007/08/10.gif

(c) 2006 Stonyarc

stonyarc 11-27-2006 05:11 PM

Future Feature Reply

On popular demand some screenshots.

1.0.0
Initial version

1.1.0

Additional options added to limit max number of bars
Improved phrase support
Added a new plugin to display browser and OS information
IE javascript error
Top statistics option

Planned features for version 2
- Usergroup permissions
- ImageMagick support (to be checked if feasible)

hawgjaw 11-27-2006 05:37 PM

First person alright Thanks for hack!!

taxick 11-27-2006 05:38 PM

Hey..

Nice Hack...

But it will be better if you use are txt doc to you install info, s? i can copy / past the code :)

I get this is sql error

Database error in vBulletin 3.6.4:

Quote:

Invalid SQL:

CREATE TABLE forum_`vbuserbar` (
`id` INT( 10 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`userid` INT( 10 ) NOT NULL ,
`usergroupid` INT( 10 ) NOT NULL ,
`name` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`url` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`path` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`createdate` INT( 10 ) NOT NULL ,
`modifieddate` INT( 10 ) NOT NULL ,
`groupid` INT( 10 ) NOT NULL ,
INDEX ( `userid` , `usergroupid`, `name`)
) TYPE = MYISAM;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'vbuserbar` (
`id` INT( 10 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`userid` INT' at line 1
Error Number : 1064
Date : Monday, November 27th 2006 @ 08:35:58 PM
Script : ************/admincp/plugin.php?do=productimport
Referrer : ************/admincp/plugin.php?do=productadd
IP Address : ***********
Username : Taxick
Classname : vB_Database

sensimilla 11-27-2006 05:38 PM

Sounds great! I will give it a go while find some free time.

stonyarc 11-27-2006 05:45 PM

Quote:

Originally Posted by taxick (Post 1126541)
Hey..

Nice Hack...

But it will be better if you use are txt doc to you install info, s? i can copy / past the code :)

I get this is sql error

Database error in vBulletin 3.6.4:


small typo corrected. please download again !

As for the typing, it's a good exercise ;) ;)

Feel free to post some of the results you have created !!!!!!!!!!!!

imported_predatorkill 11-27-2006 06:03 PM

Stony did it again...Super Premium hacks every few days...The guy that never sleeps!I ll install now Fred!

taxick 11-27-2006 06:13 PM

Hey agian :)

I Love this hack, Very nice work..

I can?t get it to work, besurce my host not allow me to run "GD2 IMAGE" :confused:

I will install the hack when i get my own server :D

So i will uninstall this hack agian :tired:

And now i get this error:
Quote:

Database error in vBulletin 3.6.4:

Invalid SQL:
DROP TABLE forum_`vbuserbar`;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'vbuserbar`' at line 1
Error Number : 1064
Date : Monday, November 27th 2006 @ 09:08:42 PM
Script : http://************/admincp/plugin.php?do=productkill
Referrer : http://***********/admincp/plugin.ph...d=vbuserbar&s=
IP Address : 87.50.70.159
Username : Taxick
Classname : vB_Database

stonyarc 11-27-2006 06:24 PM

Quote:

Originally Posted by taxick (Post 1126574)
Hey agian :)

I Love this hack, Very nice work..

I can?t get it to work, besurce my host not allow me to run "GD2 IMAGE" :confused:

I will install the hack when i get my own server :D

So i will uninstall this hack agian :tired:

And now i get this error:


Taxick this sql error is corrected if you download the version currently online.

It was a small typo.

You can ask your provider to install GD2 it takes about 5 minutes to configure that for a provider.

Trana 11-27-2006 06:25 PM

A few problems.

The file structure is incorrect. There was no cache or bars folders. Also the files are not being saved with a name, just a number.

Looks good though.

stonyarc 11-27-2006 06:31 PM

Quote:

Originally Posted by Trana (Post 1126593)
A few problems.

The file structure is incorrect. There was no cache or bars folders. Also the files are not being saved with a name, just a number.

Looks good though.

Yea,

The zip ignores empty folders

I'll upload a correction in 2 minutes

taxick 11-27-2006 06:43 PM

Quote:

Originally Posted by stonyarc (Post 1126590)
Taxick this sql error is corrected if you download the

You can ask your provider to install GD2 it takes about 5 minutes to configure that for a provider.

Hey m8..

My host will not install the GD2 mod :( I HATE THEM!!!!!!!!!!! )

I will order my new server now :) So can i selv install the mod :)

God Work

stonyarc 11-27-2006 06:47 PM

Quote:

Originally Posted by taxick (Post 1126618)
Hey m8..

My host will not install the GD2 mod :( I HATE THEM!!!!!!!!!!! )

I will order my new server now :) So can i selv install the mod :)

God Work

Now that is nasty.

The new file includes the empty folders.

So if you haven't created them manually just download agian please.

Trana 11-27-2006 06:55 PM

The bars aren't being saved with their proper names, just numbers.

Also (and I'm guessing because of that) the preview does not show the bars.

COBRAws 11-27-2006 08:04 PM

this system connects to your site then? :S

projectego 11-27-2006 08:07 PM

Wow, I'll certainly check this out. Cheers!

stonyarc 11-27-2006 09:05 PM

Quote:

Originally Posted by COBRAws (Post 1126684)
this system connects to your site then? :S

No it's hosted on your site itself with a self maintaining cache.

stonyarc 11-27-2006 09:31 PM

If you experience issues with FireFox 2 and the colour selection (displayed at bottom of the page in stead of next to the anchor):

This minor issue is now solved. Just download the zip and install the product again with overwrite to yes.

Cheers

Trana 11-27-2006 09:38 PM

Any idea why files are being saved with numeric names and not descriptions?

goyo 11-27-2006 09:45 PM

Is it works with imagemagick ?
(I'm using IM because it produces nicer pictures compared to GD2)

stonyarc 11-27-2006 09:55 PM

Quote:

Originally Posted by Trana (Post 1126766)
Any idea why files are being saved with numeric names and not descriptions?

You need to

1. click update to confirm your options each time => this caches the data
2. click save when done preparing the images


The application will redirect you to the overview page. On there you get a list of the static images which contains the correct URL's of the application. If you want to restart and clear the images you can use the delete function on the overview pages or manually delete the files in the /bar and /cache and also empty both tables.

Those can then be combined in to a dynamic one.

Make sure you have all folders. The zip currently online also contains the empty folders.

Please don't forget to click install if you have installed this application.

stonyarc 11-27-2006 09:56 PM

Quote:

Originally Posted by goyo (Post 1126768)
Is it works with imagemagick ?
(I'm using IM because it produces nicer pictures compared to GD2)

At this point it doesn't work with IM.

that's maybe something I can build in V2: GD or IM. Good idea there.

AMG021 11-27-2006 10:00 PM

getting the following error

Quote:

Database error in vBulletin 3.6.4:

Invalid SQL:

CREATE TABLE `vbuserbar` (
`id` INT( 10 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`userid` INT( 10 ) NOT NULL ,
`usergroupid` INT( 10 ) NOT NULL ,
`name` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`url` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`path` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`createdate` INT( 10 ) NOT NULL ,
`modifieddate` INT( 10 ) NOT NULL ,
`groupid` INT( 10 ) NOT NULL ,
INDEX ( `userid` , `usergroupid`, `name`)
) TYPE = MYISAM;

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'COLLATE utf8_unicode_ci NOT NULL,
`url` VARCHAR( 255 ) CHARACT
Error Number : 1064
Date : Monday, November 27th 2006 @ 03:54:23 PM
Script : http://*********/admincp/plugin.php?do=productimport
Referrer : http://*********.com/admincp/plugin.php?do=productadd
IP Address :*********
Username : *********
Classname : vb_database

stonyarc 11-27-2006 10:02 PM

Quote:

Originally Posted by AMG021 (Post 1126776)
getting the following error

Does your Mysql server support utf8 ?

Are you running any special language?

If not

In principle you can remove the CHARACTER SET utf8 COLLATE utf8_unicode_ci string from each of the 6 points where it occurs in the install code of the product.

I uploaded some screenshots of the app in the first reply too.

Trana 11-27-2006 10:46 PM

Quote:

Originally Posted by stonyarc (Post 1126772)
The application will redirect you to the overview page. On there you get a list of the static images which contains the correct URL's of the application. If you want to restart and clear the images you can use the delete function on the overview pages or manually delete the files in the /bar and /cache and also empty both tables.

When I save the bars they only save as a filename with a number, not the proper filename. Also I am assuming there should be some sort of preview in the attached image. I don't see anything.

stonyarc 11-27-2006 11:31 PM

Quote:

Originally Posted by Trana (Post 1126794)
When I save the bars they only save as a filename with a number, not the proper filename. Also I am assuming there should be some sort of preview in the attached image. I don't see anything.

Are you sure you have modrewrite and GD2 enabled on your server and installed the latest version?

Trana 11-27-2006 11:38 PM

I have GD2 but I am using ISAPI URL Rewrite as this is a Windows 2003 server.

icare 11-28-2006 12:20 AM

Image doesnt show up

and when i tried a link to image it gave me following error.. am i missing something

Warning: imagecreatefrompng(images/content/default.png) [function.imagecreatefrompng]: failed to open stream: No such file or directory in /home/username/public_html/userbar/userbar.php on line 35

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/username/public_html/userbar/userbar.php on line 69

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/username/public_html/userbar/userbar.php on line 70

Warning: imagealphablending(): supplied argument is not a valid Image resource in /home/username/public_html/userbar/userbar.php on line 76

Warning: imagecopy(): supplied argument is not a valid Image resource in /home/username/public_html/userbar/userbar.php on line 84

Warning: imagecopy(): supplied argument is not a valid Image resource in /home/username/public_html/userbar/userbar.php on line 84

Warning: imagecopy(): supplied argument is not a valid Image resource in /home/username/public_html/userbar/userbar.php on line 84

Fatal error: Call to undefined function: imagettftext() in /home/username/public_html/userbar/userbar.php on line 89

Tyegurl 11-28-2006 02:55 AM

stonyarc....i have had a blond moment....

i uploaded the files but it over wrote my index.php...

so may i assume that i need to uplod the upload folder to my forum root? not the files to the forum root?

darkblade25 11-28-2006 03:34 AM

It would be nice to limit userbars per user, so users can not spam your server with images.

Anyone know how to do this?

Hornstar 11-28-2006 06:41 AM

Well done on this! This will add a really nice feature to the site for all members.

stonyarc 11-28-2006 06:50 AM

Quote:

Originally Posted by Tyegurl (Post 1126943)
stonyarc....i have had a blond moment....

i uploaded the files but it over wrote my index.php...

so may i assume that i need to uplod the upload folder to my forum root? not the files to the forum root?

Upload the content as it stands there to your forum root. This means that the vbuserbar.php must be in the root of your forum

stonyarc 11-28-2006 06:51 AM

Quote:

Originally Posted by darkblade25 (Post 1126959)
It would be nice to limit userbars per user, so users can not spam your server with images.

Anyone know how to do this?

Yea

That's in scope for V2. This is a teaser version (but works ok)

stonyarc 11-28-2006 06:53 AM

Quote:

Originally Posted by icare (Post 1126872)
Image doesnt show up


and when i tried a link to image it gave me following error.. am i missing something

Warning: imagecreatefrompng(images/content/default.png) [function.imagecreatefrompng]: failed to open stream: No such file or directory in /home/username/public_html/userbar/userbar.php on line 35

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/username/public_html/userbar/userbar.php on line 69

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/username/public_html/userbar/userbar.php on line 70

Warning: imagealphablending(): supplied argument is not a valid Image resource in /home/username/public_html/userbar/userbar.php on line 76

Warning: imagecopy(): supplied argument is not a valid Image resource in /home/username/public_html/userbar/userbar.php on line 84

Warning: imagecopy(): supplied argument is not a valid Image resource in /home/username/public_html/userbar/userbar.php on line 84

Warning: imagecopy(): supplied argument is not a valid Image resource in /home/username/public_html/userbar/userbar.php on line 84

Fatal error: Call to undefined function: imagettftext() in /home/username/public_html/userbar/userbar.php on line 89

Does your server have GD2 support? I think this may be the problem.

stonyarc 11-28-2006 09:58 AM

Quote:

Originally Posted by Trana (Post 1126842)
I have GD2 but I am using ISAPI URL Rewrite as this is a Windows 2003 server.


There is a .htaccess file in the userbar directory. Please make sure that the rewrite statements in there are covered by your ISAPI in that same directory and rename that file.

Also don't forget to click save when creating an image.


General:
Please don't forget to click install if you installed this application

Qwest 11-28-2006 12:04 PM

Quote:

Originally Posted by stonyarc (Post 1126777)
Does your Mysql server support utf8 ?

Are you running any special language?

If not

In principle you can remove the CHARACTER SET utf8 COLLATE utf8_unicode_ci string from each of the 6 points where it occurs in the install code of the product.

I uploaded some screenshots of the app in the first reply too.

Perhaps it would be smarter to make this product use the standard language used by vbulletin installs so you know it is talking the same language as the board it's being installed on?

stonyarc 11-28-2006 01:08 PM

Quote:

Originally Posted by Qwest (Post 1127208)
Perhaps it would be smarter to make this product use the standard language used by vbulletin installs so you know it is talking the same language as the board it's being installed on?

The zip now online uses the default. No more forced utf8

Rian 11-28-2006 03:19 PM

I have tried everything here, but the script does not work.

The image shows, but once saved it does not show. I have another similar script (not on vbulletin) which works fine.

stonyarc 11-28-2006 03:48 PM

Quote:

Originally Posted by Rian (Post 1127307)
I have tried everything here, but the script does not work.

The image shows, but once saved it does not show. I have another similar script (not on vbulletin) which works fine.


Do you have a link and test account?

stonyarc 11-28-2006 07:00 PM

All,

Version 1.1.0. is now online.

Changes
  • Additional options added to limit max number of bars
  • Improved phrase support
  • Added a new plugin to display browser and OS information
  • IE javascript error
  • Top statistics option

Please download this version.

To upgrade upload the files and install the product again with overwrite to yes.

Install and upgrade instructions are in the manual.

Cheers


All times are GMT. The time now is 06:07 PM.

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.01408 seconds
  • Memory Usage 1,864KB
  • 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
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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