magentos-pl / opencaching-pl

Automatically exported from code.google.com/p/opencaching-pl
0 stars 0 forks source link

personalizations #87

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
How can one node personalize some items of the website to be specific to their 
node? 

- website icon 
currently: 
<link rel="SHORTCUT ICON" href="favicon.ico" />

- website logo (upper left) 
currently: 
<!-- OC-Logo -->
<div><img src="./images/oc_logo_1A.png" alt="" style="margin-top:5px; 
margin-left:3px;" /></div>

Original issue reported on code.google.com by andrixnet on 1 Apr 2014 at 3:23

GoogleCodeExporter commented 9 years ago
I might add to this :
the page background, 
header panoramas that are rotated

Original comment by andrixnet on 1 Apr 2014 at 3:50

GoogleCodeExporter commented 9 years ago
if you want personalize main logo, please add in your settings.inc.php:

$config['headerLogo'] = ...
$config['headerLogoWinter'] = ...
$config['headerLogo1stApril'] = ...

(I don't know how to change favicon, so if someone do, please change it same 
way as https://code.google.com/p/opencaching-pl/source/detail?r=5945)

Original comment by wloczynutka on 1 Apr 2014 at 7:13

GoogleCodeExporter commented 9 years ago
I've implemented the personalization for website icon in revision #5953 
https://code.google.com/p/opencaching-pl/source/detail?r=5953

Thank you for showing me how to do it. 

I will proceed to add more node personalizations this way and I hope they will 
benefit everyone. 

Currently you can see the http://www.opencaching.pl yellow sun based icon, and 
http://oc.opencaching.ro red-yellow-blue sun based icon, as our icon. 

Original comment by andrixnet on 2 Apr 2014 at 12:45

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
These files also need personalization, however they are HTML template files 
with hardcoded references. 

/lib/js/CookiesInfo.js
/okapi/settings.php (AFAIK this should not be modified, but the bridge file)
/powerTrail/candidateEmail.html
/powerTrail/commentEmail.html
/util.sec/watchlist/watchlist.email.html

Modifying them is beyond my PHP ability at this time.

Original comment by andrixnet on 2 Apr 2014 at 1:04

GoogleCodeExporter commented 9 years ago
Corrected reference to logo files in settingsDefault.inc.php. 

The logo files are actually in /images while the above stated they should be in 
/tpl/stdsyle/images 

See #5955

Original comment by andrixnet on 2 Apr 2014 at 1:12

GoogleCodeExporter commented 9 years ago
Added 
$config['headerFavicon'] = ...

Original comment by andrixnet on 2 Apr 2014 at 1:17

GoogleCodeExporter commented 9 years ago
So, can this issue be closed (fixed)?

Original comment by wloczynutka on 2 Apr 2014 at 9:43

GoogleCodeExporter commented 9 years ago
As low priority, I would still like to personalize the page background, 
andheader panoramas that are rotated.

It is much more complex then favicon :-) 

Original comment by andrixnet on 3 Apr 2014 at 10:22

GoogleCodeExporter commented 9 years ago
how do I write some personalizations in template files? 

for example for this section of code in mobile/tpl/header.inc.tpl:

        <div id="logo" class="headertitle">
            <a href="./index.php" ><img alt="" src="../images/oc_logo.gif"/>m.Opencaching.pl</a>
        </div>

Original comment by andrixnet on 4 Apr 2014 at 4:49

GoogleCodeExporter commented 9 years ago
mobile use smarty templates. First of all you need to find php script 
prearing data for specified smarty template.  In php script add variable 
witch image filaname  taken from $config, example:

$/smarty/->/assign/('headerLogo', $config['headerLogo']);

Finally in smarty template (.tpl) replace hardcoded image name witch 
variable name in {} brackets, example <img src="path/to/{$headerLogo}" />

W dniu 2014-04-04 18:49, opencaching-pl@googlecode.com pisze:

Original comment by wloczynutka on 4 Apr 2014 at 8:13

GoogleCodeExporter commented 9 years ago
Is this issue stil open, or already resolved?

Original comment by wloczynutka on 6 Jul 2014 at 8:28

GoogleCodeExporter commented 9 years ago
I'd leave it at "started" status. 
I still haven't figured out the code sufficiently to safely do it. I believe in 
late july/early august I may have additional time to do it properly. 

Thank you. 

Original comment by andrixnet on 7 Jul 2014 at 7:03

GoogleCodeExporter commented 9 years ago
Please provide the work status. If you no longer work on this issue in nearest 
future, please close it (you can reopen anytime you decide to continue)

Original comment by wloczynutka on 5 Nov 2014 at 10:04

GoogleCodeExporter commented 9 years ago
I am working on a new settingsDefault (remember those emails we exchanged?), 
and applying those settings throughout the code. 

I am also working on a bridged configuration to take values from current 
settings.inc.php as deploying this would require rewriting settings.inc.php 
significantly (and a lot of cleanup). 

As of now I can say it's about 20% progress. 

Original comment by andrixnet on 6 Nov 2014 at 8:43