02-02-2004, 09:13 PM
|
#1
|
|
dreamer
Join Date: Aug 2003
Location: OKC, OK
Posts: 56
|
htmlText, php, and cafelog blog
I am using b2 ( www.cafelog.com) to do a blog site.
The client is all in php.
I am trying to pull my blog with comments into flash. I have the loadVariables working just fine. I am getting the most recent blog to show up, but only one, and the php tags that put in the links to the comments popup are not working.
my options for my blog are set to show 20 posts at a time, and the same format works fine in an html page, so the problem is somehting to do with flash importing the code/functions.
my question is this: what characters kill the html formatting in dynamic text fields? I have several links I found from searching, but nothing is giving me a specific list of what to watch for. I have ASDG by Moock and that isn't helping either.
also, if anyone has any experience with this, take a look at the code in my blog's template. Maybe than can provide some answers.
I would really appreciate any pointers, links, etc., that can be given, b/c I'm at a loss of where to go next.
Thanks!!
Last edited by spectrewhite; 02-02-2004 at 09:27 PM.
|
|
|
02-02-2004, 09:28 PM
|
#2
|
|
dreamer
Join Date: Aug 2003
Location: OKC, OK
Posts: 56
|
sorry here's the file. posted the wrong one.
|
|
|
02-02-2004, 09:58 PM
|
#3
|
|
Super Moderator
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
|
Howdy...
Your PHP script doesn't mean much to me... Do you have it up on your server where I can see what the result is when I type http://www.domain.com/path/index.php ??? If the server is not up, can you type it onto the web browser and then copy and paste the output into this thread???
|
|
|
02-02-2004, 10:46 PM
|
#5
|
|
Super Moderator
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
|
Well... I don't see any faulty text in the text box on http://forever-tentative.attherockshow.org/index2.html page... Basically '&' the problem when used, so it has to be escaped when sending out from PHP, but you don't use that one...
And, I see no text at all from http://forever-tentative.attherockshow.org/index3.html page... Am I supposed to see some or not??? And, can you show us the ActionScript that takes care of loading the data from the PHP file and displaying it into the textfield???
|
|
|
02-03-2004, 08:40 AM
|
#6
|
|
dreamer
Join Date: Aug 2003
Location: OKC, OK
Posts: 56
|
huh....index3.html shows some text when I go there. I am going crazy.
Basically I have a scrollpane on the main stage set to scroll content my "blogContent" mc.
the blogContent mc contains a dynamic text field called "container_txt" with it's var set to "container." The html button is depressed and it is set to multiline.
the following code is on frame one. pretty straight forward:
ActionScript Code:
this.loadVariables("b2/index.php");
this.container_txt.embedFonts=true;
I am having problems with the scrollpane scrolling correctly as well. The vertical scrollbar does not show up. Do I need to do some more formatting on the textbox? Is it possible that since I drew the textbox to be a certain size it won't resize when it imports more text than there is space?
thanks for your help!
|
|
|
02-03-2004, 09:01 AM
|
#7
|
|
Super Moderator
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
|
Well... The way it sounds in your post, it sounds like it should be working... That loadVariables() could be the problem if you don't give enough time to load the external data fully... Other than that, I do not know what's going on...
Why use ScrollPane for it??? I think ScrollBar should be enough for scrolling text...
If you can come up with some sample, I'll take a look...
|
|
|
02-03-2004, 01:50 PM
|
#8
|
|
dreamer
Join Date: Aug 2003
Location: OKC, OK
Posts: 56
|
http://forever-tentative.attherockshow.org/index3.html
i got the scrollbar working. you were right. fscrollbar worked way better than fscrollpane.
do you guys see the text?? i sure hope so...
I just tested it on a mac IE and safari and netscape and it looks great. the font is embedding correctly it seems.
Now I guess I have to go through the php stuff and figure out what the problem is. When I stick a "<b>" tag in whatever I want bolded disappears. Something wierd is going on. I am going to have a buddy of mine who knows php help me out.
When I get it figured out, I'll post here. If anyone has suggestions on what could be causing the problem, le tme know!!
thanks for the help, cyanblue. MUCH appreciated.
|
|
|
02-03-2004, 03:11 PM
|
#9
|
|
dreamer
Join Date: Aug 2003
Location: OKC, OK
Posts: 56
|
okay one other thing....
when i "<u>" tags in, they work just fine, but "<b>" tags still won't work. maybe for some reason flash won't accept the bold tags because of how the font is embedded? I tried the bold checkbox in the font item in the library and it just didn't show up altogether. If I select bold when the textbox is selected, everything will just be bold won't it. ANy suggestions?
thanks again...
|
|
|
02-03-2004, 08:58 PM
|
#10
|
|
Super Moderator
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
|
Yeah... I can see the text fine...
The bold not being displayed... That's because the FFF font that you are using does not really have the bold face included in the FFF xxx font you are using... You could separate the text and apply different text formats, one with the FFF xxx regular and another with the FFF xxx Bold font, but it's really tedious... What I ended up with the similar instance was to use U instead of B, as you have experimented already, and it cut down some time for me...
|
|
|
| Thread Tools |
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 06:55 PM.
///
|
|