Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

[RELEASE] Creating new album upon user registration
Goto page Previous  1, 2, 3, 4, 5, 6
 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 1 Integration View previous topicPrinter friendly versionView next topic
Author Message
eucarya

User
User


Joined: May 26, 2004
Posts: 37
Location: phoenix

PostPosted: Wed Jun 01, 2005 12:55 pm    Post subject: Re: [RELEASE] Creating new album upon user registration Reply with quote

Has anyone tackled this with mambo CMS yet?
I am thinking about migrating away from phpNuke as mambo seems much better. More features, looks cleaner, and many other reasons, however I still love Gallery and don't want to move to mambo w/o a way for my users to be able to have their own album and be able to administer it.
Please advise.
Back to top
Offline View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
AdBot
   Post subject: Re: [RELEASE] Creating new album upon user registration  

Back to top
SogniX

Beginner
Beginner


Joined: Jul 26, 2005
Posts: 1

PostPosted: Tue Jul 26, 2005 11:36 pm    Post subject: Re: [RELEASE] Creating new album upon user registration Reply with quote

Any way to get a modified modules/Your_Account/index.php file? I don't know if I keep missing a step or what but I managed to cause the newuser signup and the "your account" module to go blank. Embarassed
I replaced it with the original... but would like to just ftp a new file up that's already modified if possible.

Thanks.
Back to top
Offline View user's profile Send private message
Xerakon

Beginner
Beginner


Joined: Apr 30, 2005
Posts: 4

PostPosted: Tue Aug 16, 2005 11:53 am    Post subject: Re: [RELEASE] Creating new album upon user registration Reply with quote

Okays.. firstly, huge fan of your work. Love the site, and it has helped me very much in the past. So, I fianlly come across this piece of art here. I make it through the first two table insertions, and come to the code manipulation, my favorite! Imagine my suprise when NOTHING can be found in modules/Your_Account/index.php. And then I remember that I'm running PHP-Nuke 7.6 Platinum. Anyone have ANY ideas on how to convert the code manipulations over?
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Tue Aug 16, 2005 12:48 pm    Post subject: Re: [RELEASE] Creating new album upon user registration Reply with quote

basically, you want the edits to be made in whatever module controls the user account creation. i don't know the internals of the platinum distributions of phpnuke, so i can't offer much guidance there.
Back to top
Offline View user's profile Send private message Visit poster's website
Xerakon

Beginner
Beginner


Joined: Apr 30, 2005
Posts: 4

PostPosted: Tue Aug 16, 2005 12:54 pm    Post subject: Re: [RELEASE] Creating new album upon user registration Reply with quote

Damnation. Let me grab a plain version of 7.7 and see if it's more like platinum or not. I've always had alot of trouble with the creators of Platinum (contacting and the like, as their website is so slow, I nearly suffer brain damage and think I am on 56k. If they do not match up, I will just have to try to get in touch with TechGFX and give him your code to see what we can do with. Then perhaps you can place it up here for Platinum users. Also.. would you mind posting how to create a signature such as the one you have? I'v always been interested in those.
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Tue Aug 16, 2005 1:03 pm    Post subject: Re: [RELEASE] Creating new album upon user registration Reply with quote

my sig code is a php script that generates the image from information pulled from the db:
PHP: › <?php

$phpbb_root_path 
'modules/Forums/';

define('IN_PHPBB'true);
include (
'config.php');
include (
'db/db.php');
include(
$phpbb_root_path 'extension.inc'); 
include(
$phpbb_root_path 'common.'.$phpEx); 
include(
"includes/counter.php");

$total_users get_db_stat('usercount');
$total_posts get_db_stat('postcount');
$total_topics get_db_stat('topiccount'); 

$result $db->sql_query("SELECT p.topic_id, p.poster_id, t.topic_title, u.username FROM nukedgallery_bbposts p, nukedgallery_bbtopics t, nukedgallery_users u WHERE p.topic_id = t.topic_id AND p.poster_id = u.user_id ORDER BY p.post_time DESC LIMIT 0,1");
$row $db->sql_fetchrow($result) or die(mysql_error());

$topic_title html_entity_decode($row['topic_title']);
$username $row['username'];
$line file("/home/XXXXXX/gallery2data/versions.dat");
$core trim($line[0]);
$g2version trim($line[1]);
include(
"/home/XXXXXX/gallery/Version.php");
global 
$gallery;

$im imagecreatefromjpeg("logo.jpg");
$black ImageColorAllocate($im0,0,0);
$red  ImageColorAllocate ($im25500);
$blue ImageColorAllocate ($im0,0,255);
$background ImageColorAllocate($im255,204,0);
$sitename $board_config['sitename']; 

ImageString($im51003"Statistics for $sitename",$tc);
ImageString($im22517"Total Users: $total_users"$tc);
ImageString($im22530"Total Posts: $total_posts in $total_topics Topics"$tc);
ImageString($im22543"Newest Post: "$tc);
ImageString($im211443"$topic_title"$blue);
ImageString($im22556"Our Gallery 1.x version: ",$tc);
ImageString($im218056"$gallery->version"$red);
ImageString($im22569"Our Gallery2 version: ",$tc);
ImageString($im216069"$g2version ($core)"$red);
header("Content-Type: image/jpg");
Imagejpeg($im,'',100);
ImageDestroy ($im); 

?>
Back to top
Offline View user's profile Send private message Visit poster's website
Xerakon

Beginner
Beginner


Joined: Apr 30, 2005
Posts: 4

PostPosted: Tue Aug 16, 2005 1:28 pm    Post subject: Re: [RELEASE] Creating new album upon user registration Reply with quote

I have posted a query on the PHP-Nuke Platinum forums. If you wish to go over it real quick and see if there's anything you think should be added, please:

http://www.techgfx.com/modules.php?name ... 8874#38874

And so I'll just need to edit that script a tiny bit and run it through a browser for the generated *.jpg? Thank you much.
Back to top
Offline View user's profile Send private message
oogie

Beginner
Beginner


Joined: Mar 12, 2005
Posts: 2

PostPosted: Fri Oct 14, 2005 4:24 pm    Post subject: Re: [RELEASE] Creating new album upon user registration Reply with quote

Thanks for the great hack. I followed all the instructions and when i am in signup page, i don't see any option to create new album.

I am using nuke 7.7

Thanks
Back to top
Offline View user's profile Send private message
nitro2

Beginner
Beginner


Joined: May 02, 2005
Posts: 5

PostPosted: Wed Oct 19, 2005 11:33 am    Post subject: Re: [RELEASE] Creating new album upon user registration Reply with quote

Edit:

I did miss something.. working now.
Back to top
Offline View user's profile Send private message
seanhogan

Beginner
Beginner


Joined: May 17, 2004
Posts: 6

PostPosted: Fri Jan 12, 2007 6:19 am    Post subject: Re: [RELEASE] Creating new album upon user registration Reply with quote

How can this feature be integrated into phpnuke 7.9 with CNBYA 4.4.2?

CNBYA is a different your_account index.php
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Fri Jan 12, 2007 10:12 am    Post subject: Re: [RELEASE] Creating new album upon user registration Reply with quote

i can't support 3rd party modules. my suggestion is to read what needs to be done with this modification, and try to map things to your new module.
Back to top
Offline View user's profile Send private message Visit poster's website
seanhogan

Beginner
Beginner


Joined: May 17, 2004
Posts: 6

PostPosted: Sat Jan 13, 2007 12:06 am    Post subject: Re: [RELEASE] Creating new album upon user registration Reply with quote

K, I think I will just write an insert statement that happens upon validation link click, and also write php lines to make an album at the same time. Permissions for the album are specified in the database also correct?

I have gallery and phpnuke installed in the same database.

G2 would have been better, but I couldn't find any blocks that showed the latest, most popular of featured photos. If you know of any of those for G2 I could just use that.

I had this all working on another site, but that was about 3 years ago and can't remember all the places I edited.
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 1 Integration View previous topicPrinter friendly versionView next topic
Goto page Previous  1, 2, 3, 4, 5, 6

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Dedicated ServersDomain NamesWeb HostingDomain Name RegistrationDedicated Web HostingWeb Design New YorkCompare VoIPseo packagesSEO CompanyNew York Yellow PagesFind LocationsVOIP Phone ServiceNeckermannOnline internetSEORestaurant Locator • Get great HP coupons from CouponSnapshot • Search for great dell coupons at CouponSnapshot.com.au • Graduation DressesAndroid TabletSEO IndiaBuy Phen375fuel filterWorld Meds Direct

8th year online! 2003-2011
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia