1
Fredrik
Re: Hiding Tiny Content submenu from Anonymous Users
  • 2005/7/5 12:44

  • Fredrik

  • Just popping in

  • Posts: 26

  • Since: 2004/4/21


I solved it by using chapi's solution for a similar question. Instead of hiding the submenu I re-direct unauthorized users when they click the link in the menu.

The following was added to modules/tinycontent/index.php

// main query
}
if (($id == 19) && (empty($xoopsUser))) { // id of your content
redirect_header( XOOPS_URL , 2 , _NOPERM ) ;
exit ;
}else{

$result = $xoopsDB->query( "SELECT storyid,title,text,visible,nohtml,nosmiley,nobreaks,nocomments,link,address FROM $mytablename WHERE storyid='$id' AND visible" ) ;

if( ( $result_array = $xoopsDB->fetchArray( $result ) ) == false ) {
redirect_header( XOOPS_URL , 2 , _TC_FILENOTFOUND ) ;
exit ;
}
}



2
Fredrik
Hiding Tiny Content submenu from Anonymous Users
  • 2005/7/3 20:09

  • Fredrik

  • Just popping in

  • Posts: 26

  • Since: 2004/4/21


Is there any way to hide a submenu from unregistered users?

I use multiple tiny content modules to group content but some parts are for registered users only while other parts are for anyone to see.



3
Fredrik
Re: Problem with link to News archive
  • 2004/6/28 15:42

  • Fredrik

  • Just popping in

  • Posts: 26

  • Since: 2004/4/21


I forgot: I made a change to allow unregistered users to view both news and archive, but not submit!

Now I know where to look, thanks!



4
Fredrik
Problem with link to News archive
  • 2004/6/28 14:37

  • Fredrik

  • Just popping in

  • Posts: 26

  • Since: 2004/4/21


I have a problem with News module ver. 1.1

The link in my main menu that should direct the user to the news archive points at /modules/news/Object instead of /modules/news/archive.php !

How/where do I change the URL?

Thanks in advance!



5
Fredrik
Re: A new autologin hack for 2.0.6
  • 2004/6/17 11:29

  • Fredrik

  • Just popping in

  • Posts: 26

  • Since: 2004/4/21


Same problem, I have the check box, the cookie is creatde but still I have to login.

Quote:
same here.... i have installed and uploaded everything. Got the remember me with the box shown.... but everytime i close my browser and re open that i still have to login... is it theme problem? if that so how to fix that?



6
Fredrik
Re: Remember me box won't display on other templates
  • 2004/6/17 11:23

  • Fredrik

  • Just popping in

  • Posts: 26

  • Since: 2004/4/21


I changed to the default theme, then the check box becam evisible. When I changed back to my theme it's still visible! But it doesn't remember me



7
Fredrik
Re: Remember me box won't display on other templates
  • 2004/6/17 11:03

  • Fredrik

  • Just popping in

  • Posts: 26

  • Since: 2004/4/21


I would like to know how you did!



8
Fredrik
Re: Problems with myAlbum 1.1.3 after migrating
  • 2004/6/14 13:33

  • Fredrik

  • Just popping in

  • Posts: 26

  • Since: 2004/4/21


Problem solved.

Removed .htaccess from myalbums folder.



9
Fredrik
Problems with myAlbum 1.1.3 after migrating
  • 2004/6/11 12:28

  • Fredrik

  • Just popping in

  • Posts: 26

  • Since: 2004/4/21


I developed a site on my account at a host, and later migrated to another account at the same host.

Everything except myAlbum 1.1.3 works just fine.
I can't administer:
- My Album General Settings
- Add, Modify, and Delete Categories/Photos
When I click on them the page just reloads.

An to the most serious problem: users can't upload pictures anymore!

I have tried to uninstall and reinstall, but it still doesn't work!



10
Fredrik
Re: Possible for users to mass communicate (sending PM)?
  • 2004/6/9 8:27

  • Fredrik

  • Just popping in

  • Posts: 26

  • Since: 2004/4/21


I suppose one way would be to add a "send pm to all" button in the xoopsmembers_searchresults.html template, and add a function in pmlite.php which uses the standard forms etc. and then loops user by user and sends the pm.

Is there anything I need to consider?





TopTop
(1) 2 3 »



Login

Who's Online

232 user(s) are online (162 user(s) are browsing Support Forums)


Members: 0


Guests: 232


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits