Fanaticweb
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Display or Hide custom field if active and limit charactersI’ll play around with it and give it a try, thank you again for your time and help, much appreciated.
Forum: Fixing WordPress
In reply to: Display or Hide custom field if active and limit charactersTHAT WORKED!! 🙂
I used the first one and I just had to close the last span> to display correctly, thank you so much!Any idea how I can combine it with limiting the length of the custom field value?
I know it should be something similar to this code used for the Title of the post but how do I go by and use it for the custom field?
if (mb_strlen(get_the_title()) >= 75) echo mb_substr(get_the_title(), 0, 75)Forum: Fixing WordPress
In reply to: Display or Hide custom field if active and limit charactersThats the thing, I’m able to pull and display the value of the custom field when it’s filled by the user, but when it’s not, I still see “Status:” given I placed
<b>Status:</b>before the code, the “…do something…” you’re proposing is what I’m missing, furthermore, I don’t think I should be even displaying that<b>Status:</b>all together unless I can control its display pending on the value of the custom field.I’m thinking maybe a css class that would display: none IF the custom field is empty, but how to go by placing it in the code.
P.S.: I’m not a coder, I’m learning here.
By the way, nice social theme you got, seen it on TF
By searching those links with Google, did you mean using this search query? website:www.domain.com/page/18/?lang=fr
It sure looks like a pagination issue affecting all the /?lang=fr pages since even the existing ones are no longer found by Google, yet Bing.com and Yahoo.com are able to find them, this is so puzzling to me and doesnt make sense how one search engine can locate the pages without issues yet the main giant one lost track of them, I say so because I see the stats and the source of the visited URL’s, in one way, Bing.com is definitely crawling my site now which was rare prior to the issue I’m having, as if Google told Bing, here…you can have the French pages lol
On a serious note, I hope the Transposh developer can nail the root cause, if not, well, that’s it for the Translation plugins, gonna have to push a full French site in the next one.
Hi Peter,
I didnt post the link to the site for ethic reasons, I can pm it to you if need be, thanks for the headsup on my other thread I posted.Going back in Google Webmaster tools, under Optimization/Content Keywords, I pulled the following example:
Content Keywords
Keyword: models
Occurrences: 28605
Variants encountered
models, model
Google found the keyword models and its variants on these top pages:
Top URLs
posts/independent-model-photoshoots-videoshoots/?lang=fr
page/18/?lang=fr
page/20/?lang=fr
page/27/?lang=fr
page/28/?lang=fr
page/30/?lang=fr
page/31/?lang=fr
page/21/?lang=fr
page/22/?lang=fr
page/29/?lang=frThe First Top URL link does indeed exist, generated by Transposh through the French translation function, the other ones (pages) don’t exist on the site since the highest existing pagination is 10, yet Google is crawling those phantom pages, why and what is causing it to do so is what I’m trying to get at.
I suspect this is the results of few things since the last updates I applied on AIOSEO, Transposh and Redirection plugins at the same time, luckily for me, the developer of Transposh is looking into it from the backend, I also noticed other behaviors but linked to Tranposh, I’ll start by making sure no duplicate G-A code is on the pages and stick to one only.
Got it and makes perfect sense, the duplication on each page was probably not a good idea after all yet I got away with it for the longest time, will readjust to make sure its displayed a single time, thanks for the headsup Peter.
Forum: Everything else WordPress
In reply to: Pardon my French but…I thought so too, seeing that the backend will still rely on the english terms for the permalink, thanks for the headsup Alchymyth.
Furthermore, I just tried another test by redirecting a translated French page on the site such as domain.com/page/20/?lang=fr (non-existing page but for some reason Google sees it when searching for previously indexed keywords) to the following: domain.com/?lang=fr and it just won’t kick in, the redirect is not taking effect, so far, Redirection and Transposh don’t seem to be communicating or play nicely together since the latest updates.
Seriously wondering if anyone out there is using both of those plugins and getting the same issues?
What happens is the Google analytics ends up being displayed twice? Assuming that we never bothered removing the one that was integrated through the theme’s functions and using AIOSEO plugin?
On my end, it was like that for the longest time and I had no issues, but reading this thread got me wondering if I should bother.
Your contact form on techotronic.de is not letting me send you a message, I keep getting error: Failed to send your message. Please try later or contact administrator by other way. 🙁
Actually I cant because it’s a “N.S.F.W.” client site, can I send you the link in private if you don’t mind?
I went back to download the plugin, despite the mention of Last updated: 38 days but indeed, no more errors come up, so here’s the update:
I used the exact same syntax:
[IN_LIMIT]
[gravityform id=11 name=Submit your review ajax=true]
[/IN_LIMIT]
I went ahead and created a separate test page and used the short codes as suggested, its still distorting the CSS layout, if it helps, one thing that is different is when looking from the backend, the font of the Message field is different from the rest of the font displayed across the admin panel, can it be something triggered from the Message content itself thats causing the CSS distortion of the form on the front end? Very weird…One other thing, when I re-installed your plugin, the previous Limitations I had setup were repopulated and I cant even edit them, I can only remove them, but this is something that was happening from the getgo.
As for testing the functionality of the plugin, the posts still get pushed to the site:
User Role/ID Post Type Limit Post Status Limit message Actions
limited post 0 publish message goes here
limited post 1 any Sorry, you can no longer post adSo I tried those different settings, and in both cases, the post gets published 🙁
I forgot to mention one thing, the latest version of GF allows us to set up the form in a way that it only shows up if the user is logged in, if they’re not, we can create a custom message within GF advising them to login or Register first, so this part is already taken care of.
I noticed something else, for some reason, it seems to break the GF css layout of the form, despite attempting to remove the [IN_LIMIT][/IN_LIMIT] or deactivating your plugin, the form’s css breakout persisted, believe it or not, I literary had to delete this form page all together and create a new one including the GF short code for the form to reappear properly.
So I created a “Limited_user” role using the Member plugin and created a new Limit rule in your plugin, I inserted the code this way within the page where the posts are submitted:
[IN_LIMIT][gravityform id=11 name=Submit your review ajax=true][/IN_LIMIT]
Went back on the front page, logged in as the Limited user account, clicked on Submit a Review and this is the error I got:
Warning: Invalid argument supplied for foreach() in /homepages/39/d284855853/htdocs/website/wp-content/plugins/bainternet-posts-creation-limits/bapl.php on line 611Any idea why this is happening? Or did I miss a step maybe?
Awesome! Hey thanks for the prompt followups by the way, can’t way to test out the enhancements!