vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   New Posting Features - [tk] Egg Avatar (https://vborg.vbsupport.ru/showthread.php?t=208324)

Saviour 04-03-2009 09:48 PM

Personally...I think you need to keep this mod simple. What's good for one, may not be good for another.

The more you add to this...the more can go wrong with it. Just an opinion...and I'm entitled...;)

wcguy 04-04-2009 02:10 AM

Installed correctly, figured out how to add additional eggs, gee that was difficult, but sitll cannot get it to show any avatars, just a broken link gif.

Here's the link properties if that helps debug the issue

Fatal error: Call to undefined function imagecreatefromgif() in /home/dictator/public_html/eggavatar.php on line 264


PHP Code:

http://theamericandictator.com/eggavatar.php?do=showeggs&u=2&pid=25&old=images/avatars/generic/caeser.gif&t=1238814275 


hambil 04-04-2009 02:23 AM

Quote:

Originally Posted by wcguy (Post 1783445)
Installed correctly, figured out how to add additional eggs, gee that was difficult, but sitll cannot get it to show any avatars, just a broken link gif.

Here's the link properties if that helps debug the issue

Fatal error: Call to undefined function imagecreatefromgif() in /home/dictator/public_html/eggavatar.php on line 264


PHP Code:

http://theamericandictator.com/eggavatar.php?do=showeggs&u=2&pid=25&old=images/avatars/generic/caeser.gif&t=1238814275 


You php doesn't have GD support for some reason. Contact your host.

That's a pretty old version of php you must be using because GD is built in now. I'm surprised you aren't having other problems.

Quote:

Since PHP 4.3 there is a bundled version of the GD lib. This bundled version has some additional features like alpha blending, and should be used in preference to the external library since its codebase is better maintained and more stable.
link

wcguy 04-04-2009 02:29 AM

Ahhh,

Since I do have the latest version of everything, maybe you aren't checking if users are using imagemagik 6 instead of GD? Which is what I am using?

hambil 04-04-2009 02:30 AM

Quote:

Originally Posted by wcguy (Post 1783451)
Ahhh,

Since I do have the latest version of everything, maybe you aren't checking if users are using imagemagik 6 instead of GD?

Could be but I didn't think that mattered (the vbulletin setting, that is), since the GD support is built in. Unless you are removing the GD support and replacing it with ImageMagik?

wcguy 04-04-2009 02:31 AM

It's an either or setting in the ACP under image settings....

hambil 04-04-2009 02:31 AM

I'll double check it, but I don't think that changes anything php wise.

Edit: I just changed it on my board and it had no effect on Egg Avatar.

wcguy 04-04-2009 02:35 AM

I changed it too, and no joy. I do have vboptimize installed, is that causing issues?

hambil 04-04-2009 02:38 AM

No. It runs fine with vb Optimise. If fact, version 2.5 (the next release) actually has support for vB Optimise to reduce the number of queries and speed things up.

Run a phpinfo and make sure you see something like this:
http://img6.imageshack.us/img6/7963/gdsupport.jpg

wcguy 04-04-2009 04:43 AM

I've confirmed php version 5.2.5,

I've confirmed that I definetily do not have GD installed, and do have imagemagik installed

Version return code is 1

Version: ImageMagick 6.4.8-9 2009-01-29 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC


since vbulletin support documentation implies that imagemagik is the preferred image handler, can you support it?

hambil 04-04-2009 04:51 AM

Quote:

Originally Posted by wcguy (Post 1783510)
I've confirmed php version 5.2.5,

I've confirmed that I definetily do not have GD installed, and do have imagemagik installed

Version return code is 1

Version: ImageMagick 6.4.8-9 2009-01-29 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC


since vbulletin support documentation implies that imagemagik is the preferred image handler, can you support it?

Yes, I will add support for ImageMagick in the 2.5 release.

wcguy 04-04-2009 04:55 AM

Thanks!

down.low 04-04-2009 09:00 AM

https://vborg.vbsupport.ru/

I'm having this problem as well, have you found out what might be causing this- I sure cant.

hambil 04-04-2009 09:02 AM

Quote:

Originally Posted by down.low (Post 1783574)
I'm having this problem as well, have you found out what might be causing this- I sure cant.

I'd be glad to take as look if either of you want to PM me some login details.

Loony1973 04-04-2009 03:50 PM

Quote:

Originally Posted by down.low (Post 1775186)
I have the registered users set up as follows:
http://i472.photobucket.com/albums/r...n/tkeggreg.jpg
|
__________________|__________________
I have mods/admins group set up as follows:
http://i472.photobucket.com/albums/r...n/tkeggmod.jpg

The problem I'm having:

Registered users can not see/ or clean an egged avatar.

If a mod eggs a mod, both mods can see it- not registered users.

If a mod eggs a user- a different mod can see the egging- not registered users.

I love the mod but I only want VIP's to use it, and Registered users "only view" the eggings until they become VIP,.....


Was this intentionally made this way, or was it just a mishap? Any way to make it so the reg users "can" view, "can" cleanothers, & "not" egg, ?? Setting it up like this makes registered users not see anything at all.....

Apologies if this has already been answered, I have a similar setup with usergroups and wanted the same feature....here's how I worked around it:

Replace the plug-in code as instructed here:

https://vborg.vbsupport.ru/showpost....&postcount=263

Set your usergroups that you wish to see the eggs to have permission to both throw eggs and view egged avatars.

In your postbit/postbit legacy template, wrap a conditional statement around the $eggavatar_button. Mine is as follows:

Quote:

<if condition="is_member_of($bbuserinfo, 5, 6, 25)">

$eggavatar_button
</if>
So, although other usergroups can theoretically throw eggs, unless their usergroup is listed in the conditional above, the button to do so doesn't appear in their postbit.

This is a quick fix, and the author may incorporate this into their next update of what I believe is mod of the year, never mind the month .

Hope this helps anyone with the same problem.

gonabs 04-04-2009 04:41 PM

Hello TK and gratx for this amazing mod :D
By the way, The down.low's problem is happening to me too and I know when happend.

When I activate using credits all items run off the table. If I turn egg credits option off, items come back inside table.

What can I do?
Thanks in advance!

hambil 04-04-2009 05:23 PM

Quote:

Originally Posted by gonabs (Post 1783783)
Hello TK and gratx for this amazing mod :D
By the way, The down.low's problem is happening to me too and I know when happend.

When I activate using credits all items run off the table. If I turn egg credits option off, items come back inside table.

What can I do?
Thanks in advance!

Awesome! A clue! I run with credits, and don't have this problem, but it DOES give me some ideas as what to look at/for. Access to your board would be VERY helpful. If you are willing PM me some admin login details.

hambil 04-04-2009 09:43 PM

Quote:

Originally Posted by Loony1973 (Post 1783750)
Apologies if this has already been answered, I have a similar setup with usergroups and wanted the same feature....here's how I worked around it:

Replace the plug-in code as instructed here:

https://vborg.vbsupport.ru/showpost....&postcount=263

Set your usergroups that you wish to see the eggs to have permission to both throw eggs and view egged avatars.

In your postbit/postbit legacy template, wrap a conditional statement around the $eggavatar_button. Mine is as follows:



So, although other usergroups can theoretically throw eggs, unless their usergroup is listed in the conditional above, the button to do so doesn't appear in their postbit.

This is a quick fix, and the author may incorporate this into their next update of what I believe is mod of the year, never mind the month .

Hope this helps anyone with the same problem.

You're making my head spin :p

What I will say is the permissions are pretty self explanatory and should work as defined. I will be double and triple checking that they do in the upcoming 2.5 release.

If you want a permissions setup that simply does not exist in the current release, please explain it like I'm an idiot, because I'm confused.

CFodder 04-05-2009 01:07 AM

Great mod thanks Hambil :D.

Sooner95 04-05-2009 02:03 AM

holy crap this is hilarious.. Nice work! Install clicked.

Loony1973 04-05-2009 08:05 AM

Quote:

Originally Posted by hambil (Post 1783979)
You're making my head spin :p

What I will say is the permissions are pretty self explanatory and should work as defined. I will be double and triple checking that they do in the upcoming 2.5 release.

If you want a permissions setup that simply does not exist in the current release, please explain it like I'm an idiot, because I'm confused.


Sorry ! I'll start again :)

On my forum we have a Premium Members usergroup, and a Regular Members usergroup. I (and someone previously in this thread) wanted the permissons set so that Premium Members can throw eggs, and Regular Members can see the eggs but not throw them.

Changing the permissions in the admin cp didn't enable this. Although the permissions were set for Regular Members to view eggs, they couldn't see them unless the permissions were also set for them to throw eggs.

So, I followed your instructions earlier in the thread to change the plug-in code and use the phrase $eggavatar_button in the postbit template. I then wrapped a conditional around this code so that the button was only visible if you were a member of Premium Members.

So, although Regular Members have the permissions to throw eggs, they can't actually see the button to do so. This was the only way I could get it working so that Regular Members can see but not throw eggs.

Hope this makes sense!

hambil 04-05-2009 10:42 AM

Ah. The permissions are broken then. I appreciate you helping out :) I will try to make sure permissions work as advertised in 2.5 :)

murdoc 04-05-2009 02:05 PM

hey there hambil

i just would like to ask i get this error

Code:

Could not find phrase 'eggavatar_invalid_path'.
and i have installed it just like you said, i use Vbadvance

hambil 04-05-2009 03:06 PM

Hmmm. First, make sure the path to your eggs in egg avatar options is valid. As to why the phrase is missing, that's a mystery to me, but I'll look into it.

mekanbursa 04-05-2009 03:08 PM

tşk dosttum

hambil 04-05-2009 03:23 PM

Quote:

Originally Posted by mekanbursa (Post 1784317)
tşk dosttum

Can someone translate that?

Saviour 04-05-2009 03:36 PM

Quote:

Originally Posted by hambil (Post 1784332)
Can someone translate that?

Sure...

It means "I have nothing better to do than troll threads".:D

tecnozul 04-05-2009 04:39 PM

Nice already I could install it without problems, but I have some questions.

Is itpossible as Admin or moderator sees who a gif gives to another user?

And is it( possible, allows him only some groups the one who him to wire drawing?

hambil 04-05-2009 05:02 PM

Quote:

Originally Posted by tecnozul (Post 1784391)
Nice already I could install it without problems, but I have some questions.

Is itpossible as Admin or moderator sees who a gif gives to another user?

And is it( possible, allows him only some groups the one who him to wire drawing?

Let me make sure I understand:
You want admins and/or mods to be able to see a list of who egged who? Not a bad idea, I'll add it to the list.

I don't understand the second sentence. Wire drawing?

hambil 04-05-2009 11:28 PM

I decided to make a 2.3 release before 2.5, because there are some big internal changes. Both support for ImageMagick and vB Optimise required considerable code re-writing. There were also some bugs that needed fixing that had been out there too long.

Forget to mention in update message: I also changed the fade time so the eggs won't fade if the user hasn't logged in to see them yet.

Enjoy :)

nascartr 04-05-2009 11:38 PM

Where are the stats supposed to show up? I checked the 'Whats Going On' box and nothing has changed after I enabled the stats. Everything else seems to work though!

nascartr 04-05-2009 11:40 PM

Nevermind, forgot to check permissions! Sorry.

nascartr 04-05-2009 11:41 PM

I don't suppose we could have a seperate page for this? Maybe have it linked from the 'Quick links'? It'd help us who have tons of forums and an already long page to scroll.

Saviour 04-05-2009 11:46 PM

A separate page would've been better for this new feature...instead of including it in the What's Going On stats...

Saviour 04-05-2009 11:52 PM

On the same note...maybe talk to Cyb and see if he can't implement this into his stats mod.

hambil 04-05-2009 11:54 PM

Quote:

Originally Posted by nascartr (Post 1784685)
I don't suppose we could have a seperate page for this? Maybe have it linked from the 'Quick links'? It'd help us who have tons of forums and an already long page to scroll.

Remove some of the stuff that is less important then Egg Avatar. :p

DobieGillis? 04-05-2009 11:55 PM

hambil, you're a wild man!

hambil 04-05-2009 11:56 PM

Quote:

Originally Posted by Saviour (Post 1784693)
On the same note...maybe talk to Cyb and see if he can't implement this into his stats mod.

I looked into doing that myself, but sadly his code for that mod is not written to be extended :(

aztecboi2003 04-06-2009 12:12 AM

Can I get a screen of what the stats look like? Or a link to where I can see it. That's probably the only reason i will upgrade.

Saviour 04-06-2009 12:12 AM

Was a thought...


All times are GMT. The time now is 11:01 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.02359 seconds
  • Memory Usage 1,836KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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