Welcome, Guest |
You have to register before you can post on our site.
|
|
|
Cant use search.php? |
Posted by: Deities - 2010-09-12, 08:43 PM - Forum: 1.6 General Support
- Replies (1)
|
|
I need a search.php action like "action=getnew&"
I need it for the following,
Search all past threads for a username in a certain forum.
Example
search.php?action=finduserthreads&uid=232323&fid=111
The above does not work but I need a working one that can refine a search based on a username in a certain forum.
I will be linking this, just in case you wonder why I need it. I have looked through the coding of search.php and none of the return arrays give my wanted result.
I want to be able to link a search action so that the search action searches for the users UID (Username) to a certain forum.
This is the wanted result.
Having a scammers section, where If I link a search action in there profile and call it "Search for past reports"
It would search a certain forum id (FID=*) (Aka the scam report section) for the useres Username in the thread title.
What I did not account is that username changes can ruin this. I can make it so that it searches for there UID in posts themselves since my scam report template involves posting there profile link.
Any ideas on how to make this into a single url?
|
|
|
Upgrade fail after hack-attack |
Posted by: kevinks - 2010-09-12, 08:34 PM - Forum: 1.6 General Support
- Replies (6)
|
|
I am having troubles upgrading from 1.4 at http://www.livinlowcarbdiscussion.com
This morning, the site was hacked, redirecting people to download a pdf from realmadrid.su
When I started sniffing around, I saw that 1.6 was out and assumed the hacking was due to a known exploit in the old code. I decided to try fixing the problem with an upgrade.
I followed the instructions for upgrading, but between steps 6 and 7:
6 Go to www.yourdomain.com/forumfolder/install/upgrade.php
7 You will see a drop down list asking what version of MyBB you're upgrading from. Be sure you select the correct version you are currently using or else the upgrade will not work correctly or completely!
I encountered the following:
Quote:Warning: require_once(/home5/grassho2/public_html/locarbforum/inc/config.php) [function.require-once]: failed to open stream: No such file or directory in /home5/grassho2/public_html/locarbforum/install/upgrade.php on line 41
Fatal error: require_once() [function.require]: Failed opening required '/home5/grassho2/public_html/locarbforum/inc/config.php' (include_path='.:/usr/lib64/php:/usr/lib/php') in /home5/grassho2/public_html/locarbforum/install/upgrade.php on line 41
I don't really understand all that, but obviously something is missing. I checked out all the paths mentioned in that message and saw that while:
.../locarbforum/inc/config.php
does NOT exist,
.../locarbforum/inc/config.default.php
does.
So, should I simply rename the file in question, or do I need to change something else? Conversely, are my problems much larger in scope than I fear?
Thanks in advance for any help you can offer,
-KKS
|
|
|
Profile comments |
Posted by: christinaxx - 2010-09-12, 07:09 PM - Forum: 1.6 General Support
- Replies (1)
|
|
At the moment the profile commets are down the left hand of the profile but it makes the page look untidy because it has things above it and the right side looks bare.
Can anyone code my profile so it's got nothing but profile comments on the left side and all the other info on the right side?
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
</head>
<body>
{$header}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="trow1">
<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td class="trow1" width="75%">
<span class="largetext"><strong>{$formattedname}</strong></span><br />
<span class="smalltext">
({$usertitle})<br />
{$groupimage}
{$userstars}<br />
<br />
<strong>{$lang->registration_date}</strong> {$memregdate}<br />
<strong>{$lang->date_of_birth}</strong> {$membday} {$membdayage}<br />
<strong>{$lang->local_time}</strong> {$localtime}<br />
<strong>{$lang->postbit_status}</strong> {$online_status}
</span>
</td><td width="25%" align="right" valign="middle">{$avatar}</td></tr></table>
</td>
</tr>
{$awaybit}
</table>
<br />
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
<tr>
<td width="50%" valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td colspan="2" class="thead"><strong>{$lang->users_forum_info}</strong></td>
</tr>
<tr>
<td class="trow1"><strong>{$lang->joined}</strong></td>
<td class="trow1">{$memregdate}</td>
</tr>
<tr>
<td class="trow2"><strong>{$lang->lastvisit}</strong></td>
<td class="trow2">{$memlastvisitdate} {$memlastvisittime}</td>
</tr>
<tr>
<td class="trow1"><strong>{$lang->total_posts}</strong></td>
<td class="trow1">{$memprofile['postnum']} ({$lang->ppd_percent_total})<br /><span class="smalltext">(<a href="search.php?action=finduserthreads&uid={$uid}">{$lang->find_threads}</a> — <a href="search.php?action=finduser&uid={$uid}">{$lang->find_posts}</a>)</span></td>
</tr>
<tr>
<td class="trow2"><strong>{$lang->timeonline}</strong></td>
<td class="trow2">{$timeonline}</td>
</tr>
{$referrals}
{$reputation}
{$warning_level}
</table>
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td colspan="2" class="thead"><strong>{$lang->users_contact_details}</strong></td>
</tr>
<tr>
<td class="trow1"><strong>{$lang->homepage}</strong></td>
<td class="trow1">{$website}</td>
</tr>
{$sendemail}
<tr>
<td class="{$bgcolors['pm']}"><strong>{$lang->pm}</strong></td>
<td class="{$bgcolors['pm']}"><a href="private.php?action=send&uid={$memprofile['uid']}">{$lang->send_pm}</a></td>
</tr>
<tr>
<td class="{$bgcolors['icq']}"><strong>{$lang->icq_number}</strong></td>
<td class="{$bgcolors['icq']}">{$memprofile['icq']}</td>
</tr>
<tr>
<td class="{$bgcolors['aim']}"><strong>{$lang->aim_screenname}</strong></td>
<td class="{$bgcolors['aim']}"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&imtype=aim&uid={$uid}', 'imcenter', 450, 300);">{$memprofile['aim']}</a></td>
</tr>
<tr>
<td class="{$bgcolors['yahoo']}"><strong>{$lang->yahoo_id}</strong></td>
<td class="{$bgcolors['yahoo']}"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&imtype=yahoo&uid={$uid}', 'imcenter', 450, 300);">{$memprofile['yahoo']}</a></td>
</tr>
<tr>
<td class="{$bgcolors['msn']}"><strong>{$lang->msn}</strong></td>
<td class="{$bgcolors['msn']}"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&imtype=msn&uid={$uid}', 'imcenter', 450, 300);">{$memprofile['msn']}</a></td>
</tr>
</table>
</td>
<td><img src="{$theme['imgdir']}/pixel.gif" height="1" width="8" alt=""/></td>
<td width="50%" valign="top">
{$profilefields}
{$signature}
<br />{$buddylist}{$modoptions}<!-- ProfileComments -->{$comments_index}<!-- /ProfileComments -->
{$adminoptions}
{$buddy_options}
</td>
</tr>
</table>
{$footer}
</body>
</html>
|
|
|
2 PHP Questions (Matt) |
Posted by: Tyler E. - 2010-09-12, 06:31 PM - Forum: 1.6 General Support
- Replies (14)
|
|
This is more directed toward Matt, since he is a PHP guru.
1) If I place a file, say test.php in / and in /forum and put this at the beginning:
<?php
define('IN_MYBB', 1); // (1a)
require "./global.php";
?> And then write <?php {$mybb->user['username']} ?> in both files, the one in / will not output anything. The one in /forum will. (If you're logged in of course).
So, I'm trying to figure out how to make it work.
2) I can't figure out this unexpected $end in one of my MyBB files I'm making. I'll link you to the files over PM.
3) (Sorry, I lied). When placing a login box on the site, for some reason, when you click "Login", it goes to http://www.jammingames.tk/member.php instead of /forum/member.php
So, thanks to Matt, or anyone else who can help me.
|
|
|
|