You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 73 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Hiding an Image in a block? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
stcloudscoots
Nuke Soldier
Nuke Soldier


Joined: Feb 03, 2006
Posts: 26


PostPosted: Fri May 11, 2007 2:07 pm Reply with quoteBack to top

Ok so lets say for a min that I wanted to hide a button in a block.

So I take the universal forums block I add in my code
Code:
$content  =  "<A HREF="http://www.stcloudscoots.com/modules.php?name=Forums&file=posting&mode=newtopic&f=2\"><IMG SRC="/images/post.gif\" ALT="New Post\"></A><BR>";

to show the button. This button allows people just to post a message in a general forum. But now I have a modified Universal Forum block called Better Universal Forum block. This one shows messages only to people who have permission to that particular forum.

So I have a General Forum and now I have a hidden forum called Paid Members. Only paid members can see this one.

So my question is how would I make an image (button) only visible to the paid members of the site?

The Block code HERE
Find all posts by stcloudscootsView user's profileSend private messageVisit poster's website
stcloudscoots
Nuke Soldier
Nuke Soldier


Joined: Feb 03, 2006
Posts: 26


PostPosted: Fri May 11, 2007 3:59 pm Reply with quoteBack to top

This is what I have at the moment. It allows the block to show but not the button.

Code:
if (in_array(4,5,8,9, $groupids)) {
    $content  =  "<A HREF=\"http://www.stcloudscoots.com/modules.php?name=Forums&file=posting&mode=newtopic&f=4\"><IMG SRC=\"/images/paidpost.gif\" ALT=\"Paid Members New Post\"></A><BR>";
}
Find all posts by stcloudscootsView user's profileSend private messageVisit poster's website
stcloudscoots
Nuke Soldier
Nuke Soldier


Joined: Feb 03, 2006
Posts: 26


PostPosted: Fri May 11, 2007 4:22 pm Reply with quoteBack to top

Ok I am this far along

Code:

$content  =  "<center><A HREF=\"http://www.stcloudscoots.com/modules.php?name=Forums&file=posting&mode=newtopic&f=2\"><IMG SRC=\"/images/post.gif\" ALT=\"New Post\"></A></center>";


But when the button there shows my other ones disappear.
Find all posts by stcloudscootsView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Fri May 11, 2007 9:34 pm Reply with quoteBack to top

Use the .= to put together two strings

Quote:

$content .= ...

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
stcloudscoots
Nuke Soldier
Nuke Soldier


Joined: Feb 03, 2006
Posts: 26


PostPosted: Sat May 12, 2007 4:51 am Reply with quoteBack to top

Code:

if (!in_array(4, $groupids)) {
if (!in_array(5, $groupids)) {
if (!in_array(8, $groupids)) {
if (!in_array(9, $groupids)) {
    $content  .=  "<A HREF=\"http://www.stcloudscoots.com/modules.php?name=Forums&file=posting&mode=newtopic&f=4\"><IMG SRC=\"/images/paidpost.gif\" ALT=\"Paid Members New Post\"></A><BR>";
} } } }


Ok adding the . in before the = worked. But the only thing is that it is not hiding. Anyone can still see the button. How can I get this (at this point STUPID) thing to hide.

I have only been playing with this thing forever.
Find all posts by stcloudscootsView user's profileSend private messageVisit poster's website
stcloudscoots
Nuke Soldier
Nuke Soldier


Joined: Feb 03, 2006
Posts: 26


PostPosted: Sat May 12, 2007 5:49 pm Reply with quoteBack to top

Solved

Ok here is the same post over at http://www.phpnuke-clan.net

http://www.phpnuke-clan.net/modules.php?name=Forums&file=viewtopic&t=4119&postdays=0&postorder=asc&start=0
Find all posts by stcloudscootsView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.214 Seconds - 200 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::