DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • May 18, 2013, 05:32:06 AM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Call Title?  (Read 776 times)
0 Members and 1 Guest are viewing this topic.
MidnightShadow
Captain of the Guard
***
Offline Offline

Posts: 149


I Await The Full Moon


View Profile
« on: April 07, 2008, 12:52:42 AM »

I am wondering weather or not you can call a title in the same way you can call users gold, gems ect... I wanted to call a certain title from the Database would it be something along this (I really do not know if this is possible or if i will have to ask the MySQL DB)

Code:
$titleno = "25";
addnav("%s Level", $session[title][$titleno]");

I highly doubt this is the code and the more i look at it the more i dread having to use the lines of code i hate most ^^
Code:
$sql = "SELECT value FROM module_userprefs WHERE modulename = 'XX'";
db_query($sql);

Anyway if you can help me please do!
Logged

R.I.P otB
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #1 on: April 07, 2008, 04:59:38 AM »

Code:
require_onc("lib/titles.php");
$title = get_dk_title($dks, $gender);
// Where dks is the DK level and $gender is the gender of taht level 0 = Male (SEX_MALE), Female (SEX_FEMALE) = 1
Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

MidnightShadow
Captain of the Guard
***
Offline Offline

Posts: 149


I Await The Full Moon


View Profile
« Reply #2 on: April 07, 2008, 05:06:07 AM »

 Grin Thank You.

Where is has $title = get_dk_title($dks, $gender);   is it possible to use both genders?

Logged

R.I.P otB
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #3 on: April 07, 2008, 05:08:03 AM »

A specific gender need be defined. Just how the function was written. If you use anything other than 0 or 1, it will return the female title.
« Last Edit: April 07, 2008, 05:09:35 AM by Sichae » Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

MidnightShadow
Captain of the Guard
***
Offline Offline

Posts: 149


I Await The Full Moon


View Profile
« Reply #4 on: April 07, 2008, 05:22:07 AM »

I understand now, thank you once again.
Logged

R.I.P otB
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
$100 raised this year
Your help is greatly appreciated!
Who's Online
19 Guests, 1 User
supermingo
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search