RSS and Atom Feed Reader Online

devcodepro

Public source code sharing repository

Bootstrap Blockquote Style - devcodepro

blockquote { width: 98%; overflow: hidden; display: block; border-left: 5px solid #b9c5ca; background-color: #e4ecef; color: #6b6868; padding: 24px; margin: 22px; font-style: oblique; }

Posted on 2 October 2019 | 5:26 pm

WampServer - phpMyAdmin: No activity within 1440 seconds; please log in again. - devcodepro

C:/wamp/apps/phpmyadmin/libraries/config.default.php Replace this line of code: $cfg['LoginCookieValidity'] = 1440; With this line of code: $cfg['LoginCookieValidity'] = 3600; C:/wamp/bin/php/phpVER/php.ini Replace this line of code:...

Posted on 28 July 2019 | 11:56 am

Changing Dropdown Icon Bootstrap 4 - Font Awesome - devcodepro

.dropdown-toggle::after{ display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content:"\f078"; border-top: 0;...

Posted on 11 July 2019 | 5:30 pm

Bootstrap 4 Modal pushing content to the left fix - devcodepro

.modal-open { overflow: visible; } .modal-open, .modal-open .fixed-top { height: 63px; padding-left: 0!important; padding-right: 0!important; margin: 0!important; }

Posted on 18 June 2019 | 7:22 pm

Smarty Random Color - devcodepro

randomcolor {/foreach} * ------------------------------------------------------------- */ function smarty_function_randomcolor($params, Smarty_Internal_Template $template) { $colors =...

Posted on 16 June 2019 | 1:53 am

YouTube video thumbnails size - devcodepro

https://img.youtube.com/vi/ /maxresdefault.jpg 1280 x 720 https://img.youtube.com/vi/ /sddefault.jpg 640 x 480 https://img.youtube.com/vi/ /hqdefault.jpg 480 x 360 https://img.youtube.com/vi/ /mqdefault.jpg 320 x 180 https://img.youtube.com/vi/...

Posted on 13 May 2019 | 5:24 am

SimplePie - Smarty example - devcodepro

//PHP File require_once ('autoloader.php'); $feed = new SimplePie(); $feed->set_feed_url('http://feeds.feedburner.com/TechCrunch/'); $feed->init(); $feed->handle_content_type(); if ($feed->error()) { echo $feed->error(); } foreach...

Posted on 10 May 2019 | 12:17 pm

Exim filter example - devcodepro

if $message_body: contains "Something you dont want" then fail text "Your mail is not welcome." seen finish endif if $message_body: contains "Something you dont want" or $message_body: contains "Also I dont want this" then fail endif

Posted on 5 May 2019 | 1:44 pm

Bootstrap 4 How to open external url in modal dialog - devcodepro

Launch demo modal Modal title × my-remote-file.php content Close...

Posted on 2 May 2019 | 4:15 pm

Highlight String Example - devcodepro

'; echo ' '; highlight_string($string); echo ' '; ?>

Posted on 20 January 2019 | 8:37 pm

Sending HTML Email With Image - devcodepro

Email With Image Sending HTML Email With Image ' . $message . ' '; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n"; $headers .= 'From:...

Posted on 20 January 2019 | 7:48 pm

Display and log errors - devcodepro

error_reporting(E_ALL); ini_set('display_errors', TRUE); ini_set('log_errors', TRUE); ini_set('error_log', 'php.log');

Posted on 8 December 2018 | 5:48 pm

Block googlebot robots.txt - devcodepro

User-agent: Googlebot Disallow: /

Posted on 28 November 2018 | 12:01 am

htaccess redirect http to https - devcodepro

RewriteEngine On RewriteCond %{HTTPS} off RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Posted on 23 June 2018 | 11:07 am

ADOdb - Check if MySQL query executed successfully - devcodepro

Prepare('DELETE FROM mytable WHERE id = ' . $DB->qstr($id) . ''); if ($DB->Execute($sql) === false) { print $DB->ErrorMsg(); } if ($DB->affected_rows() !== 0) { //true } ?>

Posted on 29 May 2018 | 4:20 pm

Article Structured data Schema Markup - devcodepro

My Article Name My Description Name Website Articles 4 out of 5 stars based on 1 votes

Posted on 21 May 2018 | 4:27 am

Bootstrap 4 change input placeholder color - devcodepro

.form-control::-webkit-input-placeholder { color: #bbb; }

Posted on 13 May 2018 | 3:51 pm

Change arrow size and colors in Bootstraps carousel - devcodepro

.carousel-control-prev-icon { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23f8f8f8' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E"); }...

Posted on 24 April 2018 | 2:27 pm

ADOdb count number of records - devcodepro

$recordSet = $conn->Execute('SELECT * FROM mytable where published = '.$conn->qstr('1').' or published = '.$conn->qstr('2').' order by id DESC'); $counter = $recordSet->recordCount(); echo $counter;

Posted on 8 April 2018 | 4:14 am

Exim - How to block certain domain - devcodepro

1. In etc/exim/exim.conf after this line: # $Cambridge: exim/exim-src/src/configure.default,v 1.14 2009/10/16 07:46:13 tom Exp $ put this line: system_filter = /etc/exim/filters 2. Create file filters in /etc/exim/ folder with code: if $header_from: contains...

Posted on 28 February 2018 | 11:02 am

26