Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 04-20-2012, 03:51 PM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 93,597
AlexC is an unknown quantity at this point
Default

Quote:
Originally Posted by Hall of Famer View Post
Well...

First of all, you may go to each script file that uses pagination and find a line like this(the example below is for messages.php):

PHP Code:
$pagination = new Pagination($adopts$query$rowsperpage"http://www.".constant("DOMAIN").constant("SCRIPTPATH")."/messages.php"); 
You can edit out www. and the code should work for site url not using www. I, however, strongly recommend including www. though, since this is the convention we use for this script.
So it is recommended to use www. then? Well, I guess i could switch, because otherwise I'll have to keep changing it over every upgrade.

Quote:
And yes, it is doable to direct user profile and message page to the forum, but that will require a lot more coding. You have to be familiar with the way your forum engine works. If it is MyBB, the user profile page looks like this:

PHP Code:
http://www.yourdomain.com/mybb/member.php?action=profile&uid=5 
The cheapest way to do this is to edit the navlink 'memberlist' and change its url to http://mysidiarpg.com/site/mybb/memberlist.php. If you still want to use the member list for Mysidia Adoptables but not the profile, you may go to profile.php and find this line:


PHP Code:
$article_content .= "<strong><a   href='profile.php?user={$row->username}'>{$star}{$row->username}</a></strong><br   />"
And change it to:

PHP Code:
$article_content .= "<strong><a  href='http://www.yourdomain.com/mybb/member.php?action=profile&uid=".usernametouid($row->username).">{$star}{$row->username}</a></strong><br  />"
And it should do the trick, but keep in mind that it requires the ids from adoptables and forum's user tables to be consistent. If your user id is 1 in adoptables table, but 2 in forum table, the above code will fail and you have to do a lot more coding to make it work.
Can I change the ids in the forum to match the ones on the site and then just do that thing you showed me of telling it where to start counting from?

Quote:
The third one is, well, doable but definitely difficult. This requires a significant modification over the core script of your adoptables site, and will take me at least 3 days to complete, and not sure how long it will take you.
Quote:
Originally Posted by Silver Kitsune View Post
You could just make your forum theme match your site theme. Or use iframe. But meh... I wouldn't go that route.

@Silver, this is actually what I wanted - I just want my forum to look the same as my site. I just wasn't sure how to transfer over the nav bar and stuff. I don't want to do some advanced mod or anything.

Quote:
The last request is quite easy to achieve, you just have to re-write these lines from levelup.php to whatever you want them to be:

PHP Code:
$article_title $lang_gave."{$owned_adoptable->name} one ".$lang_unit;
      
$article_content "<img src='{$image}'><br>{$lang_gave}{$owned_adoptable->name}    one {$lang_unit}.<br>".$lang_levelup_encourage
Note the $owned_adoptables is an object with various properties such as level, click, gender and tradestatus, you can access them by $owned_adoptables->property. A concrete example is already available above, note how the adoptables name is accessed as {$owned_adoptable->name}. If you do not know what properties are available in $owned_adoptables object, simply go to your prefix.owned_adoptables table and the column names are the property names.
I'm slightly confused with how to add stuff like that - basically all I want to display is clicks, level, trade status, image, name, gender and that's about it. I do like how Silver has done her's, I just want it to be displayed even when you've already clicked it.

Silver, would you mind showing me how you pulled the information from the database? After that I think I can handle it, I just don't get that part too easily.
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with pagination or profile.php kristhasirah Questions and Supports 0 01-16-2013 04:59 PM
help me with levelup.php Sensacionsk8 Questions and Supports 0 02-23-2011 05:48 PM
Pagination/ My Adopts Page Missy Master Suggestions and Feature Requests 13 01-23-2011 08:37 PM
adopt.php pagination cetroline Questions and Supports 5 12-13-2010 06:41 PM
pagination for my adopts redheadturkey Questions and Supports 18 05-01-2010 10:45 AM


All times are GMT -5. The time now is 04:26 PM.

Currently Active Users: 3680 (0 members and 3680 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636