Forum Replies Created

Viewing 15 replies - 1 through 15 (of 22 total)
  • Is there a question here?
    Do you want to know how to update it?

    regards,
    Ali

    [sig moderated per forum rules]

    This is just a guess.. but did you try visiting the user registration form to see if the new fields are there? Chances are it’s a front end problem.

    If you dont see the newer fields, let me know and I’ll take a look on the install I have and if it doesn’t work I’ll dig into the code for you.

    Note: I’m not the author of the plugin, just concerned that this could effect me hence I should look into it.

    Regards,
    Ali

    [sig moderated per forum rules]

    Thread Starter atgheb

    (@atgheb)

    Solved the problem… to make a long story short… dont use the 2.8 API, use the older API unless you need multiple instances.

    Regards,
    Ali

    [sig moderated per forum rules]

    Forum: Plugins
    In reply to: register plus

    Glad I would help spotlightingadmin.

    Regards,
    Ali

    Forum: Plugins
    In reply to: register plus

    The post I replied to earlier is mentioned here:
    My post with the answer

    Forum: Plugins
    In reply to: register plus

    i posted a reply to this..
    it’s because you have email verification and manual verification both selected.

    You can only have one selected and it should work fine.

    :-p oddly you got my juices going on this… I wonder if we can customize this based on the page / post you are on… I’ll give it a whirl some time soon.

    I see you are into web development as well, if you need to outsource or if you need SEO services, do keep me in mind :-p

    Regards,
    Ali

    [sig moderated per forum rules]

    Also, if you just need the same list on each page, you can just use the text widget and put your HTML in it.

    Sorry, to correct myself, within a plugin it is of course possible to have customize stuff based on the post or page you are on, however the sidebars contain widgets. From within the widget whether it is possible to change the content of the widget depending on the page / post one is on is something I’m not sure about (will have to look into it, I think the meta data plugin does something similar).

    Would you want to a different list for every page or post? If your website has recipes in it, then it makes sense that you would want a different list with every page or post. I don’t know if this is possible in a plugin… it might be possible if I can figure out how to get the post_id or page name…

    The plugin is not going to be hard to write (other than the annoying ajax required to give you indefinite number of rows). Perhaps if they make the max number of rows fixed it would not be so bad…

    I’m not volunteering to write it… I have my own plugin that I need to finish for a client these days but your idea is decent and you should provide the extra information I have asked for as it’s relevant to the plugin… this can be done with DIV’s btw (without tables, which are a bad idea for SEO purposes).

    Regards,
    Ali

    [sig moderated per forum rules]

    It’s done in flash.

    in the text widget… check if it lets you add PHP code to it, if it does, you can simply just check the URL using PHP and add “disabled” to the link

    <a href="mypage.html" disabled> my link text</a>

    If you can’t add php code to it, then the same can be achieved with javascript.

    On page load you’ll have to do (below is just pseudo code using jQuery to give you an idea):
    HTML

    <a href="pageA.html" id="linkA">Link A</a>
    <a href="pageB.html" id="linkB">Link B</a>

    JS (on document ready / page load)

    jQuery(document).ready(function($){
       var url = window.location;
       if(url.indexOf('pageA.html') > -1){
          $('a#linkA').attr('disabled',true);
       }
    }
    ...

    NOTE: In wordpress jQuery loads in comaptibility / safety mode, so the just line of the JS aliases $ to jQuery hence allowing the use of $() function. It also services a dual purpose of checking whether the page has been loaded or not and if so it executes the code in it.

    Regards,
    Ali

    Thread Starter atgheb

    (@atgheb)

    Anyone?
    I’ve noticed that it’s probably not a case of remove_action not working, instead, seems that remove_action and add_action simply dont work in the update or widget function.

    Can anyone recommend how I can dynamically add something to the header from a widget? A simpler example would be if I wanted the title of the widget included as a comment in the header and I wanted that comment to be updated when someone update the title of the widget.

    Thanks in advance.

    also consider register-plus plugin.

    Regards,

    if you are parsing the feed yourself then the following code can be used to parse the feeds. In the endElement function you can do anything you want. This code I’m using in a widget I wrote to parse RSS feeds.:

    function startElement($xp,$name,$attributes) {
    				global $item,$currentElement;  $currentElement = $name;
    				//the other functions will always know which element we're parsing
    				if ($currentElement == 'ITEM') {
    					//by default PHP converts everything to uppercase
    					$item = true;
    					// We're only interested in the contents of the item element.
    					////This flag keeps track of where we are
    				}
    			}
    
    			function endElement($xp,$name) {
    				global $item,$currentElement,$title,$description,$link,$rssCount;
    
    				if ($name == 'ITEM' && $rssCount < $this->maxRssEntries) {
    					// If we're at the end of the item element, display
    					// the data, and reset the globals
    					echo "<div class='custom-feed'>";
    					echo "<div class='custom-feed-title'><a href='" . $link . "'>$title</a></div>";
    					echo "<div class='custom-feed-desc'>$description</div>";
    					echo "</div>";
    					$rssCount += 1;
    
    					$title = '';
    					$description = '';
    					$link = '';
    					$item = false;
    				}elseif($name == 'ITEM'){
    					$title = '';
    					$description = '';
    					$link = '';
    					$item = false;
    				}
    			}
    
    			function characterDataHandler($xp,$data) {
    				global $item,$currentElement,$title,$description,$link;
    				if ($item) {
    				//Only add to the globals if we're inside an item element.
    					switch($currentElement) {
    					case "TITLE":
    						$title .= $data;
    						// We use .= because this function may be called multiple
    						// times for one element.
    						break;
    					case "DESCRIPTION":
    						$description.=$data;
    						break;
    					case "LINK":
    						$link.=$data;
    					break;
    					}
    				}
    			}
    
    			function readFeeds($feed) {
    				global $rssCount;
    			  $fh = fopen($feed,'r');
    				// open file for reading
    
    			  $xp = xml_parser_create();
    				// Create an XML parser resource
    
    			  xml_set_element_handler($xp, array($this,"startElement"), array($this,"endElement"));
    				// defines which functions to call when element started/ended
    
    			  xml_set_character_data_handler($xp, array($this,"characterDataHandler"));
    
    				while ($data = fread($fh, 4096)) {
    					if($rssCount < $this->maxRssEntries){
    						if (!xml_parse($xp,$data)) {
    							return 'Error in the feed';
    						}
    					}else
    						break;
    				}
    			}

    Sorry in advance if I misunderstood your question.

    [signature moderated Please read the Forum Rules]

Viewing 15 replies - 1 through 15 (of 22 total)