brasofilo
Forum Replies Created
-
Forum: Plugins
In reply to: RSS Feed Button Issues in Chromei did this trick
Forum: Fixing WordPress
In reply to: RSS feed error on Google Chromeincredibly, but looks like chrome doesn’t support feeds without an extension…
here there’s a way of getting support for rss in chrome
i adapted the technique for use in my rss button
so if browser is chrome = true, change value of href:
<?php $isChrome = eregi("chrome", $_SERVER['HTTP_USER_AGENT']); $rss = $MY_NORMAL_RSS_URL; if($isChrome) $rss="javascript:(%7BaddURL:function(aURL)%7Bvar%20url=%22http://feeds.ramisp.org/preview.php?utf=y&src=%22+encodeURIComponent(aURL);location.href=url;%7D,getFeedURL:function(e,aDocument)%7Bvar%20j=e;var%20c=aDocument.location;if(e.indexOf(%22/%22)!=0)%7Bvar%20d=c.pathname.split(%22/%22);d%5Bd.length-1%5D=e;j=d.join(%22/%22)%7Dreturn%20c.protocol+%22//%22+c.hostname+j;%7D,checkForFeeds:function()%7Bvar%20f=false;var%20m=document.getElementsByTagName(%22link%22);for(var%20g=0,a;a=m%5Bg%5D;g++)%7Bvar%20h=a.getAttribute(%22type%22);var%20i=a.getAttribute(%22rel%22);if(h&&h.match(/%5B%5C+%5C/%5Dxml%24/)&&i&&i==%22alternate%22)%7Bvar%20b=a.getAttribute(%22href%22);if(b.indexOf(%22http%22)!=0)%7Bb=this.getFeedURL(b,document);%7Dthis.addURL(b);f=true;break%7D%7Dif(!f)alert(%22Oops.%20Can't%20find%20a%20feed.%22);%7D%7D).checkForFeeds();"; ?> <a href="<?php echo $rss; ?>" target="_blank"><img src="/images/rss.png" alt="RSS Feed" title="RSS Feed" /></a>at work here: http://www.abuzza.com.br
Forum: Plugins
In reply to: [Adminimize] [Plugin: Adminimize] own options -> just fantasticoh, yeah,
sure shotinstead of doing as i did above, repeating the option inside options-post and options-page, is easier to do it inside Global Options… so the change is… global… no more extra buttons in post, page or custom post
another example, i wanted to hide the Insert Gallery from the upload window…
so, in global options, in the first column: Hide Gallery
and the second column: #gallery-settingsForum: Plugins
In reply to: Loading JavaScript and Stylesheet Only When it is Necessaryyes, the tip Sina links to is very helpful
and i found an optimization
there’s another tip here but it does edit the core filesbut, if we put the two lines in config.php
define(‘WPCF7_LOAD_JS’, false); define(‘WPCF7_LOAD_CSS’, false);and then before wp_head() we put:
if ( $_SERVER['REQUEST_URI'] == "/" or $_SERVER['REQUEST_URI'] == "/contact/") { if ( function_exists( ‘wpcf7_enqueue_scripts’ ) ) { wpcf7_enqueue_scripts(); wpcf7_enqueue_styles(); } }this way, there’s no need to edit core files, or use custom pages, and depending on the theme, even custom headers…
the REQUEST_URI are the pages/posts with ContactForm7
and to check them out you can do:
echo "the url = " . $_SERVER['REQUEST_URI'];i was having issues with this topic too…
solved activating the secondary lightbox, and btw, in that section there are instructions as how to use it
Forum: Fixing WordPress
In reply to: wp_list_bookmarks Parameters not workingcouldn’t get wp_list_bookmarks behave as it should…
with get_bookmarks it’s possible to adjust everything
Forum: Fixing WordPress
In reply to: Make a copy of wordpress website on same serveri’d do it like this:
– (it’d be easier if original wp is installed inside a directory)
– go to PhpMyAdmin and export the old wp tables to a file .sql (and this is a backup of your original wp, important!)
– in text editor find/replace all mysite.com/wp to mysite.com/new_wp
– also find/replace all old_table_prefix to new_table_prefix
– in the new config.php just change $table_prefix and add the define home+siteurl
go and test mysite.com/new_wpgood luck
Forum: Fixing WordPress
In reply to: How to remove short code from post excerptdamn regex…
much appreciated code
thxForum: Fixing WordPress
In reply to: Upgrade to 2.9.2 Brokeamazing, cordoval… you found the time to post you found a solution but not revealing it is quite…. revealing…
for me, it worked after i did a batch “draft” in the old pages, then performing a batch “publish”
Forum: Plugins
In reply to: [Plugin: Audio Player] Wish: Shuffle ModeForum: Plugins
In reply to: [Plugin: Audio Player] Random mode for multiple songs?i posted some php code to automate a random playlist
Forum: Plugins
In reply to: [Plugin: Audio Player] Play RandomForum: Requests and Feedback
In reply to: [Plugin: WPaudio MP3 Player] Bugs and suggestionsapparently, there’s no way to disable downloads using the mp3 link, as in:
Artist – Songi enabled “convert all links” in the plugin options, and, as i’m inserting the links dynamically in a template page, i can’t use the normal content tags, so i had to disable all downloads in wpaudio.js
well, it’s just a thought to help improve this great plugin
thanks for the good workForum: Your WordPress
In reply to: Flash Frontend w/ Deep Linking & WP Backend CMSthx, creyes!
hi, lex, i’m writing you an email this very moment
– about the video Url:
yes, i put many values inside custom fields, but sometimes i do amfphp queries with “SELECT guid from wp_posts where post_type=’attachment’ AND post_mime_type=’audio/mpeg’ AND post_parent=’$ID'”
this one is to feed an mp3 player, i have a page called ‘Radio’, upload all the files inside it, and grab the list with the query above