Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I18N Special Pages
Hi everybody,
it seeems that i18n special pages and search plugin is the perfect combination to realise a multi lingual blog system. Because the most important feature I'm looking for is switching between two languages. But what about the post archive, has someone developed a monthly/yearly solution?
Thanks!
Reply
(2014-08-01, 02:18:05)Oleg06 Wrote: is it possible to use such code
Code:
<?php get_special_field_image('image', 'title', '480', '320'); ?>

instead
Code:
<img src="<?php echo $item->image; ?>" title="<?php echo htmlspecialchars($item->title, ENT_NOQUOTES); ?>" alt="<?php echo htmlspecialchars($item->title, ENT_NOQUOTES); ?>" />

This function already exists (except that the second parameter is a string, not a field name)!
Code:
<?php get_special_field_image('image', $item->title, 480, 320); ?>
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
try clicking on the tags in the catalog and in the sidebar, please
Reply
(2014-08-08, 00:08:39)Oleg06 Wrote: http://business-website.ru/demo/00/katalog/
try clicking on the tags in the catalog and in the sidebar, please

Should be fixed in version 1.3.2.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
thank you very much, it works
Reply
I have just installed Getsimple and the following plugins:

I18N
Theme Highlighter

I am using Firefox and When I try to creat a new "custom page" in the admin section, it wont show me the "Fields" section or "View" when i click on the links. I am also unable to see these sections when I am lokking at one of the custom page types that are already pre-defined with this plug-in (e.g Blog, News, Software, User Profile.)

Any reason why I cant see the "Fields" section?
Reply
javascript disabled? Or some script-blocking addon like NoScript?
What if you try with other browser?
Reply
(2014-08-21, 04:31:15)Carlos Wrote: javascript disabled? Or some script-blocking addon like NoScript?
What if you try with other browser?

I have tried it in Firefox, Safari and Chrome... but still no luck. I use a Macbook so dont have IE.

I might try a clean install af everything
Reply
(2014-08-21, 04:37:26)Boneye Wrote:
(2014-08-21, 04:31:15)Carlos Wrote: javascript disabled? Or some script-blocking addon like NoScript?
What if you try with other browser?

I have tried it in Firefox, Safari and Chrome... but still no luck. I use a Macbook so dont have IE.

I might try a clean install af everything

I did a clean install and its all now working....

Thanks
Reply
Hi everybody,

I´m still excited about this plugin - thank you, mvlcek. Now I'm building a kind of blog with some categories using tags. The main page is an overview showing search results of pages tagged either TagA or TagB.
In the search entry I'd like to show the tags given to the pages (special pages) and this tags should be links to an overview page showing only pages of that tag.

Thanks a lot!
Reply
Well, I tried this: <?php get_special_tags($slug=searchresults, $separator=' ', $all=true); ?> in my special page type. In my result page "searchresults" I only have this: (% searchresults %). The special pages have tags like "news" or "work".

In my overvie page I have all the search entries listed, every search entry now displays the given tag(s) and they are linked.
Then I klick on the linked tag "news" and a page opens with this url: ..index.php?id=searchresults?tags=news. But I don't get the expected results, it only says: "OOPS! PAGE NOT FOUND!"

The url with the added tag looks O.K. to me. Why does it not work? Has someone an idea?
Thank you
Reply
I've just found the bug. It's the second question mark in the generated url:
../index.php?id=searchresults?tags=news
If you change the second question mark manualy into "&" it works.
../index.php?id=searchresults&tags=news

But how can I change the url generation?

And another question:
What parameter can I add to get only pages in one of the available languages? This doesn't work:
<?php get_special_tags($slug=searchresults, $separator=' ,', $all=true, $lang=en); ?>

Thank you!

(2014-09-24, 18:42:45)hugel Wrote: Hi everybody,

I´m still excited about this plugin - thank you, mvlcek. Now I'm building a kind of blog with some categories using tags. The main page is an overview showing search results of pages tagged either TagA or TagB.
In the search entry I'd like to show the tags given to the pages (special pages) and this tags should be links to an overview page showing only pages of that tag.

Thanks a lot!
Reply
O.K., stupid me. Angel I made a simple modification in the file "specialpages.class.php" and that solved the problem.
(2014-09-25, 00:34:04)hugel Wrote: I've just found the bug. It's the second question mark in the generated url:
../index.php?id=searchresults?tags=news
If you change the second question mark manualy into "&" it works.
../index.php?id=searchresults&tags=news

But how can I change the url generation?

And another question:
What parameter can I add to get only pages in one of the available languages? This doesn't work:
<?php get_special_tags($slug=searchresults, $separator=' ,', $all=true, $lang=en); ?>

Thank you!

(2014-09-24, 18:42:45)hugel Wrote: Hi everybody,

I´m still excited about this plugin - thank you, mvlcek. Now I'm building a kind of blog with some categories using tags. The main page is an overview showing search results of pages tagged either TagA or TagB.
In the search entry I'd like to show the tags given to the pages (special pages) and this tags should be links to an overview page showing only pages of that tag.

Thanks a lot!
Reply
Hello Mvlcek, I just launched a website using SSL/HTTPS for the first time with GetSimple CMS. Everything seems to be working fine except for one issue with the file browser and I only see it on Special Pages. When I select a file, the protocol is changed to http instead of https and ":443" is added between the domain name and file path - like so:

[Image: https-issue.jpg]

If I save the special page, the image will not display. If I remove the :443 from the file path and change the protocol, it works fine. Unfortunately, my client will not understand how or why they have to do this...

I have the correct protocol entered for my URL (https://www.domainname.com/) on the Settings page. I'm using the latest version of GS (3.3.4), all the latest versions of plugins have been installed. I turned on debug mode and there weren't any errors. My computer is running Windows 7 and the server is on SSD CloudLinux OS, PHP is version 5.3.27, the SSL cert is installed and I'm not receiving any validation errors. The file browser worked fine during development, it wasn't until I launched the site and set the URL to use the HTTPS protocol that this issue appeared. A list of the installed Plugins is below. Is there any additional information I can provide to help diagnose? Thanks in advance!

Installed Plugins: Branded Login, Default Content, DynPages, FancyBox Plugin, i18n Base, i18n Gallery, i18n Search, i18n Special Pages, Imagizer, Simple Input Tabs, Small Plugin Toolkit, i18n Special Pages Extras, Multi User
Reply
(2014-11-25, 01:57:19)bensayers Wrote: Hello Mvlcek, I just launched a website using SSL/HTTPS for the first time with GetSimple CMS. Everything seems to be working fine except for one issue with the file browser and I only see it on Special Pages. When I select a file, the protocol is changed to http instead of https and ":443" is added between the domain name and file path

This seems to be caused by some old unnecessary complex code. Please put the attached files into plugins/i18n_specialpages/browser and check if this solves the problem.


Attached Files
.php   filebrowser.php (Size: 5.93 KB / Downloads: 14)
.php   pagebrowser.php (Size: 5.03 KB / Downloads: 7)
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
(2014-11-25, 03:29:38)mvlcek Wrote:
(2014-11-25, 01:57:19)bensayers Wrote: Hello Mvlcek, I just launched a website using SSL/HTTPS for the first time with GetSimple CMS. Everything seems to be working fine except for one issue with the file browser and I only see it on Special Pages. When I select a file, the protocol is changed to http instead of https and ":443" is added between the domain name and file path

This seems to be caused by some old unnecessary complex code. Please put the attached files into plugins/i18n_specialpages/browser and check if this solves the problem.

RESOLVED! You are my hero. Thanks for the super speedy support, mvlcek! Big Grin
Reply
there are settings such as special pages such code
Code:
<div class="col-lg-3 col-md-4 col-sm-6">
<h3 class="search-entry-title">
  <?php if ($showLanguage) { ?>
  <span class="search-entry-language"><?php get_special_field('language'); ?></span>
  <?php } ?>
  <a href="<?php get_special_field('link','',false); ?>">
    <?php get_special_field('title','',false); ?>
  </a>
</h3>
<?php if ($showDate) { ?>
<div class="search-entry-date"><?php get_special_field_date('pubDate', $dateFormat); ?></div>
<?php } ?>
<div class="search-entry-excerpt"><?php get_special_field_excerpt('content', $numWords); ?></div>
</div>
how to make the output after each of the second block of code like this?
Code:
<div class="clearfix visible-sm-block"></div>
Reply
Hi Martin, I'm using Special Pages to manage customer reviews and I need to display a total count of the reviews (all child pages of the parent "client-reviews") so I can use microdata to calculate the aggregate rating. Is this possible? Thanks in advance!
Reply
(2014-12-14, 19:14:14)bensayers Wrote: Hi Martin, I'm using Special Pages to manage customer reviews and I need to display a total count of the reviews (all child pages of the parent "client-reviews") so I can use microdata to calculate the aggregate rating. Is this possible? Thanks in advance!

Something like the following (using the I18n plugin) should work:
Code:
<?php echo count(return_i18n_menu_data('client-reviews', 1, 1, I18N_SHOW_NORMAL); ?>
where the second and third parameter are the level of these child pages (0 = top level),

Just using get-simple core the following might also work:
Code:
<?php echo count(getChildren('client-reviews')); ?>
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
(2014-12-15, 00:37:51)mvlcek Wrote: Something like the following (using the I18n plugin) should work:
Code:
<?php echo count(return_i18n_menu_data('client-reviews', 1, 1, I18N_SHOW_NORMAL); ?>
where the second and third parameter are the level of these child pages (0 = top level),

Just using get-simple core the following might also work:
Code:
<?php echo count(getChildren('client-reviews')); ?>

Man that was fast - thanks Martin, I'll give it a shot!
Reply
Hi Martin,

I am having trouble with getting an image to show in my results display.

I have a news special page with several fields which are working, but the image "thumb" does not appear.

The only news article at this point calling a thumb is the one showing a summary in the list of news items on the page. The other items do not have any image specified.
http://pweaveanea.org/new-home

I am using the following code in my search:
PHP Code:
<h3 class="search-entry-title">
<
a href="<?php get_special_field('link','',false); ?>">
    <?
php get_special_field('title','',false); ?>
  </a>
</h3>
<?php get_special_field_image($thumb$title=true$width=200$crop=false); ?>
<div class="search-entry-news-summary"><?php if (return_special_field('summary')=='') { get_special_field_excerpt('content'$numWords); } else { get_special_field('summary','',true); } ?></div> 

The site is using 3.3.4 and plugins are up to date. Any help you can provide is appreciated!!

Sherri
Reply
(2015-01-20, 13:57:38)sarnaiz Wrote: Hi Martin,

I am having trouble with getting an image to show in my results display.

I have a news special page with several fields which are working, but the image "thumb" does not appear.

...

I am using the following code in my search:
PHP Code:
<h3 class="search-entry-title">
<
a href="<?php get_special_field('link','',false); ?>">
    <?
php get_special_field('title','',false); ?>
  </a>
</h3>
<?php get_special_field_image($thumb$title=true$width=200$crop=false); ?>
<div class="search-entry-news-summary"><?php if (return_special_field('summary')=='') { get_special_field_excerpt('content'$numWords); } else { get_special_field('summary','',true); } ?></div> 

If the name of the field containing the link to the image ist "thumb", the code would be
Code:
<?php get_special_field_image("thumb", null, 200); ?>
In your code you use the variable $thumb, which is probably empty, instead of the string "thumb". The second parameter is the title, which you could set to a fixed text like "Image illustrating the topic" or to another field, e.g. to have the page title as image title:
Code:
<?php get_special_field_image("thumb", return_special_field('title','',false), 200); ?>
You only need the third parameter, if the image does not have the correct size. The fourth optional parameter is the height (which in your call is false = 0, because you forgot it).
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
(2015-01-21, 02:35:25)mvlcek Wrote:
(2015-01-20, 13:57:38)sarnaiz Wrote: Hi Martin,

I am having trouble with getting an image to show in my results display.

I have a news special page with several fields which are working, but the image "thumb" does not appear.

...

I am using the following code in my search:
PHP Code:
<h3 class="search-entry-title">
<
a href="<?php get_special_field('link','',false); ?>">
    <?
php get_special_field('title','',false); ?>
  </a>
</h3>
<?php get_special_field_image($thumb$title=true$width=200$crop=false); ?>
<div class="search-entry-news-summary"><?php if (return_special_field('summary')=='') { get_special_field_excerpt('content'$numWords); } else { get_special_field('summary','',true); } ?></div> 

If the name of the field containing the link to the image ist "thumb", the code would be
Code:
<?php get_special_field_image("thumb", null, 200); ?>
In your code you use the variable $thumb, which is probably empty, instead of the string "thumb". The second parameter is the title, which you could set to a fixed text like "Image illustrating the topic" or to another field, e.g. to have the page title as image title:
Code:
<?php get_special_field_image("thumb", return_special_field('title','',false), 200); ?>
You only need the third parameter, if the image does not have the correct size. The fourth optional parameter is the height (which in your call is false = 0, because you forgot it).

Thank you very much Martin. This code worked. I will style the image later on when I know people will not be visiting the site.

I appreciate you taking the time to write the code out with the proper syntax for me. Since I am not a programmer I tend to take instructions literally because I don't know any better!

Sherri
Reply
I was getting kind of pissed because a client absolutely wanted to not have landing pages and only allow visitors to click on the dropdown submenu's, so I wanted to make use of the more advanced API functions from the i18n_navigation component.

I'm a great supporter of i18n but for a PHP noob like me the documentation on mvlcek.bplaced.net didn't really suffice, especially not about the output of the return_i18n_menu_data function.

So after a day of PHP research and fiddling with i18n plugins in GetSimple, I wrote a more comprehensive piece of documentation here: http://codepen.io/Webketje/full/VYbxmy/. Feel free to check it out (especially Martin, as you may point me to errors, if any).

As a bonus in the Examples section there's a PHP function to only set links in the navigation for the menu items that do NOT have any children. (so you can only ever click on the last sub-menus).
Reply
You could probably get away with using css for that actually. Using pointer events.

heres my function for bootstrap(2)
http://get-simple.info/forums/showthread...0#pid35170
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 4 Guest(s)