311
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/



312
heyula
Re: Output of images in the block
  • 2023/2/24 15:15

  • heyula

  • Theme Designer

  • Posts: 595

  • Since: 2008/4/24


You can't solve this by changing the tpl file.

publisher/blocks/items_spot.php You need to edit the php file.



313
heyula
Re: Switching themes
  • 2023/2/24 15:08

  • heyula

  • Theme Designer

  • Posts: 595

  • Since: 2008/4/24


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
<div class="btn-group" role="group" aria-label="Basic mixed styles example">
  <
button type="button" class="btn btn-danger"><a href="https://domain.com/index.php?xoops_theme_select=XH-003">Tema 1button>
  <
button type="button" class="btn btn-warning"><a href="https://domain.com/index.php?xoops_theme_select=XH-004">Tema 2button>
  <
button type="button" class="btn btn-success"><a href="https://domain.com/index.php?xoops_theme_select=XH-005">Tema 3button>
div>
Resized Image



314
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?



315
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?



316
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 != ''}>


<{if $item.image_path}>
<{$item.clean_title}>
<{/if}>


 <{$item.when}> <{$item.titlelink}>

<{$item.summary}>


<{/if}>
<{/foreach}>



317
heyula
Re: Output of images in the block
  • 2023/2/21 14:52

  • heyula

  • Theme Designer

  • Posts: 595

  • Since: 2008/4/24


Publisher 1.8.0 Alpha.8 (01/14/2022)

Demo:
https://erenyumak.com/ato/modules/publisher/



318
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?



319
heyula
Re: Output of images in the block
  • 2023/2/21 12:25

  • heyula

  • Theme Designer

  • Posts: 595

  • Since: 2008/4/24


Quote:
zivXP wrote: 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.
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.



320
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.




TopTop
« 1 ... 29 30 31 (32) 33 34 35 ... 29429 »



Login

Who's Online

203 user(s) are online (56 user(s) are browsing Support Forums)


Members: 0


Guests: 203


more...

Donat-O-Meter

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

Latest GitHub Commits