SMF Support > SMF 2.0.x Support

Info from the database Help/Info

(1/2) > >>

a454nova:
I'm looking to pull info from the database like the way $member_info['posts'] dose from the "posts" under Forums_members. I use download pro and I want to show the users credits.

Question is, unless there is a better way, where is the code at where ['post'] pulls the value from the database.  I want to just copy it and edit it to pull the value from DL Credits.

Anyone know?  Thanks!

a454nova:
Bump,   Anyone know where this is?   

:
I'm not sure what you're trying to do. I don't recall $member_info anywhere in SMF and if you're referring solely to the Download Pro mod, you probably should ask its author on smfhacks.com.

a454nova:
Ok well I may be pulling that from a mod. I'm not referring to the download Pro mod.  I'll explain it different.

Under your profile (Even here) it shows...

Username:                      a454nova
Posts:                             53 (0.033 per day)
Gender:                           Male
Age:                                28
Location:                         Aurora, CO

I want to add a line under Posts:


Username:                      a454nova
Posts:                             53 (0.033 per day)
Credits:                           50                         <------------------------------  ADD THIS
Gender:                           Male
Age:                                28
Location:                         Aurora, CO

In the database under "Fourm_Members" its called "downpro_credits" 

How do I add this line?  On a second note, I would just like to know how the site pulls that info from the database.

Thanks for the help guys!!   :)

:
This is where it gets very complicated, because it's done in four separate places.

loadMemberData in Load.php loads the data from the database
loadMemberContext in the same file then converts it to a different format internally
prepareDisplayContext in Display.php then grabs that data and gets it ready for display
template_main in Display.template.php then actually displays it

That's how it does it, I can go through and pull the relevant edits but I don't have a copy of 2.0 to hand to look at... :/

Navigation

[0] Message Index

[#] Next page

Go to full version