vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - WoW Character BBCode (https://vborg.vbsupport.ru/showthread.php?t=169389)

CremeEgg 02-17-2008 04:02 PM

Thats totally odd. As far as I can see the permissions are correct.

sweede 02-17-2008 04:43 PM

What about the armory directory itself?

Also, do you have access to the error_log file for your domain? that may tell you a bit more.

if you delete (rename, whatever) the armory folder, it won't try to cache images and use images from wowarmory.com instead.

sweede 02-17-2008 04:47 PM

Oh, and i want to change a couple thing so that instead of caching images to the filesystem, it caches them to the MySQL database so you don't have to add new directories and run into issues such as this. I'm not quite that far long with it though.

CremeEgg 02-17-2008 04:56 PM

Quote:

Originally Posted by sweede (Post 1445293)
What about the armory directory itself?

Also, do you have access to the error_log file for your domain? that may tell you a bit more.

if you delete (rename, whatever) the armory folder, it won't try to cache images and use images from wowarmory.com instead.

Armory is 777, subdirs are 764.

I will have to see about an error log not looked for one before.

sweede 02-17-2008 05:13 PM

Quote:

Originally Posted by CremeEgg (Post 1445312)
Armory is 777, subdirs are 764.

I will have to see about an error log not looked for one before.

don't worry about the error log, 764 means that the owner has RWX (Read, Write, Execute), Group has Read,Write, and world (Everyone) has read permissions.

apache needs execute access in any directory it serves images from, so the permissions on folders should be 755 (or 751, but we wont get into unix permissions here).

sweede 02-17-2008 05:33 PM

CremeEgg, try this.

delete your armory/images folder (don't delete the armory folder), hopefully you do not need to get your host involved due to permission issues.

open up functions_wowcharcode.php and find the line

Code:

mkdir($full_image_path ,0777,true);
Replace that line with all of the following

Code:

$dirs  = explode("/",dirname($image_loc));
$path = DIR . "/" . $localpath;
foreach ($dirs AS $element)
{
  $path .= $element . "/";
  @mkdir($path ,0777,true);
  if(!chmod($path,0755))
 {
    echo "error chmod'ing $path";
 }
}


CremeEgg 02-17-2008 05:33 PM

Quote:

Originally Posted by sweede (Post 1445326)
don't worry about the error log, 764 means that the owner has RWX (Read, Write, Execute), Group has Read,Write, and world (Everyone) has read permissions.

apache needs execute access in any directory it serves images from, so the permissions on folders should be 755 (or 751, but we wont get into unix permissions here).

Works fine now thanks. My *nix skills are weak, don't really have much to do with it anymore.

sweede 02-22-2008 08:30 AM

Just as a notice, I plan on updating this in a few days.

Changes will include a more absract method of retreiving and storing character data from the armory. This will be a set of class methods that anyone can use to get , cache and display armory data.

Much better method of selecting what attributes to display. I'm also currently trying to figure out how to make character "roles" work, but am unsure if that would be a possibilty or even a wise idea, due to the amount of setup on the end users part it would require.

I would estimate a week or two before i have an update ready. If anyone has suggestions or any requests, let me know.

Gooner 02-24-2008 02:43 PM

Would it be possible to make the users names interactive on the forums? based on usergroup permissions.

for example your name on your post "SWEEDE" would display your player stats... but obviously not ever on the forum will use there in game name to have the option through Cpanel to turn interactivity for your name on.

hinch 02-26-2008 09:02 AM

Just installed this and it works great but at the same time throws up some mkdir errors.

Line in question is
PHP Code:

mkdir($full_image_path ,0777,true); 

I've attached a screenshot so you can see the errors its throwing up


All times are GMT. The time now is 01:05 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.01228 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_php_printable
  • (3)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
  • (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