Форумы / Cotonti / Support / How to Make new Theme

<<<12

Macik
#16 13.11.2016 16:53
#42341 n0fx:

Weird i didnt know its related SED_DEBUG sorry.

I do not think so. But can't explain...

I want to use recent items plugin for page.tpl. I researched but I couldn't find a way for it. How i can do it? 

Many thanks :)

By default it works only on these hooks `index.tags, header.tags, footer.tags`.

To extend it for Pages:

- locate file `recentitems.index.php`;
- add `page.tags` hook to list in header block:
 

Hooks=index.tags,header.tags,footer.tags,page.tags

 

https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F
n0fx
#17 17.11.2016 01:38

Hi again :)

I was using bbcode then I converted my data to HTML with bbcode parser plugin but I have a problem especially with forum posts. for example my forum post looking like that..

I am using

- CKeditor
- HTML Purifier
- HTML Parser

<blockquote><strong>Lucretius :</strong>
başlık çok güzel olmuş bunu dökümanlar bölümünede eklersen çok sevinirim.<br />
</blockquote>
<br />
Teşekkür ederim. Dökümanlara eklemek için resimler ve linkleri html olarak değiştirmem gerekiyor sanırım? Olduğu gibi c/p yapsam sorun olurmu?<br />
<br />
<span style="color:#171A97"><em>Daha sonra eklenen mesaj 10 dakika</em></span><br />
<br />
<blockquote><strong>Neon :</strong>
oo tamam <img class="aux smiley" src="./images/smilies/smile.gif" alt=":)" /> bide script pack koydukmu bak bakalım artık herkez run uocu.. şimdiden açılmaya başlar shardlar.. ama gerçekten güzel b,r çalışma tebrik ederim..<br />
</blockquote>
<br />
Teşekkür ederim. Zaten orijinal RunUO paketinin içinde bir sürü script var. Yani server oynanmaya hazır olarak geliyor. Extraları kendiniz eklemelisiniz sadece.

When I am looking on the source with CKeditor

<p>&lt;blockquote&gt;&lt;strong&gt;Lucretius :&lt;/strong&gt;<br />
başlık &ccedil;ok g&uuml;zel olmuş bunu d&ouml;k&uuml;manlar b&ouml;l&uuml;m&uuml;nede eklersen &ccedil;ok sevinirim.&lt;br /&gt;<br />
&lt;/blockquote&gt;<br />
&lt;br /&gt;<br />
Teşekk&uuml;r ederim. D&ouml;k&uuml;manlara eklemek i&ccedil;in resimler ve linkleri html olarak değiştirmem gerekiyor sanırım? Olduğu gibi c/p yapsam sorun olurmu?&lt;br /&gt;<br />
&lt;br /&gt;<br />
&lt;span style=&quot;color:#171A97&quot;&gt;&lt;em&gt;Daha sonra eklenen mesaj 10 dakika&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;<br />
&lt;br /&gt;<br />
&lt;blockquote&gt;&lt;strong&gt;Neon :&lt;/strong&gt;<br />
oo tamam &lt;img class=&quot;aux smiley&quot; src=&quot;./images/smilies/smile.gif&quot; alt=&quot;:)&quot; /&gt; bide script pack koydukmu bak bakalım artık herkez run uocu.. şimdiden a&ccedil;ılmaya başlar shardlar.. ama ger&ccedil;ekten g&uuml;zel b,r &ccedil;alışma tebrik ederim..&lt;br /&gt;<br />
&lt;/blockquote&gt;<br />
&lt;br /&gt;<br />
Teşekk&uuml;r ederim. Zaten orijinal RunUO paketinin i&ccedil;inde bir s&uuml;r&uuml; script var. Yani server oynanmaya hazır olarak geliyor. Extraları kendiniz eklemelisiniz sadece.</p>

How i can solve it?

Note: I am still working on the example database I mean I can convert my database again.

https://www.ultima-strike.com
Macik
#18 17.11.2016 15:39

First, check forum posts actual data, to analyze is it really «double converted» or no... 

If it has a correct plain HTML code (not «doubled» as in second exampe) — just check these parser related settings:
Administration panel → Configuration → Main Settings → Markup parser:    It should be — `HTML`.

Administration panel → Extensions → Forums → Configuration → Enable markup: `Yes`

 

https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F
n0fx
#19 07.12.2016 00:28

Hi again, sorry I couldnt answer before.

Yes, you are right I converted data double time sorry :( btw I opened the web site : https://www.ultima-strike.com

Thank you for everything @macik

Added 16 hours later:

I have a few questions. 

How i can change 404 page ?

I got so much security logs like:

A variable type check failed, expecting COOKIE/ALP for 'ct66deea74dc5db9a1' : MTgxMDcxOmIzZGNmYjlkNGU2YzFkMjAzNzI3ZWIzMTM4YTRlMDBjYWY4MzBmYjM= - /

A variable type check failed, expecting COOKIE/ALP for 'ct66deea74dc5db9a1' : MTUzODU6M2M5Y2I3YjRjOGZjYjIyM2YzY2YyODNiNjhiZWVkNjFjZDE2MjcwNQ== - /forum/ultima-online/ekip-arkadaslari-araniyor-q51896&d=2

A variable type check failed, expecting COOKIE/ALP for 'ct66deea74dc5db9a1' : MTUzODU6M2M5Y2I3YjRjOGZjYjIyM2YzY2YyODNiNjhiZWVkNjFjZDE2MjcwNQ== - /uye/Xlore

A variable type check failed, expecting COOKIE/ALP for 'ct66deea74dc5db9a1' : MTczODcxOjlkYThjOWY0NWU3NzZhMTczNjc2NzY5ODU3MDQ3ZTZhODY0MzdjZWI= - /download/uo/uodownload/uo-mondains-legacy-ml

What's problem? How i can solve it? 

How i can be sure shield protection is working? I didnt see any log about that. Normally I got so much because of bots.

I saw on the admin page "Confirm potentially dangerous actions:" What does mean and how is working If I enabled ?

 

many thanks

Added 3 days later:

I want to send mass e-mail to my users about new website and when they click to spesific url they should login to website directly. how i can do it? do you have a idea ?

Added 1 day later:

I am using hybridauth plugin. facebook is working well but I couldnt get e-mail, birthday and location information. I know cotonti was using before this plugin. did you have same problem ?

https://www.ultima-strike.com
Отредактировано: n0fx (12.12.2016 02:25, 7 лет назад)
Macik
#20 12.12.2016 12:55
#42474 n0fx:

How i can change 404 page ?

Locate `error.tpl` within your theme files, copy it to `error.404.tpl` and modify it for your needs.

I got so much security logs like:

A variable type check failed, expecting COOKIE/ALP for 'ct66deea74dc5db9a1' : MTgxMDcxOmIzZGNmYjlkNGU2YzFkMjAzNzI3ZWIzMTM4YTRlMDBjYWY4MzBmYjM= - /  

What's problem? How i can solve it? 

It seems to be a minor bug related to Auth system. Issue #1557 created. And already fixed... Thanks for report. :)

How i can be sure shield protection is working? I didnt see any log about that. Normally I got so much because of bots.

Check is it enabled «Administration panel»  → «Configuration» → «Security».  And try to play with `Shield timers` and `Anti-hammer` values, and test some action (e.g. comments send as a guest). 

I saw on the admin page "Confirm potentially dangerous actions:" What does mean and how is working If I enabled ?

If enabled the system displays confirmation dialogs (yes/no) for dangerous actions like deleting some thing (e.g. user post or page category, and so on).

I want to send mass e-mail to my users about new website and when they click to spesific url they should login to website directly. how i can do it? do you have a idea ?

It's potentionaly dangerous. There is no such functional in the core. So you need to write some plugin for it.

I am using hybridauth plugin. facebook is working well but I couldnt get e-mail, birthday and location information. I know cotonti was using before this plugin. did you have same problem ?

I can not remember exactly. But think it can be related to permissions you setup in FB API while registering your application.

 

https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F
Отредактировано: Macik (13.12.2016 08:57, 7 лет назад)
n0fx
#21 14.12.2016 00:38
#42521 Macik:
 

I got so much security logs like:

A variable type check failed, expecting COOKIE/ALP for 'ct66deea74dc5db9a1' : MTgxMDcxOmIzZGNmYjlkNGU2YzFkMjAzNzI3ZWIzMTM4YTRlMDBjYWY4MzBmYjM= - /  

What's problem? How i can solve it? 

It seems to be a minor bug related to Auth system. Issue #1557 created. And already fixed... Thanks for report. :)

Thank you I fixed from github update :) but I am getting still some of similar errors but I think its related my URL slug system

A variable type check failed, expecting G/ALP for 'm' : details;id=48605;df=169 - /uyeler?m=details;id=48605;df=169

I want to send mass e-mail to my users about new website and when they click to spesific url they should login to website directly. how i can do it? do you have a idea ?

It's potentionaly dangerous. There is no such functional in the core. So you need to write some plugin for it.

Yes, I know thats why I want this link will work 1 time. I want to ask you like What's necessary to login user? Is there function related it ?

I am using hybridauth plugin. facebook is working well but I couldnt get e-mail, birthday and location information. I know cotonti was using before this plugin. did you have same problem ?

I can not remember exactly. But think it can be related to permissions you setup in FB API while registering your application.

 

email permission came by default but I couldnt get email information. Maybe its related plugin is using old hybridauth cores or plugin is not compatible with cotonti last version ? I am thinking like that because Cotonti website also disabled hybridauth plugin.

https://www.ultima-strike.com
Macik
#22 15.12.2016 11:24
#42525 n0fx:
 

Thank you I fixed from github update :) but I am getting still some of similar errors but I think its related my URL slug system

A variable type check failed, expecting G/ALP for 'm' : details;id=48605;df=169 - /uyeler?m=details;id=48605;df=169

Yes, you are right. `m` parameter while imported is checked against alpha-numeric values (ALP filter), but your data consist of special signes (;=). So you need to locate importing block in your plugin and change filter type to 'TXT'.

I want to send mass e-mail to my users about new website and when they click to spesific url they should login to website directly. how i can do it? do you have a idea ?

It's potentionaly dangerous. There is no such functional in the core. So you need to write some plugin for it.

Yes, I know thats why I want this link will work 1 time. I want to ask you like What's necessary to login user? Is there function related it ?

There is no «ready to use» function now. So look at `login.php` for inspiration.

I am using hybridauth plugin. facebook is working well but I couldnt get e-mail, birthday and location information. I know cotonti was using before this plugin. did you have same problem ?

I can not remember exactly. But think it can be related to permissions you setup in FB API while registering your application.

email permission came by default but I couldnt get email information. Maybe its related plugin is using old hybridauth cores or plugin is not compatible with cotonti last version ? I am thinking like that because Cotonti website also disabled hybridauth plugin.

As for this site, first of all we moved site to `https`, so need to setup new app URLs in socials settings pages. But later it exposes some socials still not work. So for fast solution we turned it off. And yes, hybridauth core uses old version of corresponding lib, so may be problem located there. But I didn't test a new one. 

https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F

<<<12