101
panigrc
Re: Image in every article
  • 2005/6/16 9:41

  • panigrc

  • Not too shy to talk

  • Posts: 133

  • Since: 2005/4/14


No one ?



102
panigrc
Image in every article
  • 2005/6/8 6:12

  • panigrc

  • Not too shy to talk

  • Posts: 133

  • Since: 2005/4/14


Hello, I searched a lot but I didn't find something similar.

Is there any module or way wich has a feature adding an image to the articles? I mean that the images could be used in the index of the module and in a spotlight block.

I know that there is a spotlight block that has similar feature, but the problem is that someone has to post the image somewhere else and not direct in the article.

Can you help me ? Thanx.



103
panigrc
Re: 4 Tips for xoops
  • 2005/6/3 7:50

  • panigrc

  • Not too shy to talk

  • Posts: 133

  • Since: 2005/4/14


I have AdSense on my site too! And I couldn't figure out why it's not displaying the ads.

Thanx a lot !!!



104
panigrc
xf-sections rate form
  • 2005/4/22 23:55

  • panigrc

  • Not too shy to talk

  • Posts: 133

  • Since: 2005/4/14


I have xf-section similar to wf-sections.

Is there any way to place the rate article form inside the article page ? I know there is, but i was wondering if i can include the ratefile.php inside the article.php

Thank you in advace.



105
panigrc
Images with title
  • 2005/4/21 11:59

  • panigrc

  • Not too shy to talk

  • Posts: 133

  • Since: 2005/4/14


This little hack ads title tag with the value of image's name. Also fixed the center align function.

imagemanager.php :
$lcode '[img align=left title=\''.$images[$i]->getVar('image_nicename').'\']'.XOOPS_UPLOAD_URL.'/'.$images[$i]->getVar('image_name').'[/img]';
$code '[img align=center title=\''.$images[$i]->getVar('image_nicename').'\']'.XOOPS_UPLOAD_URL.'/'.$images[$i]->getVar('image_name').'[/img]';
$rcode '[img align=right title=\''.$images[$i]->getVar('image_nicename').'\']'.XOOPS_UPLOAD_URL.'/'.$images[$i]->getVar('image_name').'[/img]';


and

module.textsanitizer.php :
I added one more pattern with the title attribute
$patterns[] = "/[img align=(['"]?)(left|center|right)\1]([^"()'<>]*)[/img]/sU";
$patterns[] = "/[img]([^"()'<>]*)[/img]/sU";
$patterns[] = "/[img align=(['"]?)(left|center|right)\1 id=(['"
]?)([0-9]*)\3]([^"()'<>]*)[/img]/sU";
$patterns[] = "/[img id=(['"]?)([0-9]*)\1]([^"()'<>]*)[/img]/sU";
[
b]$patterns[] = "/[img align=(['"]?)(left|center|right)\1 title=(['"]?)([^"()'<>]*)\3]([^"()'<>]*)[/img]/sU";[/b]

$replacements[] = '<div align="\2"><img src="\3" alt="" /></div>';
//$replacements[] = '<img src="\3" align="\2" alt="" />';
$replacements[] = '<img src="\1" alt="" />';
$replacements[] = '<div align="\2"><img src="'.XOOPS_URL.'/image.php?id=\4" alt="\4"  title="\4" /></div>';
//$replacements[] = '<img src="'.XOOPS_URL.'/image.php?id=\4" align="\2" alt="\4" />';
$replacements[] = '<img src="'.XOOPS_URL.'/image.php?id=\2" alt="\3" title="\3" />';
[
b]$replacements[] = '<div align="\2"><img src="\5" alt="\4"  title="\4" /></div>';[/b]


I know its not very clean but it works .
It also has one bug. If the name of the image has ' or " then the imagemanager can't paste the code.
Thats all.




TopTop
« 1 ... 8 9 10 (11)



Login

Who's Online

185 user(s) are online (111 user(s) are browsing Support Forums)


Members: 0


Guests: 185


more...

Donat-O-Meter

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

Latest GitHub Commits