Welcome, Guest
  • Author Topic: message board tutorial  (Read 1178 times)

    pascu

    • Server what's that
    • *
    • Posts: 5
      • View Profile
      • Email
    message board tutorial
    « on: 10/11/11, 03:40 »
     ???
    sorry sorry sorry sorry for being such a rocky at this.
    so please bear any less-inteligent questions or requests from me  ::)
    i tried again and again to make the message board tutorial work for me. i seem to be unable to find out waht is wrong with my approach. my approach being: take mc from tutorial files and place it onto my site. i followed the instructions and created the folders/directoryes. but i cant make it work. i have a localhost created using some software XAMPP 1.7.7 with apache and php running. i also have on the site some text and image upload forms that also use php and write data to folders on the virtual host. so i know that this is not a problem of not beeing allowed to use php scripts. but wen it comes to the message board i can't make it work. i can create a new topic from index.html that includes the swf file. the general topic counter get a higher value every time, so i guess thet the flash part is working. but despite the counters "activity" nothing else happends. i mean that no post/topic is being created, the list is allways empty. the category folders are allways empty and when i refresh the site, the counter resets to 0, not having any topic to load.
    i tried modifying here and there in the fla and php files to make it write the topics/posts directly on the host index folder, but i failed. i did this thinking that maybe i was doing something wrong with the directory structure or that writing permission that had to be set. by the way, how shoul i try to set the permission? despite i use win xp and apache, which i understood showld work fine without any modifications.

    please please please pritty please, could someone help me?
    because i kinda love this message board and i would really like to understand it better and make it work, so that i could try to put my touch on it.

    many thanks to you all guys that are so much better than me  :-*

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: message board tutorial
    « Reply #1 on: 10/11/11, 10:23 »
    Which Board are you using (there are a few on this site) To set write permissons on a server, usually you use your FTP client, eight click on the folder, Select permissons on the context menu, and set to 777, or 775

    Jorge

    pascu

    • Server what's that
    • *
    • Posts: 5
      • View Profile
      • Email
    Re: message board tutorial
    « Reply #2 on: 10/11/11, 14:28 »
    this is the board that i am talking about. http://flash-db.com/Forum/
    i looked for other ones, since you wrote that there are a few, but did not find any other one beside this and it's version in as3.
    as for the permission issue. i am further more in anguish. i do not have a real host as i was saying. and i acces the files of the site using total commander. and there is nowhere to be found a rubric about permission in properties. i tried diferent ways that i could find on the internet to change the permission, via windows or cmd none worked. so could you instruct me towards another way? i guess that this is the issue to be dealed with in order to make the forum work. everyone is using a real host? i thought that it is common to use a virtual server to test the site first.
    or maybe if i see another message board that i can wrap my head around and make it work for me.... could you share some links with the other boards please?

    sory again for beeing such a chucklehead ;D


    if it is of any help, i am sending the structure of the virtual host:

    C:\xampp\htdocs\Forum\Forum.php
    C:\xampp\htdocs\Forum\Forum.swf
    C:\xampp\htdocs\Forum\Forum.html
    C:\xampp\htdocs\Forum\Category1
    C:\xampp\htdocs\Forum\Category2
    C:\xampp\htdocs\Forum\Category3
    C:\xampp\htdocs\Forum\Category4

    where forum.html is made by publishing to internet format from the forum.fla file
    this is just for testing. when i will get it working i'll include the board in another flash file published to a html page index.html
    « Last Edit: 10/11/11, 14:35 by pascu »

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: message board tutorial
    « Reply #3 on: 10/11/11, 18:11 »
    Ok, if you're running a local server, you should access the flash file from http://localhost/myfolder/yourforum.html , this way the PHP files are executed

    Jorge

    pascu

    • Server what's that
    • *
    • Posts: 5
      • View Profile
      • Email
    Re: message board tutorial
    « Reply #4 on: 10/12/11, 02:36 »
    tried that one, and tried another thing alos. on e free host, i did exactly what was writen in the instal text file, managed to change the permission just as you said i shoul do it, got the php to work but no files are created. i am thinking that the php is working because the field in blue color with number of pages and topics is beeing populated with 1 and 0. but when i try to create a new topic, only the counter form the flash file (bottom right) is registering, the one in blue, wich gets data from php file, remains 0. so, am i wright when i say yhat the php is working? but maybe being a free host i have some restrictions on writing files, even if i changed the permission from the contextual menu of each directory?

    pascu

    • Server what's that
    • *
    • Posts: 5
      • View Profile
      • Email
    Re: message board tutorial
    « Reply #5 on: 10/12/11, 02:42 »



    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: message board tutorial
    « Reply #6 on: 10/12/11, 04:51 »
    Free hosting usually adds garbage to the output, forget about it.
    Install http://www.charlesproxy.com, and keep open while you try to POST, then look at the request in Charles and see if you get some error. Charles is an http sniffer that allows to monitor back-end traffic between Flash and any server side language

    Jorge

    pascu

    • Server what's that
    • *
    • Posts: 5
      • View Profile
      • Email
    Re: message board tutorial
    « Reply #7 on: 10/12/11, 12:14 »
    oooooo man i love love love you. why didn't i see this before? feel free to call me stupid. i didn't think about testing the php file until you said about charles. at first charles, did not find anything wrong with the files, any of them, from the forum or the rest of the site. and that made me wonder. so i rememberd that i used to test php files by opening them in the internet explorer, firefox, or whatever. this usualy shows what is happening with it. guess what... it worked, evidently. and it wasn't even a big deal. jost some ' not placed for the indexis, and some deprected features, because of php evolution.
    so i made the required modifications and voila, one gloryous forum file, made by you guys.
    exemple of modifications:
    $Submit    = $HTTP_POST_VARS[Submit]; to $Submit    = $_POST['Submit']; and all the same
    $Name       = ereg_replace("[^A-Za-z0-9 ]", "", $Name); to $Name       = preg_replace("[^A-Za-z0-9 ]", "", $Name); and all the same
    i know that preg is not quite the same with ereg but, php recomends this alternative



    sooooo Jorge, i owe you big times for standing by me when i was blind  :D
    cheers mate. talk again soon

    John

    PS: o, and excuse my wrighting, i presume it  is full of mistakes

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: message board tutorial
    « Reply #8 on: 10/12/11, 12:51 »
    Great news !
    Don't worry about wour writing, I'm not english speaker,  so my writing is also full of mistakes, the important thing here is to understand each other

    Jorge