| Author |
Message |
dotcomUNDERGROUND
Lieutenant


Joined: Jul 18, 2003
Posts: 180
|
Posted:
Thu Aug 07, 2003 11:39 am |
  |
Do you guys plan to make GT work with My_eGallery too?
it would be very helpfull for lots of people i guess |
|
|
    |
 |
hamesh
Support Mod


Joined: Feb 13, 2003
Posts: 170
Location: Canada
|
Posted:
Sun Sep 07, 2003 2:26 am |
  |
This should get you started...
Add this to your .htaccess file:
| Code: |
#My_eGallery
RewriteRule ^showgal-([0-9]*)-([0-9]*)_(titleA|titleD|dateA|dateD|ratingA|ratingD|hitsA|hitsD).html modules.php?name=My_eGallery&file=index&do=showgall&gid=$1&offset=$2&orderby=$3
RewriteRule ^showgal-([0-9]*)_(titleA|titleD|dateA|dateD|ratingA|ratingD|hitsA|hitsD).html modules.php?name=My_eGallery&do=showgall&gid=$1&offset=&orderby=$2
RewriteRule ^showgal-([0-9]*).html modules.php?name=My_eGallery&file=index&do=showgall&gid=$1
RewriteRule ^showpic-([0-9]*)-([0-9]*)_(titleA|titleD|dateA|dateD|ratingA|ratingD|hitsA|hitsD).html modules.php?name=My_eGallery&file=index&do=showpic&gid=$1&pid=$2&orderby=$3
RewriteRule ^showpic-([0-9]*)_(titleA|titleD|dateA|dateD|ratingA|ratingD|hitsA|hitsD).html modules.php?name=My_eGallery&file=index&do=showpic&pid=$1&orderby=$2
RewriteRule ^showpic-([0-9]*).html modules.php?name=My_eGallery&file=index&do=showpic&pid=$1 |
Then add these to your header.php file under $urlin = array:
| Code: |
"'(?<!/)modules.php\?name=My_eGallery&file=index&do=showgall&gid=([0-9]*)&offset=([0-9]*)&orderby=(titleA|titleD|dateA|dateD|ratingA|ratingD|hitsA|hitsD)'",
"'(?<!/)modules.php\?name=My_eGallery&file=index&do=showgall&gid=([0-9]*)&offset=&orderby=(titleA|titleD|dateA|dateD|ratingA|ratingD|hitsA|hitsD)'",
"'(?<!/)modules.php\?name=My_eGallery&file=index&do=showgall&gid=([0-9]*)'",
"'(?<!/)modules.php\?name=My_eGallery&file=index&do=showpic&gid=([0-9]*)&pid=([0-9]*)&orderby=(titleA|titleD|dateA|dateD|ratingA|ratingD|hitsA|hitsD)'",
"'(?<!/)modules.php\?name=My_eGallery&file=index&do=showpic&pid=([0-9]*)&orderby=(titleA|titleD|dateA|dateD|ratingA|ratingD|hitsA|hitsD)'",
"'(?<!/)modules.php\?name=My_eGallery&file=index&do=showpic&pid=([0-9]*)'",
"'(?<!/)modules.php\?name=My_eGallery&file=index&do=showpic&pid=([0-9]*)'" // for block-AlbumNew.php |
And these in header.php below $urlout = array:
| Code: |
"showgal-\\1-\\2_\\3.html",
"showgal-\\1_\\2.html",
"showgal-\\1.html",
"showpic-\\1-\\2_\\3.html",
"showpic-\\1_\\2.html",
"showpic-\\1.html",
"showpic-\\1.html", |
Remember these have to be in order. It doesn't matter where you add them in function replace_for_mod_rewrite, so long as you add them in the same place (I entered them at the top of each array). If you add them to the bottom, drop the comma ',' on the last line.
Still working on it. Will post any additions as I make them.
Cheers! |
_________________

Last edited by hamesh on Sun Sep 07, 2003 11:37 am; edited 3 times in total |
|
       |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Sun Sep 07, 2003 5:56 am |
  |
Welcome back hamesh.
As soon as I can get the server issue resolved I'm going to spend an entire week going thru this forum and integrating all the new code into GT. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
Mesum
Support Staff


Joined: Mar 11, 2003
Posts: 842
Location: Chicago
|
Posted:
Sun Sep 07, 2003 9:46 am |
  |
|
       |
 |
dotcomUNDERGROUND
Lieutenant


Joined: Jul 18, 2003
Posts: 180
|
Posted:
Wed Sep 10, 2003 6:01 am |
  |
|
    |
 |
kjcdude
Captain


Joined: Jun 10, 2003
Posts: 441
Location: Southern California
|
Posted:
Wed Sep 10, 2003 6:56 pm |
  |
|
       |
 |
hamesh
Support Mod


Joined: Feb 13, 2003
Posts: 170
Location: Canada
|
Posted:
Thu Sep 11, 2003 8:53 pm |
  |
I checked your gallery and you must be using an older version that mine. Your URLs have op=modload in them. I found an version updated for PHP-Nuke 6.5 (mostly sql statements updated) that doesn't have op=modload in any of the files. You can grab that updated version here:
http://server1.belchfire.net/downloads/My_eGallery_phpnuke6.5_with_Rating_Support.rar
It should also fix all the database errors you're getting because of the old sql statements. Perhaps I'll zip up my modified My_eGallery files and post it here along with the rewrite rules that work for it. |
Last edited by hamesh on Thu Sep 11, 2003 9:12 pm; edited 1 time in total |
|
       |
 |
kjcdude
Captain


Joined: Jun 10, 2003
Posts: 441
Location: Southern California
|
Posted:
Thu Sep 11, 2003 9:03 pm |
  |
|
       |
 |
kjcdude
Captain


Joined: Jun 10, 2003
Posts: 441
Location: Southern California
|
Posted:
Sun Sep 14, 2003 11:08 am |
  |
|
       |
 |
hamesh
Support Mod


Joined: Feb 13, 2003
Posts: 170
Location: Canada
|
Posted:
Sun Sep 14, 2003 11:49 am |
  |
Sure, whatcha need? By the way, I've been using My_eGallery for two years and the only reason I'm still using it is because it's the only one that does what I need. I too have modified mine considerably over that time. But unless you have a compelling reason to use My_eGallery, just don't. Development on it stopped over a year ago. There are better galleries out there such as Menalto Gallery, http://gallery.menalto.com and http://www.nukedgallery.com, and Coppermine, http://phpnuke-uk.net/modules.php?name=Downloads&d_op=search&query=coppermine (main site currently experiencing problems). I'd suggest you use one of those instead.
But feel free to post your questions about My_eGallery and I'll try to help  |
_________________
 |
|
       |
 |
kjcdude
Captain


Joined: Jun 10, 2003
Posts: 441
Location: Southern California
|
Posted:
Sun Sep 14, 2003 12:32 pm |
  |
I looked at all of those.
I like Copermine but not gallery.
And i am stiking with Meg for the same reasons as you are.
Would it be possible for you to zip your entire gallery since i asume that it works much better than mine does and works with GT.
Thanks,
Kyle |
_________________ Diablo Heat | The OC Sucks [b]Hot or Not[/b] | TheOCSucks.com The OC Sucks |
|
       |
 |
hamesh
Support Mod


Joined: Feb 13, 2003
Posts: 170
Location: Canada
|
Posted:
Sun Sep 14, 2003 12:53 pm |
  |
Sure thing. Grab it here:
http://server1.belchfire.net/nuke/downloads/
I included an install.txt file. Read it first. I tested it as best I could and it works. It should work with the GT rules above since that's what I based them on. Good luck  |
|
|
       |
 |
hamesh
Support Mod


Joined: Feb 13, 2003
Posts: 170
Location: Canada
|
Posted:
Sun Sep 14, 2003 1:19 pm |
  |
Oh, if you don't like my custom gallery templates, here are the defaults:
| Code: |
[Main Page] Default - Main Page:
Main Gallery Page Template:
<table align="center">
<tr>
<td colspan="2">
<:GALLNAME:>
</td>
</tr>
<tr>
<td>
<:IMAGE:>
</td>
<td valign="top" align="left">
<:DESCRIPTION:>
</td>
</tr>
</table>
Template CSS:
.common_text_black {text-color:#000000}
.common_text_white {text-color:#ffffff}
[Gallery Pages] Default - Gallery pages:
Thumbnail view Template:
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<:IMAGE:>
</td>
<td valign="top">
<p>
<table>
<tr>
<td align="center">
<:DATE:>
</td>
<td align="center">
<:RATE:>
</td>
<td align="center">
<:HITS:>
</td>
<td align="center">
<:NEW:>
</td>
</tr>
</table>
</p>
<p>
<:DESCRIPTION:>
</p>
<p>
<:NBCOMMENTS:> | <:FORMAT:> | <:SIZE:>
</p>
</td>
</tr>
</table>
Picture view Template:
<table>
<tr>
<td valign="top" align="center">
<:NAMESIZE:>
<br><br>
<TABLE CellPadding="0" CellSpacing="0">
<TR>
<TD valign="top">
<:SUBMITTER:>
<:DATE:>
<:HITS:>
<:RATE:>
</TD>
</TR>
</table><br>
<:RATINGBAR:><br>
<:POSTCARD:><br>
<:DOWNLOAD:><br>
<:PRINT:>
</td>
<td width="80%" align="center">
<:IMAGE:>
</td>
</tr>
<tr>
<td colspan="2"><:DESCRIPTION:></td>
</tr>
<tr>
<td colspan="2">
<:COMMENTS:>
</td>
</tr>
</table>
Template CSS:
.common_text_black {text-color:#000000}
.common_text_white {text-color:#ffffff} |
|
_________________
 |
|
       |
 |
kjcdude
Captain


Joined: Jun 10, 2003
Posts: 441
Location: Southern California
|
Posted:
Sun Sep 14, 2003 1:20 pm |
  |
|
       |
 |
hamesh
Support Mod


Joined: Feb 13, 2003
Posts: 170
Location: Canada
|
Posted:
Sun Sep 14, 2003 1:44 pm |
  |
Oh, one new feature I added is a Show all by this artist button at the bottom of each picture. If you setup your own templates, you can insert it by entering:
in the HTML of your template. Hope you like it  |
_________________
 |
|
       |
 |
|
|