Advertisement:

Author Topic: Post Preview not working  (Read 2939 times)

Offline justjim

  • Semi-Newbie
  • *
  • Posts: 60
    • SpywareHammer.com
Post Preview not working
« on: May 15, 2009, 12:59:13 PM »
Post preview does not work. It says "fetching preview" but that's it.
I am using a custom theme Black Pheonix3, but have been for some time.

Do you have any suggestions on where I could start looking for the problem, and what to look for.

This is one of the 2 remaining problems after cleaning up from the recent code injection attack.

Thanks

Offline Kermit

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,365
  • Gender: Male
Re: Post Preview not working
« Reply #1 on: May 15, 2009, 02:06:48 PM »
Does the same problem occur on default core theme ?
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Offline justjim

  • Semi-Newbie
  • *
  • Posts: 60
    • SpywareHammer.com
Re: Post Preview not working
« Reply #2 on: May 15, 2009, 03:59:36 PM »
Thanks for your reply

Don't know?

I 'll try it on the default theme tonight and see, then get back to you.

The PM post preview works, just not the one on the boards. If that is any help


Offline JimM

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,980
  • Gender: Male
    • Southern Spirit Hunters
Re: Post Preview not working
« Reply #3 on: May 17, 2009, 09:11:43 PM »
Take a look at this topic and use the file_check tool that is mentioned.

http://www.simplemachines.org/community/index.php?topic=294342.msg2048965#msg2048965
Jim "JimM" Moore
Former Support Specialist

Please do not PM me for support!                   
Installing SMF
Upgrade SMF
Manual Installation of Mods

Offline justjim

  • Semi-Newbie
  • *
  • Posts: 60
    • SpywareHammer.com
Re: Post Preview not working
« Reply #4 on: May 18, 2009, 10:29:09 AM »
Thank you.

I used the tool suggested to find the errors.

I also Downloaded and used the Bablepad mentioned to find the blank spaces that were not obvious in NotePad.


Offline JimM

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,980
  • Gender: Male
    • Southern Spirit Hunters
Re: Post Preview not working
« Reply #5 on: May 18, 2009, 11:00:45 PM »
Great, did that fix your issue?  If this is solved, please mark it solved by clicking the Mark Topic Solved link at the bottom left.
Jim "JimM" Moore
Former Support Specialist

Please do not PM me for support!                   
Installing SMF
Upgrade SMF
Manual Installation of Mods

Offline justjim

  • Semi-Newbie
  • *
  • Posts: 60
    • SpywareHammer.com
Re: Post Preview not working
« Reply #6 on: May 19, 2009, 08:51:58 AM »
Great, did that fix your issue?  If this is solved, please mark it solved by clicking the Mark Topic Solved link at the bottom left.
Sorry I wasn't clear in my previous post. Yes After finding and editing the files, it did sove the issue.

The link on the bottom right?

Thanks again

Offline satman007

  • Semi-Newbie
  • *
  • Posts: 37
Re: Post Preview not working
« Reply #7 on: May 26, 2009, 04:30:35 AM »
Hi i am having the same PReview too...

I tried the File_Check.php file & it shows many  as below?

Code: [Select]
    *  /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Themes/default/languages/PrettyUrls.french.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Themes/default/languages/TreasuryHelp.english-utf8.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Themes/default/languages/PrettyUrls.english.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Themes/default/languages/TreasuryHelp.english.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Themes/default/languages/Modifications.french.php
          o File does not begin with <?php
          o File does not end with ?>


    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Themes/default/languages/GlobalAnnouncementsAdmin.english.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Themes/default/GlobalAnnouncements.template.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Themes/default/GlobalAnnouncementsAdmin.template.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Themes/default/PrettyUrls.template.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/ssi_examples.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/index.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Sources/GlobalAnnouncementsAdmin.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Sources/PrettyUrls-Filters.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Sources/GlobalAnnouncements.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Sources/TreasuryUpdate.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Sources/Subs-GlobalAnnouncementsAdmin.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Sources/PrettyUrls.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Sources/Subs-PrettyUrls.php
          o File does not end with ?>

what to do next? 
Should i add what it says is not there...without  taking any measure?
Thanks in advance




Offline JimM

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,980
  • Gender: Male
    • Southern Spirit Hunters
Re: Post Preview not working
« Reply #8 on: May 26, 2009, 09:51:49 PM »
Yes and keep in mind that posting your issue in a topic that is marked solved will severely limit the number of members that will see your post.  It's always best to start a new topic with your issue fully described.
Jim "JimM" Moore
Former Support Specialist

Please do not PM me for support!                   
Installing SMF
Upgrade SMF
Manual Installation of Mods

Offline satman007

  • Semi-Newbie
  • *
  • Posts: 37
Re: Post Preview not working
« Reply #9 on: May 27, 2009, 01:18:13 AM »
i just looked that index.php and i see that ?> is do there but not at the end...actually i aded some html banner there...long back...
so what shd be done?

i mean i shd move that ?> to end and include that html banner code before it or
add another ?> i end

Thanks

Offline satman007

  • Semi-Newbie
  • *
  • Posts: 37
Re: Post Preview not working
« Reply #10 on: May 27, 2009, 11:46:19 AM »
any way ..i edited all the files

and placed another ?> 2nd time in the end after that banner html code


now no file is shown by that php utility as having problems...but i cant still use preview function..whats wrong?

Offline JimM

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,980
  • Gender: Male
    • Southern Spirit Hunters
Re: Post Preview not working
« Reply #11 on: May 27, 2009, 03:38:10 PM »
Each php file can only contain 1 ending marker ?>.  My recommendation would be to place the end marker ?> at the end of the file and remove the banner code to see if that is possibly causing some of the problem.
Jim "JimM" Moore
Former Support Specialist

Please do not PM me for support!                   
Installing SMF
Upgrade SMF
Manual Installation of Mods

Offline satman007

  • Semi-Newbie
  • *
  • Posts: 37
Re: Post Preview not working
« Reply #12 on: May 28, 2009, 12:11:11 AM »
i will try..any better way to put these html banners then?

Offline JimM

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,980
  • Gender: Male
    • Southern Spirit Hunters
Re: Post Preview not working
« Reply #13 on: May 28, 2009, 10:09:03 PM »
There are lots of folks that use this mod http://custom.simplemachines.org/mods/index.php?mod=255 to place ads, banners, just about anything on their site.  You can also use the search for "adding banners" and will get a number of hits.
Jim "JimM" Moore
Former Support Specialist

Please do not PM me for support!                   
Installing SMF
Upgrade SMF
Manual Installation of Mods