vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Changing Base Directory? (https://vborg.vbsupport.ru/showthread.php?t=316605)

Inked_Mono 01-13-2015 02:31 AM

Changing Base Directory?
 
Quick question!

I've had this issue before, but for the life of me can't remember the fix. Right now, I'm hosting User Ranks on my host, so the directory to the image reads as "/images/whatever/whatever.png". However, when the forum goes to seek those images, it's not adding the original "/forum" prefix, and I'm unable to add it to the User Rank image directory as it tells me it's an invalid path specified.

How do I fix this?

User Rank Settings (not the lack of "/forum" on file path): http://i.imgur.com/kGwqmDh.png
Where it's connecting to: http://i.imgur.com/1OrvZYf.png
When I try and add "/forum" to User Rank file path: http://i.imgur.com/SQ4xk7B.png

Digital Jedi 01-13-2015 10:19 AM

Been a while since I used the User Rank Manager, but any reason you can't put the full path to the image?

ozzy47 01-13-2015 10:59 AM

Perhaps remove the leading / slash.

RichieBoy67 01-13-2015 11:23 AM

Quote:

Originally Posted by ozzy47 (Post 2532236)
Perhaps remove the leading / slash.

Yeah, that's it. :up:

Inked_Mono 01-13-2015 02:31 PM

I actually ended up finding a way how, and it was rather odd!

If you add a period before the first slash, it seems to work. Ex: "./images/forumranks/etc.png

No clue why, but sure enough. Thanks anyways, all.

cellarius 01-13-2015 09:19 PM

Because with linux paths / is different from ./ is different from ../

http://linux-tutorial.info/modules.p...tent&pageid=17


All times are GMT. The time now is 01:10 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.01109 seconds
  • Memory Usage 1,719KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete