I have been running the script for a long time now but the only thing I have not been able to resolve so far is that this character – will not display properly on some of my pages. I have tried changing charsets, it is currently on utf-8, but then I noticed that the – appeared fine on some pages so it is unlikely to be an issue with the charset setting right?
Anyway here is the pages effected.
Does not work here:
http://www.starmonkee.co.uk/museslash/index.php
(To test this I put the symbol at the bottom of the latest news entry. You will either see a |" or just squares depending on the browser)
Then when going to News Archieve it seems to work:
http://www.starmonkee.co.uk/museslash/news.php
Obviously the most annoying is when it turns up on the stories pages:
http://www.starmonkee.co.uk/museslash/viewstory.php?sid=8
Here is some log in details to use:
Name: Testaccount
Pass: Testaccount
I really hope you can help me with this. Totally clueless! Thanks!
It the story uploaded from a word file? Because I know some MS Word symbols just don't translate well.
******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3
Nah, copying straight in. I'm copying these stories from a lifejournal community so I'm not sure if the writers use MS Word or not.
It's a character set issue with MS word.
So aboslutly nothing I can do to make it display properly? I just don't know why it displays fine on some pages and not otheres
When ever I have a character display problem, I just edit the file, or info to use the correct symbol. If you do that whenever you see it, you won't see it there again.
Whoever said nothing is impossible never tried slamming a revolving door.
url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word
It's extra work, but I would use something like Notetab Lite ( http://www.notetab.com). Copy the entire document into the program. Highlight the funky character then go to Edit->Replace. It will keep the weird character in the Find part of the window. You then type in the correct character and select replace all. It will fix the buggers and will be faster than trying to find it paragraph by paragraph. Then paste the corrected file back into efiction. I would love to tell you to have your posters check their files through Notepad, but I didn't find the Find and Replace feature worked very well.
******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3
Fair enough for future stories. More of a pain is going trough over 400 stories already on there now, damn :<
Is there still any hope of a fix or not? I just dont see why it displays on some pages and not others. There must be a reason for that?
It may display on some pages and not on others because maybe some of those pages (where there is no problem), the person didn't use Word when they uploaded their stories. I volunteer as an archivist for another website (it doesn't use Efiction so I do a lot of html'ing). And I only have one author who does all her stuff in Word. I'm forever stripping the excess codes that MS Word uses in Notetab Light before I even bother to start html'ing the thing. Every time she sends me a story, I groan knowing I will have to do extra work.
So I feel your pain. I tried asking her to save things as .txt instead of .doc but it still has the same crap floating in it.
barb
******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3
I totally get what you mean but it what does not make sense is:
I pasted said icon into a news article for test purposes. I then noticed then when I access said artricle via the new archive it displays correctly!!! ๐ฎ And then the same news article (no change in code, same person who posted it, exact same entry (me) etc) but on the main index page it won't display. That's why I can't believe that there is no fix for this :<
Actually, I really think this is a script problem, because for the same news story it shows up right on one page and wrong on another. Those would have been uploaded the same way but are processed by the script differently. Try this:
Around line 133 of the news.php, change
$news->assign("newsstory" , nl2br($stories['story']) );
To
$news->assign("newsstory" , format_story($stories['story']) );
That will index.php match the instance on news.php.
Uhm...this had the turnaround effect. I have changed it as you said and now wont display correctly on the news archive anymore! Well so it's definatly a script issue tho..., any suggestions? Do I just do the opposite with the index file? Im no good at this :p
Hm...I may have mixed them up. Change them all to the nl2br one and see if that works.
Thanks so much, got it sorted now. Changing them to nl2br got it working ๐
