181
skalpa
Re: How Do You Upgrade Your Xoops
  • 2003/10/8 16:22

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


Quote:

DFBH13 wrote:
hmmm i still dont understand.If you overwrite your files the existing data will be lost and you will be starting from scratch.


Don't worry m8,
The php files just contain code. Your data is stored in a MySQL database, and those files aren't here
But as Herko said, don't overwrite mainfile.php, this one contains all the configuration data you entered during your former site setup.

Skalpa.>



182
skalpa
Re: Popup's
  • 2003/10/8 16:18

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


Quote:

Coreace wrote:
An option to disable the popup window when creating PM's. In fact, I find it very annoying each time I reply or create a message. Is there a way to make it flat or 'self' rather than the new window?


Good news for you: I'm working on a completely new PM system that should be integrated in v2.0.6.
The new system will add 'Sent items' and 'Drafts' folder, and you will have an option so you can choose between popup and plain for the compose page.
Personally I prefer the popup version (when I click 'Create mail' in my email client, it opens a new window ), but thought users should be able to choose.

So just be patient

Skalpa.>



183
skalpa
Re: user name characters count
  • 2003/10/8 6:36

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


It's in System admin / Prefs / User info settings

(It's the 2nd time I answer that to someone in 5mins, we should make that page a bit more accessible )

Skalpa.>



184
skalpa
Re: Pop up window
  • 2003/10/8 6:25

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


OK...

As hsalazar took the time to write a nice & long tutorial, I can take 5mins to translate that
(I also corrected it, as I think the original article has been written for XOOPS v1.x despite what its title says)

Skalpa.>

PS: Don't forget that if you let everything like that, the popup will be displayed again if an user comes back the next day. If, as I think considering your "chat" example, it's not what you want, I'd suggest you to save your orignal theme.html file so you can switch with / without popup as will.

---
Within the themes/yourtheme/theme.html, insert the following code just after the <head> tag:

<SCRIPT LANGUAGE="JavaScript">

function 
OpenPopup() {
// Check that the cookie isn't already there
if (GetCookie("pop")==null) {

// Create the popup window
window.open("<{$xoops_url}>/pop.html","pop","width=350, height=150, toolbars=no, scrollbars=no");

// Create a cookie that will last 24 hours
var pathname=location.pathname;
var 
myDomain=pathname.substring(0,pathname.lastIndexOf('/')) +'/';
var 
date_exp = new Date();
date_exp.setTime(date_exp.getTime()+(24*3600*1000)); // 24 heures
SetCookie("pop","ok",date_exp,myDomain);
}
}

function 
SetCookie (namevalue) {
var 
argv=SetCookie.arguments;
var 
argc=SetCookie.arguments.length;
var 
expires=(argc 2) ? argv[2] : null;
var 
path=(argc 3) ? argv[3] : null;
var 
domain=(argc 4) ? argv[4] : null;
var 
secure=(argc 5) ? argv[5] : false;
document.cookie=name+"="+escape(value)+
((
expires==null) ? "" : ("; expires="+expires.toGMTString()))+
((
path==null) ? "" : ("; path="+path))+
((
domain==null) ? "" : ("; domain="+domain))+
((
secure==true) ? "; secure" "");
}

function 
getCookieVal(offset) {
var 
endstr=document.cookie.indexOf (";"offset);
if (
endstr==-1)
endstr=document.cookie.length;
return 
unescape(document.cookie.substring(offsetendstr));
}
function 
GetCookie (name) {
var 
arg=name+"=";
var 
alen=arg.length;
var 
clen=document.cookie.length;
var 
i=0;
while (
i<clen) {
var 
j=i+alen;
if (
document.cookie.substring(ij)==arg)
return 
getCookieVal (j);
i=document.cookie.indexOf(" ",i)+1;
if (
i==0) break;}
return 
null;
}
</
SCRIPT>

Then, call the function when the page loads by inserting this within the <body> tag:

<SCRIPT LANGUAGE="JavaScript">
OpenPopup();
</
SCRIPT>


And last, create the page that will be displayed in your popup window, and save it at the root of your XOOPS site, using the filename you used earlier (in the above example, "pop.html"):

<HTML>
<
TITLE>Pop</TITLE>
<
BODY>
 
Content
</BODY>
</
HTML>




185
skalpa
Re: Instructions on how to hack a block [Warning: looong post]
  • 2003/10/8 6:06

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


It's quite nice you took the time to explain

Would be cool if you could copy that to the wiki so people can find it easily later.

Cheers

Skalpa.>



186
skalpa
Re: How to allow forum avatar uploads?
  • 2003/10/8 6:00

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


The option is in System admin / Preferences / User info settings.
Users will then be allowed to upload an avatar by choosing "View account" in main menu.



Skalpa.>



187
skalpa
Re: Pop up window
  • 2003/10/8 3:09

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


Not easily...

The only thing you could do is modify your current theme file, so it displays your invitation somewhere, then remove your message after a while.

Displaying a popup to each user by this way would also be possible, but more difficult (you'd have to use a cookie so each user sees the popup only once).
Also, more and more people use anti pop-up software, so IMHO the "display within page" method is better.

Skalpa.>




TopTop
« 1 ... 16 17 18 (19)



Login

Who's Online

203 user(s) are online (141 user(s) are browsing Support Forums)


Members: 0


Guests: 203


more...

Donat-O-Meter

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

Latest GitHub Commits