General Community > Scripting Help
Need help adding link
(1/1)
tassie73:
Hi all,
I want to add a link to this piece of code. I have tried a few things, but nothing has worked so far. I am sure it is something simple I am missing, but it is driving me mad at the moment! :-[
This is the code I want to add the link to so it reads as it does now, but is just a link that can be followed:
--- Code: ---array('desc','newsltr_subscribed',
'text_label'=> $count . $txt['newsubscribe_mod_subscribed']),
--- End code ---
The link I want to add is similar to:
--- Code: ---www.fishingboatingtasmania.com.au/forum/index.php
--- End code ---
Any help would be appreciated.
Thanks
Chris
Arantor:
Um, where *exactly* are you trying to add that?
tassie73:
It is in the admin section for a mod and I wan to turn the text into a link to display a list of members subscribing to the newsletter. I have written the code to generate the list, just need the link to display it instead of typing it in.
Arantor:
So you're using the prepareDBSettings system and adding a description item, whose text will be $txt['newsltr_subscribed'] and that's it. When using the desc item type, the only thing it cares about is the name of the second item of the array, which is the item of $txt to use.
What you want to do is a bit more complicated, and I'm still not entirely sure what it is you *are* trying to achieve, but I think what you'll be needing to do is before starting that array, modify $txt['newsltr_subscribed'] to include the information you want.
Navigation
[0] Message Index
Go to full version