201
nachenko
Re: mailing users problem
  • 2007/5/10 15:31

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Same problem here in one of my customers, but I can't update because the core has been hacked (I knew this would bring back problems later, but orders are orders).

So I'm thinking about updating just the "mail to users" script... I know what you're thinking, yes, this customer is making me do things the difficult way. But before doing it, I need to know:

IS this bug fixed in current version?

If not, I'll have to fix it myself. I hate touching the core, but this site's core can't be updated, so what the hell...



202
nachenko
Re: News 1.53 - I want to modify the topic appearance - How?
  • 2007/5/5 7:41

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Haha! Rocket scientist, the dude said!

I'm a psychologist recycled to web developer for a very good reason: needed money while finding a good job.

Good job never arrived, still working as web developer.



203
nachenko
Re: News 1.53 - I want to modify the topic appearance - How?
  • 2007/5/4 0:55

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


The big difference I see between the article index (index.php) and the full article view (article.php) is that the second one, the one that gives you the problem, is NOT a link.

This is the only difference i can find. Classes seem to be the same, so look for the link style definition for

.itemTitle a {...}



204
nachenko
Re: News 1.5x : Looking For The List Of New Smarty Variables..
  • 2007/5/3 15:59

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


They should be listed, as usual, at the beginning of every PHP file in the main folder of the module (same folder as xoops_version.php, which has no smarty variables because it's a config file.)



205
nachenko
Re: News 1.53 - I want to modify the topic appearance - How?
  • 2007/5/3 9:09

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


The smarty tag is generated this way, one tag that contains both the topic and the article title, instead of creating two separated smarty items.

If you only want to change the look, CSS solution suggested before is fine, but if you want more control on your template, you should have topic title and article title as separated objects.

In News 1.53 there are other smarty tags you could use:

<{$story.news_title}> --> Just the article title
<{$story.topic_title}> --> Just the topic title

This way you'd have separated items to work with.



206
nachenko
Re: 2.2.x Editors for News 1.53
  • 2007/5/2 7:38

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


I don't know about the 2.2 branch, but I'm using News 1.53 with TinyEditor succesfully. Instead of downloading the editors pack I downloaded TinyEditor module and installed it just like any other module, following the instructions.

It's a great visual editor, BTW.



207
nachenko
Re: How can I access all blocks from within my theme?
  • 2007/4/26 10:17

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Umm...

Go to the module folder of the block you want to call.

Open xoops_version.php, locate a part of the array making references to blocks, like this:

Quote:

$modversion['blocks'][1]['file'] = "wfs_artmenu.php";
$modversion['blocks'][1]['name'] = _MI_WFS_BNAME_ARTMENU;
$modversion['blocks'][1]['description'] = "Shows Article menu";
$modversion['blocks'][1]['show_func'] = "b_wfs_artmenu";
$modversion['blocks'][1]['template'] = $wfsTemplates['artmenublock'];


Here you have the file and the function.
So, in the theme, include this snippet:

Quote:

<{php}>
include (XOOPS_ROOT_PATH/modules/etc etc the file that contains the block code);
$result = function that calls the block, should return some kind of array/object;

....
now, php code here to insert the stuff you got into the theme

<{/php}>


A bit messy, but it works. Just look here:

http://www.marruecosdigital.net/xoops/modules/mylinks/

The horizontal submenus are inserted into the theme.



208
nachenko
Re: Embedding PHP code in theme template?
  • 2007/4/25 22:24

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


PHP inside Smarty:

<{php}>
...
<{/php}>
Use it on a theme file or block template, whatever you need.

Also, there are PHP custom blocks


For the last question, just capture the module name and insert the code. Suppose you want to insert a link in main menu after a module called "my pictures":

Quote:

<!-- start module menu loop -->
<{foreach item=module from=$block.modules}>
<a class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}></a>

<{if $module.name == "my pictures" }>
... insert your link here ...
<{/if}>

foreach loop for submenus here .........
<{/foreach}>
<!-- end module menu loop -->


The link will appear right after the link to "my pictures". Remember to add class "menuMain" to the link, just like in your own code (you forgot to do it in your example code):

Quote:
...
<a class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/">...



209
nachenko
Re: How to clone News 1.44 module?
  • 2007/4/25 16:59

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


This would be interesting, but nothing like uploading a new template and selecting it, just like SmartSection or WF-Section.

This is very important for what you can make parts of the site look like an entirely different section while managing all content with just one menu. I don't mind using several modules, but non-experienced users should find it "too big burrito". News is very simple, so I want to stick with it.

(I only miss ability to assign weights to sections)



210
nachenko
Re: Firefox rendering wrong
  • 2007/4/25 10:40

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Thanks.

Well, I fixed it. The problem is related with using a DIV as row container and applying the attribute "display: table" to it. This bug is documented.

Just replaced it by a one-cell table.

The other bugs... well I don't know why IE gives an error and doesn't round the corners. I'll work on that later.

The xLanguage module not cleaning language tags inside a form is a unpleasant surprise, but i'm sure i'll fix it. Perhaps reading the smarty variable for language or something like that.




TopTop
« 1 ... 18 19 20 (21) 22 23 24 ... 27 »



Login

Who's Online

211 user(s) are online (152 user(s) are browsing Support Forums)


Members: 0


Guests: 211


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