• Page 1 of 2
  • 1
  • 2
  • »
script for possible link
DEEPKG
Posts: 316
Reputation: 8

Message # 1 | 3:44 AM
is thr any script or Can we make a script for download links as shown in website that automaticly converted it to "available for user only " sad
I Try to help. U can Try to give Rep ++ For my try :P
Jan
Posts: 301
Reputation: 19

Message # 2 | 8:05 AM
DEEPKG, you can do it with Contitional operators and by setting permissions to usergroups: CP - Users - User Group - Set permission to all groups
DEEPKG
Posts: 316
Reputation: 8

Message # 3 | 8:14 AM
will u put that specific operator pls sad
I Try to help. U can Try to give Rep ++ For my try :P
Animorph
Posts: 2856
Reputation: 189

Message # 4 | 9:08 AM
DEEPKG, its easy to do.
Code
<?if ($USER_LOGGED_IN$)?> your download code<?else?>available for user only<?endif?>

Mover to General Questions


To busy building a passive income online ;)
DEEPKG
Posts: 316
Reputation: 8

Message # 5 | 9:21 AM
will u give me example where to put and how to put

<?if ($USER_LOGGED_IN$)?> http://software-lint.ucoz.com/news/<?else? >available for user only<?endif?>


I Try to help. U can Try to give Rep ++ For my try :P
Animorph
Posts: 2856
Reputation: 189

Message # 6 | 9:28 AM
DEEPKG, are you talking about the file catalog module or ? please give me specific information about what you want and where.
To busy building a passive income online ;)
DEEPKG
Posts: 316
Reputation: 8

Message # 7 | 9:30 AM
i want to put in news module ,blog ....etc
I Try to help. U can Try to give Rep ++ For my try :P
Animorph
Posts: 2856
Reputation: 189

Message # 8 | 9:39 AM
DEEPKG, if you provide links in entry's without usage of Custom fields then i you need to do it manually but then with conditional operators like i said above
Code
<?if ($USER_LOGGED_IN$)?> your download link <?else? >available for user only<?endif?>

just paste the conditional operators in your posted entry when having HTML entry for selected

if you do use a Custom field please inform me , and if you want it to work for several modules , lets do it step by step then , but only if you have custom fields selected.


To busy building a passive income online ;)
DEEPKG
Posts: 316
Reputation: 8

Message # 9 | 9:43 AM
actually i want to use it in custom field only so tell the steps pls
I Try to help. U can Try to give Rep ++ For my try :P
Animorph
Posts: 2856
Reputation: 189

Message # 10 | 10:02 AM
DEEPKG, we will start with the blog module go to CP » Blog » Module settings » Fields of a new entry form: » Custom field 1 » check the 2 boxes » scroll down the page »Add "http://" prefix automatically for the fields: » check the box and save after that you need to go to CP ---> Design ---> Design management (templates) ---> Blog ---> Page with entry full text and its comments

then add this where you want the download link to appear automaticly when adding an entry:

Code
<?if ($USER_LOGGED_IN$)?><a href="$OTHER1$" target="_blank">Download this file.</a><?else?><a href="$REGISTER_LINK$" target="_blank">Available for user only.</a><?endif?>

as you see the conditional operators are already in my code so there's nothing to worry about that anymore , now just go to your blog module on your website "Add Entry" and put the download link in "Custom field 1 *:"


I hope that that is detailed enough. smile


To busy building a passive income online ;)
DEEPKG
Posts: 316
Reputation: 8

Message # 11 | 10:05 AM
for news i want 1st
I Try to help. U can Try to give Rep ++ For my try :P
Animorph
Posts: 2856
Reputation: 189

Message # 12 | 10:07 AM
DEEPKG, you just need to do exactly the same smile but then just for site news module.
To busy building a passive income online ;)
DEEPKG
Posts: 316
Reputation: 8

Message # 13 | 11:36 AM
not working sad shown to every one http://software-lint.ucoz.com/news/dcscs/2011-04-23-412

may i make u mod then u can help me in better way pls

Added (2011-04-23, 5:36 Am)
---------------------------------------------
working man but where should i put this

Code
<?if ($USER_LOGGED_IN$)?><a href="$OTHER1$" target="_blank">Download this file.</a><?else?><a href="$REGISTER_LINK$" target="_blank">Available for user only.</a><?endif?>

but where should i put this so that its appear properly


I Try to help. U can Try to give Rep ++ For my try :P
Animorph
Posts: 2856
Reputation: 189

Message # 14 | 12:37 PM
CP ---> Design ---> Design management (templates) ---> Site News ---> Page with entry full text and its comments
put the code where you want the download link to appear.

To busy building a passive income online ;)
DEEPKG
Posts: 316
Reputation: 8

Message # 15 | 1:58 PM
:)sir, i will manage the position
but now problem occurs is custom field 1 * should be filled how can i changed it that whenever i want to put so i can put and whenever i dnt want i will not so help me in this plssss cry

Added (2011-04-23, 7:58 Am)
---------------------------------------------
its ok i hav goted


I Try to help. U can Try to give Rep ++ For my try :P
  • Page 1 of 2
  • 1
  • 2
  • »
Search:
Support
Need help? Contact our support team via the contact form or email us at support@ucoz.com.