3Pinter
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: add_shortcode to define global variableThanx Samuel for that small fix on my code (luckily I had it right in my functions.php __ didn’t use ctrl+c / ctrl+v ^^)
I forgot to mention that I use the_content() on my page_email.php (template).
But is it correct if I say:
“My page_email.php is loaded, I fill out the form, send which is on the same page, so same page is loaded again. Because my email send handling is done in the first lines of my php file and afterwards my content (the_content() + custom html/code) my GLOBAL variable is lost”
If that is true, I perhaps should be better off storing that in a session?
Forum: Hacks
In reply to: remove editor option for userrole author (and lower)resolved.
Forum: Hacks
In reply to: remove editor option for userrole author (and lower)Ah nice. That works.
Much appreciated. Ty.
Forum: Fixing WordPress
In reply to: wp nav menu with custom class for each liIT has. However I dont want to incl. Specific or better: unique classes in my css.
Forum: Fixing WordPress
In reply to: get images and their links within a postHmmm I think might do the trick.
$regexp = "<a\s[^>]*href=(\"??)([^\" >]*?)\\1[^>]*>(.*)<\/a>"; if(preg_match_all("/$regexp/siU", $content, $matches, PREG_SET_ORDER)) { foreach($matches as $match) { // $match[2] = link address // $match[3] = link text $html .= '<li>'.$match[0].'</li>'; } }Do you agree?
Forum: Plugins
In reply to: [WP Flex Gallery] Fatal ErrorTwo little things need to be adjusted to make it work (at least imo)
1. unzip the package.
2. edit wp-flex-gallery.php with notepad
3. goto line 426 where you should see:
<?
4. change that to
<?php5. and at the end of the file (line 464 or something) you should see “}”
make a new line and type “?>”} ?>Save it, upload it, activate it. 🙂
Forum: Plugins
In reply to: [Watu Quiz] XHTML validation problemhmmm so many things. However,
show_exam.php: line 146
echo “<input type=’hidden’ id=’questionType”.$question_count.”‘ value='{$ques->answer_type}’ />”;
( so /> instead of > )Forum: Plugins
In reply to: [WPSocialite] W3C ValidationHey all.
In case you what a ‘quick fix’, it’s the $title in wpsocialite.php which contains spaces.
How I fixed it:
please do back up the original1. open wpsocialite.php in notepad.
2. go to line 130 where you will see:$title = trim($post->post_title); // get post titleand replace it with
$title = urlencode(trim($post->post_title)); // get post title3. save it
4. upload this file again. (wp-content/plugins/wpsocialite)3Pinter