CZModules

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   re: CZModules
theeoneandonly
CZ Newbie
theeoneandonly has been a member for over 19 year's 19 Year Member
canada.gif
Age: 36
Gender: Male
Status: Offline
Joined: Apr 27, 2005
0.00 posts per day
Posts: 7
Points: 292
  MSN Messenger 
Are you saying, you just want the CZ Module to display register/login for guest, so they dont see any other info, if so, go into the admin panel -> blocks -> and set the CZ Module access to the correct function.



Back to top Reply with quote
#2   re: CZModules
andy23
CZ Super Newbie
andy23 has been a member for over 18 year's 18 Year Member
Age: 41
Gender: Male
Status: Offline
Joined: Jan 20, 2006
0.01 posts per day
Posts: 38
Points: 1,059
   
no, guest must see all modules in menu,when gust click on module,then must show up meseege "you dont have acees to this modul" you must register-that i want icon_smile.gif



Back to top Reply with quote
#3   re: CZModules
theeoneandonly
CZ Newbie
theeoneandonly has been a member for over 19 year's 19 Year Member
canada.gif
Age: 36
Gender: Male
Status: Offline
Joined: Apr 27, 2005
0.00 posts per day
Posts: 7
Points: 292
  MSN Messenger 
ok, leave the block the way it is, go to admin panel -> module -> and set the module you dont want the guest to have access to, and set permission to be viewed if registered.



Back to top Reply with quote
#4   re: CZModules
andy23
CZ Super Newbie
andy23 has been a member for over 18 year's 18 Year Member
Age: 41
Gender: Male
Status: Offline
Joined: Jan 20, 2006
0.01 posts per day
Posts: 38
Points: 1,059
   
in admin panel is cz modules and there is edit modules but there is just setting who see witch module and if i seting "all visitor" then have guest aces for all module. If seting on "registering users only" then guest dont see this module.

Like on this site click Downloads > PhP Nuke
[ Register or login to view links on this board. ]



Back to top Reply with quote
#5   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
You would have to edit the block and remove the section that hides the links if there not registered.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#6   re: CZModules
bf123
CZ Newbie
 Codezwiz Site Donator
bf123 has been a member for over 18 year's 18 Year Member
usa.gif northcarolina.gif
Gender: Male
Status: Offline
Joined: Jan 30, 2006
0.00 posts per day
Posts: 2
Points: 172
   
I modified mine to basically have a "restricted" image for those modules that require registration or subscription. Feel free to incorporate this into the real script if you want. I make no guarantees to this working for anyone but me icon_wink.gif

It requires a new image called noacc.gif. Just find something that you like.

Here is the code:

36    <!     
37    <!      if (file_exists("themes/$czmtheme/images/CZM/noacc.gif")) {
38    <!      $noaccimg = "themes/$czmtheme/images/CZM/noacc.gif";
39    <!      } else {
40    <!      $noaccimg = "images/CZModules/noacc.gif";
41    <!      }
64    <! newimage3 = new Image();
65    <! newimage3.src = \"$noaccimg\";
279    <!           $restricted = 1; //restricted, show special
282     *                $restricted=0;
        *                 $showit = 10;
283    <!                $showit=1;
287     *                 if (is_user($user) || is_admin($admin)) $restricted = 0;
        *                 if (is_user($user) || is_admin($admin)) $showit = 1;
288    <!                  $showit=1;
292     *                 if (is_admin($admin)) {
        *                 if (is_admin($admin)) $showit = 2;
293    <!                    $showit = 2;
294    <!                    $restricted=0;
295    <!                 }
299     *                 if (is_user($user) || paid()) $restricted=0;
        *                 if (is_user($user) || paid()) $showit = 3;
300    <!                  $showit = 3;
306    <!               if ($restricted != 0) { //restricted
307    <!                $content .= "<table border=0 cellpadding='1' cellspacing=1><tr><td width='16'><img src=\"$noaccimg\" align=\"absmiddle\" border=\"0\"></td><td><a href=\"$url\" title=\"$m_title2\" onMouseOver=\"self.status=' $m_title2 ';return true\" onmouseout=\"self.status='';return true\">$m_title2</a></td></tr></table>\n";
308    <!               } else { // Not restricted
310    <!               }
312     *             if ($restricted != 0) { //restricted
        *          $content .= "<table border=0 cellpadding='1' cellspacing=1><tr><td width='16'><img src=\"$arrowimg\" align=\"absmiddle\" border=\"0\"></td><td><a href=\"modules.php?name=$m_title\" title=\"$m_title2\" onMouseOver=\"self.status=' $m_title2 ';return true\" onmouseout=\"self.status='';return true\">$m_title2</a></td></tr></table>\n";
313    <!                  $content .= "<table border=0 cellpadding='1' cellspacing=1><tr><td width='16'><img src=\"$noaccimg\" align=\"absmiddle\" border=\"0\"></td><td><a href=\"modules.php?name=$m_title\" title=\"$m_title2\" onMouseOver=\"self.status=' $m_title2 ';return true\" onmouseout=\"self.status='';return true\">$m_title2</a></td></tr></table>\n";
314    <!             } else { //not restricted
315    <!                  $content .= "<table border=0 cellpadding='1' cellspacing=1><tr><td width='16'><img src=\"$arrowimg\" align=\"absmiddle\" border=\"0\"></td><td><a href=\"modules.php?name=$m_title\" title=\"$m_title2\" onMouseOver=\"self.status=' $m_title2 ';return true\" onmouseout=\"self.status='';return true\">$m_title2</a></td></tr></table>\n";
316    <!             }



Back to top Reply with quote
#7   re: CZModules
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
I need to make CZ Modules and CZ Hide Blocks work together, or someone needs to tell me how to hide left blocks in forums for a quick answer. The edits that can't be found are in the admin/modules/modules.php. This is due to the overwrite of that original file by the installation of CZ Modules. Could somone please point Telli to this post?



Back to top Reply with quote
#8   re: CZModules
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
well I figured out how to hide blocks in a certain module without cz hide blocks. I have read this topic and made all the suggested changes in admin/modules/modules.php, but I still can't add get new modules to show up in my admin area.



Back to top Reply with quote
#9   re: CZModules
spockep
CZ Newbie
spockep has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jul 20, 2006
0.00 posts per day
Posts: 2
Points: 25
   
Great site!!!

I Don't know how or why but I can't find the CZModules download. icon_eek.gif Is it still available?



Back to top Reply with quote
#10   re: CZModules
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
[ Register or login to view links on this board. ]



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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
You cannot attach files in this forum
You cannot download files in this forum