COLORADO: 8:12 am
JAPAN: 11:12 pm

-1130 days for S+Y!



Post new topic Reply to topic  [ 12 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: ocPORTAL / Composr install & modify tips
PostPosted: Wed Apr 15, 2015 1:19 am 
SysOp
User avatar

Joined: Sun Nov 08, 2009 7:03 pm
Posts: 1550
Location: Colorado
http://ocportal.com/docs/tut_install.htm

manual install

create database:

viewtopic.php?f=12&t=563

FTP everything up

_________________
Contact me directly: Ironfeatherbooks (@) gmail.com

Image

Bookmark and Share



Top
 OfflineProfile  
 Post subject: Re: ocPORTAL install & modify tips
PostPosted: Sun Apr 19, 2015 6:18 pm 
SysOp
User avatar

Joined: Sun Nov 08, 2009 7:03 pm
Posts: 1550
Location: Colorado
Icons, Smiles & Avatars in ocPortal

http://blog.arvixe.com/icons-smiles-ava ... -ocportal/

Icons in ocPortal

This addon is called ocIcon and was made by the main programmer behind ocPortal, Chris Graham.

To install this addon

Log in to your adminzone
Navigate to the structure and then addons section of the Adminzone
Scroll down to and click import non bundled addons
On the next screen select the download check box an expand the Graphical addons section of the tree
Select ocIcons and click the Import Non-Bundled addons button
The next screen will show you which files will be update as the addon is installed. It is important you check this list carefully if you have changed any templates on your site or any of the other coding. There should only be around 5 or 6 files for this addon
Once you are happy click proceed which is found in the bottom right

If you would like to edit the files yourself via FTP you can find them in your FTP in the Themes > Default > images > bigicons folder. Take care if you change the icons to make sure you don’t upload any files of different pixel sizes as this will likely break your theme.

Smilies in ocPortal

add emoticonLike Icons, there is a ready-made addon to add extra Smilies or emoticons to your ocPortal website. This is called ocSmilies and can be installed in the normal way of installing an addon as above. Just make sure you choose ocSmilies instead of ocIcons. There is also an emoticons section to the adminzone where you can add and edit smilies for your website. This section can be found in the style section of the adminzone and then choose Emoticons.

You have three options:

Import Emoticons which allows you to upload a zipped file of multiple images which will be added to the emoticons list
Add emoticon which allows you to add single emoticons or add the cod for the emoticons you uploaded through the import Emoticons option
Edit Emoticon allows you to edit all of the Emoticons you have added

If you would like to add the files via FTP you can find them in your FTP in the Themes > Default > images > ocf_emoticons folder.

Avatars in ocPortal

ocPortal comes with a range of example or default Avatars included but you may want to upload your own set or even delete the default ones completely. If you would like to edit the files via FTP you can find them in your FTP in the Themes > Default > images > ocf_default_avatars folder
- See more at: http://blog.arvixe.com/icons-smiles-ava ... -ocportal/

http://ocportal.com/docs9/tut_members.htm#title__14

ocPortal provides two sets of default avatars for inartistic/uninspired members to choose from (or possibly, if they just love our default avatars!). However, members may also upload their own avatars, or link to an avatar elsewhere.

If there is a theme image with the name ocf_default_avatars/default then this will be used as the default avatar a member gets when the join, otherwise default avatars will be picked randomly.

Avatar size is limited by the maximum size determined by any of their usergroups. 80x80 pixels is the size ocPortal uses by default.

It is beyond the scope of this tutorial how to create avatars. However, avatars are images no different than the theme images in ocPortal (and the default avatars are theme images), so whatever applies to editing theme images also applies to avatars.

Our default avatars may not be appropriate for some sites, but they can be changed. This can be done using the theme image manager. To actual get rid of the existing default avatars, you will need to delete the files from your web-space using an FTP program, and then to clear the theme image cache using the ocPortal Website cleanup tools module in the Admin Zone.
To add new avatars, you need to add new theme images. You can add whole sets of avatar this way. The easiest way to add theme images in bulk is just to use FTP, uploading them to:
themes/default/images/ocf_default_avatars/<packname>
You can also do it using the Theme management tools, making sure the theme image names have a prefix of ocf_default_avatars/<packname>.

_________________
Contact me directly: Ironfeatherbooks (@) gmail.com

Image

Bookmark and Share



Top
 OfflineProfile  
 Post subject: Re: ocPORTAL install & modify tips
PostPosted: Sun Apr 19, 2015 11:18 pm 
SysOp
User avatar

Joined: Sun Nov 08, 2009 7:03 pm
Posts: 1550
Location: Colorado
CLICK AVATAR PIC IN SIDE STATUS BLOCK SO IT LINKS DIRECTLY TO EDIT THE AVATAR PIC:

1. adminzone/index.php?page=admin_lang&type=misc

do a search for AVATAR

change it to

Code:
edit profile picture

(this is the tool tip & other mentions of Avatar)


2. edit BLOCK_SIDE_PERSONAL_STATS.tpl

change :

Code:
<div class="personal_stats_avatar"><img src="{AVATAR_URL*}" title="{!AVATAR}" alt="{!AVATAR}" /></div>


to

Code:
<div class="personal_stats_avatar"><a href="http://example.com/index.php?page=members&type=view&id={USERNAME*}#tab__edit__edit_space_profile_space_picture"><img src="{AVATAR_URL*}" title="{!AVATAR}" alt="{!AVATAR}" /></a></div>

_________________
Contact me directly: Ironfeatherbooks (@) gmail.com

Image

Bookmark and Share



Top
 OfflineProfile  
 Post subject: Re: ocPORTAL install & modify tips
PostPosted: Tue Apr 21, 2015 12:05 am 
SysOp
User avatar

Joined: Sun Nov 08, 2009 7:03 pm
Posts: 1550
Location: Colorado
INCLUDE RANDOM QUOTE IN FOOTER (WITHOUT IT BOXED)

1. edit BLOCK_MAIN_QUOTES.tpl

delete all code and add this only:

Code:
<blockquote class="quotes_block">
      {CONTENT}
   </blockquote>


2. edit GLOBAL_HTML_WRAP.tpl

insert this where you would like. For me I placed in the footer around line 155 right above
Code:
<div class="global_footer_left">


INSERT THIS:
Code:
 {$BLOCK,block=main_quotes}

_________________
Contact me directly: Ironfeatherbooks (@) gmail.com

Image

Bookmark and Share



Top
 OfflineProfile  
 Post subject: extend the session time out
PostPosted: Fri Apr 24, 2015 6:02 pm 
SysOp
User avatar

Joined: Sun Nov 08, 2009 7:03 pm
Posts: 1550
Location: Colorado
extend the session time out

Adminzone menu > Setup > Configuration > Security options > General

_________________
Contact me directly: Ironfeatherbooks (@) gmail.com

Image

Bookmark and Share



Top
 OfflineProfile  
 Post subject: Re: ocPORTAL install & modify tips
PostPosted: Sun May 03, 2015 1:25 am 
SysOp
User avatar

Joined: Sun Nov 08, 2009 7:03 pm
Posts: 1550
Location: Colorado
how to change header and also make transparent background etc, important theme change infos:

http://ocportal.com/forum/topicview/mis ... tion_3.htm

_________________
Contact me directly: Ironfeatherbooks (@) gmail.com

Image

Bookmark and Share



Top
 OfflineProfile  
 Post subject: Re: ocPORTAL install & modify tips
PostPosted: Thu Dec 22, 2016 8:01 pm 
SysOp
User avatar

Joined: Sun Nov 08, 2009 7:03 pm
Posts: 1550
Location: Colorado
HIDE VIEW POSTS button if none exist in the WIKI

Edit template: templates/WIKI_PAGE_SCREEN.tpl

Code:
<!--  stevyn edit to hide posts -->
{+START,IF_NON_EMPTY,{POSTS}}
<!--  stevyn edit to hide posts -->

   {+START,IF,{$AND,{$NOT,{$PREG_MATCH,(^|&|\?)te\_\d+=1,{$QUERY_STRING}}},{HIDE_POSTS}}}
      <div>
         <p class="toggleable_tray_title">
            <a class="toggleable_tray_button" title="{!DISCUSSION}: {!EXPAND}/{!CONTRACT}" href="#" onclick="return toggleable_tray('hidden_posts');"><img alt="{!EXPAND}: {!DISCUSSION}" title="{!EXPAND}" src="{$IMG*,1x/trays/expand}" srcset="{$IMG*,2x/trays/expand} 2x" /></a>
            <a class="toggleable_tray_button" title="{!DISCUSSION}: {!EXPAND}/{!CONTRACT}" href="#" onclick="return toggleable_tray('hidden_posts');">{!DISCUSSION}</a> ({!POST_PLU,{NUM_POSTS*}})
         </p>
         <div class="toggleable_tray" id="hidden_posts" style="display: {$JS_ON,none,block}" aria-expanded="false">
   {+END}

   {+START,IF_EMPTY,{POSTS}}
      <p class="nothing_here">{!NO_POSTS}</p>
   {+END}
   {+START,IF_NON_EMPTY,{POSTS}}
      <div class="wide_table_wrap"><div class="map_table results_table wide_table cns_topic wiki_table">
         <div>
            {POSTS}
         </div>
      </div></div>
   {+END}

   {+START,IF,{$AND,{$NOT,{$PREG_MATCH,(^|&|\?)te\_\d+=1,{$QUERY_STRING}}},{HIDE_POSTS}}}
         </div>
      </div>
   {+END}
<!--  stevyn edit to hide posts -->
{+END}
<!--  stevyn edit to hide posts -->

_________________
Contact me directly: Ironfeatherbooks (@) gmail.com

Image

Bookmark and Share



Top
 OfflineProfile  
 Post subject: Re: ocPORTAL / Composr install & modify tips
PostPosted: Thu Dec 22, 2016 11:01 pm 
SysOp
User avatar

Joined: Sun Nov 08, 2009 7:03 pm
Posts: 1550
Location: Colorado
have side block appear only for one page

http://ocportal.com/forum/topicview/mis ... ost_108179

Code:
{+START,IF,{$MATCH_KEY_MATCH,site:somepage,:somepage}}
(some Comcode)
{+END}



That targets it to only run on a page named 'somepage' in either the site zone or the welcome zone.


Code:
{+START,IF,{$NOT,{$MATCH_KEY_MATCH,site:members:view}}}
block code
[+END]

how to block right panel on profile page

more details about match_key
http://ocportal.com/docs9/tut_menus.htm ... _match_key

he menu system can use match-keys for matching against the URL the menu is being viewed from, to determine whether a branch will be shown. If the URL matches against one of the match-keys for a branch, then the branch will be shown, otherwise it won't. Note that if you leave the "Restrict link visibility" field blank, none of this checking happens, and the branch is shown.

Match-keys may also be used in other places in ocPortal, for other kinds of matching purposes.

Match-key s are usually written exactly like page links, but are instead used only for matching. They do not need to point to anything, unlike page links which are actually convertible into real URLs.

For an explanation of page links and entry points, see the ocPortal site structure tutorial.

The only differences between a page link and a match-key are:

Match-keys may use '_WILD' as the zone or page in order to skip checking against zone/page
Related to the above, it makes no sense to use '_SEARCH' or '_SELF' as the zone/page in a match-key
While all specified components of a match-key enforce a match, the URL may also have additional parameters and the match-key does not need to state them – i.e. the match-key may specify a subset of the parameters of a URL, broadening the match


An example match-key list is '_WILD:cms_downloads:type=ad,_WILD:cms_galleries:type=ed'. This would match URLs that were generated from the following page links (whether these page links points themselves actually work is irrelevant):

cms:cms_downloads:type=ad
randomzone:cms_downloads:type=ad
:cms_downloads:type=ad:wide=1
cms:cms_galleries:type=ed
adminzone:cms_galleries:type=ed:keep_novalidate=1


It would not match URLs generated from the following page links:

site:cms_galleries:type=ad
randomzone:cms_example
:cms_downloads:type=ed:wide=1

_________________
Contact me directly: Ironfeatherbooks (@) gmail.com

Image

Bookmark and Share



Top
 OfflineProfile  
 Post subject: Re: ocPORTAL / Composr install & modify tips
PostPosted: Mon Mar 06, 2017 3:47 am 
SysOp
User avatar

Joined: Sun Nov 08, 2009 7:03 pm
Posts: 1550
Location: Colorado
huge list and tutorial on tempcode

http://ocportal.com/docs9/tut_tempcode.htm

_________________
Contact me directly: Ironfeatherbooks (@) gmail.com

Image

Bookmark and Share



Top
 OfflineProfile  
 Post subject: hide RSS SIDE BLOCK if error or empty
PostPosted: Mon Mar 06, 2017 5:21 am 
SysOp
User avatar

Joined: Sun Nov 08, 2009 7:03 pm
Posts: 1550
Location: Colorado
Hide RSS SIDE BLOCK if error or empty

this is crude but seems to work:

1. edit side_rss.php

comment out the RSS error handling stuff... kinda like this:

Code:


      if (!is_null($rss->error)) {
            $GLOBALS['DO_NOT_CACHE_THIS'] = true;
         /*
            
            require_code('failure');
             relay_error_notification(do_lang('rss:ERROR_HANDLING_RSS_FEED', $url, $rss->error), false, 'error_occurred_rss');
         
       
            if (cron_installed()) {
                if (!$GLOBALS['FORUM_DRIVER']->is_staff(get_member())) {
                    return new Tempcode();
                }
            }
         
         
            return do_template('INLINE_WIP_MESSAGE', array('_GUID' => 'b1da4a43b092dc991c27952a7ef530d1', 'MESSAGE' => htmlentities($rss->error)));
      */
    
        }




this now returns to the side block but the contents are empty so edit the template

templates/BLOCK_SIDE_RSS.tpl

basically we will not display the RSS newsfeed box if no content, thus no box is created and the display is clean.

Code:
<!--- stevyn test  --->
{+START,IF_NON_EMPTY,{CONTENT}}
<!--- stevyn test  --->


{+START,IF,{$NOT,{TICKER}}}
   <section id="tray_{TITLE|}" class="box box___block_side_rss">
      <h3 class="toggleable_tray_title">
         <a class="toggleable_tray_button" href="#" onclick="return toggleable_tray(this.parentNode.parentNode,false,'{TITLE|}');"><img alt="{!CONTRACT}: {$STRIP_TAGS,{TITLE`}}" title="{!CONTRACT}" src="{$IMG*,1x/trays/contract2}" srcset="{$IMG*,2x/trays/contract2} 2x" /></a>

         {+START,IF_NON_EMPTY,{TITLE}}
            <a class="toggleable_tray_button" href="#" onclick="return toggleable_tray(this.parentNode.parentNode,false,'{TITLE|}');">{TITLE`}</a>
         {+END}
      </h3>

      <div class="toggleable_tray">
         {+START,IF_EMPTY,{CONTENT}}
            <p class="nothing_here">{!NO_NEWS}fffk</p>
         {+END}
         {+START,IF_NON_EMPTY,{CONTENT}}
            <div class="webstandards_checker_off">
               {CONTENT} 
            </div>
         {+END}
      </div>
   </section>

   {+START,IF,{$JS_ON}}
      <script>// <![CDATA[
         handle_tray_cookie_setting('{TITLE|}');
      //]]></script>
   {+END}
{+END}


<!--- stevyn test  --->
{+END}
<!--- stevyn test  --->





UPDATE: do the same for the ticker or simply for the whole thing....

_________________
Contact me directly: Ironfeatherbooks (@) gmail.com

Image

Bookmark and Share



Top
 OfflineProfile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ]  Go to page 1, 2  Next


Who is online

Users browsing this forum: No registered users and 0 guests



Search for:
cron

This site contains adult natured content. All material submitted to this site is the sole responsibility of the submitter.

© 2023 Iron Feather Journal

 

Recent Visitors: