Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 251
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 147
Total: 147

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - exit

Pages: 1 2 [3] 4 5 6
31
Support / Re: custom modification
« on: April 30, 2012, 01:12:36 pm »
Doesn't work.

I'm using this to get the avatarts...

Code: [Select]
// if avatars are to be fetched
if(!empty($settings['avatarboards']))
{
// fetch last posters
$membs = array();
foreach($context['categories'] as $category)
{
if(!empty($category['boards']))
{
foreach($category['boards'] as $b)
$membs[$b['last_post']['member']['id']] = $b['last_post']['member']['id'];
}
}
if(count($membs)>0)
{
$request =  $smcFunc['db_query']('','SELECT mem.id_member as ID_MEMBER, mem.avatar,
IFNULL(a.id_attach, 0) AS ID_ATTACH, a.filename, a.attachment_type as attachmentType
FROM ' . $db_prefix . 'members AS mem
LEFT JOIN ' . $db_prefix . 'attachments AS a ON (a.id_member = mem.id_member)
WHERE mem.id_member IN (' . implode(",",$membs) . ')',array());

$avvy = array();
if($smcFunc['db_num_rows']($request)>0)
{
while($row = $smcFunc['db_fetch_assoc']($request))
$avvy[$row['ID_MEMBER']] = $row['avatar'] == '' ? ($row['ID_ATTACH'] > 0 ? (empty($row['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']));

$smcFunc['db_free_result']($request);
}
}
}

32
Support / Re: custom modification
« on: April 30, 2012, 10:00:10 am »
Can u be more specific?

For instance how to aplly that on this code?
Code: [Select]
<a href="',$scripturl,'?action=miniprofile;u='.$board['ID_MEMBER'].'" rel="width:560,height:260" id="mb'.$board['id'].'" class="mb">
<img alt=""  class="avyframe" style="width: 50px;height: 50px;border-radius:3px;" src="' . (!empty($avvy[$board['ID_MEMBER']]) ? $avvy[$board['ID_MEMBER']] : $settings['images_url'].'/TPguest.png') . '" />
</a>

Sorry and thanks!

33
Support / Re: custom modification
« on: April 25, 2012, 01:44:09 pm »
Last question what SMF version?

2

34
Support / Re: custom modification
« on: April 25, 2012, 01:03:46 pm »
The $board variable probably does not contain the member id do a print_r($board);
And see what it outputs

It contains the member id, but how do I get the user avatar? That's my goal... This doesn't work:
Code: [Select]
$board['ID_MEMBER']['avatar']['image']

35
Support / custom modification
« on: April 25, 2012, 12:40:00 pm »
I'm trying to adapt the boardindex categories to my custom theme, and I'm not able to get user avatar from the classifieds...

What is wrong in this code

Code: [Select]
<a href="',$scripturl,'?action=miniprofile;u='.$board['ID_MEMBER'].'" rel="width:560,height:260" id="mb'.$board['id'].'" class="mb">
<img alt=""  class="avyframe" style="width: 50px;height: 50px;border-radius:3px;" src="' . (!empty($avvy[$board['ID_MEMBER']]) ? $avvy[$board['ID_MEMBER']] : $settings['images_url'].'/TPguest.png') . '" />
</a>

Thanks

36
Site Discussion / Re: Question regarding wysiwyg
« on: March 01, 2012, 04:24:34 pm »
There is a built in one for SMF 2.0

Oh ok.

37
Site Discussion / Question regarding wysiwyg
« on: March 01, 2012, 02:03:32 pm »
Hi,

Why there aren't any mods for a wysiwyg editor in smf? I see for exemple, that in ezportal u have it in the pages, but not for the topics/posts in the forum... I see also xenforo using tinymce for their editor and ipb using ckeditor.

When I search in smf foruns for an answer, I see there are issues regarding smf security... But what is the real problem? Why aren't there any solutions to this issue?

I ask this, because in my opinion bbcode is to "boring/outdated" to be a real solution.

Thanks,

38
Feature Requests / Re: Share classifieds on facebook etc.
« on: February 20, 2012, 02:57:52 pm »
The share shows more information such as listing title,link and stands out more on Facebook. Like just shows a title. I could add a like link as well but the share system shows more data.

That's not true, the share feature and the like in facebook, is the same now (and the share button was been deprecated by facebook)... And people click more on the like button than the share... just saying. ;)

Probably not every one is seeing the full like feature, but it show the title, the image and the description, if it is well implemented .

http://developers.facebook.com/docs/share/

39
Feature Requests / Re: boardindex categories
« on: February 10, 2012, 02:15:41 pm »
No way to define the position I just hardcoded into the template and commented out the bottom position.

Ok, sorry. Define the position, inside the loop was what I'm asking for...

40
Feature Requests / Re: boardindex categories
« on: February 10, 2012, 01:52:14 pm »
Its working.

Who I define the position now?

41
Feature Requests / Re: boardindex categories
« on: February 10, 2012, 10:54:42 am »
What error does it say? And what line checked the file looks ok on my side.


It just says

Quote
Template Parse Error!

It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

probably some ";" or "}" missing...

42
Feature Requests / Re: boardindex categories
« on: February 10, 2012, 06:10:53 am »
Is giving me a template parse error...

But I'm looking to your code, and I don't understand one thing. Where do I say in which position should the classifieds board appear?

43
Feature Requests / Re: statistics?
« on: February 09, 2012, 04:47:13 pm »
Maybe as an option how and where would you want that information displayed?

For me, in the sidebar of the simple layout. But for the categories layout maybe in the bottom of the template.

Thanks,

44
Feature Requests / Re: boardindex categories
« on: February 09, 2012, 04:44:29 pm »
ok...

45
Feature Requests / statistics?
« on: February 09, 2012, 03:36:31 pm »
I'm thiking if its possible, to have some statistics in the frontpage.

Some cool ones like:
- listings added
- number os bids
- sales (in money)

What do u guys think?

Pages: 1 2 [3] 4 5 6

+- Recent Topics

Please Help! by SMFHacks
Today at 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal