wtfusdfdsfsdgkdkjldlgkljdfkj
Forum Replies Created
-
Forum: Plugins
In reply to: [MaxGalleria] bug, clashes with other pugins !ok thanks, glad its fixed
Forum: Plugins
In reply to: [Pizzazz Portfolio Plugin] Video Integration.Resolved indeed !
And a very big thank you for the prompt, and helpful support.Forum: Plugins
In reply to: [Relevanssi - A Better Search] Language ??apologies – found it
thanks very much
Forum: Plugins
In reply to: [MaxGalleria] import from nextgenBrilliant – i’m impressed ??
Thanks a lot, now seems to be working perfectly, and i can finally kick out NextGEN.
I now have a new standard image gallery plugin for my sites.Forum: Plugins
In reply to: [MaxGalleria] import from nextgenahhh good one – that sounds as though i can be optimistic about a solution in the near future ??
yeah thats my thoughts its overkill for what i need.
thanks and good luck
surprisingly enough no – its easier just to turn off NextGEN, the previous version 1.9 whatever was working fine, and then i made the mistake of updating.
I wish you luck with nextGEN but its beoming total overkill for me.
This is the third update that has broken things for me personally and I now seem to have a folder with 878 Files, 139 Folders, and 9.8 MB, which for a basic image gallery, which is all i need, is too much.
Forum: Plugins
In reply to: [MaxGalleria] import from nextgenNope I had no previous version of MaxGalleria at all, have just install the new full version.
NextGEN – whatever there latest version is – thats the point its just one too many updates that has broken things, had enough of NextGEN (the galleries were working just broke other things on the site)
Forum: Plugins
In reply to: [Relevanssi - A Better Search] hide picture caption in resultsgo to your theme folder, and then in the root of your theme folder, there should be a file
functions.php (if not there create it)and then just add to it as i said above
add_filter('relevanssi_pre_excerpt_content', 'remove_captions'); function remove_captions($content) { #error_reporting(E_ALL); $content = preg_replace("/<\/a>.*?\[/", "</a>[", $content); $content = preg_replace("/<dd>(.*)<\/dd>/", "", $content); $content = preg_replace("/<figcaption>(.*)<\/figcaption>/", "", $content); return $content; }
and that should then be working (providing relevanssi is activated)
Forum: Plugins
In reply to: [Relevanssi - A Better Search] hide picture caption in resultsOk have debugged a bit more ??
And discovered in the excerpt it also actually the picture too, which could stay there, that get removed anyway.
So the excerpt looks like this[caption id="" align="alignnone" width="300"]<a href="uploads/2013/08/Werkprojekt_Musik-II.png"><img title="Werkprojekt Musik" alt="Werkprojekt_Musik II" src="uploads/2013/08/Werkprojekt_Musik-II-300x184.png" width="300" height="184" /></a> 'Blues Brothers' I[/caption] ? Seit dem Schuljahr 2012/13 ist für die zum 11. Schuljahr verbleibenden
So what i’m now trying to do, unfortunately my regex is rubbish is remove everything between the
</a>
the closing caption [/caption]I came up with this
$content = preg_replace("a>(.*\n*)[", "a>[", $content);
but it doesnt work, also tried
$content = preg_replace("a>.*?[", "a>[", $content);
Having now messed about with regex for a bit ??
I love regex, i’ve ended up with the following which works!$content = preg_replace("/<\/a>.*?\[/", "</a>[", $content);
Turns out though, that some captions are in a dd tag, and some are in a figcaption tag.
So my now final, it actually seems to work function is as suchadd_filter('relevanssi_pre_excerpt_content', 'remove_captions'); function remove_captions($content) { $content = preg_replace("/<\/a>.*?\[/", "</a>[", $content); $content = preg_replace("/<dd>(.*)<\/dd>/", "", $content); $content = preg_replace("/<figcaption>(.*)<\/figcaption>/", "", $content); return $content; }
Many many many thanks for your help with this
Forum: Plugins
In reply to: [Relevanssi - A Better Search] hide picture caption in resultsThat theoretically would be perfect.
Do i need to regenerate the excerpts ?
I would presume yes
Have theoretically re-indexed, and the cache says 0
Also changed caption to figcaption as thats the tag.But no change ?
Any ideasForum: Plugins
In reply to: [Relevanssi - A Better Search] hide picture caption in resultsits getting there, you’re missing a ) behind content.
and escaping the forward slash in catptionadd_filter('relevanssi_excerpt_content', 'remove_captions'); function remove_captions($excerpt) { $content = preg_replace('/<caption>.*?<\/caption>/', '', $excerpt); return $content; }
BUT and its a big but ??
This filters the excerpt, and in the excerpt i no longer have the caption tag, just the content of the caption tag.
I need to use this, beforehand, where you actually create the excerpt, because afterwards you cannot tell, what is the caption textForum: Plugins
In reply to: [Relevanssi - A Better Search] hide picture caption in resultsI mean the Relevanssi-generated excerpts contain the picture caption
Thats what i’m trying to get rid of.
The excerpt should just be
“here is the text with the search WORD in it”
and not
“PICTURE CAPTURE here is the text with the search WORD in it”
The picture capture does not contain the search word at all, and should not be in the excerpt.
Can Relevannssi not ignore, or at least not include in the excerpt, the the search term is not in it, anything between the caption tags ?
<caption>PLEASE IGNORE ME</caption>Or at least if it kept the caption tags, in the excerpt, i could hide it with css
Forum: Plugins
In reply to: [Relevanssi - A Better Search] hide picture caption in results?? how
in the results, its not recognisable as a picture caption.It does not show
<caption>pic caption</caption> and now the real text
it just shows
pic caption and now the real text– where/how are the excerpts created ?
or what should i modify ?same problem, since update to 3.6
has nothing by me to do with https
doesnt work by http or https.