1
kaper
Re: MyTabs 2.21 Persistent option bug
  • 2013/5/27 9:36

  • kaper

  • Just popping in

  • Posts: 75

  • Since: 2003/4/26


The above doesn't work in Ms Internet Explorer. The line should be
window.open(this.tabs[i].getAttribute("href"),_self)



2
kaper
Re: MyTabs 2.21 Persistent option bug
  • 2013/5/22 11:43

  • kaper

  • Just popping in

  • Posts: 75

  • Since: 2003/4/26


I revealed it.
To gain a tab-style menu, you should insert a "#" (hash) as a "Links to:" in tab settings. Then, provided Use persist =Yes and Use onmouseover = No in the MyTabs block settings, you can switch between tabs and the switched position is remembered.
When you click a tab, it expands and you can access any content of the tab, that you have set in the Tab Manager.
It doesn't matter whether "#" is the only content of the Link To: field or it is included in any longer string. Actually , the position of "#" in the string is checked - if is >=0, the tab is expanded.

The above is as described in the mytab/doc/readme.txt.
It lacks a small feature I need.
When I click a tab, I want not to expand the tab (to get a kind of "submenu"), but I want just to be redirected to another page, which will include the tabs and that tab will remain selected.
I did it in a quite simple way:

mytabs/jscript/tabcontents.js, function init, lines below 154
this.tabs[i].onclick=function(){
                            
tabinstance.expandtab(this)
                            
tabinstance.cancelautorun() //stop auto cycling of tabs (if running)
                  
location.this.tabs[i].getAttribute("href"// added by kaper
                            
return false
                        
}

The onclick function just opens the URL after expanding the tab (and writing info about the selected one to cookie via the expandtab function).



3
kaper
MyTabs 2.21 Persistent option bug
  • 2013/5/16 15:04

  • kaper

  • Just popping in

  • Posts: 75

  • Since: 2003/4/26


MyTabs 2.21 over XOOPS 2.5.6

I want the MyTabs to remember the tab recently selected. I mean, when I click a tab (containing a link) ant the linked page loads, I want the recently clicked tab to remain selected.

If I select Use Persist and Use Onmouseover in the MyTabs block settings, the selected tab is remembered through the page reload. However, I want to have the onmouseover turned off (why - I explain later).

So if Use Persist only is selected, the recently selected tab is not remembered through the page reload - after clicking any tab and loading the linked page, always the first tab (from the left) is selected. Eventually always and only the first tab can be active.

I will appreciate explaining whether that is a bug and how to fix it. Yet I haven't determine how the information about the selected tab is passed through the page reload.


(I want to have the onmouseover turned off, because if it is on and I accidentally hover the mouse over any tab, that random tab becomes selected, thus making the selected tab inconsistent with the page content (I want to use the tabs as a navigation menu)



4
kaper
Re: DB tables shared between modules - how to do?
  • 2013/4/6 19:04

  • kaper

  • Just popping in

  • Posts: 75

  • Since: 2003/4/26


Thanx.
What about merging features (e.g. form elements) between modules?

Say I have one module including basic customer information (name, address) and another module for CRM (including notes about contacts). The database tables would look like this:
customers: cust_id, cust_name, cust_address
crm_notes: crm_note_id, crm_cust_id, crm_note_content
crm2cust: crm_note_id, cust_id // to link the two tables above

I assume that Customers is a basic module, and CRM is optional, that is I can use Customers module without having CRM installed, but to use CRM, Customers is mandatory.
Naturally I can add a CRM note from inside the the CRM module. But it would be useful to allow that also inside the Customers module: say I go to customer's data edition to change its address. Right after doing that it will be convinient to click "Add CRM note" to note time and reason of making that change.

So: is there a good way to put inside one module (A) a "plugin" from other module (B)? The plugin would define (or point to a definition) elements which would appear in module A and invoke module B actions. For example a plugin file in Customers module would add the "Add CRM note" button to customer data form.



5
kaper
Re: DB tables shared between modules - how to do?
  • 2013/4/5 19:09

  • kaper

  • Just popping in

  • Posts: 75

  • Since: 2003/4/26


You mean inside module1, to use xoops_getmodulehandler(module2) to access tables managed by module2? So simple, indeed



6
kaper
DB tables shared between modules - how to do?
  • 2013/4/5 8:36

  • kaper

  • Just popping in

  • Posts: 75

  • Since: 2003/4/26


I am planning to make a system for small business support. There would be a database of customers, store, documents (e.g. invoices) etc. I think about writing separate modules for each field of activity - one module for store management, another for issuing invoices, other for CRM rtc. However, every module will work on comman database: for example if I want to prepare an invoice then, apart form accessing invoices database, I also have to access customers and store database.

The concept of separate modules for separate tasks over common database will help make the system modular and thus easy to tailor / configure for a particular customer.

So the question: is there a preferred way to make tables accessible from multiple modules?



7
kaper
How to prevent from converting special characters into HTML entities?
  • 2011/10/11 16:27

  • kaper

  • Just popping in

  • Posts: 75

  • Since: 2003/4/26


Can I define a set of characters, which will not be converted into htmlentities?

I have a UTF-8 site with content in various languages, utilizing characters from more than one 8-bit charset (mostly West- and East-European). I want all their characters to be recorded as characters, not HTML entities (e.g. character "ã" to be UTF-8 201h character, not "& atilde" entity).

Can I configure textsanitizer to pass these characters intact?



8
kaper
Re: Forcing users accept changed terms of use
  • 2011/10/7 8:44

  • kaper

  • Just popping in

  • Posts: 75

  • Since: 2003/4/26


At a glance - this hack makes the checkbox appear always. Maybe it is a good starting point, however I need it to appear only when I want (i.e. when TOU is changed) and appear not for everyone - those who accept it, will not have it displayed any more. That means that accepting TOU should be recorded in database and checked on every login.



9
kaper
Forcing users accept changed terms of use
  • 2011/10/6 20:18

  • kaper

  • Just popping in

  • Posts: 75

  • Since: 2003/4/26


Is there a way to force users to accept changed terms of use? For example, when a user logs in, it gets a message that he has to accept a new terms of use, together with a link to the document and a checkbox.

This feature could be related either to a registration disclaimer, or to a separate document like the one at XOOPS site - a wf-channel page.

BTW. Is it possible for a user to see the disclaimer he had confirmed during registration?



10
kaper
[SOLVED] Performance issue - XOOPS site gets throttled
  • 2011/9/21 11:33

  • kaper

  • Just popping in

  • Posts: 75

  • Since: 2003/4/26


Finally I found out that what was a problem for me, actually was an intended acting of Protector. My activity at the XOOPS site was interpreted as an F5 (refresh) DoS attactk and after a specified amount or page reloads, a blank screen was returned for a specified amount of time. All three parameters (reload count, response action, timeout) are configured at Protctor preferences page.

Formerly, according to advice, I have tried to to turn Protector off, I really don't know why then it didn't help. Maybe upgrading from ancient to contemporary version was the proper treatment.




TopTop
(1) 2 3 4 ... 6 »



Login

Who's Online

210 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 210


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