Title: 3Pinter's Replies | WordPress.org

---

# 3Pinter

  [  ](https://wordpress.org/support/users/3pinter/)

 *   [Profile](https://wordpress.org/support/users/3pinter/)
 *   [Topics Started](https://wordpress.org/support/users/3pinter/topics/)
 *   [Replies Created](https://wordpress.org/support/users/3pinter/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/3pinter/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/3pinter/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/3pinter/engagements/)
 *   [Favorites](https://wordpress.org/support/users/3pinter/favorites/)

 Search replies:

## Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [add_shortcode to define global variable](https://wordpress.org/support/topic/add_shortcode-to-define-global-variable/)
 *  Thread Starter [3Pinter](https://wordpress.org/support/users/3pinter/)
 * (@3pinter)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/add_shortcode-to-define-global-variable/#post-5271464)
 * Thanx 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](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [remove editor option for userrole author (and lower)](https://wordpress.org/support/topic/remove-editor-option-for-userrole-author-and-lower/)
 *  Thread Starter [3Pinter](https://wordpress.org/support/users/3pinter/)
 * (@3pinter)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/remove-editor-option-for-userrole-author-and-lower/#post-5176700)
 * resolved.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [remove editor option for userrole author (and lower)](https://wordpress.org/support/topic/remove-editor-option-for-userrole-author-and-lower/)
 *  Thread Starter [3Pinter](https://wordpress.org/support/users/3pinter/)
 * (@3pinter)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/remove-editor-option-for-userrole-author-and-lower/#post-5176697)
 * Ah nice. That works.
 * Much appreciated. Ty.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wp nav menu with custom class for each li](https://wordpress.org/support/topic/wp-nav-menu-with-custom-class-for-each-li/)
 *  Thread Starter [3Pinter](https://wordpress.org/support/users/3pinter/)
 * (@3pinter)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/wp-nav-menu-with-custom-class-for-each-li/#post-4471208)
 * IT has. However I dont want to incl. Specific or better: unique classes in my
   css.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [get images and their links within a post](https://wordpress.org/support/topic/get-images-and-their-links-within-a-post/)
 *  Thread Starter [3Pinter](https://wordpress.org/support/users/3pinter/)
 * (@3pinter)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/get-images-and-their-links-within-a-post/#post-4020160)
 * Hmmm 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Flex Gallery] Fatal Error](https://wordpress.org/support/topic/fatal-error-696/)
 *  [3Pinter](https://wordpress.org/support/users/3pinter/)
 * (@3pinter)
 * [13 years ago](https://wordpress.org/support/topic/fatal-error-696/#post-3595633)
 * Two 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 `<?php`
 * 5. 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Watu Quiz] XHTML validation problem](https://wordpress.org/support/topic/xhtml-validation-problem-2-2/)
 *  [3Pinter](https://wordpress.org/support/users/3pinter/)
 * (@3pinter)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/xhtml-validation-problem-2-2/#post-3136380)
 * hmmm 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPSocialite] W3C Validation](https://wordpress.org/support/topic/w3c-validation-3/)
 *  [3Pinter](https://wordpress.org/support/users/3pinter/)
 * (@3pinter)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/w3c-validation-3/#post-3135461)
 * Hey 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 original**
 * 1. open wpsocialite.php in notepad.
    2. go to line 130 where you will see:
 * `$title = trim($post->post_title); // get post title`
 * and replace it with
 * `$title = urlencode(trim($post->post_title)); // get post title`
 * 3. save it
    4. upload this file again. (wp-content/plugins/wpsocialite)
 * 3Pinter

Viewing 8 replies - 1 through 8 (of 8 total)