This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* If not currently logged in, login temp superadmin | |
* | |
* @access public | |
*/ | |
function login_temporary_user() | |
{ | |
if( $this->EE->session->userdata['member_id'] == 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// a bunch of stuff up here that fetches/preps the external data | |
// basically create an array with all your data to insert / update | |
$data = array( | |
'title' => $operator['nameofbusiness'], | |
'entry_date' => date("Y-m-d h:i A", $entry_date), | |
'channel_id' => $channel_id, | |
'category' => array($category_id), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPLOAD DIRECTORIES | |
id label | |
------------------------------ | |
10 Career Uploads | |
11 Consumer Line | |
5 Content Resources | |
13 Form Uploads | |
9 Hero Images | |
12 Home Page Banner Uploads |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{exp:channel:entries | |
channel="pages_about" | |
limit="1" | |
status="open" | |
disable="{global:param_disable_default}" | |
require_entry="yes"} {if no_results}{redirect="404"}{/if} | |
{gv_html_open} | |
<title>{title}</title> | |
{snp_head_links} | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Say you had your "add to favorites" link as so: | |
<p class="bookmark_link"> | |
<a class="favorites_trigger" href="{path=/favorites/add/}{entry_id}"> | |
Bookmark this | |
</a> | |
</p> | |
========================================================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="fm-profile-detail-wrapper"> | |
<div class="fm-header-wrapper"> | |
<div class="fm-member-photo{if photo} fm-has-photo{/if}"> | |
{if photo} | |
<img src="{path:photo_url}" class="photo" width="{photo_width}" height="{photo_height}" border="0" title="{name}" /> | |
<p>{lang:my_photo}</p> | |
{/if} | |
{if not_photo} | |
<img src="{path:image_url}icon_profile.gif" width="50" height="50" border="0" title="{name}" alt="{lang:no_photo}" /> | |
<p>{lang:no_photo_exists}</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// find the following around line 127 of pi.imgsizer.php | |
// ------------------------------------- | |
// do fetch remote img and reset the src | |
// ------------------------------------- | |
if($remote && $img['url_src']){ | |
$img['src'] = $this->do_remote($img); | |
} | |
// immediately after that, enter the following |
NewerOlder