Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#112 TopicDir is hardcoded in Topic.class

enhancement
closed-fixed
nobody
admin (43)
5
2001-08-15
2001-06-01
tobozo
No

Topic.class, line 257, 322 :
$topicimagesdir = $basedir . "/images/topics/";

when specifying a different value for $imagedir in the
config.php3, the functions newTopic() and displayTopics
() are inoperative in topicAdmin.php3.

Workaround :
as $imagedir is globalized, it might be a solution to
use this line 257, 322 :
$topicimagesdir = $imagedir."/topics/";

Discussion

  • Joe Stewart
    Joe Stewart
    2001-06-11

    Logged In: YES
    user_id=77269

    The imagedir variable is actually the image directory url.
    There currently is no global variable for the filesystem
    path to the images directory. So, this won't work:

    $topicimagesdir = $imagedir."/topics/";

    As $imagedir could even be -

    http://images.otherserver.com/images

    Joe

     
  • Ajay Sharma
    Ajay Sharma
    2001-08-15

    Logged In: YES
    user_id=70334

    There are two new config values in phpslash-ft:

    topicimageurl -> the url to reference the topics
    topicimagedir -> the filesystem path to the topic dir.

    You can now have different topics for different theme's and
    stuff.

     
  • Ajay Sharma
    Ajay Sharma
    2001-08-15

    • status: open --> closed-fixed