81
zivXP
Rating in publisher
  • 2023/2/28 9:05

  • zivXP

  • Not too shy to talk

  • Posts: 113

  • Since: 2006/2/9 1


How to change a language variable?
define('_MD_PUBLISHER_VOTE_VOTE', 'voice');
define('_MD_PUBLISHER_VOTE_VOTES', 'voices');
define('_MD_PUBLISHER_VOTE_VOTESS', 'voicess');

As I understand it, you need to edit the file ajax_rating.php?

1 - voice
2-4 - voices
5+ -voicess

How can this be changed?
$tense = 1 == $count ? _MD_PUBLISHER_VOTE_VOTE : _MD_PUBLISHER_VOTE_VOTES; //plural form votes/vote



82
zivXP
Re: Output of images in the block
  • 2023/2/24 18:15

  • zivXP

  • Not too shy to talk

  • Posts: 113

  • Since: 2006/2/9 1


Thank you, this is very valuable information.
Block "Who's Online" - i'm making the block active for everyone now, but visible only to admin.



83
zivXP
Re: Switching themes
  • 2023/2/24 16:44

  • zivXP

  • Not too shy to talk

  • Posts: 113

  • Since: 2006/2/9 1


Quote:

heyula wrote:
There is already a block for this.
Themes block in the system module.

But if you want to do it with a button, you can use the code below.

domain.com/index.php?xoops_theme_select=XH-003


Thank you. This is what I was looking for. I will try to implement.



84
zivXP
Re: Output of images in the block
  • 2023/2/24 16:40

  • zivXP

  • Not too shy to talk

  • Posts: 113

  • Since: 2006/2/9 1


I found a simple solution. Used 2 blocks. In the first block, I displayed an image of the last article. In the second block, I displayed articles without images.
The site is not fully ready yet, But you can see.https://jumber.ru/



85
zivXP
Switching themes
  • 2023/2/23 9:01

  • zivXP

  • Not too shy to talk

  • Posts: 113

  • Since: 2006/2/9 1


Is it possible to switch themes with a button?



86
zivXP
Re: Output of images in the block
  • 2023/2/22 9:49

  • zivXP

  • Not too shy to talk

  • Posts: 113

  • Since: 2006/2/9 1


How to make the code correctly?
to specify the last article in the block "publisher_items_spot.tpl"
<{if $item.itemurl == "<{$xoops_url}>modules/publisher/item.php?itemid=177"}>
What should I write instead of highlighted?



87
zivXP
Re: Output of images in the block
  • 2023/2/21 17:39

  • zivXP

  • Not too shy to talk

  • Posts: 113

  • Since: 2006/2/9 1


Quote:

heyula wrote:
Publisher 1.8.0 Alpha.8 (01/14/2022)


I understand. But at the moment, the transition is undesirable.
I would like to find a solution for this version.

How to find the latest article correctly?
I think we need to create a cycle with parameters for this part of the code:

<{foreach item=item from=$block.items name=spotlight}>
<{if $item.summary != ''}>
<div>
<div>
<{if $item.image_path}>
<a href="<{$item.itemurl}>"><img class="newspub_item_image img-responsive" src="<{$item.image_path}>" align="right" alt="<{$item.clean_title}>" title="<{$item.clean_title}>"></a>
<{/if}>

<div>
<img style="vertical-align: middle;" src="<{$block.newspub_url}>/assets/images/links/doc.png" alt="">&nbsp;<{$item.when}>&nbsp;<strong><{$item.titlelink}></strong>
</div>
<{$item.summary}>
</div>
</div>
<{/if}>
<{/foreach}>



88
zivXP
Re: Output of images in the block
  • 2023/2/21 12:46

  • zivXP

  • Not too shy to talk

  • Posts: 113

  • Since: 2006/2/9 1


Quote:

heyula wrote:

The version of the publisher module you are using is outdated.

You are getting this error because the classes in the older versions of the publisher are not the same as the new versions.


I am installing XOOPS Publisher 1.07 FINAL.

Do you have Publisher 1.08 Alpha running?



89
zivXP
Re: Output of images in the block
  • 2023/2/21 10:11

  • zivXP

  • Not too shy to talk

  • Posts: 113

  • Since: 2006/2/9 1


Quote:

heyula wrote:
As an example, the following site was made with the code block I gave you


Unfortunately, I could not launch such a block on my website.
An error message is displayed: A problem has occurred on our server!
Error: Class 'PublisherHelper' not found.

Could you write in more detail how to do this?

Inserted into the subject: <{includeq file="$theme_name/date-news.tpl"}>
The file date-news.tpl is located in themes/xbootstrap
The contents of the file as you specified.



90
zivXP
Re: Compatible modules
  • 2023/2/20 7:11

  • zivXP

  • Not too shy to talk

  • Posts: 113

  • Since: 2006/2/9 1


Quote:

Mamba wrote:
Publisher is being developed and tested on XOOPS 2.5.11, and while the minimum PHP version is PHP 7.4, we are testing it on PHP 8.2

This is very good news. The main working module.
Sehr gut! Супер!




TopTop
« 1 ... 6 7 8 (9) 10 11 12 »



Login

Who's Online

249 user(s) are online (163 user(s) are browsing Support Forums)


Members: 0


Guests: 249


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits