uCoz Community Archives Locked script for possible link |
script for possible link |
DEEPKG, you can do it with Contitional operators and by setting permissions to usergroups: CP - Users - User Group - Set permission to all groups
![]() |
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
|
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, 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. To busy building a passive income online ;)
|
not working
![]() may i make u mod then u can help me in better way pls Added (2011-04-23, 5:36 Am) 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
|
:)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 ![]() Added (2011-04-23, 7:58 Am) I Try to help. U can Try to give Rep ++ For my try :P
|
| |||