1
thygar
How to Stop Direct Linking to Specific Modules?
  • 2007/1/23 15:47

  • thygar

  • Just popping in

  • Posts: 9

  • Since: 2005/3/8 1


Hello,

I am trying to figure out if it is possible to stop users from bypassing the entire site and only going to one specific module, for instance the CBB forums. Currently we have users that bypass the everything and simply put in the urlhttp://www.sitename.com/modules/cbb and thereby forgoing everything else.

Can this be done, so that users have no choice but to go to the front page first and then click on the menu to go to the forums?

We currently have the autologin feature enabled so that users are not prompted for logins all the time, I know if we turn this off it would fix it, but I would rather not have to resort to that if possible.

Thanks in advance.



2
thygar
Link Target issues
  • 2007/1/5 5:54

  • thygar

  • Just popping in

  • Posts: 9

  • Since: 2005/3/8 1


I am trying to figure out how to target a link that is on a side block to the center block window. Currently it either opens a new window or just removes the XOOPS site and replaces it.

Is there a way to do this, to target the main center XOOPS screen rather than a new window or replaceing the current one?



3
thygar
Issue with php code and x-phpbb
  • 2005/3/30 22:40

  • thygar

  • Just popping in

  • Posts: 9

  • Since: 2005/3/8 1


Somehow this code is breaking X-PHPBB and I am not sure how to fix it. I took this code from some other posts in order to have an Inbox alerter in a different menu block. I personally chose the Main menu block as simply I didnt want to have multiple blocks showing when I could just have one and have the many sections available, this is a personal choice.

In any case, the code works great and shows when there are new messages or not just like the Usermenu Inbox does. The problem lies in when I have X-PHPBB installed (1.23b) and go to either Post a new message, Mark Forums Read, Post a poll, etc etc, basically anything that causes it to reload the website when it completes something.

I have nailed it down to the line in bold as causing a problem, as when I take that line out everything on the forums side works properly. The problem in removing that line is that the Inbox link no longer shows if there are new messages or not it just shows Inbox.

Any help on the resolution would be greatly appreciated !!!

<{php}>
GLOBAL $xoopsUser;
$pm_handler =& xoops_gethandler('privmessage');
$uid = $xoopsUser->getVar('uid');
$criteria = new CriteriaCompo(new Criteria('read_msg', 0));
$criteria->add(new Criteria('to_userid', $uid));
$msgcount = $pm_handler->getCount($criteria);
$GLOBALS['xoopsTpl']->assign('msgcount', $msgcount);
<{/php}>
<{if $msgcount > 0}>
<a href="<{$xoops_url}>/viewpmsg.php">Inbox(<span style="color:#ff0000; font-weight: bold;"><{$msgcount}></span>)</a>
<{else}>
<a href="<{$xoops_url}>/viewpmsg.php">Inbox</a>
<{/if}>



4
thygar
A Javascript/Flash Mouseover Menu Block
  • 2005/3/22 18:11

  • thygar

  • Just popping in

  • Posts: 9

  • Since: 2005/3/8 1


So I have been playing around, searched across the board, and have not been able to create/find a method to create a Menu block that uses either flash or java so that when I mouse over an option it brings up a submenu with the links.

I have gone over and over both here and google and am unable to find what I need. I see examples of flash/java menus, and I see examples of having flash movies and such in Xoop, but I see nowhere on how to bring the two together and make it work..

If anyone has any examples or pointers or even links that I can look over, I would be ever so grateful!!

Thanks!!



5
thygar
Re: AgendaX 2.2 question/issue
  • 2005/3/18 22:38

  • thygar

  • Just popping in

  • Posts: 9

  • Since: 2005/3/8 1


Tried that as well and it still didn't help. Not sure if it's really a front end change that needs to occur as I have tried everything, including just blanking out the entire template and putting in just a text line.

It shows up in the preview but after a submit it still doesn't show. It's got me very confused as I have adjusted many a template and this is the only one that appears/dissapears based on content in the module.



6
thygar
AgendaX 2.2 question/issue
  • 2005/3/18 22:26

  • thygar

  • Just popping in

  • Posts: 9

  • Since: 2005/3/8 1


The Upcoming Week Events block shows fine if there are events scheduled in the calendar for the week, but disappears if there are no events. I thought that was cool but soon realized that I wanted it to show all the time. So I edited the block and thought of here was the origional code:

<{if $block.contents}>
<{foreach item=event from=$block.contents}>
<li><{$event}></li>
<{/foreach}>
<{/if}>

Lets just add in an else and go from there I thought:

<{if $block.contents}>
<{foreach item=event from=$block.contents}>
<li><{$event}></li>
<{/foreach}>
<{else}>
<li>No events this week</li>
<{/if}>

However for some reason it still refuses to show. I have gone over this left right center etcetc and cannot get it to work. So I wondered if there was something on the back end that made things funky, but I've been through the agenda folder and found nothing that helped.

If anyone has an idea what I need to look for or what I am missing that would be great !!!

Thanks.



7
thygar
Re: Block visibility changes between groups not being retained
  • 2005/3/8 20:12

  • thygar

  • Just popping in

  • Posts: 9

  • Since: 2005/3/8 1


And after re-reading what you said and looking deeper into it I see exactly what you mean and thats exactly what I was looking for..

Thanks :)



8
thygar
Re: Block visibility changes between groups not being retained
  • 2005/3/8 20:08

  • thygar

  • Just popping in

  • Posts: 9

  • Since: 2005/3/8 1


What I am doing is going into the System Admin > Blocks Administration.

From there I see all the available Block, with the following columns:

Block Description
Title
Module
Side Left-Center-Right
Weight
Visible
Action

Under the Visible column is where I choose to make the block visible to the group or not. Above the whole section is the line:

Show blocks visible in Top Page Group Webmasters Visible All

The drop downs for Group show Webmasters, Registered Users, Anonymous Users and #Unassigned.

Depending on which group I chose, I can select different visible options. Once I choose the visible options I click on the submit button and it saves it, I can then go to the web page and view the changes.

The problem I am having, is that the settings are saved across the board, not for individual groups. Is this the way its supposed to be?



9
thygar
Block visibility changes between groups not being retained
  • 2005/3/8 19:33

  • thygar

  • Just popping in

  • Posts: 9

  • Since: 2005/3/8 1


Hello everyone,

Hopefully someone will be able to help with this issue. It seems that whenever I change block visibility on one group it gets copied over to the other groups instead of being limited to the one I am working on.

For example, I put the Main Menu block to be visible to Registered users, and removed visibilty to Anonymous users. Depending on which one I do last is the setting that gets retained for both. If I remove the visibility last then it's removed on both etc.

Am I doing something wrong or is there something I am missing? I just installed the latest XOOPS and added the 4TheFort theme, nothing else was changed or modded in any way.

Thanks in advance.




TopTop



Login

Who's Online

159 user(s) are online (86 user(s) are browsing Support Forums)


Members: 0


Guests: 159


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