View Full Version : help regarding hiding links
01-10-2007, 11:31 PM
hey i want some help..here is detailed description
i have site on downloading films,songs etc for my members..
so i provide them links to download it..now i want the members to reply to my post..for it i want to hide the links given so that they reply to my post with thanks and hence they get to see the link
eg: i have posted some link abc.rapidshare.3242.com
then i dont want aneone to be able to see the link..it should be hidden...and it should become visible to those members who reply back to the post....
i hope u got what i wanted to say...plz provide me with such script...
i just need this to make my site work efficiently....
waiting for response
01-11-2007, 12:23 AM
What's the user setup?
Is this a forum?
Basically, you need to integrate with the database. Hopefully it's mysql and php 'cause they're easy to help with because a lot of people know them here.
http://php-mysql-tutorial.com is a good resource too
With PHP, just check the database to see if the logged in user has a reply to the thread. If yes, display the link. If not, don't.
However, the displaying of the link is kinda weird. You could really have a lot of work to integrate it into the forum, considering how posts are usually stored. There could be ways to make it easier though.
More details are needed.
01-11-2007, 09:12 AM
well..its a forum site...
i have made it on ..ipb 1.3 script
and i have got the facility of html coding to change anything in the forum....
i am not sure whether php will be allowed in it or not as its a free forum site...
01-12-2007, 08:40 PM
hey i checked entire html coding...there is no facility of php...
in my forum..all tags like bold,italics,underline are coming...then isnt it possible to put hide tag also....which functions as i want...by help of html coding...
01-12-2007, 10:41 PM
You could hide it, remove it, make it purple... whatever. But if you don't have access to PHP, then you can't use an IF statement to see if the person is logged in or not.
You would need access to the database and their session/cookie info to tell if they have posted are logged in... whatever.
The other suggestion here is to use some creative way of manipulating the ACP for the site to allow something LIKE this, such as, since I use IPB as well, creating a 'promote' rule (under user groups and then in each group, I believe), then creating a forum which can only be viewed by members of the promoted group.
I'm sorry there is not much more to suggest.
01-14-2007, 08:38 AM
oh sorry..i didnt check correctly...php is available...but i dont know how to use....
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.