11
juraba
Re: Mailing liist
  • 2004/3/20 9:41

  • juraba

  • Just popping in

  • Posts: 22

  • Since: 2003/11/23


Thx very much for the quick replay.. mmmmm i tried to do as you said but i'm still having a blank block... there are few php and htlm tags that i don't know how to handle.
I dont'know where to put my hands

thx again...



12
juraba
Mailing liist
  • 2004/3/20 8:55

  • juraba

  • Just popping in

  • Posts: 22

  • Since: 2003/11/23


Good mornig Xoopers... I have a little problem. I'm trying to incorporate this little script in a central block so tha my users can register to the mailing list that my provider gave it to me.. When i put it in a center block changing to php, i get a blank block. Nothing happens. Maybe the problem could be the mix of php and html ?

here is the script

//'''''''''' inserire il nome del dominio
$DOMAIN='yourdomain.com';
//'''''''''' inserire il nome della lista o delle liste
$LISTS[]='your_list';
$LISTS[]='altra_lista';
//''''''''fine configurazione

$response_template='












%%ACTION%% %%LIST%%@%%DOMAIN%%

Riceverai una mail a breve su "%%ADDRESS%%". Quello che devi fare è usare la funzione "Rispondi" del tuo client di posta
ed inviare tale risposta: non è necessario scrivere nulla.



';

?>


Iscrizione a mailing-list in php


















Indirizzo email Nome Lista / Azione  


switch ( $_POST['action'] ) {
case 'subscribe':
if ( !empty($_POST['addy']) ) {
if ( mail($list.'-subscribe-'.str_replace('@', '=', $_POST['addy']).'@'.$DOMAIN ,'', '') ) {
show_tpl($response_template, 'ISCRITTO A: ', $list, $DOMAIN, $_POST['addy']);
}
}
break;

case 'unsubscribe':
if ( !empty($_POST['addy']) ) {
if ( mail($list.'-unsubscribe-'.str_replace('@', '=', $_POST['addy']).'@'.$DOMAIN ,'', '') ) {
show_tpl($response_template, 'RIMOSSO DA: ', $list, $DOMAIN, $_POST['addy']);
}
}
break;
}

function show_tpl($tpl, $action, $list, $domain, $address) {
$tpl=str_replace('%%ACTION%%', $action, $tpl);
$tpl=str_replace('%%LIST%%', $list, $tpl);
$tpl=str_replace('%%DOMAIN%%', $domain, $tpl);
$tpl=str_replace('%%ADDRESS%%', $address, $tpl);
echo $tpl;
}
?>



-----------------------------o-----------------------------



Do i have to make a module for this instead of a block?

can you tell me how to do it...


Thanks to all.




13
juraba
Re: At last
  • 2004/1/7 8:01

  • juraba

  • Just popping in

  • Posts: 22

  • Since: 2003/11/23


Thx all for the quick replay. I think it might be because my site isn't installed in the root of the server but inside a directory. Could be that?

Thx again.



14
juraba
Re: At last
  • 2004/1/6 15:42

  • juraba

  • Just popping in

  • Posts: 22

  • Since: 2003/11/23


mmmmm thx Richard for the answer. Well i use java on my footer to show a hit counter made by a php script call php-stats. In my XOOPS configuration Meta Robots is defined Index,Follow.

My Site



15
juraba
At last
  • 2004/1/6 12:11

  • juraba

  • Just popping in

  • Posts: 22

  • Since: 2003/11/23


After many months Gogle has finally visited my site. I've made some research but my posts in the forums, links, and downloads don't show in gogle. Do i have to tell XOOPS how to behave with the spy or does it do it automatically.

Version 2.5.2

Thanks and happy 2004 to all xoppers




16
juraba
Re: animated gif
  • 2003/12/5 17:21

  • juraba

  • Just popping in

  • Posts: 22

  • Since: 2003/11/23


Thank you very much! works great.. i now have little lights all over the place.

It's easy when you know how..

Thx again.



17
juraba
animated gif
  • 2003/12/5 13:02

  • juraba

  • Just popping in

  • Posts: 22

  • Since: 2003/11/23


Hello xoopers. Regards from italy! I'd like to put a little gif inside each menu bar(gif + Top Posters)in all the blocks before the tittle. Can you tell me how to do it. I think i must look in the css but i don't know where to put it.

Thx and..... Happy new year



18
juraba
Re: Big dot in mylinks and mydownload blocks
  • 2003/11/24 22:04

  • juraba

  • Just popping in

  • Posts: 22

  • Since: 2003/11/23


Thank you very much Martijn i think the second option will be my case. I've done it as you told me and now a have my little bullets in place.

It's easy when you know how. Great!

Thanks again for your help. Viva Xoops!!!



19
juraba
Re: Big dot in mylinks and mydownload blocks
  • 2003/11/24 20:42

  • juraba

  • Just popping in

  • Posts: 22

  • Since: 2003/11/23


this is the block involved

mylinks_block_top.html


    <{foreach item=link from=$block.links}>
  • <{$link.title}> (<{$link.hits}>)

  • <{/foreach}>


and the only (li) tha i've found un my css is this one:

li { margin-left: 2px; list-style: square inside; color: #2F5376}

did you mean this? how can i change the dot for a gif?

Thx again



20
juraba
Big dot in mylinks and mydownload blocks
  • 2003/11/24 19:28

  • juraba

  • Just popping in

  • Posts: 22

  • Since: 2003/11/23


Hello guys... I've been looking around my theme.html and the templates of these blocks to change the big black dot that shows before any link. I'd like to put a little gif instead just for decoration purposes. I've seen it in many XOOPS places but the big dot seems to be nowhere..




TopTop
« 1 (2) 3 »



Login

Who's Online

263 user(s) are online (119 user(s) are browsing Support Forums)


Members: 0


Guests: 263


more...

Donat-O-Meter

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

Latest GitHub Commits