cotonti.com : How to Make new Theme https://www.cotonti.com Laatste forum onderwerpen Cotonti en Mon, 13 Oct 2025 02:59:21 -0000 Macik #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. 

]]>
Thu, 15 Dec 2016 11:24:12 -0000
n0fx #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.

]]>
Wo, 14 Dec 2016 00:38:33 -0000
Macik #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.

 

]]>
Ma, 12 Dec 2016 12:55:04 -0000
n0fx 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 ?

]]>
Wo, 07 Dec 2016 00:28:03 -0000
Macik 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`

 

]]>
Thu, 17 Nov 2016 15:39:13 -0000
n0fx 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="https://www.cotonti.com/./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=https://www.cotonti.com/&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.

]]>
Thu, 17 Nov 2016 01:38:27 -0000
Macik #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

 

]]>
Zo, 13 Nov 2016 16:53:24 -0000
n0fx Unfortunately it doesnt work :(

NOTE: I was using SED_DEBUG from config.php. When I am seaching why SESSION isnt exists, I changed SED_DEBUG mode to FALSE so its working now. Weird i didnt know its related SED_DEBUG sorry.

Added 21 hours later:

Hi,

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 :)

]]>
Za, 12 Nov 2016 14:48:06 -0000
Macik #42319 n0fx:

{LIST_ROWCAT_COUNT} always show 0 even I looked last element of category structure. It should show how many pages under the category? How i can solve it? 

Note: I am working with my old database (converted last cotonti version from seditio). When I added page, I can see 1 but it doesnt count my old pages.

First try this: go to «Administration» → «Structure» → «Pages» and click «Resync».

]]>
Za, 12 Nov 2016 02:19:34 -0000
n0fx #42304 Macik:
#42302 n0fx:

 found {PAGE_ROW_NUM}

What extension / section / template you are edit?

I used for news plugin

Yes, you can use {PAGE_ROW_NUM}. (Or with direct variable access — {PHP.jj})

Its very good I can use also for different variables :)

how i can change pagination html tags ?

Look at `system/resources.rc.php` → «Pagination» section. You can redefine this variables in your `theme_name.php` file.

This is very good but I also need to change <p class="paging"> ? Actually I want to change to <ul> <li>

Unfortunately, `<p>` wrapper is hard coded in many templates. So to fully change it you need to rearrange whole template.

But you can use a little «hackaround» — add wrapper to `$R['link_pagenav_first']` and `$R['link_pagenav_last']` as listed below (… denotes other paging related code):

$R['link_pagenav_first'] = '</p><ul class="mypaging">…';
$R['link_pagenav_last'] = '…</ul><p class="paging">';

So final rendered HTML whould be:

<p class="paging"></p>
  <ul class="mypaging">
    …you pager code…
  </ul>
<p class="paging"></p>

So just add `p.paging{display:none;}` to your CSS to eliminate unnecessary paragraphs.

This is good idea but  If you are at the first page system dont show {FORUMS_TOPICS_PAGEPREV} thats why its not working. 
I solved like this I changed system/functions.php 4062 line
 

if ($current > 0)

to

if ($current > -1)

and line 4114

if (($current + $perpage) < $entries)

to

if ($entries)


 

Added 5 hours later:

{LIST_ROWCAT_COUNT} always show 0 even I looked last element of category structure. It should show how many pages under the category? How i can solve it? 

Note: I am working with my old database (converted last cotonti version from seditio). When I added page, I can see 1 but it doesnt count my old pages.

]]>
Wo, 09 Nov 2016 20:59:01 -0000
Macik #42302 n0fx:

 found {PAGE_ROW_NUM}

What extension / section / template you are edit?

I used for news plugin

Yes, you can use {PAGE_ROW_NUM}. (Or with direct variable access — {PHP.jj})

how i can change pagination html tags ?

Look at `system/resources.rc.php` → «Pagination» section. You can redefine this variables in your `theme_name.php` file.

This is very good but I also need to change <p class="paging"> ? Actually I want to change to <ul> <li>

Unfortunately, `<p>` wrapper is hard coded in many templates. So to fully change it you need to rearrange whole template.

But you can use a little «hackaround» — add wrapper to `$R['link_pagenav_first']` and `$R['link_pagenav_last']` as listed below (… denotes other paging related code):

$R['link_pagenav_first'] = '</p><ul class="mypaging">…';
$R['link_pagenav_last'] = '…</ul><p class="paging">';

So final rendered HTML whould be:

<p class="paging"></p>
  <ul class="mypaging">
    …you pager code…
  </ul>
<p class="paging"></p>

So just add `p.paging{display:none;}` to your CSS to eliminate unnecessary paragraphs.

]]>
Di, 08 Nov 2016 08:53:39 -0000
n0fx #42293 Macik:
#42271 n0fx:

I need to use </div> 1 time in the PAGE_ROW. How can i get data how many times loop in the PAGE_ROW like while $i variable ?  I hope I could explain myself.

I found {PAGE_ROW_NUM}

What extension / section / template you are edit?

I used for news plugin

Added 4 days later:

how i can change pagination html tags ?

Look at `system/resources.rc.php` → «Pagination» section. You can redefine this variables in your `theme_name.php` file.

This is very good but I also need to change <p class="paging"> ? Actually I want to change to <ul> <li>

]]>
Ma, 07 Nov 2016 14:08:15 -0000
Macik #42271 n0fx:

I need to use </div> 1 time in the PAGE_ROW. How can i get data how many times loop in the PAGE_ROW like while $i variable ?  I hope I could explain myself.

I found {PAGE_ROW_NUM}

What extension / section / template you are edit?

Added 4 days later:

how i can change pagination html tags ?

Look at `system/resources.rc.php` → «Pagination» section. You can redefine this variables in your `theme_name.php` file.

]]>
Za, 05 Nov 2016 22:24:10 -0000
n0fx I did reinstall, its working now, thank you :) actually I didnt expect its related reinstall :)

Added 5 hours later:

Some of plugins are not working with 0.9.19. I made list and I will update this list. I also wrote comment why its not working.


https://www.cotonti.com/extensions/files-media/pageavatar-siena (Solved: you can look to comment on the page)

If you want to optimize images expect thumb images. you should add these codes:
pageavatar.page.add.done.php (line 49)
 

$info = getimagesize($filename);
 if ($info['mime'] == 'image/jpeg') {$image = imagecreatefromjpeg($filename);
 imagejpeg($image, $filename, 85);
 }
elseif ($info['mime'] == 'image/gif') {$image = imagecreatefromgif($filename);
imagegif($image, $filename, 85);
}
elseif ($info['mime'] == 'image/png') {$image = imagecreatefrompng($filename);
imagepng($image, $filename, 85);
}


https://www.cotonti.com/extensions/files-media/612

Added 1 day later:

Hi,

I need to use </div> 1 time in the PAGE_ROW. How can i get data how many times loop in the PAGE_ROW like while $i variable ?  I hope I could explain myself.

I found {PAGE_ROW_NUM}

Added 4 days later:

how i can change pagination html tags ?

]]>
Zo, 30 Okt 2016 16:02:56 -0000
Macik So, you get this error even open a plugin page `index.php?e=search`?  

If so — no idea yet. It can be some rights inconsistency, but needs to be investigated in details.

First, try to uninstall it completedly and then reinstall.

]]>
Zo, 30 Okt 2016 15:54:43 -0000
n0fx #42264 Macik:
#42239 n0fx:

There is a list about default common, modules and plugin tpl tags? // I found https://www.cotonti.com/tpltags

To simplify developing TPL of certain pages — you can eneble list available tags and blocks.

Added 3 days later:

Hi, I am using v0.9.19. When I try to use search plugin, there is a error like "You're not allowed to do this.". Then I try to enter "Rights" of Search plugin but there is a also error like "One of the request parameters is invalid or has expired. Please go back and try submitting the form again."

Whats the problem? Do you have a idea? 

I looked issue on the cotonti github page but I couldnt find about it because search plugin doesnt work on this website too.

Seems security check of form data is failed (it used by core for POST forms).

What way you are use `Search` plugnin? I mean what form, what method of form data sending (get/post) and what address you send this data?

Try to see default nemesis theme for search form (in `footer.tpl`).

I didnt try to send data via POST Actually I just try to enter index.php?e=search and I got error #930 access denied thats why I was trying to enter rights page about search plugin (admin.php?m=rightsbyitem&ic=plug&io=search) then there is a again error "One of the request parameters is invalid or has expired. Please go back and try submitting the form again." 

I want to say also I upgrade seditio v123 to cotonti v0.9.19 maybe its related about it ?

note: I got same error when I use search plugin on the nemesis theme :(

]]>
Zo, 30 Okt 2016 15:07:41 -0000
Macik #42239 n0fx:

There is a list about default common, modules and plugin tpl tags? // I found https://www.cotonti.com/tpltags

To simplify developing TPL of certain pages — you can eneble list available tags and blocks.

Added 3 days later:

Hi, I am using v0.9.19. When I try to use search plugin, there is a error like "You're not allowed to do this.". Then I try to enter "Rights" of Search plugin but there is a also error like "One of the request parameters is invalid or has expired. Please go back and try submitting the form again."

Whats the problem? Do you have a idea? 

I looked issue on the cotonti github page but I couldnt find about it because search plugin doesnt work on this website too.

Seems security check of form data is failed (it used by core for POST forms).

What way you are use `Search` plugnin? I mean what form, what method of form data sending (get/post) and what address you send this data?

Try to see default nemesis theme for search form (in `footer.tpl`).

]]>
Za, 29 Okt 2016 21:07:34 -0000
n0fx Nice :) If there is no problem, I want to ask question about process of new theme on this topic. This topic also can guide who want to make new theme.

There is a list about default common, modules and plugin tpl tags? // I found https://www.cotonti.com/tpltags

Added 3 days later:

Hi, I am using v0.9.19. When I try to use search plugin, there is a error like "You're not allowed to do this.". Then I try to enter "Rights" of Search plugin but there is a also error like "One of the request parameters is invalid or has expired. Please go back and try submitting the form again."

Whats the problem? Do you have a idea? 

I looked issue on the cotonti github page but I couldnt find about it because search plugin doesnt work on this website too.

]]>
Di, 25 Okt 2016 20:56:10 -0000
Macik To be exact — template loading function is flexible and search for several places TPL file may exists.

For example of `coolplug` Plugin and its default template `coolplug.tpl` this chain would be:

  • `themes/mytheme/plugins/coolplug/coolplug.tpl
  • `themes/mytheme/plugins/coolplug.tpl
  • `themes/mytheme/coolplug.tpl

(Same rules for Modules and `modules` folder respectively)

If you have many Extensions templates in your theme, it's more clear to place it in separate folders.

]]>
Di, 25 Okt 2016 20:43:37 -0000
n0fx Thank you for answer :) I look skeletonti and clymene. I still think nemesis is good start point for reference theme. I want to understand How is working template system because when I add forum tpl files in the root theme folder its working but I also just add forum tpl files in themefolder/modules its working too.. So This template system just can look tpl file name on the theme folder even I added different folder on the theme folder?

 

I want to ask because I can make own folder structure ? :)

]]>
Di, 25 Okt 2016 19:06:50 -0000
Macik Yes, Nemesis theme is simple enought to start from. But as you mentioned it had not self-tuned tpl for some Extensions. 

It's OK to use Nemesis as reference and add default TPL from Extensions folders. I do not recommend to use Symisun as its quite outdated.

A secong variant is to use more complete (but simple enough) themes like Skeletonti or Clymene.
 

]]>
Di, 25 Okt 2016 06:21:17 -0000
n0fx Hi everyone,

I am still using seditio old version. I converted my database to cotonti siena what was important for me. Then I want to make new theme for my website.

I prepared my HTML files. First I was thinking I can use nemesis theme for reference theme but for example there is no forum tpl files in the folder. Then I found tpl files on the modules/forums but I also found tpl files (forum) on the symisun-03 theme folder. So I am confused now How I can start to make new theme ? Someone can guide me?  I also need clean and well coded theme for reference.

Thanks a lot.

 

]]>
Ma, 24 Okt 2016 23:52:29 -0000