Template Club Package Silver Pacakage Gold Pacakage Developer Pacakage Accepted Payments Member Login
TemplatePlazza Support Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Mini Frontpage (1 viewing) (1) Guest
Post a new message in "Mini Frontpage"
Name:
Subject:
topic icon:
no
Boardcode:
 Colour:  Size:   Close all tags
Message:

Emoticons
B) :( :) :laugh:
:cheer: ;) :P :angry:
:unsure: :ohmy: :huh: :dry:
:lol: :silly: :blink: :blush:
:kiss: :woohoo: :side: :S
More Smilies
 Enter code here   

Topic History of: J1.5 Thumbnail & intro text problem!!!
Max. showing the last posts - (Last post first)
Author Message
kai920 Elle wrote:
QUOTE:
Hey thanks a million - that worked a treat!


You're welcome!
Elle Hey thanks a million - that worked a treat!
kai920 Something is wrong with the regex. Try this instead.. seems to work for me:

Code:

preg_match_all("/<img[^>]*>/Ui", $rows[$r]->introtext . $rows[$r]->fulltext, $txtimg);
Elle Hi,

Thanks so much for mini frontpage - I love it and have used it before on older Joomla 1.0.x sites but I am now having a problem with the 1.5 version.

I have created a MFP module and published it to a menu item The sections and categories are in and the articles are showing up. My problem is that when I show the thumbnails the intro text disappears. I have researched these forums extensively and see that some other people have had similar issues but I have been unable to find a solution. I will explain my problem as clearly as I can.

When I first set up miniFP the thumbnails and unformatted intro text showed up. THen I began to format my article text to show an image in a left hand div and the text info in a right hand div. When I returned to test miniFP the intro text was not appearing.At first I thought this was to do with the allowed HTML tags so I opened mod_minifrontpage.php and edited the following line (as I have done before):

Code:

$allowed_tags = "<i><b><strong>";
to include more tags....
Code:

$allowed_tags = "<i><b><strong><div><p>";
This did nothing to solve the problem. I then started searching these forums and found a post that said this change should be made in helper.php instead. So I hade the change there and reverted to the original code in mod_minifrontpage.php. I also tried putting the changes in both. This did not help. Then I found a post which talked about the intro text disappearing when thumbnails were turned on. As I test I tried turning OFF my thumbnails and the intro text appeared - with all my formatting visible. I have out up an image to show the difference: So I began to look further into the thumbnail processing in helper.php. I found some other posts referring to the regex and so I found this line and commented it out:
Code:

preg_match_all("#<img(.*)>#", $rows[$r]->introtext . $rows[$r]->fulltext, $txtimg);
The result of this was that the default thumbnail showed up... but the intro text was displaying correctly. I am now quite sure that there is a bug with this in 1.5... and I see other people have experienced the same thing but their posts have had no reply (http://www.templateplazza.com/component/option,com_fireboard/Itemid,6/func,view/id,25071/catid,20/) Please help - I would really like to use this module but unless I can find a solution then I will have to look for something else. Thanks
Powered by FireBoardget the latest posts directly to your desktop
ico spot
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad