PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
prekill
Regular
Regular


Joined: Oct 22, 2005
Posts: 97

PostPosted: Sun May 11, 2008 2:12 pm Reply with quote Back to top

Hey guys,

I have just thought of a nice idea, tell me what you think:

I am using the following modules:

My_eGallery
Nukephpbb
Reviews
Youtube
Downloads
Content

I want to create a module that will show the user last 10 of each module.

It will work the following way:
Only registered users can see links on this board!
Get registered or login to the forums!


I would like to hear what you genearly think and tips on how to start, speasily with how to make this username in the url.
View user's profile Send private message
evaders99
Moderator


Joined: Apr 30, 2004
Posts: 2749

PostPosted: Sun May 11, 2008 9:54 pm Reply with quote Back to top

Something like the Top module, except query on the username. Shouldn't be too difficult, have to craft the queries correctly depending on how the data is stored. Really have to understand the data structure of those specific modules.
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7236
Location: Arizona

PostPosted: Mon May 12, 2008 5:29 am Reply with quote Back to top

You could also take some ideas from kguske's nukeSEO/nukeFEED where he uses classes and then each content type has a script and class which extends the base. This would make it very easy to add additional content types if/when you should decide to do so, OR, if you should decide to release this publically.
View user's profile Send private message Visit poster's website
prekill
Regular
Regular


Joined: Oct 22, 2005
Posts: 97

PostPosted: Mon May 12, 2008 11:17 am Reply with quote Back to top

Hey guys, thanks for helping and sharing ideas but I think I am going to try a different approach, like you said that you have to understand the data I look and came up with the following plan:

I am going to edit usercp_viewprofile.php and profile_view_body.tpl which control the user profile of a user. I am going to use the phpbb user profile to display each user contribute. all the data has a submitter row so I going to query the data for each user to he's profile page and display it.

for now I have started to work on the sent gallery images that the user have sent, I copied and modified the following code from a block file:
Code:
//
// Generate gallery
//
$Display_numpic = 6;
$result = mysql_query("SELECT p.pid, p.img, p.name, p.description, p.submitter, c.galloc FROM nuke_gallery_pictures AS p LEFT JOIN nuke_gallery_categories AS c ON c.gallid=p.gid where p.submitter='$u_search_author' ORDER BY date DESC LIMIT 0, $Display_numpic");
$t = 1;
while (list($pid, $img, $name, $description, $submitter, $galloc) = mysql_fetch_row($result)) {
                   $list_pic .= "<a href=\"showfile-$pid.html\"><img src=\"modules/My_eGallery/gallery/$galloc/thumb/$img\" height=\"90\" width=\"110\" border=\"1\" alt=\"$description\"></a>";
                   $list_pic .= ($t != $Display_numpic ? "   " : "");
                   $t++;
}

It is working but I have one small problem, for some reason it will not return diffrent images but always the first raw. any idea why? it should give the last 6 pictures with the following code doesnt it? can you spot the problem maybe?
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7236
Location: Arizona

PostPosted: Mon May 12, 2008 9:14 pm Reply with quote Back to top

sorry, not much help to you as I've never used My_eGallery.
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum