21
heyula
Re: Publisher - change the tag
  • 2023/3/7 17:52

  • heyula

  • Theme Designer

  • Posts: 605

  • Since: 2008/4/24


If you enter the metadata in the other tab of the publisher while adding the article, you will get what you want.

Resized Image


Resized Image



22
heyula
Re: Output of images in the block
  • 2023/2/24 17:39

  • heyula

  • Theme Designer

  • Posts: 605

  • Since: 2008/4/24


If you want to use Xoops in a much more flexible way, I recommend using Blocks anywhere <{block id=x}>. @trabis quote from "Blocks anywhere" is a smarty plugin that provides an easy way to place a block in a theme or template. Just upload this smarty plugin to class/smarty/xoops_plugins folder and you will be able to add a block using the following method:
<{block id=1}>
Replace '1' by the id of the block you want to display. You can find id of block in blocks administration(or groups), just hover the mouse over block 'EDIT' link and you will see something like this: .../modules/system/admin.php?fct=blocksadmin&op=edit&bid=3 This plugin respects XOOPS permissions. It will only display the block for users that are allowed to see it(as set in groups permissions). This plugin also takes in consideration cached blocks. Version 1.1 brings you some new cool options such as: display = 'title' -> shows just title display = 'none' -> renders the block but does not display it options = 'enter|block|options' -> overwrites block default options groups = 'enter|allowed|groups' -> overwrites block default group view permissions cache = 3600 -> overwrite cache time(in seconds) Code examples:
<{block id=1 display="title"}>   displays just the block title
<{block id=1}>                   displays just the block content
<{block id=7 display="none"}>    does not display nothing but executes the blockthis can go for online block or to trigger some cron block
<{block id=600 groups="0|1" cache=20}>  display block just for this 2 groups and sets a cache of 20 seconds
<{block id=600 options="100|100|s_poweredby.gif|0"}> displays block with diferent options
Usage example: Place your 'multimenu' block in your theme. Invisible online block that updates online users table. Add an image gallery block inside article category page. Add users online block into yogurt profile page Footnote: Plugin now comes standard on current Xoops versions



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

  • heyula

  • Theme Designer

  • Posts: 605

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



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

  • heyula

  • Theme Designer

  • Posts: 605

  • 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 1</button>
  <
button type="button" class="btn btn-warning"><a href="https://domain.com/index.php?xoops_theme_select=XH-004">Tema 2</button>
  <
button type="button" class="btn btn-success"><a href="https://domain.com/index.php?xoops_theme_select=XH-005">Tema 3</button>
</
div>
Resized Image



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

  • heyula

  • Theme Designer

  • Posts: 605

  • Since: 2008/4/24


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

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



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

  • heyula

  • Theme Designer

  • Posts: 605

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



27
heyula
Re: Output of images in the block
  • 2023/2/19 18:55

  • heyula

  • Theme Designer

  • Posts: 605

  • Since: 2008/4/24


ok you can do much better.

If you want, install the publisher module and send the ftp information, I'll do it.

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

Resized Image


Demo:
https://www.ilkguninsaat.com/

In short, you can do whatever you want.



28
heyula
Re: Output of images in the block
  • 2023/2/19 18:04

  • heyula

  • Theme Designer

  • Posts: 605

  • Since: 2008/4/24


If I understand correctly you want to do something like this

Resized Image


New Block for Publisher Module



29
heyula
Re: Output of images in the block
  • 2023/2/19 17:59

  • heyula

  • Theme Designer

  • Posts: 605

  • Since: 2008/4/24


Quote:

zivXP wrote:
It is necessary to display the image in the block only for the first article, the rest of the articles without images.
Will it be possible to do this?

Yes you can do this with the following:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=79187



30
heyula
Re: Output of images in the block
  • 2023/2/19 14:12

  • heyula

  • Theme Designer

  • Posts: 605

  • Since: 2008/4/24


Quote:
zivXP wrote: How to edit correctly publisher_items_spot.tpl? So that only the first article displays <{$item.image_path}>?
<{foreach item=item from=$block.items name=spotlight}>
        <{if 
$item.summary != ''}>
              <
div>
                    <{if 
$item.image_path}>
                        <
a href="<{$item.itemurl}>"><img src="<{$item.image_path}>" align="right" alt="<{$item.clean_title}>" title="<{$item.clean_title}>"></a>
                    <{/if}>
            <{
$item.summary}>
                </
div>
        <{/if}>
    <{/foreach}>
It will show yes if you make the settings as below. Resized Image
Resized Image
But my advice is to create the blocks using this plugin, which is much more dynamic. New Block for Publisher Module




TopTop
« 1 2 (3) 4 5 6 ... 25 »



Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!