1
starduster
Alternative myalbum popup?
  • 2007/1/17 4:20

  • starduster

  • Just popping in

  • Posts: 24

  • Since: 2005/10/5


I was wondering if it is possible to make a custom popup for the images but instead of filling the width and height fully regarding the popup. There could be html to hold other content above and below.

A bit like using something along these lines using document.write from this website


function dirtypop()
{
  var 
generator=window.open('','name','height=600,width='960');
  
  generator.document.write('
<html><head><title>Popup</title>');
  generator.document.write('
<link rel="stylesheet" href="style.css">');
  generator.document.write('
</head><body>');
  generator.document.write('
<p>This page was generated by
    the main window
.</p>');
  generator.document.write('
<p><a href="javascript:self.close()">
    
Close</athe popup.</p>');
  generator.document.write('
</body></html>');
  generator.document.close();
}


I had a try the other day there but had no luck trying to use <{$photo.ahref_photo}> in the normal popup code I got as close as 2 popups but no html.

The normal popup code is below and I'm not even sure if it's possible with myalbum.
<a href="<{$photo.ahref_photo}>" target="_blank" onClick="window.open('<{$photo.ahref_photo}>','','width=<{$photo.window_x}>,height=<{$photo.window_y}>,scrollbars,');return(false);">
<
img src="<{$photo.imgsrc_photo}>" border="0" align="center" vspace="3" hspace="7" alt="<{$photo.title}>" title="<{$photo.title}>" <{$photo.width_height}> /></a></div>


Any help trying to piece this together would be great.

Cheers



2
starduster
Re: myAlbum-P 2.8 Help
  • 2007/1/17 2:54

  • starduster

  • Just popping in

  • Posts: 24

  • Since: 2005/10/5


When you download myalbum it is in the module folder in the download that you extract. You just rename that myalbum folder to myalbum1 or you could right click on the folder then copy and paste it in the same folder then rename the copy to myalbum1.

You upload myalbum1 to your modules folder on your server then sign in as admin on your installation goto administration then to system admin/modules look down the list near the bottom install myalbum1.

Go back to modules in site admin make myalbum1 module active by checking the box next to it then submit to apply it.

All you should need to do now is sort out your setting for myalbum1 and user priveledges.

Its the same process for myalbum2,myalbum3 etc.

Edit: Regarding the subcategories I guess you dont want submit or top rated etc. If thats the case you will have to edit the myalbum module. It is doable but I cant remember which file it is you edit off the top of my head.



3
starduster
Re: Theme Selector / Picker / Changer / Switcher module
  • 2007/1/8 14:41

  • starduster

  • Just popping in

  • Posts: 24

  • Since: 2005/10/5


This isn't directly related to your question but has to do with changing themes.

There is a module called Theme changer which allows you to use a different theme with individual modules.

It could come in useful sometime down the line.



4
starduster
Re: Add Links to Other Sites
  • 2006/7/30 3:23

  • starduster

  • Just popping in

  • Posts: 24

  • Since: 2005/10/5


http://xoops-tips.com/news-article.storyid-95.htm is worth taking into consideration



5
starduster
Re: Top Menu Bar
  • 2006/6/22 14:17

  • starduster

  • Just popping in

  • Posts: 24

  • Since: 2005/10/5


If you have changed for example just like this in theme.html
<a href="<{$xoops_url}>/modules/news/">News</a>

to

<a href="<{$xoops_url}>/modules/xoopspoll/">Voting booth</a>


Then all I can say is go to your admin panel>>system admin/preferences/general settings. Now just a little down the page you want the option Update module template .html files from themes/your theme/templates directory?

Set this to yes then click go then just have another look at your theme to see if the changes took effect.

If all is well set it back to no afterwards(always put back to no after testing). If it isn't working. I am not sure. I guess recheck your coding.



6
starduster
Re: Different theme dependant on module displayed
  • 2006/6/19 23:45

  • starduster

  • Just popping in

  • Posts: 24

  • Since: 2005/10/5


Thanks for the quick reply :)This looks great.

I will try it tomorrow when I get a chance.



7
starduster
Different theme dependant on module displayed
  • 2006/6/19 23:17

  • starduster

  • Just popping in

  • Posts: 24

  • Since: 2005/10/5


Hi I couldn't find any information on this which brings me to believe it isn't possibly.

What I was thinking of doing is making a theme for cars and football then when the appropriate module is selected it would change theme to reflect the content.

Any information welcomed. Thanks



8
starduster
Re: i need help
  • 2006/2/20 3:11

  • starduster

  • Just popping in

  • Posts: 24

  • Since: 2005/10/5


I don't know if this will help or not but the other day I moved a test installation and when I edited the mainfile.php, I accidently left a / behind in one the parts of the file where you edit it for your XOOPS install path.

The point is I removed the slash from the end of the url and all was ok. I was being directed to a cgi website because of one slash.

As I said I don't know if this will help you but I thought it was worth a mention as you may have recently altered your XOOPS install directories etc.



9
starduster
Image directory protection
  • 2006/2/20 2:55

  • starduster

  • Just popping in

  • Posts: 24

  • Since: 2005/10/5


Hi, I am wondering what would be the best way to protect a directory with say 500 images in it so that people cannot not leech bandwidth and use it on there own websites at my expense.

The directory structure is mydomain/pictures/images/ and I have got MyAlbum module installed and working correctly.

I believe the thing that I need to do is create a .htaccess file with referer information so that only my domain can use my bandwidth.

Any help or idea's most welcomed.

Thanks.



10
starduster
Re: Xoops Footer
  • 2005/11/6 13:37

  • starduster

  • Just popping in

  • Posts: 24

  • Since: 2005/10/5


Thanks, Your the dudes.

I am sorry for having this clarified beyond reason. I had to be sure :)




TopTop
(1) 2 3 »



Login

Who's Online

217 user(s) are online (138 user(s) are browsing Support Forums)


Members: 0


Guests: 217


more...

Donat-O-Meter

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

Latest GitHub Commits