293001
hsalazar
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/6/1 17:30

  • hsalazar

  • Just popping in

  • Posts: 78

  • Since: 2003/2/6 1


SirTanksAlot:

Indeed you haven't allowed registered visitors access to your downloads. The hacks you mention are all quite desirable, so please open this access.

Happy Xoopsing!



293002
Twilo
Xoops Gallery
  • 2003/6/1 15:18

  • Twilo

  • Just popping in

  • Posts: 24

  • Since: 2003/4/24


http://www.shirel.com/mydownloads this link does not work. I think it should be like this

Also, I registered to your site and mydownloads section does not work. When I want to access there it says "Sorry, you don't have the permission to access this area.
If the page does not automatically reload, please click here" Maybe you forgot to give access rights for registered users in System Admin/groups.



293003
El_Jordo
Re: desperately need help tracking and banning trolls.
  • 2003/6/1 15:14

  • El_Jordo

  • Just popping in

  • Posts: 64

  • Since: 2003/4/23


Quote:

malexandria wrote:
hmmm...thats interesting in X2 it no longer has an option to display the IP address. So I'm not sure how you would go about it now.

OK, good... I'm not just imagining it.

Is there any reason this is implemented in the news comments, but not in the Forum module? It seems like a necessity to me.



293004
malexandria
Re: desperately need help tracking and banning trolls.

hmmm...thats interesting in X2 it no longer has an option to display the IP address. So I'm not sure how you would go about it now. Maybe you can ping the person's domain name once you get the ip for the domain that they are using then you can block it in the system admin/edit preferences screen.

the problem with this approach is you could accidently block out a lot of users that you didn't intend on.



293005
El_Jordo
Re: desperately need help tracking and banning trolls.
  • 2003/6/1 14:26

  • El_Jordo

  • Just popping in

  • Posts: 64

  • Since: 2003/4/23


But where do you find the IP to block?

(I refer to the forum module, not the news comments.)

TIA



293006
malexandria
Re: desperately need help tracking and banning trolls.

Can't you just use the built in Ban IP function to effectively block folks?



293007
SirTanksAlot
XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...

I just finished a bunch of hacking on XoopsGallery...

you can get my changes from: http://www.shirel.com/modules/mydownloads

Following is the contents of the change.txt for everything that I did...

Matt's Gallery Hacks
mls-at-shirel.com

If you have any questions, email me and I'll do my best to help... I'm a php newbie,
and I know even less SQL.. But I hack my way through as best I can... btw -- Some "Bugs"
could possibly considered "features".. but I wanted different behavior...

June 1, 2003

Bug: Album Description do not show up on top level page that lists each of the albums...
Reason: Typo of smarty template
Fix: In the template file: xoopsgallery_index.html change the smarty-template name on line 27:
from: <{$album.desc}>
to: <{$album.album_desc}>
Note: Your template files (stored in the DB) will have to be refreshed for this change to go
into affect.

Bug: The sort function bombed for anything other than a random sort.
Reason: the album save() function is not reenterant.
Fix: Modified classes/album.php and sort_album.php.
The function -- SortPhotos() -- now takes a 3rd argument. This arguement defaults to false
meaning it will execute a save() in the middle of the function. When called from sort_album,
the 3rd arguent is passed as try to bypass the save since one will be done upon exiting the
function call.

Bug: New Pictures Block displays full size images instead of the thumbnail image.
Reason: B/c that's the source that was being passed... the block needed more/better info...
Fix: Modified class/image.php and blocks/xoopsgallery_blocks.php
image.php: Added new functions to the XoopsgalleryImage() class to put together a thumbnail link.
xoopsgallery_blocks.php: call the new function (getFullThumbURL) instead of the old (getFullURL)

Bug: New Picture Block would display less than the desired number of pictures if they movies/albums/etc
were a part of the list...
Reason: Only N items were pulled out of the MySQL tables...
Fix: Modified class/image.php and blocks/xoopsgallery_blocks.php
image.php: Added new functions to the XoopsgalleryImage() class.
xoopsgallery_blocks.php: pull some more entries from the table and make sure there is a
thumbnail for all the ones you are going to use...

Bug: Random Image Block would not provide a link to the image/gallery the image originated from...
Reason: b/c that's the way it was written..
Fix: modified class/image.php, blocks/xoopsgallery_blocks.php and
templates/blocks/xoopsgallery_block_rand.html
image.php: this depends upon the modification for the "New Pictures Block" hacks
xoopsgallery_blocks.php: Completely rewrote the function -- b_xoopsgallery_getRandomImage()
It now more closely resembles the b_xoopsgallery_newshow() function.
xoopsgallery_block_rand.html: This now exactly mimics the new picture block template...
* Note: make sure you refresh your template files for this block...

Bug: The Recent Comments block does not reliably link to the image/comments w/i a gallery. It
frequently throws and error about undefined object (or something similar) and returns a blank page.
Reason: The link from Recent Comments passes the albumName as albumName=XXX instead of set_albumName=XXXX.
Fix: ************* HACK *************************
This should really be fixed in the comments block code.. but I wasn't going to start my way through
that learning curve tonight... So I did the following as a major hack:
Modified session.php
Now, instead of just looking for set_albumName to be passed as a GET param, it will also look
for albumName...

NOTE: The sporatic success/failures seems to be b/c an Album object is carried around in the session
after you have visited any albums. If the last album visited happened to be the same one as the
comment went to, you were in luck and everything worked. If it was a different album, you would
end up on the wrong image.


WHEW!!!!!!! I think that's it...

ToDo: Sometime in the future, when I (or someone) has the time to figure out how to do it...

1) Count the total number of new Images added in the last week/month/??? and include in new image block.
1a) Page/Block to show list (thumbnail) of all images added in last week/month/???
2) Add block configuration options for the Random Image block... How many? Size? Show Upload Date?
2a) Add option to new image block to configure timeframe of 1/1a.
3) Add notifications when new images are added to an album.
4) Exclude "private" images from new/random blocks.



293008
netwize
Re: desperately need help tracking and banning trolls.
  • 2003/6/1 10:25

  • netwize

  • Just popping in

  • Posts: 89

  • Since: 2002/1/20


bump



293009
Gynther
Re: Polish your theme CSS files
  • 2003/5/31 14:25

  • Gynther

  • Just popping in

  • Posts: 8

  • Since: 2003/5/21


Making webpages look good cross-platform can be nightmare. I usually try and fix it with a little help from PHP and include a separate CSS file depending on which browser is used. This helps, me at least , to organize my stylesheets better. I make a version for each browser I wish to support and that does not comply with eachother and insert the following PHP code snippet:

if(strstr($HTTP_USER_AGENT, "Mozilla")){$user_agent = "Mozilla";}
if(strstr($HTTP_USER_AGENT, "Konqueror")){$user_agent = "Konqueror";}
if(strstr($HTTP_USER_AGENT, "IE")){$user_agent = "IE";}


and

echo("<link rel='stylesheet' type='text/css' href='stylesheets/stylesheet_".$user_agent.".css' />\n");

into the .php file. This way of course doesn't work if the user chooses to mask his/her browser as anotherone but that is more or less out of ones control. This also means that the CSS files have to be named like for instance "stylesheet_Mozilla".

Oh, and thanks sunsnapper for the tip about sizes. I was looking for that somewhere.



293010
jad2000
Re: Main Menu
  • 2003/5/31 12:17

  • jad2000

  • Just popping in

  • Posts: 16

  • Since: 2003/4/12


What am I pupposed to add?







Login

Who's Online

213 user(s) are online (129 user(s) are browsing Support Forums)


Members: 0


Guests: 213


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